:root {
  --paper: #f3eadf;
  --ink: #2c261f;
  --muted: #7a7166;
  --line: #d9cfc2;
  --gold: #a68456;
  --wall: #e6dccb;
  --dusk: #241f1b;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(980px 460px at 88% -8%, rgba(198, 154, 96, .18), transparent 58%),
    linear-gradient(180deg, #f7f1e8 0%, #f3eadf 42%, #e8dccb 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  overflow-x: clip;
}

img { max-width: 100%; }

section { scroll-margin-top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.topline {
  min-height: 34px;
  padding: 8px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.header {
  min-height: 84px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--paper);
}

.wordmark {
  text-decoration: none;
  color: var(--ink);
  font: 500 21px var(--serif);
  letter-spacing: .2em;
}

.wordmark span {
  display: block;
  font: 500 8px var(--sans);
  letter-spacing: .27em;
  margin-top: 4px;
  text-align: center;
}

.header nav { display: flex; gap: 36px; }

.header nav a,
footer a {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.menu-button {
  display: none;
  background: none;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}


.hero {
  padding: 36px 4vw 28px 5vw;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 4vw;
}

.hero-copy { max-width: 440px; }

.eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1,
.section-heading h2,
.about h2,
.visit h2 {
  font: 400 clamp(42px, 5vw, 72px) / 1.05 var(--serif);
  letter-spacing: -.035em;
  margin: 0;
}

.hero h1 em,
.about h2 em,
.visit h2 em { font-style: italic; font-weight: 400; color: #827660; }

.intro {
  max-width: 38ch;
  color: #625f58;
  line-height: 1.7;
  margin: 22px 0 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 10px;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.text-link span { font-size: 16px; color: var(--gold); }

.filter,
.text-link,
.button,
.hero-prev,
.hero-next,
.lightbox-close,
.lightbox-nav button {
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.hero-stage { min-width: 0; }

.hero-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(68vh, 720px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 236, 214, .55), transparent 64%),
    var(--wall);
  box-shadow: 0 28px 64px rgba(62, 44, 28, .14);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .85s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-title,
.hero-artist { transition: opacity .28s ease; }

.hero-meta.is-swap .hero-title,
.hero-meta.is-swap .hero-artist { opacity: 0; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding-top: 16px;
}

.hero-title {
  margin: 0;
  font: 500 22px / 1.25 var(--serif);
}

.hero-artist {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.hero-index {
  margin: 0;
  min-width: 72px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
}

.hero-index span:nth-child(2) { color: var(--gold); padding: 0 4px; }

.collection {
  padding: 72px 5vw 88px;
  background: linear-gradient(180deg, rgba(255, 250, 244, .42), rgba(232, 216, 194, .62));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading h2,
.about h2,
.visit h2 { font-size: clamp(40px, 4vw, 56px); }

.section-heading > p {
  max-width: 36ch;
  color: #706c63;
  line-height: 1.7;
  margin: 0 0 6px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  border-bottom: 1px solid #d0cabf;
  margin-bottom: 28px;
}

.filter {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0 0 12px;
  font: 11px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #817d74;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}

.filter-count { font-size: 10px; color: #a29a8c; margin-left: 6px; }

.filter.active { color: var(--ink); border-color: var(--gold); }

.filter:hover,
.filter:focus-visible { color: var(--ink); }

.text-link:hover { border-bottom-color: var(--ink); }

.hero-prev:hover,
.hero-next:hover,
.button:hover,
.lightbox-close:hover,
.lightbox-nav button:hover:not(:disabled) {
  background: #fff9f3;
  border-color: var(--gold);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 18px;
  align-items: start;
}

.art-card { min-width: 0; }

.art-open {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: var(--wall);
  display: block;
  overflow: hidden;
  cursor: zoom-in;
  transition: background-color .4s ease, box-shadow .4s ease;
}

.art-open:hover,
.art-open:focus-visible {
  background: #efe2cf;
  box-shadow: 0 16px 36px rgba(62, 44, 28, .1);
}

.art-open .art-preview {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
}

.art-detail {
  width: 100%;
  height: auto;
  max-height: min(78dvh, 820px);
  object-fit: contain;
  display: block;
}


.art-meta { padding-top: 14px; }

.art-meta span,
.art-meta p { font-size: 12px; letter-spacing: .03em; color: #79756d; }

.art-meta h3 {
  font: 400 22px / 1.25 var(--serif);
  margin: 6px 0 4px;
}

.art-meta p { margin: 0; }

.collection-end {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid #d0cabf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #7a756b;
  font-size: 13px;
}

.about {
  padding: 88px 8vw;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 6vw;
  align-items: center;
}

.about-image {
  background: var(--wall);
  box-shadow: 0 24px 50px rgba(62, 44, 28, .12);
}

.about-image img { width: 100%; height: auto; display: block; object-fit: contain; }

.about-copy { max-width: 480px; }

.about-copy > p:not(.eyebrow) { color: #69655d; line-height: 1.8; }

.about-copy .text-link { margin-top: 8px; }

.visit {
  background:
    radial-gradient(720px 320px at 8% -10%, rgba(198, 154, 96, .22), transparent 62%),
    var(--dusk);
  color: #f6f1ea;
  padding: 80px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.visit .eyebrow,
.visit h2 em { color: #c8ad82; }

.visit-address { line-height: 1.8; color: #d0ccc4; margin: 24px 0; }

.visit a { color: inherit; }

.visit a.button { color: #24231f; }

.button {
  background: #f4f1eb;
  color: #24231f;
  padding: 16px 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
}

.button span { font-size: 14px; }

.visit-side {
  display: grid;
  gap: 20px;
  text-align: right;
  font-size: 12px;
  letter-spacing: .12em;
  line-height: 1.7;
  color: #beb9af;
}

.visit-phones { display: grid; gap: 8px; }

.visit-phones a { display: inline-block; padding: 6px 0; text-decoration: none; }

footer {
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer > span { font-size: 12px; color: #77736a; }

.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(1080px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  background: #f7f4ee;
  color: var(--ink);
  overflow: auto;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .42s ease,
    transform .42s ease,
    overlay .42s ease allow-discrete,
    display .42s ease allow-discrete;
}

.lightbox[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .lightbox[open] {
    opacity: 0;
    transform: translateY(8px);
  }
}

.lightbox::backdrop {
  background-color: rgba(22, 20, 16, 0);
  transition:
    background-color .42s ease,
    overlay .42s ease allow-discrete,
    display .42s ease allow-discrete;
}

.lightbox[open]::backdrop { background-color: rgba(22, 20, 16, .8); }

@starting-style {
  .lightbox[open]::backdrop { background-color: rgba(22, 20, 16, 0); }
}

.lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .72fr);
  align-items: stretch;
}

.lightbox-photo {
  background: #1b1a17;
  display: grid;
  place-items: center;
  min-width: 0;
}

.lightbox-photo img.art-detail {
  background: #1b1a17;
  opacity: 1;
  transition: opacity .65s ease;
}

.lightbox-photo img.art-detail.is-entering {
  opacity: 0;
  transition: none;
}

.lightbox-fiche {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lightbox-close {
  align-self: flex-end;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-family: inherit;
}

.lightbox-artist {
  margin: 12px 0 0;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}

.lightbox-fiche h2 {
  margin: 0;
  font: 400 32px / 1.15 var(--serif);
}

.lightbox-note { margin: 8px 0 0; color: #5f5b54; line-height: 1.6; }

.lightbox-pos { margin: 12px 0 0; letter-spacing: .14em; font-size: 12px; color: var(--muted); }

.lightbox-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }

.lightbox-nav button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.lightbox-nav button:disabled { opacity: .4; cursor: default; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 5vw 24px; }
  .hero-copy { max-width: 640px; }
  .hero-viewport { max-height: 62vh; }
  .collection { padding: 56px 5vw 72px; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; padding: 64px 6vw; gap: 28px; }
  .visit { padding: 64px 6vw; }
  .lightbox-layout { grid-template-columns: 1fr; }
  .art-detail { max-height: min(52dvh, 480px); }
}

@media (max-width: 700px) {
  .header { min-height: 72px; }
  .header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 6px 5vw 12px;
  }
  body.nav-open .header nav { display: flex; }
  .header nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 22px 5vw 32px; display: flex; flex-direction: column; align-items: stretch; }
  .hero-stage { order: -1; width: 100%; }
  .hero-viewport { max-height: 52vh; }
  .hero-meta { align-items: stretch; flex-direction: column; }
  .hero-controls { justify-content: space-between; }
  .hero h1 { font-size: 44px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .art-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .collection-end { flex-direction: column; align-items: flex-start; }
  .visit { display: block; }
  .visit-side { text-align: left; margin-top: 36px; }
  .visit-phones a { min-height: 44px; display: flex; align-items: center; }
  footer .wordmark { display: inline-block; }
  footer .wordmark span { text-align: center; }
  .lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .lightbox-fiche h2 { font-size: 26px; }
}

html.entrance .hero-copy > *,
html.entrance .hero-stage {
  animation: enter .9s cubic-bezier(.22, .7, .2, 1) both;
}

html.entrance .hero-copy > *:nth-child(2) { animation-delay: .08s; }
html.entrance .hero-copy > *:nth-child(3) { animation-delay: .16s; }
html.entrance .hero-copy > *:nth-child(4) { animation-delay: .24s; }
html.entrance .hero-stage { animation-delay: .18s; }

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms);
}

html.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.motion [data-reveal].art-card .art-preview {
  opacity: 0;
  transition: opacity .9s ease calc(var(--reveal-delay, 0ms) + 90ms);
}

html.motion [data-reveal].art-card.is-in .art-preview {
  opacity: 1;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.entrance .hero-copy > *,
  html.entrance .hero-stage,
  html.motion [data-reveal],
  html.motion [data-reveal] .art-preview,
  .hero-title,
  .hero-artist,
  .filter,
  .text-link,
  .button,
  .hero-prev,
  .hero-next,
  .lightbox,
  .lightbox[open],
  .lightbox::backdrop,
  .lightbox-close,
  .lightbox-nav button,
  .lightbox-photo img.art-detail,
  .lightbox-photo img.art-detail.is-entering,
  .art-open {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-slide { transition: none; }
}
