/* Thomas Broadside Co. — the house sheet, second impression.
   The design system was finished in 1776 [D10]: Caslon, cream, black, one red.
   This revision hangs the store like a museum: gallery walls, framed sheets,
   wall placards, curatorial air. No dark mode — the sheets don't have modes. */

@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/LibreCaslonText-400.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/LibreCaslonText-400i.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/LibreCaslonText-700.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/LibreCaslonDisplay-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); }

:root {
  --wall: #f1ece0;          /* the gallery wall */
  --wall-deep: #e9e2d0;     /* the quieter room */
  --paper: #faf6ea;         /* the sheet itself */
  --mat: #f6f1e3;           /* the window mat inside the frame */
  --walnut: #241c12;        /* the frame */
  --ink: #201a10;
  --ink-soft: #574e3d;
  --red: #9e3123;
  --rule: rgba(32, 26, 16, .26);
  --rule-faint: rgba(32, 26, 16, .12);
  --serif: 'Libre Caslon Text', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --measure: 36rem;
  --lift: cubic-bezier(.2, .6, .25, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--red); text-decoration-color: var(--red); }
img { max-width: 100%; }
::selection { background: var(--red); color: var(--wall); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

h1, h2, h3 { font-weight: 400; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--display); font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.012em; }
h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; }
em { font-style: italic; }

/* ── the language of parts ─────────────────────────────────────────── */

.kicker {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}
.kicker--ink { color: var(--ink-soft); }
.mono, .figures { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95em 1.8em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--lift), color .18s var(--lift), border-color .18s var(--lift);
}
.btn:hover { background: var(--ink); color: var(--wall); }
.btn--solid { background: var(--ink); color: var(--wall); }
.btn--solid:hover { background: var(--red); border-color: var(--red); color: var(--wall); }
.btn--quiet { border-color: var(--rule); color: var(--ink-soft); }
.btn--small { padding: .6em 1.1em; font-size: .62rem; }
.btn[disabled] { opacity: .45; cursor: default; }

/* ── chrome ────────────────────────────────────────────────────────── */

.topbar {
  background: var(--walnut);
  color: var(--wall);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  padding: .6em 1em;
}
.topbar .sep { color: var(--red); margin: 0 .7em; }

.masthead {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 1.15rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--wall) 97%, var(--walnut));
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead .brand {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.masthead .brand .star { color: var(--red); margin-right: .55rem; }
.masthead nav {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.masthead nav::-webkit-scrollbar { display: none; }
.masthead nav a {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .35em 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.masthead nav a:hover { border-bottom-color: var(--red); }
.masthead .desk { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.cartlink {
  position: relative;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: .7em 1.2em;
}
.cartlink:hover { border-color: var(--ink); }
.cartlink b {
  font-weight: 500;
  color: var(--wall);
  background: var(--red);
  border-radius: 999px;
  padding: .1em .55em;
  margin-left: .5em;
}
.cartlink b:empty, .cartlink b[data-zero] { display: none; }
@media (max-width: 760px) {
  /* Three wrapped rows must not shadow the page: solid wall, no sticking. */
  .masthead { flex-wrap: wrap; gap: .8rem 1.4rem; padding: 1rem 1.2rem; position: static; background: var(--wall); backdrop-filter: none; }
  .masthead nav { order: 3; flex-basis: 100%; }
  .masthead .desk { margin-left: auto; }
}

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 2.4rem; }
@media (max-width: 760px) { .wrap { padding: 0 1.25rem; } }

section.band { padding: 5.5rem 0; }
section.band--deep { background: var(--wall-deep); }
section.band--ink { background: var(--walnut); color: var(--wall); }
section.band--ink .kicker { color: #c8a27a; }
section.band--ink a { text-decoration-color: rgba(241,236,224,.4); }
@media (max-width: 760px) { section.band { padding: 3.5rem 0; } }

.lede { font-size: 1.14rem; line-height: 1.75; max-width: var(--measure); }
.lede strong { font-weight: 700; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.25em; }

/* ── the rooms: museum wayfinding ──────────────────────────────────── */

.room-head { text-align: center; max-width: 46rem; margin: 0 auto 3.5rem; }
.room-head .room-no {
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0 0 1.1rem;
}
.room-head .room-no::before, .room-head .room-no::after {
  content: "";
  height: 1px;
  width: 3.5rem;
  background: var(--rule);
}
.room-head .curator {
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: .9rem auto 0;
}

/* ── the exhibit: a framed sheet on the wall ───────────────────────── */

.exhibit {
  background: var(--walnut);
  padding: clamp(.8rem, 1.6vw, 1.25rem);
  box-shadow:
    0 1px 2px rgba(32,26,16,.25),
    0 22px 44px -20px rgba(32,26,16,.5);
  transition: transform .28s var(--lift), box-shadow .28s var(--lift);
}
.exhibit__mat { background: var(--mat); padding: clamp(.9rem, 1.8vw, 1.5rem); }
.sheet { background: var(--paper); border: 1px solid var(--rule-faint); display: flex; }
.sheet__inner {
  border: 1px solid var(--rule-faint);
  margin: .45rem;
  padding: 1.7rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
/* Each sheet hangs in its own format, decided by the work — a salon wall,
   not a grid of clones: 18×24 portraits, 24×36 session laws, 24×18
   landscape quotes and plates. Overflowing text crops behind a fade, the
   way a mat window crops a print. */
.sheet--p34 { aspect-ratio: 3 / 4; }
.sheet--p23 { aspect-ratio: 2 / 3; }
.sheet--l43 { aspect-ratio: 4 / 3; }
.sheet--l32 { aspect-ratio: 3 / 2; }
.sheet__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sheet__body:not(.sheet__body--art) {
  -webkit-mask-image: linear-gradient(#000 84%, transparent 99%);
  mask-image: linear-gradient(#000 84%, transparent 99%);
}
.sheet__body--art { align-items: center; justify-content: center; }
.sheet__img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }

/* A flat sheet IS the artwork file — the frame's window shows it whole. */
.sheet--flat { display: block; }
.sheet--flat .sheet__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* At card scale the sheet is small: the chrome shrinks so the 3:4 paper
   always wins. Nothing may spill past the sheet's edge. */
.sheet { overflow: hidden; }
.card .sheet__inner { padding: 1.05rem 1rem .8rem; margin: .35rem; }
.card .sheet__kicker { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-bottom: .55rem; }
.card .sheet__title {
  font-size: 1.02rem;
  line-height: 1.2;
  margin-bottom: .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .sheet__rule { margin-bottom: .55rem; }
.card .sheet__text { font-size: .61rem; line-height: 1.55; }
/* Narrow card sheets read in one column; two-column stays for the big
   sheets on hero and exhibit pages, where the measure can afford it. */
.card .sheet__text--columns { column-count: 1; font-size: .66rem; text-align: left; hyphens: none; }
.card .sheet__text--quote { font-size: 1.02rem; line-height: 1.35; margin: .5rem 0; }
.card .sheet__attr { font-size: .64rem; }
.card .sheet__amend { font-size: .58rem; line-height: 1.5; }
.card .sheet__timeline { font-size: .66rem; margin: .2rem 0; }
.card .sheet__timeline .yr { font-size: .58rem; }
.card .sheet__timeline li { padding: .18rem 0; }
.card .sheet__footer { padding-top: .55rem; font-size: .5rem; }
/* landscape sheets breathe sideways: center the matter, widen the measure */
.card .sheet--l43 .sheet__body:not(.sheet__body--art),
.card .sheet--l32 .sheet__body:not(.sheet__body--art) { justify-content: center; }
.card .sheet--l43 .sheet__text--quote { font-size: 1.22rem; }
.card .sheet--l43 .sheet__inner, .card .sheet--l32 .sheet__inner { padding: 1.05rem 1.6rem .8rem; }
.sheet__kicker {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.sheet__title {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.16;
  text-align: center;
  margin: 0 0 1rem;
}
.sheet__rule { width: 3.2rem; margin: 0 auto 1rem; border: 0; border-top: 1px solid var(--rule); }
.sheet__text {
  font-size: .67rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
  color: var(--ink-soft);
  margin: 0;
}
.sheet__text--columns { column-count: 2; column-gap: 1.1rem; }
.sheet__text--center { text-align: center; font-size: .78rem; column-count: 1; }
.sheet__text--quote {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  margin: 1.1rem 0;
}
.sheet__attr { font-style: italic; text-align: center; font-size: .72rem; color: var(--ink-soft); margin: 0; }
.sheet__amend { font-size: .64rem; line-height: 1.6; color: var(--ink-soft); text-align: justify; hyphens: auto; margin: 0 0 .6em; }
.sheet__amend b { font-family: var(--mono); font-weight: 500; font-size: .56rem; letter-spacing: .12em; }
.sheet__timeline { list-style: none; margin: .4rem 0; padding: 0; font-size: .76rem; }
.sheet__timeline li { display: flex; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--rule-faint); }
.sheet__timeline li:last-child { border-bottom: 0; }
.sheet__timeline .yr { font-family: var(--mono); font-size: .68rem; color: var(--red); min-width: 3.2em; }
.sheet__placeholder { text-align: center; margin: .4rem 0 1rem; }
.sheet__oval {
  width: 6.5rem; height: 8.5rem;
  margin: .8rem auto 1rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--rule-faint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.sheet__pending { font-style: italic; font-size: .72rem; color: var(--ink-soft); margin: .6rem 0 0; }
.sheet__title:empty { display: none; }
.sheet__footer {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .54rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── the placard: the wall label beneath each exhibit ──────────────── */

.card { display: flex; flex-direction: column; gap: 1.1rem; text-decoration: none; }
.card:hover .exhibit, .card:focus-visible .exhibit {
  transform: translateY(-5px);
  box-shadow:
    0 2px 3px rgba(32,26,16,.22),
    0 34px 60px -24px rgba(32,26,16,.55);
}
.card .exhibit { flex: 1; }
.placard { border-top: 2px solid var(--ink); padding-top: .8rem; }
.placard__title { font-size: 1.06rem; line-height: 1.3; margin: 0 0 .25rem; font-weight: 700; }
.placard__meta {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .45rem;
}
.placard__line { font-size: .88rem; color: var(--ink-soft); font-style: italic; margin: 0 0 .55rem; }
.placard__prices { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink); margin: 0; }
.placard__prices b { font-weight: 500; }
.placard__prices .dot { color: var(--red); margin: 0 .4em; }

.grid { display: grid; gap: 2.6rem 2.2rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1020px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } .grid { gap: 2.8rem; } }

/* A wall of exhibits: wrapped rows hang centered, tops aligned, heights
   varying with each work's format — the way a curator hangs a salon wall. */
.wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 2.6rem 2.2rem; }
.wall > .card { flex: 1 1 0; }
.wall--4 > .card { flex-basis: calc(25% - 1.65rem); min-width: 15rem; max-width: 21rem; }
.wall--3 > .card { flex-basis: calc(33.34% - 1.5rem); min-width: 16rem; max-width: 24rem; }
.wall--2 > .card { flex-basis: calc(50% - 1.1rem); min-width: 17rem; max-width: 30rem; }
/* landscape works take a double bay */
.wall > .card--wide { flex-basis: calc(50% - 1.1rem); min-width: 20rem; max-width: 34rem; }
@media (max-width: 620px) { .wall > .card { flex-basis: 100% !important; max-width: 26rem; } .wall > .card--wide { max-width: 30rem; } .wall { gap: 2.8rem; } }

/* ── hero: the entry wall ──────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; padding-block: 5.5rem 4.5rem; }
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; gap: 3rem; padding-block: 3.5rem 3rem; } }
.hero .lede { margin: 1.4rem 0 2rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.provenance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.provenance div { padding: 1.2rem 1.5rem; border-left: 1px solid var(--rule-faint); }
.provenance div:first-child { border-left: 0; }
.provenance .k { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.provenance .v { font-size: .94rem; }
@media (max-width: 900px) { .provenance { grid-template-columns: repeat(2, 1fr); } .provenance div:nth-child(3) { border-left: 0; } }
@media (max-width: 520px) { .provenance { grid-template-columns: 1fr; } .provenance div { border-left: 0; border-top: 1px solid var(--rule-faint); } .provenance div:first-child { border-top: 0; } }

/* ── exhibit page: label, acquire panel, sticky mechanics ──────────── */

.exhibit-page { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4.5rem; align-items: start; }
@media (max-width: 940px) { .exhibit-page { grid-template-columns: 1fr; gap: 2.8rem; } }
.exhibit-page__art { position: sticky; top: 6.5rem; }
@media (max-width: 940px) { .exhibit-page__art { position: static; } }

.crumbs { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs .sep { color: var(--red); margin: 0 .5em; }

.label-table { width: 100%; border-collapse: collapse; }
.label-table th, .label-table td { text-align: left; padding: .75rem .2rem; border-bottom: 1px solid var(--rule-faint); vertical-align: top; }
.label-table th { font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); width: 8.5rem; }
.label-table td { font-size: .95rem; }

.buys { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.buy { background: var(--paper); padding: 1.35rem 1.5rem; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1.2rem; }
.buy__tier { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; min-width: 4.6rem; }
.buy__price { font-family: var(--display); font-size: 1.55rem; }
.buy__note { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 560px) {
  .buy { grid-template-columns: auto 1fr; row-gap: .5rem; }
  .buy__note { grid-column: 1 / -1; }
  .buy .btn { grid-column: 1 / -1; justify-self: start; }
}

.acquirebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--walnut);
  color: var(--wall);
  padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom));
}
.acquirebar .from { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; }
.acquirebar .btn { border-color: var(--wall); color: var(--walnut); background: var(--wall); }
@media (max-width: 940px) { .acquirebar { display: flex; } body.has-acquirebar { padding-bottom: 4.5rem; } }

/* ── the counter (forms) ───────────────────────────────────────────── */

.counter-form { display: grid; gap: 1.1rem; max-width: 30rem; }
.counter-form label { display: grid; gap: .4rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.counter-form input, .counter-form textarea, .counter-form select {
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); padding: .75em .85em;
}
.counter-form input:focus, .counter-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-note { font-size: .86rem; color: var(--ink-soft); font-style: italic; }

/* ── the cart ──────────────────────────────────────────────────────── */

.cart-lines { border-top: 2px solid var(--ink); }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1.4rem;
  align-items: center;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule-faint);
}
.cart-line__title { font-weight: 700; margin: 0 0 .2rem; }
.cart-line__meta { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cart-line__price { font-family: var(--display); font-size: 1.3rem; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.qty button { font-family: var(--mono); font-size: .95rem; background: none; border: 0; padding: .35em .8em; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--red); }
.qty span { font-family: var(--mono); font-size: .85rem; min-width: 2em; text-align: center; }
.cart-line .remove { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-line .remove:hover { color: var(--red); }
@media (max-width: 620px) {
  .cart-line { grid-template-columns: 1fr auto; row-gap: .7rem; }
  .cart-line__price { grid-column: 2; grid-row: 1; }
}
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1.4rem 0; font-size: 1.1rem; }
.cart-total .sum { font-family: var(--display); font-size: 1.9rem; }

.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--walnut);
  color: var(--wall);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .9em 1.6em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--lift), transform .25s var(--lift);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--wall); }

/* ── journal ───────────────────────────────────────────────────────── */

.journal-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 2.5rem; }
.journal-item { flex: 1 1 18rem; max-width: 24rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.journal-item .date { font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin: 0 0 .6rem; }
.journal-item h3 { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.journal-item h3 a { text-decoration: none; }
.journal-item h3 a:hover { color: var(--red); }
.journal-item p { font-size: .93rem; color: var(--ink-soft); }

/* ── footer ────────────────────────────────────────────────────────── */

footer.colophon { background: var(--wall); border-top: 1px solid var(--rule); padding: 4rem 0 3rem; }
.colophon .grid--4 { gap: 2.5rem; }
.colophon h4 { font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 .55rem; font-size: .92rem; }
.colophon a { text-decoration: none; }
.colophon a:hover { text-decoration: underline; }
.colophon .motto { font-family: var(--serif); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; margin-top: 3rem; }
.colophon .fine { font-size: .8rem; color: var(--ink-soft); font-style: italic; max-width: 42rem; }

/* ── pressroom & ledger: the working rooms stay working [D5] ───────── */

.workroom { font-size: 19px; }
.workroom .order-card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1.4rem 1.6rem; margin-bottom: 1.2rem;
  display: grid; gap: .6rem;
}
.workroom .order-card.is-edition { border-left: 5px solid var(--red); }
.workroom .oid { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; letter-spacing: .08em; }
.workroom .ostatus { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.workroom .oitems { font-size: 1.05rem; }
.workroom .oaddr { font-size: .95rem; color: var(--ink-soft); white-space: pre-line; }
.workroom .obtns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; }
.workroom .obtns .btn { font-size: .8rem; padding: .9em 1.6em; }
.workroom input.tracking { font-family: var(--mono); font-size: .95rem; padding: .6em .7em; border: 1px solid var(--rule); background: var(--wall); min-width: 16rem; }

.statgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stat { background: var(--paper); padding: 1.2rem 1.3rem; }
.stat .k { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.stat .v { font-family: var(--display); font-size: 2.1rem; line-height: 1.1; margin-top: .3rem; }
.stat .d { font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 900px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }

.gatebox { border: 2px solid var(--ink); background: var(--paper); padding: 1.6rem 1.8rem; margin: 2rem 0; }
.gatebox .k { font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.gatebox .bar { height: .8rem; background: var(--wall-deep); border: 1px solid var(--rule); margin: .5rem 0 1rem; }
.gatebox .bar i { display: block; height: 100%; background: var(--ink); }
.gatebox .figures { font-size: .8rem; }

table.ledger-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ledger-table th { font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--rule); }
.ledger-table td { padding: .55rem .4rem; border-bottom: 1px solid var(--rule-faint); }
.ledger-table td.num { font-family: var(--mono); font-size: .82rem; text-align: right; }

.spark { display: block; }
.spark path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.spark .fillpath { fill: rgba(32,26,16,.08); stroke: none; }

/* ── quiet by preference, printable by trade ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .topbar, .masthead nav, .masthead .desk, .btn, .counter-form, .obtns, .acquirebar, .toast { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .exhibit { box-shadow: none; }
  section.band { padding: 1.5rem 0; }
  a { text-decoration: none; color: inherit; }
}

/* ── the inspection view: full-resolution sheet, zoom and pan ───────── */

[data-inspect-open] { cursor: zoom-in; }
.inspect-hint { text-align: center; font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: .9rem 0 0; }
.inspect { position: fixed; inset: 0; z-index: 90; background: rgba(24, 19, 11, .94); display: flex; flex-direction: column; }
.inspect[hidden] { display: none; }
.inspect__scroll { flex: 1; overflow: auto; display: grid; place-items: center; padding: 2rem; -webkit-overflow-scrolling: touch; }
.inspect__img { max-width: min(92vw, 1200px); max-height: 84vh; width: auto; height: auto; display: block; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); cursor: zoom-in; }
.inspect.is-zoom .inspect__scroll { display: block; }
.inspect.is-zoom .inspect__img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.inspect__close { position: absolute; top: .85rem; right: .95rem; z-index: 2; background: none; border: 1px solid rgba(250, 246, 234, .45); color: #f2ecdd; font-size: 1.05rem; line-height: 1; padding: .5rem .68rem; cursor: pointer; }
.inspect__close:hover { border-color: #f2ecdd; }
.inspect__hint { text-align: center; color: rgba(242, 236, 221, .72); font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; padding: .65rem 1rem .95rem; margin: 0; }
@media (max-width: 760px) { .inspect__scroll { padding: 1rem; } .inspect__img { max-width: 94vw; max-height: 80vh; } }

/* ── the set shelf: each sheet its own small frame, side by side ────── */

.set-shelf { display: flex; gap: .9rem; margin-top: 1.6rem; align-items: flex-end; flex-wrap: wrap; border-bottom: 2px solid var(--rule); padding-bottom: .9rem; }
.set-shelf__item { flex: 0 0 auto; display: block; }
.set-shelf__item img { height: 118px; width: auto; display: block; border: 1px solid var(--rule-faint); background: #fff; box-shadow: 0 5px 14px rgba(32, 26, 16, .18); transition: transform .15s ease; }
.set-shelf__item:hover img { transform: translateY(-3px); }
@media (max-width: 760px) { .set-shelf__item img { height: 88px; } }

/* ── how it works: the three tiers, in plain words ──────────────────── */

.howworks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem; margin-top: 2.8rem; }
@media (max-width: 860px) { .howworks { grid-template-columns: 1fr; gap: 1.7rem; } }
.howworks .step { border-top: 2px solid var(--red); padding-top: 1.1rem; }
.howworks .step-no { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .55rem; }
.howworks h3 { font-family: var(--display); font-weight: 400; font-size: 1.22rem; margin: 0 0 .45rem; }
.howworks p { color: var(--ink-soft); font-size: .93rem; line-height: 1.55; margin: 0; }

/* ── the mobile gallery: social traffic lands here ─────────────────────
   Desktop is untouched above this line. On a phone the art leads
   full-width, the words get shorter and larger, one button dominates,
   and each room becomes a swipeable rail — the museum, made thumbable.
   Same cream, same Caslon, same two inks: no hypermodern anywhere. */

.lede--m { display: none; }

@media (max-width: 760px) {
  /* hero: art first, edge to edge, then a short confident pitch */
  .hero { display: flex; flex-direction: column-reverse; gap: 1.5rem; padding-block: 0 2.4rem; text-align: center; }
  .hero .exhibit { margin-inline: -1.25rem; padding: 1rem; box-shadow: 0 14px 30px -18px rgba(32,26,16,.55); }
  .hero .exhibit__mat { padding: .8rem; }
  .hero .kicker { margin-bottom: .6rem; }
  .hero h1 { font-size: 2.55rem; line-height: 1.04; letter-spacing: -.015em; }
  .hero .lede:not(.lede--m) { display: none; }
  .hero .lede--m { display: block; font-size: 1.04rem; line-height: 1.6; max-width: 21rem; margin: .8rem auto 1.5rem; }
  .hero .actions { flex-direction: column; gap: .7rem; }
  .hero .actions .btn { width: 100%; padding: 1.15em 1em; font-size: .78rem; letter-spacing: .22em; }

  /* the provenance strip tightens into a label, not a table */
  .provenance { grid-template-columns: 1fr 1fr; }
  .provenance div { padding: .8rem .9rem; }
  .provenance div:nth-child(odd) { border-left: 0; }
  .provenance .k { font-size: .52rem; }
  .provenance .v { font-size: .8rem; line-height: 1.45; }

  /* rooms become rails: swipe the wall, the next frame peeking in */
  .room-head { margin-bottom: 2rem; }
  .room-head h2 { font-size: 2.15rem; }
  .room-head .curator { font-size: .98rem; }
  .wall {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.1rem;
    overflow-x: auto;
    margin-inline: -1.25rem;
    padding: .3rem 1.25rem 1.4rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .wall::-webkit-scrollbar { display: none; }
  .wall > .card { flex: 0 0 74vw !important; max-width: 74vw !important; min-width: 0 !important; scroll-snap-align: start; }
  .wall > .card--wide { flex: 0 0 88vw !important; max-width: 88vw !important; }
  .card .exhibit { flex: 0 0 auto; }
  .placard__title { font-size: 1rem; }

  /* set bands: the framed flagship before the pitch */
  .grid--2 > .card { order: -1; }

  /* the buy bar earns its place */
  .acquirebar { padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom)); }
  .acquirebar .from { font-size: .66rem; }
  .acquirebar .btn { padding: .9em 1.7em; font-weight: 500; }

  /* quieter chrome, the art louder */
  .topbar { font-size: .56rem; padding: .55em 1em; }
  .howworks { gap: 1.4rem; margin-top: 2.2rem; }
  .howworks h3 { font-size: 1.1rem; }
  .howworks p { font-size: .9rem; }
}

@media (max-width: 760px) {
  /* the chrome shrinks so the art shows above the fold */
  .masthead { gap: .5rem 1rem; padding: .7rem 1.25rem .55rem; }
  .masthead .brand { font-size: .8rem; letter-spacing: .2em; }
  .masthead .brand .star { margin-right: .4rem; }
  .cartlink { font-size: .58rem; padding: .55em .9em; }
  .masthead nav { gap: 1.15rem; }
  .masthead nav a { font-size: .6rem; padding: .2em 0; }
}
