:root {
  --background: #fff9f3;
  --surface: #ffffff;
  --surface-soft: #f8ebdf;
  --ink: #4d0019;
  --muted: #776963;
  --line: #ead8c9;
  --accent: #e57973;
  --accent-dark: #9e4948;
  --accent-soft: #ffe1df;
  --shadow: 3px 3px 0 rgba(77, 0, 25, 0.12);
  --radius-large: 6px;
  --radius-medium: 4px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(229, 121, 115, 0.2), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(255, 225, 223, 0.8), transparent 30rem),
    var(--background);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(rgba(45, 37, 34, 0.08) 0.7px, transparent 0.7px),
    radial-gradient(rgba(45, 37, 34, 0.05) 0.6px, transparent 0.6px);
  background-position: 0 0, 7px 11px;
  background-size: 13px 13px, 17px 17px;
  opacity: 0.38;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

main,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px max(16px, calc((100% - var(--max-width)) / 2 + 16px));
  background: rgba(255, 249, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logo,
.main-nav {
  display: inline-flex;
  align-items: center;
}

.logo {
  gap: 8px;
  font-weight: 750;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.button-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.main-nav {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.7);
}

.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-medium);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a.active,
.main-nav a:hover {
  background: var(--ink);
  color: #fffaf6;
}

.hero,
.about-hero {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero {
  max-width: 760px;
}

.about-hero {
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 0;
  padding-inline: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 10px;
  font-size: clamp(1rem, 2.5vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.2;
}

.hero p,
.about-hero p,
.about-card p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button,
.chip,
.tag {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-medium);
  background: var(--ink);
  color: #fffaf6;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button-quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.gallery-section,
.about-card {
  margin-top: 28px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.about-status {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.testimonials {
  margin-top: 28px;
  padding: clamp(16px, 3vw, 24px) 0;
}

.filter-drawer {
  position: relative;
}

.filter-drawer summary {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  list-style-position: inside;
  white-space: nowrap;
}

.filter-drawer summary:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 121, 115, 0.14);
}

.filter-drawer summary span:last-child {
  color: var(--accent-dark);
}

.filter-drawer .chips {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 110;
  min-width: 280px;
  max-width: 420px;
  padding: 12px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(77, 0, 25, 0.1);
}

.chips,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.chip.active,
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffaf6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.art-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.art-card:hover,
.art-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.art-image-wrap {
  display: grid;
  position: relative;
  overflow: hidden;
  place-items: center;
  background: var(--surface-soft);
}

.art-image-wrap img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.art-meta {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag {
  padding: 6px 9px;
  border-radius: 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.tag:hover {
  background: var(--accent);
  color: #fffaf6;
}

.tag-static {
  cursor: default;
}

.tag-static:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.empty-state {
  margin: 0;
  padding: 32px;
  border-radius: var(--radius-medium);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.art-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--background);
  box-shadow: none;
}

.art-dialog::backdrop {
  background: var(--background);
}

.art-dialog > img {
  width: 100%;
  height: min(68vh, 720px);
  object-fit: contain;
  background:
    radial-gradient(circle at top left, rgba(229, 121, 115, 0.14), transparent 28rem),
    var(--surface-soft);
}

.dialog-copy {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
  padding: 24px 0 44px;
}

.dialog-info:empty { display: none; }
.dialog-info [data-dialog-series] { font-weight: 600; }
.dialog-info [data-dialog-description] { font-style: italic; }

.related-art {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-art h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 80px));
  gap: 8px;
}

.related-item {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
}

.related-item:hover,
.related-item:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.related-item img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  background: var(--surface-soft);
  object-fit: cover;
}

.related-item span {
  display: none;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.dialog-nav {
  position: absolute;
  top: min(34vh, 360px);
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.dialog-nav:hover {
  background: var(--ink);
  color: #fffaf6;
}

.dialog-nav[hidden] {
  display: none;
}

.dialog-prev {
  left: 18px;
}

.dialog-next {
  right: 18px;
}

.about-photo {
  margin: 0;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  object-fit: cover;
}

.about-hero > div {
  padding-inline: clamp(24px, 5vw, 46px);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

blockquote {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow);
}

blockquote p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.site-footer {
  padding: 36px 0;
  color: #a7cfb4;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.back-link {
  color: #a7cfb4;
}

@media (max-width: 860px) {
  .about-hero,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 60px));
    gap: 6px;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 20px, var(--max-width));
  }

  .site-header {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 6px;
  }

  .logo {
    font-size: 0.85rem;
  }

  .logo-image {
    width: 32px;
    height: 32px;
  }

  .header-controls {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .hero,
  .about-hero,
  .gallery-section,
  .about-card {
    border-radius: 0;
  }

  .art-image-wrap img {
    height: 100px;
  }

  .filter-drawer .chips {
    min-width: 200px;
    max-width: calc(100vw - 20px);
  }
}
