/* Gallereality web app — design language shared with design/consumer.html + iOS Theme.swift:
   Fraunces (editorial serif) + Inter, paper/ink/clay palette, ready-green accents. */

:root {
  color-scheme: light;
  --bg: #F7F3EE;
  --bg2: #E7E0D8;
  --card: #F7F3EE;
  --fg: #1D1B19;
  --muted: #6F6962;
  --faint: #948C82;
  --line: rgba(29, 27, 25, 0.12);
  --accent: #A78C5D;
  --accent-fg: #1D1B19;
  --clay: #B56F57;
  --brass: #A78C5D;
  --ready: #5C6A5F;
  --fail: #B56F57;
  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: 'Fraunces', Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Keyboard users get a visible ring everywhere. */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;          /* small screens: the search drops to its own row */
  gap: 10px 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  z-index: 5;
  min-height: 60px;
}
.brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.topbar a { font-size: 0.9rem; color: var(--muted); }
.topbar a.brand { color: var(--fg); }
.search { flex: 1 1 240px; min-width: 0; display: flex; gap: 8px; max-width: 560px; }
.search input, .search select {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  /* 16px minimum: smaller makes iOS WebKit (Safari AND Chrome) zoom on focus and stay zoomed */
  font-size: 16px;
  font-family: var(--sans);
  min-height: 44px;
}
.search input { flex: 1; min-width: 0; }
.search select { flex: 0 1 auto; min-width: 0; }
@media (max-width: 720px) {
  .topbar { padding: 10px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
.search input::placeholder { color: var(--faint); }

/* ── Page header band (browse) ───────────────────────────────────────────── */
.page-head { margin: 28px 0 24px; max-width: 620px; }
.page-head h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.12;
  margin: 6px 0 8px;
}
.page-head p { color: var(--muted); margin: 0; font-size: 1rem; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: opacity 0.5s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px color-mix(in srgb, var(--fg) 35%, transparent);
}
.card .thumb {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 2.2rem;
}
.card .meta { padding: 12px 14px 14px; }
.card .t {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.02rem;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .a { color: var(--muted); font-size: 0.82rem; }
.card .price { margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--clay); }

.state { color: var(--muted); padding: 40px 0; text-align: center; }
.sentinel { height: 1px; }

/* ── Artwork detail ──────────────────────────────────────────────────────── */
.detail { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 820px) { .detail { grid-template-columns: 1.4fr 1fr; align-items: start; } }
model-viewer {
  width: 100%;
  height: 60vh;
  background: var(--bg2);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.info h1 { margin: 0 0 4px; font-size: 1.7rem; line-height: 1.15; }
.info .by { color: var(--muted); margin-bottom: 16px; }
.info .desc { line-height: 1.6; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge.processing { background: color-mix(in srgb, var(--clay) 14%, transparent); color: var(--clay); border-color: transparent; }
.badge.ready { background: color-mix(in srgb, var(--ready) 14%, transparent); color: var(--ready); border-color: transparent; }
.badge.failed { background: color-mix(in srgb, var(--fail) 14%, transparent); color: var(--fail); border-color: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.ar-button { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); }
.stage { position: relative; }
.stage .poster-fallback {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.price-lg { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin: 18px 0 4px; }
.price-note { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }
.err { color: var(--fail); font-size: 0.9rem; margin-top: 8px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Purchase confirmation */
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ready) 12%, transparent);
  color: var(--ready);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WS2/WS3 — the exhibition register ("paper by day, dark viewing").
   Routes that show a single work (artwork.html) or a shared board (share.html)
   FORCE the dark tokens regardless of OS preference: one spotlit piece, the
   page reads like a printed wall label beside it. Print grammar throughout —
   hairlines and typography carry hierarchy; no boxes, no fills.
   ═══════════════════════════════════════════════════════════════════════════ */
body.exhibition {
  color-scheme: dark;
  --bg: #1D1B19;
  --bg2: #1B1812;
  --card: #1E1B14;
  --fg: #F7F3EE;
  --muted: #A8A296;
  --faint: #8C867A;
  --line: #2A2820;
  --accent: #F7F3EE;
  --accent-fg: #16140F;
  --clay: #C79A78;
  --ready: #7FAF8F;
  --fail: #E08A78;
}

/* Slim top nav shared by paper + exhibition pages. */
.topnav { display: flex; gap: 22px; margin-left: auto; font-size: 0.82rem; }
.topnav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 640px) { .topnav { gap: 14px; } .topnav .optional { display: none; } }

/* ── The stage ───────────────────────────────────────────────────────────── */
.xmain {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
}
@media (max-width: 900px) { .xmain { grid-template-columns: 1fr; } }

.stage-col { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .stage-col { border-right: 0; border-bottom: 1px solid var(--line); } }

.stage {
  position: relative;
  flex: 1;
  min-height: 56vh;
  background: var(--bg2);
  overflow: hidden;
}
.stage model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.stage .poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  border: 0;
  border-radius: 0;
}
.stage .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

.scale-note {
  position: absolute;
  left: 28px;
  bottom: 22px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
}
.stream-note {
  position: absolute;
  left: 0; right: 0; bottom: 46%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
}

/* AR entry, bottom-center of the image — the one button that matters.
   Quiet circles (share) stay bottom-right. (Research note #2.) */
.ctrl { position: absolute; right: 24px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.arbtn {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: calc(100% - 140px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  min-height: 44px;
}
.ar-glyph {
  width: 17px; height: 17px;
  border: 1.6px solid var(--clay);
  border-radius: 4px;
  position: relative;
  flex: 0 0 auto;
}
.ar-glyph::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border: 1.3px solid var(--clay);
  border-radius: 2px;
  transform: skewX(-12deg);
}
.cir {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

/* ── Documentation strip (Inspect mode v1) ───────────────────────────────── */
.docstrip { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: var(--bg2); }
.doc {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px 11px;
  border-right: 1px solid var(--line);
  background: transparent;
  border-top: 0; border-bottom: 0; border-left: 0;
  cursor: pointer;
  font-family: var(--sans);
  color: inherit;
  text-align: left;
}
.doc:last-child { border-right: 0; }
.doc .thumb {
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  background: #221E15;
}
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc .k { font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); }
.doc.on .k { color: var(--clay); }
.doc.on .thumb { outline: 1px solid var(--clay); outline-offset: 1px; }
.inspect-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.inspect-overlay img { max-width: 92%; max-height: 92%; object-fit: contain; }
.inspect-overlay .close {
  position: absolute;
  top: 16px; right: 16px;
}

/* ── The wall label column ───────────────────────────────────────────────── */
.label-col { padding: 44px 40px 34px; display: flex; flex-direction: column; }
@media (max-width: 900px) { .label-col { padding: 30px 22px 28px; } }

.museum .artist-line { font-family: var(--serif); font-size: 17px; color: var(--fg); margin-bottom: 10px; }
.museum h1 {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.museum h1 em { font-style: italic; }
.museum .medium { font-family: var(--serif); font-size: 16.5px; opacity: 0.88; }
.museum .dims { font-size: 12.5px; color: var(--muted); margin-top: 6px; letter-spacing: 0.02em; }

.pricerow { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.pricerow .price { font-family: var(--serif); font-weight: 400; font-size: 31px; color: var(--fg); }
.pricerow .nfs { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.shipline { font-size: 12px; color: var(--muted); margin-top: 6px; }

.ctas { display: flex; flex-direction: column; gap: 9px; margin: 18px 0 0; }
.cta-solid {
  background: var(--fg); color: var(--bg);
  border: 0; border-radius: 999px;
  text-align: center; padding: 13px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-solid[disabled] { opacity: 0.5; cursor: default; }
.cta-ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  text-align: center; padding: 12px;
  font-size: 13.5px; font-family: var(--sans);
  cursor: pointer; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-text { text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px 4px; text-decoration: none; display: block; }
.cta-text u { text-decoration-color: var(--clay); text-underline-offset: 3px; }

.trust { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.trust .lead {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--fg); line-height: 1.5;
}
.trust .lead::before { content: "◈"; color: var(--clay); font-size: 11px; font-style: normal; }
.trust ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; color: var(--muted); display: grid; gap: 6px; }
.trust li { display: flex; gap: 8px; align-items: baseline; }
.trust li::before { content: "·"; color: var(--clay); }
.trust a { color: var(--muted); text-decoration-color: var(--clay); text-underline-offset: 3px; }

.spec-layer { margin-top: 22px; border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.spec-row .k { letter-spacing: 0.11em; text-transform: uppercase; font-size: 10px; color: var(--faint); padding-top: 3px; }
.spec-row .v { font-family: var(--serif); font-size: 13.5px; color: var(--fg); text-align: right; }

.artist-card { margin-top: 22px; }
.artist-card .n { font-family: var(--serif); font-size: 16px; color: var(--fg); }
.artist-card .prov { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

.designer-hook { margin-top: auto; padding-top: 26px; font-size: 11.5px; color: var(--faint); }
.designer-hook button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 3px;
}
.label-col .desc { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin: 18px 0 0; }

/* Loading: the wall label paints first; never a spinner. */
.skel { height: 9px; border-radius: 4px; background: var(--line); animation: quietPulse 1.8s ease-in-out infinite alternate; margin-top: 12px; }
.skel.s1 { width: 84%; } .skel.s2 { width: 62%; } .skel.s3 { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── WS3: the shared board (private viewing room) ────────────────────────── */
.sharefrom { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.sharefrom b { color: var(--muted); font-weight: 500; }
.boardhead { max-width: 820px; margin: 0 auto; padding: 52px 24px 8px; text-align: center; }
.boardhead h1 { font-weight: 300; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 16px; }
.boardhead h1 em { font-style: italic; }
.boardhead .note { max-width: 560px; margin: 0 auto; font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--muted); line-height: 1.6; }
.boardhead .sig { display: block; font-family: var(--sans); font-style: normal; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay); margin-top: 12px; }

.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
}
.piece { background: var(--bg); padding: 26px 22px 24px; position: relative; display: flex; flex-direction: column; }
.piece .img {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  margin-bottom: 18px;
}
.piece .img img { max-width: 78%; max-height: 86%; object-fit: contain; }
.piece .img .initial { font-family: var(--serif); font-size: 2.4rem; color: var(--faint); }
.piece .al { font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.piece .t { font-family: var(--serif); font-size: 16.5px; font-weight: 300; margin: 4px 0 2px; }
.piece .t a { text-decoration: none; }
.piece .t em { font-style: italic; }
.piece .m { font-size: 10.5px; color: var(--muted); }
.piece .pr { font-family: var(--serif); font-size: 16px; margin-top: 10px; }
.piece .arb {
  margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  border-radius: 999px; padding: 10px; font-size: 11.5px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; text-decoration: none; min-height: 40px;
}
.piece .arb .ar-glyph { width: 13px; height: 13px; border-width: 1.4px; }
.piece .arb .ar-glyph::after { inset: 2.5px; border-width: 1px; }
.boardfoot {
  max-width: 860px; margin: 26px auto 0; padding: 0 24px 46px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 11px; color: var(--faint);
}
.boardfoot a { color: var(--muted); text-decoration-color: var(--clay); text-underline-offset: 3px; }

/* ── Browse cards, print grammar (the paper side of the seam) ────────────── */
.card.print {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.card.print:hover { transform: translateY(-2px); box-shadow: none; }
.card.print .thumb {
  border-radius: 4px;
  box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--fg) 35%, transparent);
  position: relative;
}
.card.print:hover .thumb { box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--fg) 45%, transparent); }
.card.print .meta { padding: 12px 2px 0; }
.card.print .by-line { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clay); font-weight: 600; }
.card.print .t { font-weight: 300; font-size: 1.06rem; margin: 3px 0 2px; white-space: normal; }
.card.print .t em { font-style: italic; }
.card.print .bp { display: flex; justify-content: space-between; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.card.print .bp .p { font-family: var(--serif); color: var(--fg); font-size: 0.88rem; }
.card-ar-glyph {
  position: absolute;
  right: 9px; bottom: 9px;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--card) 74%, transparent);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.card-ar-glyph i { width: 11px; height: 11px; border: 1.4px solid var(--clay); border-radius: 3px; display: block; }

/* ── WS4: paper positioning pages (artists economics, how-it-works) ─────── */
.pbody { max-width: 660px; margin: 0 auto; padding: 56px 22px 70px; }
.pbody .eyebrow { display: block; text-align: center; }
.pbody h1 { font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.04; letter-spacing: -0.02em; text-align: center; margin: 14px 0 20px; }
.pbody .lede { font-size: 17px; color: var(--muted); text-align: center; line-height: 1.65; }
.pbody .lede b { color: var(--fg); font-weight: 500; }
.bignum { text-align: center; margin: 44px 0 10px; }
.bignum .n { font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 14vw, 6rem); line-height: 1; }
.bignum .l { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.bignum .s { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.hr { height: 1px; background: var(--line); margin: 44px 0; border: 0; }
h2.sec, h3.sec { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 18px; }
.mathrow { display: grid; grid-template-columns: 150px 1fr 130px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 560px) { .mathrow { grid-template-columns: 1fr; gap: 6px; } .mathrow .keeps { text-align: left; } }
.mathrow .t { color: var(--fg); font-weight: 500; line-height: 1.35; }
.mathrow .t small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.mbar { height: 34px; background: var(--card); border: 1px solid var(--line); position: relative; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--clay); opacity: 0.92; }
.mbar span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 15px; color: #FBF7EE; z-index: 2; }
.mathrow .keeps { font-family: var(--serif); font-size: 19px; text-align: right; }
.mnote { font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--fg); margin: 20px 0 0; padding-left: 14px; border-left: 2px solid var(--clay); line-height: 1.55; }
table.compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare th { font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); font-weight: 500; text-align: left; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); }
.compare td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.compare td.p { font-weight: 500; color: var(--fg); }
.compare tr.us td { color: var(--fg); }
.compare tr.us td.p { font-family: var(--serif); font-size: 15px; }
.compare .pub { color: var(--ready); }
.compare .unpub { color: var(--faint); font-style: italic; }
.srcnote { font-size: 11.5px; color: var(--faint); margin-top: 12px; font-style: italic; }
.prose p { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.prose p b { color: var(--fg); font-weight: 500; }
.pcta { text-align: center; margin-top: 52px; }
.pcta .sub { font-size: 12px; color: var(--faint); margin-top: 12px; }

/* Artist discovery */
.artists-page {
  overflow: hidden;
}

.artists-intro {
  max-width: 980px;
  padding: clamp(72px, 11vw, 160px) clamp(24px, 8vw, 126px) clamp(64px, 9vw, 120px);
}

.artists-intro h1 {
  margin: 18px 0 28px;
  font-size: clamp(58px, 9vw, 124px);
  font-weight: 300;
  line-height: 0.92;
}

.artists-intro p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.artist-directory {
  padding: 0 clamp(24px, 8vw, 126px);
}

.artist-feature {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(46px, 8vw, 130px);
  padding: clamp(64px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.artist-feature:nth-child(even) .artist-feature-image {
  order: 2;
}

.artist-feature-image {
  min-height: 560px;
  aspect-ratio: 4 / 5;
  background: var(--bg2);
  overflow: hidden;
}

.artist-feature-image a,
.artist-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.artist-feature-image img {
  object-fit: cover;
}

.artist-feature-copy {
  position: relative;
}

.artist-index {
  display: block;
  margin-bottom: clamp(44px, 7vw, 90px);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 24px;
}

.artist-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}

.artist-feature h2 {
  margin: 0 0 20px;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
}

.artist-feature-copy > p {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.artist-work-count {
  display: block;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.artist-work-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.artist-work-strip a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.artist-work-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.artist-work-strip span {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-work-strip i {
  color: var(--fg);
  font-family: var(--serif);
}

.artist-state {
  margin: 0 clamp(24px, 8vw, 126px) 90px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.artist-state-empty {
  display: grid;
  gap: 10px;
}

.artist-state-empty strong {
  color: var(--fg);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
}

.artist-state-empty a {
  justify-self: start;
  margin-top: 8px;
}

.artist-invitation {
  padding: clamp(90px, 13vw, 180px) clamp(24px, 8vw, 126px);
  background: var(--fg);
  color: var(--bg);
}

.artist-invitation h2 {
  max-width: 920px;
  margin: 20px 0 28px;
  font-size: clamp(48px, 7vw, 98px);
  font-weight: 300;
  line-height: 0.98;
}

.artist-invitation p {
  max-width: 620px;
  color: rgba(247, 243, 238, 0.66);
  line-height: 1.7;
}

.artist-invitation-links,
.maker-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
}

.artist-invitation .text-link {
  color: var(--bg);
}

/* For artists and makers */
.maker-intro {
  padding: clamp(80px, 12vw, 170px) clamp(24px, 8vw, 126px);
}

.maker-intro h1 {
  max-width: 1120px;
  margin: 20px 0 32px;
  font-size: clamp(54px, 8.5vw, 116px);
  font-weight: 300;
  line-height: 0.94;
}

.maker-intro > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
}

.maker-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(24px, 8vw, 126px);
}

.maker-principles article {
  min-height: 360px;
  padding: clamp(42px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.maker-principles article:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--line);
}

.maker-principles article > span {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 22px;
}

.maker-principles h2 {
  max-width: 520px;
  margin: 48px 0 18px;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.05;
}

.maker-principles p,
.maker-audience p,
.maker-final p {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.75;
}

.maker-principles a {
  display: inline-block;
  margin-top: 12px;
}

.maker-audience {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 9vw, 150px);
  padding: clamp(90px, 13vw, 180px) clamp(24px, 8vw, 126px);
  background: var(--bg2);
  align-items: end;
}

.maker-audience h2 {
  margin: 20px 0 0;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 300;
  line-height: 0.98;
}

.maker-audience p {
  margin: 0;
  font-size: 17px;
}

.maker-audience strong {
  color: var(--fg);
  font-weight: 500;
}

.maker-final {
  padding: clamp(90px, 13vw, 180px) 24px;
  text-align: center;
}

.maker-final h2 {
  margin: 18px 0 24px;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 300;
}

.maker-final p {
  margin: 0 auto 32px;
}

@media (max-width: 820px) {
  .artist-feature,
  .maker-audience {
    grid-template-columns: 1fr;
  }

  .artist-feature:nth-child(even) .artist-feature-image {
    order: 0;
  }

  .artist-feature-image {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .artist-index {
    margin-bottom: 36px;
  }

  .maker-principles {
    grid-template-columns: 1fr;
  }

  .maker-principles article,
  .maker-principles article:nth-child(odd) {
    min-height: 0;
    padding: 48px 0;
    border-right: 0;
  }
}

/* How-it-works steps */
.steps { counter-reset: step; margin-top: 8px; }
.step { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--clay);
  flex: 0 0 34px;
  line-height: 1.1;
}
.step h3 { font-size: 19px; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* 404 */
.nf { max-width: 560px; margin: 0 auto; padding: 12vh 22px 70px; text-align: center; }
.nf h1 { font-weight: 300; font-size: clamp(2.4rem, 8vw, 3.6rem); letter-spacing: -0.02em; margin: 10px 0 14px; }
.nf p { color: var(--muted); }

/* Owner dashboard: share-link rows */
.sharebox { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.85rem; display: flex; flex-direction: column; gap: 8px; }
.sharebox .url { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.sharebox textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-family: var(--sans); font-size: 16px; resize: vertical; min-height: 54px; }

/* ── Landing (story page) ─────────────────────────────────────────────── */
.landing { max-width: 760px; margin: 0 auto; padding: 0 22px 40px; }
.l-hero { text-align: center; padding: 9vh 0 10px; }
.l-hero h1 {
  font-weight: 300; font-size: clamp(2.5rem, 7.5vw, 4rem); line-height: 1.04;
  letter-spacing: -0.02em; margin: 16px 0 22px;
}
.l-hero h1 em { font-style: italic; }
.l-lede {
  font-size: 17.5px; color: var(--muted); line-height: 1.7; max-width: 560px;
  margin: 0 auto 30px;
}
.l-cta { display: flex; gap: 22px; align-items: center; justify-content: center; }
.l-quiet { color: var(--muted); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.l-quiet:hover { color: var(--fg); }
.l-policy { margin-top: 26px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

.l-story { margin: 10vh 0 0; }
.l-chapter {
  display: flex; gap: 26px; padding: 34px 0; border-top: 1px solid var(--line);
  align-items: flex-start;
}
.l-chapter .l-num {
  font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--clay);
  flex: 0 0 52px; line-height: 1;
}
.l-chapter h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 0 0 10px; }
.l-chapter p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; max-width: 540px; }
.l-chapter p b { color: var(--fg); font-weight: 500; }

.l-featured { margin: 7vh 0 0; padding-top: 34px; border-top: 1px solid var(--line); }
.l-featured-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.l-featured .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.l-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 7vh 0 0; }
@media (max-width: 640px) { .l-doors { grid-template-columns: 1fr; } }
.l-door {
  display: block; padding: 26px 26px 22px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card); text-decoration: none; color: inherit;
  transition: opacity 0.5s ease;
}
.l-door:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--fg) 40%, transparent); }
.l-door h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 10px 0 10px; }
.l-door p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0 0 16px; }
.l-door p b { color: var(--fg); font-weight: 500; }
.l-door-go { font-size: 13px; color: var(--clay); font-weight: 500; }

.l-final { text-align: center; margin: 9vh 0 0; padding: 44px 0 8px; border-top: 1px solid var(--line); }
.l-final h2 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 8px; }
.l-final p { color: var(--muted); margin: 0 0 24px; }

.l-foot {
  display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between;
  margin-top: 9vh; padding: 22px 0 10px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
.l-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.l-foot a { color: var(--faint); }
.l-foot a:hover { color: var(--fg); }

/* ── Studio (the pro gate) ───────────────────────────────────────────── */
.studio { max-width: 720px; }
.aud { margin: 34px 0; }
.aud .eyebrow { display: block; text-align: left; }
.aud h2.sec { margin-top: 6px; }
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 6px; }
@media (max-width: 640px) { .gate { grid-template-columns: 1fr; } }
.gate h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 6px; }
.gsub { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.grow-form { display: flex; flex-direction: column; gap: 10px; }
.grow-form input, .grow-form select, .grow-form textarea {
  padding: 10px 12px; border-radius: 9px; font-size: 16px; font-family: var(--sans);
  border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent);
  background: var(--card); color: var(--fg); width: 100%; box-sizing: border-box;
}
.grow-form textarea { resize: vertical; }
.grow-form .btn { align-self: flex-start; }
.gerr { color: var(--fail); font-size: 12.5px; min-height: 1em; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }
.gate-done { margin-top: 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gate-done h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; }
.gate-done p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

.path-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.small-btn { padding: 7px 14px; font-size: 0.82rem; }
.path { list-style: none; padding: 0; margin: 10px 0 0; }
.path-step { padding: 24px 0; border-bottom: 1px solid var(--line); }
.ps-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.ps-num { font-family: var(--serif); font-weight: 300; font-size: 24px; color: var(--clay); }
.ps-head h3 { font-size: 18px; margin: 0; }
.path-step > p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.docs { display: flex; flex-direction: column; gap: 8px; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font-size: 14px;
}
.doc-ok { font-size: 12px; color: var(--ready); }
.chip-line { font-size: 13.5px; color: var(--fg); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }

/* ── Legal drafts ────────────────────────────────────────────────────── */
.legal .draftbar {
  margin: 18px 0 26px; padding: 9px 14px; border: 1px dashed var(--clay);
  border-radius: 9px; color: var(--clay); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center;
}
.legal .version { text-align: center; font-size: 12px; color: var(--faint); margin-top: 14px; }
.legal-prose h2.sec { font-size: 21px; margin-top: 34px; }
.legal-prose p { font-size: 14.5px; }
.legal-prose .placeholder { color: var(--faint); font-style: italic; }

/* Safety: the hidden attribute must always win, even on flex/grid elements. */
[hidden] { display: none !important; }
@media (max-width: 480px) { .l-hero h1 br { display: none; } }


/* ==========================================================================
   Canon recovery — Gallery is paper, photography, and typographic restraint.
   Existing hooks remain intact; these rules replace the pre-Canon presentation.
   ========================================================================== */

body {
  background: var(--bg);
  color: var(--fg);
}

h1, h2, h3,
.brand,
.museum .artist-line,
.price-lg,
.pricerow .price {
  letter-spacing: 0;
}

.topbar {
  padding: 18px clamp(20px, 4vw, 64px);
  min-height: 72px;
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.brand-mark {
  width: 25px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: square;
  stroke-linejoin: miter;
  flex: 0 0 auto;
}

.nav-command {
  margin-left: 8px;
  padding: 9px 15px;
  border: 1px solid currentColor;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-nav-toggle,
.mobile-nav-panel {
  display: none;
}

.topbar-hero {
  position: absolute;
  inset: 0 0 auto;
  color: #F7F3EE;
  background: transparent;
  border-bottom-color: rgba(247, 243, 238, 0.24);
}

.topbar-hero .topnav a,
.topbar.topbar-hero a.brand,
.topbar-hero .nav-command {
  color: #F7F3EE;
}

.topbar.topbar-hero a.brand {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.62);
}

.topbar.topbar-hero .brand-mark {
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.68));
}

.canon-hero {
  position: relative;
  min-height: min(88dvh, 860px);
  height: 780px;
  overflow: hidden;
  background: #1D1B19;
  color: #F7F3EE;
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 900ms;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.canon-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.005);
}

.canon-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.38);
}

.hero-sculpture-shade {
  background: rgba(8, 7, 6, 0.14);
}

.canon-hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 8vw, 126px);
  bottom: clamp(70px, 12vh, 130px);
  max-width: 620px;
}

.hero-kicker,
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 20px;
  color: rgba(247, 243, 238, 0.78);
}

.canon-hero h1,
.canon-hero h2 {
  max-width: 700px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 8.2vw, 116px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.canon-hero-copy p {
  max-width: 470px;
  margin: 26px 0 28px;
  color: rgba(247, 243, 238, 0.86);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 8px;
  color: #F7F3EE;
  border-bottom: 1px solid rgba(247, 243, 238, 0.7);
  text-decoration: none;
  font-size: 14px;
}

.hero-credit {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 24px;
  z-index: 1;
  color: rgba(247, 243, 238, 0.68);
  font-size: 11px;
}

.hero-pagination {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 32px;
  height: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(247, 243, 238, 0.42);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: border-color 600ms ease;
}

.hero-dot.is-active {
  border-bottom-color: #F7F3EE;
}

.hero-dot:focus-visible {
  outline: 1px solid #F7F3EE;
  outline-offset: 5px;
}

.editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(72px, 10vw, 150px) clamp(24px, 8vw, 126px);
  align-items: end;
}

.editorial-statement {
  max-width: 840px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.8vw, 82px);
  font-weight: 300;
  line-height: 1.04;
}

.editorial-proof {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.editorial-proof span {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.home-works {
  padding: 0 clamp(24px, 8vw, 126px) clamp(88px, 12vw, 170px);
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 300;
}

.text-link,
.chapter-link,
.audience-band a {
  color: inherit;
  text-underline-offset: 5px;
  font-size: 13px;
}

.editorial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.card {
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: opacity 0.8s ease;
}

.card:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.78;
}

.card .thumb {
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.card .meta {
  padding: 14px 0 0;
}

.card .t {
  font-size: 18px;
  white-space: normal;
}

.card .a,
.card .price {
  font-size: 12px;
}

.card .price {
  color: var(--muted);
  font-weight: 500;
}

.home-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  min-height: 720px;
}

.home-chapter-dark {
  background: #1D1B19;
  color: #F7F3EE;
}

.chapter-image {
  min-height: 620px;
  overflow: hidden;
}

.chapter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 110px);
}

.chapter-copy .eyebrow {
  color: #A78C5D;
}

.chapter-copy h2 {
  margin: 24px 0;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  font-weight: 300;
}

.chapter-copy p {
  color: rgba(247, 243, 238, 0.68);
  line-height: 1.75;
}

.chapter-link {
  align-self: flex-start;
  margin-top: 24px;
}

.audience-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 126px);
}

.audience-band article {
  min-height: 290px;
  padding: 0 clamp(24px, 4vw, 62px);
  border-left: 1px solid var(--line);
}

.audience-band article:first-child {
  padding-left: 0;
  border-left: 0;
}

.audience-number {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 24px;
}

.audience-band h2 {
  margin: 55px 0 16px;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 300;
}

.audience-band p {
  min-height: 72px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.final-invitation {
  padding: clamp(90px, 14vw, 190px) 24px;
  background: var(--bg2);
  text-align: center;
}

.final-invitation h2 {
  margin: 18px 0 34px;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.96;
}

.btn {
  background: var(--brass);
  color: var(--fg);
  transition: opacity 0.5s ease;
}

.btn:hover {
  opacity: 0.78;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 60px;
  padding: 60px clamp(24px, 8vw, 126px);
  background: #1D1B19;
  color: #F7F3EE;
}

.site-footer p {
  margin: 0;
  justify-self: end;
  color: rgba(247, 243, 238, 0.65);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer nav a,
.site-footer small {
  color: rgba(247, 243, 238, 0.58);
  font-size: 12px;
}

/* Browse */
.wrap {
  max-width: 1440px;
  padding: 0 clamp(20px, 5vw, 72px) 80px;
}

.page-head {
  max-width: 820px;
  margin: clamp(52px, 8vw, 110px) 0 clamp(40px, 6vw, 76px);
}

.page-head h1 {
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 300;
  line-height: 0.98;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 34px clamp(22px, 3vw, 42px);
}

/* Artwork detail: paper by default, art first, acquisition second. */
body.exhibition {
  color-scheme: light;
  --bg: #F7F3EE;
  --bg2: #E7E0D8;
  --card: #F7F3EE;
  --fg: #1D1B19;
  --muted: #6F6962;
  --faint: #948C82;
  --line: rgba(29, 27, 25, 0.12);
  --accent: #A78C5D;
  --accent-fg: #1D1B19;
  --clay: #B56F57;
  --ready: #5C6A5F;
  --fail: #B56F57;
}

.xmain {
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.6fr);
  min-height: calc(100dvh - 72px);
}

.stage-col {
  border-right-color: var(--line);
}

.stage {
  min-height: calc(100dvh - 72px);
  background: #E7E0D8;
}

.stage .poster-fallback {
  padding: clamp(28px, 7vw, 100px);
}

.label-col {
  padding: clamp(46px, 6vw, 90px) clamp(30px, 5vw, 72px);
}

.museum h1 {
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 0.98;
}

.pricerow {
  margin-top: 42px;
}

.cta-solid,
.arbtn {
  background: var(--brass);
  color: var(--fg);
  border-color: transparent;
}

.cta-solid,
.cta-ghost {
  border-radius: 2px;
}

.arbtn {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 12px 20px;
    min-height: 64px;
  }

  .topbar-hero {
    position: absolute;
  }

  .brand-lockup span {
    font-size: 10px;
  }

  .topbar > .topnav,
  .topbar > .nav-command {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
  }

  .topbar-hero .mobile-nav-toggle {
    color: #F7F3EE;
  }

  .mobile-nav-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
  }

  .mobile-nav-icon::before,
  .mobile-nav-icon::after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: top 320ms ease, transform 320ms ease;
  }

  .mobile-nav-icon::before { top: 3px; }
  .mobile-nav-icon::after { top: 11px; }

  .topbar.nav-open .mobile-nav-icon::before {
    top: 7px;
    transform: rotate(45deg);
  }

  .topbar.nav-open .mobile-nav-icon::after {
    top: 7px;
    transform: rotate(-45deg);
  }

  .mobile-nav-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    padding: 12px 20px 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(247, 243, 238, 0.98);
    box-shadow: 0 24px 50px rgba(29, 27, 25, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 320ms ease, transform 320ms ease, visibility 320ms ease;
  }

  .topbar-hero .mobile-nav-panel {
    border-color: rgba(247, 243, 238, 0.2);
    background: rgba(29, 27, 25, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  }

  .topbar.nav-open .mobile-nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav-panel a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    font-family: var(--serif);
    font-size: 20px;
    text-decoration: none;
  }

  .mobile-nav-panel a::after {
    color: var(--brass);
    content: "\2192";
    font-family: var(--sans);
    font-size: 15px;
  }

  .mobile-nav-panel a:last-child {
    border-bottom: 0;
  }

  .mobile-nav-panel a[aria-current="page"] {
    color: var(--brass);
  }

  .topbar-hero .mobile-nav-panel a {
    border-color: rgba(247, 243, 238, 0.16);
    color: #F7F3EE;
  }

  .topbar-hero .mobile-nav-panel a[aria-current="page"] {
    color: #C8AE78;
  }

  .canon-hero {
    height: 82dvh;
    min-height: 620px;
  }

  .canon-hero-copy {
    left: 24px;
    right: 24px;
    bottom: 76px;
  }

  .canon-hero h1,
  .canon-hero h2 {
    font-size: clamp(56px, 17vw, 86px);
  }

  .hero-interior-media {
    object-position: 63% center;
  }

  .hero-sculpture-media {
    object-position: 66% center;
  }

  .editorial-intro,
  .home-chapter,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .editorial-intro {
    gap: 50px;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-image {
    min-height: 60vh;
  }

  .audience-band {
    grid-template-columns: 1fr;
  }

  .audience-band article,
  .audience-band article:first-child {
    min-height: 0;
    padding: 38px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .audience-band h2 {
    margin-top: 28px;
  }

  .audience-band p {
    min-height: 0;
  }

  .site-footer p {
    justify-self: start;
  }

  .xmain {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 64dvh;
  }
}

@media (max-width: 640px) {
  .hero-credit {
    left: 24px;
    right: auto;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .home-chapter {
    min-height: 0;
  }

  .chapter-copy {
    padding: 58px 24px 72px;
  }
}


/* The Canon uses scale and typeface contrast rather than synthetic tracking. */
* { letter-spacing: 0 !important; }


/* Trade */
.trade-hero {
  position: relative;
  height: min(78dvh, 760px);
  min-height: 620px;
  overflow: hidden;
  background: #1D1B19;
  color: #F7F3EE;
}

.trade-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trade-hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.48);
}

.trade-hero-copy {
  position: absolute;
  left: clamp(24px, 8vw, 126px);
  bottom: clamp(60px, 10vh, 110px);
  max-width: 670px;
}

.trade-hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 300;
  line-height: 0.9;
}

.trade-hero p {
  max-width: 500px;
  margin: 28px 0;
  color: rgba(247, 243, 238, 0.78);
  font-size: 17px;
  line-height: 1.65;
}

.trade-intro {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(80px, 12vw, 170px) clamp(24px, 8vw, 126px);
}

.trade-intro p {
  max-width: 920px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
}

.trade-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(24px, 8vw, 126px) clamp(90px, 12vw, 170px);
}

.trade-benefits article {
  padding: 28px clamp(20px, 3vw, 42px);
  border-left: 1px solid var(--line);
}

.trade-benefits article:first-child {
  padding-left: 0;
  border-left: 0;
}

.trade-benefits span {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 22px;
}

.trade-benefits h2 {
  min-height: 68px;
  margin: 62px 0 18px;
  font-size: 28px;
  font-weight: 300;
}

.trade-benefits p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.trade-quote {
  padding: clamp(90px, 14vw, 190px) clamp(24px, 12vw, 190px);
  background: #1D1B19;
  color: #F7F3EE;
}

.trade-quote p {
  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 84px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.05;
}

@media (max-width: 900px) {
  .trade-intro {
    grid-template-columns: 1fr;
  }

  .trade-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .trade-benefits article:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .trade-hero {
    height: 80dvh;
  }

  .trade-hero-copy {
    right: 24px;
  }

  .trade-benefits {
    grid-template-columns: 1fr;
  }

  .trade-benefits article,
  .trade-benefits article:first-child {
    padding: 36px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trade-benefits h2 {
    min-height: 0;
    margin-top: 28px;
  }
}
