/* ==========================================================================
   dorianbailey.com — "The Collection"
   A private collector's catalogue in matte black and bone: soft black fields,
   bone paper, dull brass, Libre Caslon throughout. No gloss anywhere: depth
   comes from paper grain, mounted prints and alternating bands.
   All colors and sizes are tokens in :root.
   ========================================================================== */

/* Libre Caslon (SIL Open Font License), self-hosted from assets/fonts */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); }

:root {
  /* Paper */
  --paper: #e6e2d8;
  --paper-raised: #eeebe3;
  --mat: #efece4;
  --ink: #1c1b19;
  --ink-soft: #5b5850;
  --rule: rgba(28, 27, 25, 0.17);
  --rule-strong: rgba(28, 27, 25, 0.5);

  /* Matte black fields */
  --field: #1c1b19;
  --field-raised: #262421;
  --field-deep: #141412;
  --on-field: #e6e2d8;
  --on-field-soft: #a39e92;
  --on-field-rule: rgba(230, 226, 216, 0.14);

  /* Dull brass: --brass on black, --brass-ink for brass text on paper */
  --brass: #a08c64;
  --brass-ink: #7d6b48;

  /* Mounted-print shadow: soft, low, matte */
  --lift: 0 1px 1px rgba(20, 19, 17, 0.07), 0 14px 32px -16px rgba(20, 19, 17, 0.45);
  --lift-high: 0 2px 2px rgba(20, 19, 17, 0.06), 0 28px 60px -24px rgba(20, 19, 17, 0.55);

  --font-text: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;

  /* Classical scale: 14 · 16 · 18 · 21 · 24 · 30 · 36 · 48 · 72 */
  --s-14: 0.875rem;
  --s-16: 1rem;
  --s-18: 1.125rem;
  --s-21: 1.3125rem;
  --s-24: 1.5rem;
  --s-30: 1.875rem;
  --s-36: 2.25rem;
  --s-48: clamp(2.25rem, 5vw, 3rem);
  --s-72: clamp(3rem, 9vw, 4.5rem);

  /* Fine paper grain on every paper and black surface */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");

  --wrap: 1120px;
  --narrow: 760px;
  --gutter: 16px;
  --section: clamp(3.5rem, 8vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --paper-raised: #1f1e1b;
    --ink: #e6e2d8;
    --ink-soft: #a39e92;
    --rule: rgba(230, 226, 216, 0.13);
    --rule-strong: rgba(230, 226, 216, 0.4);
    --field: #0e0d0c;
    --field-raised: #1c1b19;
    --field-deep: #0a0a09;
    --brass: #b09b72;
    --brass-ink: #b09b72;
    --lift: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 32px -16px rgba(0, 0, 0, 0.8);
    --lift-high: 0 2px 2px rgba(0, 0, 0, 0.3), 0 28px 60px -24px rgba(0, 0, 0, 0.9);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--s-18);
  line-height: 1.65;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brass-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--field); color: var(--on-field); padding: 0.5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--narrow); }
.section { padding: var(--section) 0; }
.section--rule { border-top: 1px solid var(--rule); }

/* A matte black band: re-points the tokens so everything inside adapts */
.band--dark {
  --ink: var(--on-field);
  --ink-soft: var(--on-field-soft);
  --rule: var(--on-field-rule);
  --rule-strong: rgba(230, 226, 216, 0.4);
  --brass-ink: var(--brass);
  background: var(--field) var(--grain);
  color: var(--ink);
}
.band--raised { background: var(--paper-raised) var(--grain); }

.section-title { font-size: var(--s-36); margin-bottom: 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.section-head .section-title { margin: 0; }
.section-head__note { margin: 0; font-style: italic; color: var(--ink-soft); font-size: var(--s-16); }
.section-intro { max-width: 36em; color: var(--ink-soft); margin: -0.75rem 0 2rem; }
.lede { font-size: var(--s-21); line-height: 1.5; }
.text-link { font-style: italic; }
.measure { max-width: 36em; }

/* ---------- Seal ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- The mark: Dorian's signature ---------- */
.sig { display: block; flex: none; fill: currentColor; color: var(--brass); overflow: visible; }
/* Blind-debossed into black: a hairline highlight below, shadow above */
.sig--deboss { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.07)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.65)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper) var(--grain); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.site-mark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--font-display); font-size: var(--s-24); white-space: nowrap; }
.site-mark .sig { color: var(--ink); margin-top: -2px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-size: var(--s-16); color: var(--ink-soft); padding: 0.25rem 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--brass); }
.nav-toggle {
  display: none; font: inherit; font-size: var(--s-16); font-style: italic; color: var(--ink);
  background: none; border: 1px solid var(--rule-strong); padding: 0.35rem 0.9rem; cursor: pointer;
}
/* Mobile: the menu opens as a full-screen matte black panel */
@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 1; padding: 96px var(--gutter) 2rem;
    background: var(--field) var(--grain); color: var(--on-field); overflow-y: auto;
  }
  .site-nav.is-open { display: block; animation: nav-in 0.28s ease-out; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--on-field-rule); }
  .site-nav a {
    display: block; padding: 0.9rem 0; font-family: var(--font-display); font-size: var(--s-36); line-height: 1.15;
    color: var(--on-field); border-bottom: 1px solid var(--on-field-rule);
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); border-bottom-color: var(--on-field-rule); }
  .nav-open .site-mark, .nav-open .nav-toggle { color: var(--on-field); position: relative; z-index: 2; }
  .nav-open .nav-toggle { border-color: rgba(230, 226, 216, 0.45); }
  .nav-open .site-mark .sig { color: var(--brass); }
  .nav-open .site-header { border-bottom-color: transparent; }
  .nav-open, .nav-open body { overflow: hidden; }
}
@keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Frontispiece (home hero) ---------- */
.frontispiece { background: var(--field) var(--grain); color: var(--on-field); }
.frontispiece__inner { text-align: center; padding-top: clamp(4.5rem, 12vw, 8rem); padding-bottom: clamp(4.5rem, 12vw, 8rem); display: flex; flex-direction: column; align-items: center; }
.sig--hero { color: var(--brass); margin-bottom: 2rem; width: clamp(200px, 30vw, 330px); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6)); }
.frontispiece__pre { font-style: italic; font-size: var(--s-21); color: var(--on-field-soft); margin: 0 0 0.6rem; }
.frontispiece h1 { font-size: var(--s-72); line-height: 1; letter-spacing: 0.01em; }
.frontispiece__sub {
  font-style: italic; font-size: var(--s-18); line-height: 1.5; color: var(--on-field-soft);
  margin: 2rem 0 0; padding-top: 1.6rem; position: relative;
}
.frontispiece__sub::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 120px; height: 4px; transform: translateX(-50%);
  border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); opacity: 0.8;
}

/* ---------- Contents (catalogue index) ---------- */
.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.contents li { border-bottom: 1px solid var(--rule); }
.contents a {
  display: grid; grid-template-columns: 3.2rem auto 1fr auto; align-items: baseline; gap: 0 1rem;
  padding: 1.15rem 0; text-decoration: none;
}
.contents__num { font-family: var(--font-display); font-size: var(--s-21); color: var(--brass-ink); }
.contents__title { font-family: var(--font-display); font-size: var(--s-30); line-height: 1.15; }
.contents__leader { border-bottom: 1px dotted var(--rule-strong); transform: translateY(-0.3em); min-width: 1.5rem; }
.contents__desc { font-style: italic; color: var(--ink-soft); font-size: var(--s-16); text-align: right; }
.contents a:hover .contents__title { color: var(--brass-ink); }
@media (max-width: 640px) {
  .contents a { grid-template-columns: 2.4rem 1fr; }
  .contents__leader { display: none; }
  .contents__title { font-size: var(--s-24); }
  .contents__desc { grid-column: 2; text-align: left; }
}

/* ---------- Frames: prints mounted on bone mats, lifted off the page ---------- */
.frame {
  display: block; padding: 10px; background: var(--mat);
  border: 1px solid rgba(28, 27, 25, 0.12);
  box-shadow: inset 0 0 0 4px var(--mat), inset 0 0 0 5px rgba(28, 27, 25, 0.16), var(--lift);
}
.frame img { width: 100%; }
.plate { margin: 0; }
.plate figcaption { font-size: var(--s-16); color: var(--ink-soft); padding-top: 0.75rem; }
.plate a { display: block; }
.plate-row { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); grid-template-columns: repeat(4, 1fr); align-items: start; }
.plate-row--1 { grid-template-columns: minmax(0, 360px); }
.plate-row .frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.plate-row--3 { grid-template-columns: repeat(3, 1fr); }
.plate-row--sales { row-gap: clamp(1.5rem, 3vw, 2.5rem); }
.plate-row--sales .frame img { aspect-ratio: 1; }
@media (max-width: 860px) { .plate-row { grid-template-columns: repeat(2, 1fr); } }
/* Three prints stay three across on a phone, smaller, rather than leaving one alone on its row */
@media (max-width: 860px) { .plate-row--3 { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } .plate-row--3 .frame { padding: 5px; } .plate-row--3 figcaption { font-size: var(--s-14); } }

/* ---------- Feature: a large print with a card laid over its corner ---------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.feature__media { grid-column: 1 / span 7; grid-row: 1; margin: 0; }
.feature__media .frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.feature__card {
  grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1;
  background: var(--paper-raised) var(--grain); padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--rule); box-shadow: var(--lift-high);
}
.feature__kicker { font-style: italic; color: var(--ink-soft); font-size: var(--s-16); margin-bottom: 0.5rem; }
.feature__card h2 { font-size: var(--s-48); margin-bottom: 1rem; }
.feature--reverse .feature__media { grid-column: 6 / span 7; }
.feature--reverse .feature__card { grid-column: 1 / span 6; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media, .feature--reverse .feature__media { grid-column: 1; grid-row: 1; }
  .feature__card, .feature--reverse .feature__card { grid-column: 1; grid-row: 2; margin: -3.5rem 0.75rem 0; }
}

/* ---------- Services (home) ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.service {
  display: flex; flex-direction: column; background: var(--paper-raised) var(--grain); border: 1px solid var(--rule);
  border-top: 2px solid var(--ink); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--lift);
}
.service__kicker { font-style: italic; color: var(--brass-ink); font-size: var(--s-16); margin-bottom: 0.4rem; }
.service h3 { font-size: var(--s-36); margin-bottom: 0.9rem; }
.service h3 a { color: inherit; text-decoration: none; }
.service h3 a:hover { color: var(--brass-ink); }
.service__list { list-style: none; margin: 0.25rem 0 0; padding: 0; columns: 2 11rem; column-gap: 1.5rem; border-top: 1px solid var(--rule); }
.service__list li { break-inside: avoid; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font-size: var(--s-16); }
.service .btn-row { margin-top: auto; padding-top: 1.75rem; gap: 0.5rem; }
/* The lists fold away: a single line until opened */
.service__more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 0.25rem; }
.service__more summary {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--s-18, 1.125rem); -webkit-tap-highlight-color: transparent;
}
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary span { font-family: var(--font-text); font-style: italic; font-size: var(--s-14); color: var(--ink-soft); }
.service__more summary::after {
  content: ""; margin-left: auto; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid var(--brass-ink); border-bottom: 1.5px solid var(--brass-ink);
  transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.25s ease;
}
.service__more[open] summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.service__more summary:hover { color: var(--brass-ink); }
.service__more .service__list { margin: 0 0 0.75rem; }
.service__more .service__list li:last-child { border-bottom: 0; }
.service__more[open] .service__list, .service__more[open] .service__fine { animation: service-open 0.3s ease both; }
@keyframes service-open { from { opacity: 0; transform: translateY(-4px); } }
.service__fine { margin: 0 0 0.9rem; font-style: italic; font-size: var(--s-14); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .service__more summary::after { transition: none; } .service__more[open] .service__list, .service__more[open] .service__fine { animation: none; } }
.service .btn { padding-left: 1rem; padding-right: 1rem; }
.service { padding: clamp(1.5rem, 2.6vw, 2.25rem); }
.services__note { margin: 1.25rem 0 0; font-style: italic; color: var(--ink-soft); font-size: var(--s-16); }
@media (max-width: 1080px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .services__grid { grid-template-columns: 1fr; } }
.service h3 { font-size: var(--s-30, 1.9rem); }
/* "Bookings available now": a small lit dot, like a light left on */
.service__status { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.9rem; font-style: italic; font-size: var(--s-14); color: var(--ink); }
.service__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6f8f5a; box-shadow: 0 0 0 3px rgba(111, 143, 90, 0.18); }
.entry-head .service__status { margin: 1.5rem 0 -0.75rem; }

/* ---------- Booking: calendar and request ---------- */
html.book-open { overflow: hidden; }
.book {
  width: min(27rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow: auto; padding: clamp(1.25rem, 4vw, 1.9rem);
  color: var(--ink); background: var(--paper-raised) var(--grain); border: 1px solid var(--rule); border-top: 2px solid var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.book::backdrop { background: rgba(14, 13, 12, 0.72); }
.book[open] { animation: game-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.book__head { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 0 1rem; margin-bottom: 0.75rem; }
.book__kicker { grid-column: 1; margin: 0 0 0.25rem; font-style: italic; font-size: var(--s-14); color: var(--brass-ink); }
.book__title { grid-column: 1; font-size: var(--s-30, 1.9rem); line-height: 1.1; }
.book__close { grid-column: 2; grid-row: 1 / span 2; font: inherit; font-style: italic; font-size: var(--s-16); color: var(--ink-soft); background: none; border: 0; cursor: pointer; padding: 0.2rem 0; }
.book__close:hover { color: var(--brass-ink); }
.book__lede { margin: 0 0 1rem; color: var(--ink-soft); font-size: var(--s-16); }
.cal__bar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding: 0.6rem 0; }
.cal__month { margin: 0; font-family: var(--font-display); font-size: var(--s-21); }
.cal__nav { width: 2.4rem; height: 2.4rem; font-size: 1.5rem; line-height: 1; color: var(--ink); background: none; border: 1px solid var(--rule); cursor: pointer; }
.cal__nav:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-ink); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal__week span { text-align: center; font-size: var(--s-14); font-style: italic; color: var(--ink-soft); padding: 0.3rem 0; }
.cal__day { -webkit-tap-highlight-color: transparent;
  aspect-ratio: 1; font: inherit; font-size: var(--s-16); color: var(--ink); background: transparent; border: 1px solid transparent; cursor: pointer;
}
.cal__day:hover:not(:disabled), .cal__day:focus-visible { border-color: var(--brass); }
.cal__day:disabled { color: var(--ink-soft); opacity: 0.35; cursor: default; }
.cal__day.is-today { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 0.25em; }
.cal__day.is-picked { background: var(--ink); color: var(--paper); }
.book__date { margin: 0 0 1rem; padding: 0.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: var(--s-21); }
.book__date span { display: block; font-family: var(--font-text); font-style: italic; font-size: var(--s-14); color: var(--ink-soft); }
.book__change { font: inherit; font-family: var(--font-text); font-style: italic; font-size: var(--s-14); color: var(--brass-ink); background: none; border: 0; padding: 0; margin-left: 0.4rem; cursor: pointer; text-decoration: underline; }
.book__field { display: block; margin-bottom: 0.8rem; }
.book__field span { display: block; font-size: var(--s-14); font-style: italic; color: var(--ink-soft); margin-bottom: 0.25rem; }
.book__field em { opacity: 0.75; }
.book__field input, .book__field select, .book__field textarea {
  width: 100%; font: inherit; font-size: var(--s-16); color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 0; padding: 0.55rem 0.65rem;
}
.book__field textarea { resize: vertical; line-height: 1.45; }
.book__field input:focus, .book__field select:focus, .book__field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.book__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.book__error { margin: 0 0 0.5rem; color: #9b3b2b; font-size: var(--s-14); }
.book__form .btn-row { margin-top: 0.5rem; }
.book__fine { margin: 0.9rem 0 0; font-size: var(--s-14); font-style: italic; color: var(--ink-soft); }
.book__done p { margin-bottom: 0.75rem; }
.book__big { font-family: var(--font-display); font-size: var(--s-30, 1.9rem); margin: 0.5rem 0 0.5rem !important; }
@media (prefers-reduced-motion: reduce) { .book[open] { animation: none; } }

/* ---------- Foreword ---------- */
.foreword { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.foreword__text { max-width: 36em; }
.foreword__sign { display: flex; align-items: center; gap: 0.9rem; margin: 1.75rem 0 1.25rem; }
.foreword__sign .sig { color: var(--brass-ink); }
.foreword__sign span { font-style: italic; color: var(--ink-soft); font-size: var(--s-16); }
.foreword .lede::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.35em; line-height: 0.82;
  padding: 0.07em 0.09em 0 0; color: var(--brass-ink);
}
@media (max-width: 760px) {
  .foreword { grid-template-columns: 1fr; }
  .foreword__portrait { max-width: 280px; }
}

/* ---------- Correspondence ---------- */
.correspondence { padding: var(--section) 0; }
.correspondence__email { font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.5rem); line-height: 1.2; margin: 1.5rem 0; overflow-wrap: anywhere; }
.correspondence__email a { text-decoration-color: var(--brass); }
.correspondence__more { font-style: italic; color: var(--ink-soft); font-size: var(--s-16); }
.quotes__more { margin: 1.25rem 0 0; font-style: italic; font-size: var(--s-16); }
.correspondence .btn-row { margin: 0 0 1.5rem; }

/* ---------- Entry pages ---------- */
.entry-head { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--rule); }
.entry-head__num { font-family: var(--font-display); font-size: var(--s-24); color: var(--brass-ink); margin-bottom: 0.5rem; }
.entry-head h1 { font-size: var(--s-72); line-height: 1.02; max-width: 14ch; }
.entry-head__standfirst { font-style: italic; font-size: var(--s-21); line-height: 1.5; color: var(--ink-soft); max-width: 34em; margin: 1.25rem 0 0; }
.entry-head--center { text-align: center; }
.entry-head--center h1, .entry-head--center .entry-head__standfirst { margin-left: auto; margin-right: auto; }
/* With a print: the print hangs below the head into the next section */
.entry-head--figure { padding-bottom: 0; border-bottom: 0; }
.entry-head--figure .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.entry-head__text { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.entry-head__print { margin: 0 0 calc(-1 * clamp(4rem, 10vw, 7rem)); position: relative; z-index: 1; }
.entry-head__print .frame { box-shadow: inset 0 0 0 4px var(--mat), inset 0 0 0 5px rgba(28, 27, 25, 0.16), var(--lift-high); }
.entry-head__print .frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.entry-head--figure + .section { border-top: 1px solid var(--rule); padding-top: calc(var(--section) + 1rem); }
@media (max-width: 820px) {
  .entry-head--figure .wrap { grid-template-columns: 1fr; }
  .entry-head__print { max-width: 320px; margin-bottom: -3rem; }
}

.entry { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.entry__prose { max-width: 36em; }
@media (max-width: 820px) { .entry { grid-template-columns: 1fr; } }
@media (min-width: 821px) { .entry-head--figure + .section .particulars { margin-top: clamp(3.5rem, 7vw, 5rem); } }

.particulars { border-top: 2px solid var(--ink); padding-top: 1rem; }
.particulars h2 { font-size: var(--s-24); margin-bottom: 0.5rem; }
.particulars dl { margin: 0; }
.particulars dl > div { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.particulars dt { font-style: italic; color: var(--ink-soft); font-size: var(--s-14); }
.particulars dd { margin: 0.1rem 0 0; font-size: var(--s-16); line-height: 1.5; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }
.btn {
  display: inline-block; padding: 0.75rem 1.35rem; border: 1px solid var(--ink);
  text-decoration: none; font-family: inherit; font-size: var(--s-16); color: var(--ink); background: transparent; cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:first-child { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band--dark .btn:first-child { background: var(--on-field); border-color: var(--on-field); color: var(--field); }
.btn:hover, .band--dark .btn:hover { background: var(--brass); border-color: var(--brass); color: #1c1b19; }

.entry-nav { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 2rem; padding-bottom: var(--section); border-top: 1px solid var(--rule); margin-top: 0; }
.entry-nav a { text-decoration: none; font-family: var(--font-display); font-size: var(--s-21); }
.entry-nav em { display: block; font-family: var(--font-text); font-size: var(--s-14); color: var(--ink-soft); }
.entry-nav__next { text-align: right; margin-left: auto; }
.band--dark + .entry-nav { border-top: 0; }

/* ---------- Steps: a numbered process (only for real sequences) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--rule-strong); }
.steps li::before { content: counter(step, upper-roman) "."; display: block; font-family: var(--font-display); font-size: var(--s-24); color: var(--brass-ink); margin-bottom: 0.4rem; }
.steps h3 { font-size: var(--s-24); margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: var(--s-16); line-height: 1.6; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Glossary: a term and its line (categories, kit) ---------- */
.glossary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.glossary > div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.glossary dt { font-family: var(--font-display); font-size: var(--s-24); }
.glossary dd { margin: 0.2rem 0 0; color: var(--ink-soft); font-style: italic; font-size: var(--s-16); }
@media (max-width: 640px) { .glossary { grid-template-columns: 1fr; } }
.glossary--single { grid-template-columns: 1fr; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.quote { margin: 0; padding-top: 1.5rem; border-top: 2px solid var(--brass); }
.quote p { font-family: var(--font-display); font-size: var(--s-30); line-height: 1.25; margin: 0 0 1rem; }
.quote cite { font-style: italic; color: var(--ink-soft); font-size: var(--s-16); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.quotes--stack { grid-template-columns: 1fr; gap: 2rem; }
.subhead { font-size: var(--s-24); margin: 2.25rem 0 0.5rem; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; border-top: 0; }
.cols-2 li { border-top: 1px solid var(--rule); border-bottom: 0; }

/* ---------- Two-column split for prose + aside ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Record (ledger) ---------- */
.ledger { margin: 0; max-width: 54rem; border-top: 2px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-style: italic; color: var(--ink-soft); font-size: var(--s-16); padding-top: 0.2rem; }
.ledger dt em { display: block; font-size: var(--s-14); }
.ledger dd { margin: 0; }
.ledger--wide { max-width: none; border-top-width: 1px; }
.ledger--wide .ledger__row { padding: 1.1rem 0; }
.ledger--wide dd p { margin: 0; }
.ledger h3 { font-size: var(--s-24); margin: 0 0 0.35rem; }
.ledger h3 a { text-decoration: none; }
.ledger dd p + h3 { margin-top: 1.5rem; }
.ledger dd p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .ledger__row { grid-template-columns: 1fr; gap: 0.5rem; } }

.events { list-style: none; margin: 0.25rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.events li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); font-family: var(--font-display); font-size: var(--s-21); }
.events em { display: block; font-family: var(--font-text); font-size: var(--s-14); color: var(--ink-soft); margin-top: 0.1rem; }

/* ---------- Photography ---------- */
.coll-group { font-family: var(--font-text); font-style: italic; font-size: var(--s-18); color: var(--ink-soft); margin: 0 0 1.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.coll-index + .coll-group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.coll-index { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(3, 1fr); }
.coll-index a { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 0.5rem; text-decoration: none; }
.coll-index .frame { grid-column: 1 / -1; margin-bottom: 1rem; aspect-ratio: 4 / 3; }
.coll-index .frame img { height: 100%; object-fit: cover; }
.coll-index__num { font-family: var(--font-display); color: var(--brass-ink); font-size: var(--s-21); }
.coll-index__title { font-family: var(--font-display); font-size: var(--s-24); }
.coll-index__meta { grid-column: 2; font-style: italic; color: var(--ink-soft); font-size: var(--s-14); line-height: 1.5; }
.coll-index a:hover .coll-index__title { color: var(--brass-ink); }
@media (max-width: 860px) { .coll-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .coll-index { grid-template-columns: 1fr; } }

.collection { padding: var(--section) 0; }
.collection__head { display: grid; grid-template-columns: 4rem minmax(0, 40em); gap: 0 1rem; margin-bottom: 2.5rem; }
.collection__num { font-family: var(--font-display); font-size: var(--s-48); color: var(--brass-ink); line-height: 1; margin: 0; }
.collection__head h2 { font-size: var(--s-48); }
.collection__meta { font-style: italic; color: var(--ink-soft); margin: 0.5rem 0 0.75rem; font-size: var(--s-16); }
.collection__note { margin: 0; }
.collection__up { margin: 0.6rem 0 0; font-style: italic; font-size: var(--s-14); }
.collection__up a { color: var(--ink-soft); }
@media (max-width: 560px) { .collection__head { grid-template-columns: 2.6rem 1fr; } }

.gallery { columns: 3 280px; column-gap: clamp(1.25rem, 2.5vw, 2rem); }
.gallery .plate { break-inside: avoid; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); padding-bottom: 6px; }
.gallery button.frame { width: 100%; cursor: zoom-in; font: inherit; color: inherit; }
.gallery button.frame:hover { border-color: var(--brass); }

/* Banner and feature prints drift gently on scroll (where supported) */
.banner { margin: 0; overflow: hidden; }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 40%; }
.banner figcaption { font-size: var(--s-14); color: var(--ink-soft); padding-top: 0.6rem; }
@media (max-width: 640px) { .banner img { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .banner__clip { overflow: hidden; }
    .banner__clip img { animation: drift linear both; animation-timeline: view(); transform-origin: center; }
    @keyframes drift { from { transform: translateY(-5%) scale(1.1); } to { transform: translateY(5%) scale(1.1); } }
  }
}

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; }
.lightbox::backdrop { background: rgba(20, 19, 17, 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 3.5rem 3.5rem 1rem; display: flex; flex-direction: column; align-items: center; max-height: 100vh; }
.lightbox img { max-width: min(92vw, 1600px); max-height: calc(100vh - 8rem); width: auto; height: auto; border: 8px solid #efece4; transition: opacity 0.25s ease; }
.lightbox img.is-loading { opacity: 0; }
.lightbox figcaption { color: #cfcabe; font-style: italic; font-size: var(--s-16); padding-top: 0.75rem; text-align: center; }
.lightbox__btn { position: fixed; background: none; border: 0; color: #e6e2d8; font-family: var(--font-display); cursor: pointer; line-height: 1; padding: 0.5rem 0.9rem; }
.lightbox__close { top: 0.5rem; right: 0.5rem; font-size: 2.5rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 3.5rem; }
.lightbox__prev { left: 0.25rem; }
.lightbox__next { right: 0.25rem; }
.lightbox__btn:hover { color: #b09b72; }
@media (max-width: 640px) {
  .lightbox figure { padding: 3.5rem 0.5rem 1rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0.5rem; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--field-deep) var(--grain); color: var(--on-field); padding: 3.5rem 0 2.5rem; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.site-footer__mark { display: flex; gap: 1rem; align-items: center; }
.site-footer__mark p { margin: 0; font-family: var(--font-display); font-size: var(--s-21); line-height: 1.35; }
.site-footer__mark em { font-family: var(--font-text); font-size: var(--s-16); color: var(--on-field-soft); }
.site-footer__links { list-style: none; margin: 0; padding: 0; text-align: right; font-size: var(--s-16); line-height: 2; }
.site-footer__links em { color: var(--on-field-soft); font-size: var(--s-14); margin-left: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer__fine a { color: inherit; margin-left: 0.35rem; text-decoration: underline; text-decoration-color: var(--on-field-rule); text-underline-offset: 0.2em; }
.site-footer__fine { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--on-field-rule); font-size: var(--s-14); font-style: italic; color: var(--on-field-soft); }
@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__links { text-align: left; }
}

/* ---------- Page transitions (cross-document, where supported) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: ease; }

/* ---------- Frontispiece entrance: the one orchestrated moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The signature is written on: the main stroke, then the hook, then the underline */
  /* Each stroke waits fully in its gap (dash 1, gap 2, offset just past 1) so no zero-length dash is left at
     its tip: Safari draws one as a round dot before the stroke has started. */
  .sig__ink { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; animation: sig-write 1.75s cubic-bezier(.45, .05, .4, 1) 0.2s forwards; }
  .sig__ink--hook { animation-duration: 0.3s; animation-delay: 2.05s; animation-timing-function: ease-out; }
  .sig__ink--underline { animation-duration: 0.5s; animation-delay: 2.4s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  .frontispiece__pre { opacity: 0; animation: fade-in 0.9s ease 1.45s forwards; }
  .frontispiece h1 { opacity: 0; letter-spacing: 0.09em; animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) 1.55s forwards; }
  .frontispiece__sub { opacity: 0; animation: fade-in 1s ease 2.35s forwards; }
}
@keyframes sig-write { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes settle { to { opacity: 1; letter-spacing: 0.01em; } }

/* ---------- Print: The Record typesets as a one-page CV ---------- */
.print-head { display: none; }
@media print {
  @page { size: letter; margin: 0.55in 0.6in; }
  :root { --paper: #fff; --paper-raised: #fff; --ink: #1c1b19; --ink-soft: #5b5850; --brass: #7d6b48; --brass-ink: #7d6b48; --rule: rgba(28,27,25,.2); }
  html, body { background: #fff !important; font-size: 10pt; line-height: 1.45; }
  .site-header, .site-footer, .entry-nav, .entry-head, .skip-link, .btn-row, .ledger__row--screen { display: none !important; }
  .section { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .print-head { display: flex; align-items: center; gap: 12pt; padding-bottom: 12pt; margin-bottom: 4pt; border-bottom: 1.5pt solid var(--ink); }
  .print-head .sig { width: auto; height: 27pt; color: var(--ink); }
  .print-head__name { font-family: var(--font-display); font-size: 26pt; line-height: 1; margin: 0 0 4pt; }
  .print-head__meta { font-style: italic; font-size: 8.5pt; color: var(--ink-soft); margin: 0; }
  .print-head__meta a { color: inherit; text-decoration: none; }
  .ledger { border-top: 0; max-width: none; }
  .ledger__row { grid-template-columns: 1.15in 1fr; padding: 9pt 0; break-inside: avoid; }
  .ledger dt { font-size: 9pt; }
  .ledger h3 { font-size: 13pt; margin-bottom: 2pt; }
  .ledger dd p { margin-bottom: 4pt; }
  .ledger dd p + h3 { margin-top: 8pt; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- Home collage: photographs drifting behind the title ----------
   Five rows, alternating direction, at a steady ~40px/s. A matte veil,
   darkest behind the text, keeps the title legible. */
.frontispiece { position: relative; overflow: hidden; isolation: isolate; }
.frontispiece::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--grain),
    radial-gradient(ellipse 46% 58% at 50% 50%, rgba(14, 13, 12, 0.9) 0%, rgba(14, 13, 12, 0.78) 55%, rgba(14, 13, 12, 0.5) 100%);
}
.collage { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.collage__wall {
  position: absolute; left: -12%; right: -12%; top: 50%;
  display: grid; gap: 12px; transform: translateY(-50%) rotate(-4deg);
}
.collage__track { display: flex; gap: 12px; width: max-content; padding-right: 12px; will-change: transform; }
.collage img { height: clamp(110px, 15vw, 190px); width: auto; filter: saturate(0.82) contrast(0.96); }
@media (prefers-reduced-motion: no-preference) {
  .collage__track { animation: collage-drift var(--dur, 90s) linear infinite; }
  .collage__row--rev .collage__track { animation-direction: reverse; }
  .collage { opacity: 0; animation: fade-in 1.8s ease 0.1s forwards; }
  .frontispiece.is-offscreen .collage__track { animation-play-state: paused; }
}
@keyframes collage-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.frontispiece__inner { text-shadow: 0 1px 18px rgba(14, 13, 12, 0.85), 0 0 2px rgba(14, 13, 12, 0.6); }
@media (max-width: 640px) {
  .frontispiece::before {
    background:
      var(--grain),
      radial-gradient(ellipse 80% 55% at 50% 50%, rgba(14, 13, 12, 0.9) 0%, rgba(14, 13, 12, 0.8) 60%, rgba(14, 13, 12, 0.62) 100%);
  }
}

/* ==========================================================================
   Features: calculator, Roll a detour, the television, easter eggs
   ========================================================================== */
@font-face { font-family: "VT323"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/vt323-latin-400-normal.woff2") format("woff2"); }

/* ---------- Better Selling: What would I keep? ---------- */
.calc { align-items: center; }
.calc__label { display: block; font-style: italic; color: var(--ink-soft); font-size: var(--s-16); margin-bottom: 0.4rem; }
.calc__input { display: flex; align-items: baseline; gap: 0.35rem; border-bottom: 1px solid var(--rule-strong); max-width: 16rem; margin-bottom: 1.25rem; }
.calc__input span { font-family: var(--font-display); font-size: var(--s-36); color: var(--brass); }
.calc__input input {
  font-family: var(--font-display); font-size: var(--s-36); color: var(--ink); background: transparent;
  border: 0; width: 100%; padding: 0.15rem 0; -moz-appearance: textfield; appearance: textfield;
}
.calc__input input::-webkit-outer-spin-button, .calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input input:focus { outline: none; }
.calc__input:focus-within { border-bottom-color: var(--brass); }
.calc__range { width: 100%; max-width: 30rem; accent-color: var(--brass); -webkit-appearance: none; appearance: none; background: transparent; height: 28px; }
.calc__range::-webkit-slider-runnable-track { height: 2px; background: var(--rule-strong); }
.calc__range::-moz-range-track { height: 2px; background: var(--rule-strong); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brass); border: 3px solid var(--field); margin-top: -8px; }
.calc__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--brass); border: 3px solid var(--field); }
.calc__presets { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.calc__presets button, .chip {
  font: inherit; font-size: var(--s-16); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--rule-strong); padding: 0.45rem 0.9rem;
}
.calc__presets button em { color: var(--ink-soft); font-size: var(--s-14); margin-left: 0.3rem; }
.calc__presets button:hover, .chip:hover { border-color: var(--brass); }
.calc__result { background: var(--field-raised); border: 1px solid var(--rule); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--lift-high); }
.calc__kicker { font-style: italic; color: var(--ink-soft); margin: 0; }
.calc__big { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 4.75rem); line-height: 1; margin: 0.3rem 0 1.25rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.calc__lines { margin: 0 0 1rem; border-top: 1px solid var(--rule); }
.calc__lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font-size: var(--s-16); }
.calc__lines dt { font-style: italic; color: var(--ink-soft); }
.calc__lines dd { margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.calc__note { font-size: var(--s-14); font-style: italic; color: var(--ink-soft); margin: 0; }

/* ---------- OddWay: Roll a detour ---------- */
.detour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--field); border-color: var(--ink); }
.atlas {
  position: relative; background: var(--mat) var(--grain); color: #1c1b19; padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid rgba(28, 27, 25, 0.15); box-shadow: inset 0 0 0 8px var(--mat), inset 0 0 0 9px rgba(28, 27, 25, 0.25), var(--lift-high);
  transition: opacity 0.18s ease, transform 0.18s ease; min-height: 22rem; display: flex; flex-direction: column;
}
.atlas::after { /* a faint road-map grid in the corner */
  content: ""; position: absolute; right: 18px; top: 18px; width: 88px; height: 88px; opacity: 0.18; pointer-events: none;
  background: linear-gradient(#7d6b48 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, #7d6b48 1px, transparent 1px) 0 0 / 22px 22px;
  border-radius: 50%;
}
.atlas.is-dealing { opacity: 0.15; transform: translateY(8px) rotate(-0.6deg); }
.atlas__cat { font-style: italic; color: #7d6b48; margin: 0 0 0.6rem; }
.atlas__name { font-size: var(--s-48); line-height: 1.05; margin-bottom: 0.5rem; max-width: 14ch; }
.atlas__place { font-style: italic; color: #5b5850; margin: 0 0 1.25rem; }
.atlas__desc { margin: 0 0 1.5rem; }
.atlas__go { margin: auto 0 0; }
.atlas__go a { color: #1c1b19; font-style: italic; text-decoration-color: #a08c64; }
.atlas__go a::after { content: ""; }
@media (max-width: 820px) { .detour { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .atlas { transition: none; } .atlas.is-dealing { transform: none; } }

/* ---------- Bailey MetaZoo: the television ---------- */
.tv-set { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tv__cabinet {
  display: grid; grid-template-columns: 1fr 15%; gap: 4%; padding: 4.5% 4% 5%;
  background: #2a2825 var(--grain); border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -2px 0 rgba(0, 0, 0, 0.5), 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}
.tv__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0b0a;
  border-radius: 26px / 22px; border: 10px solid #141311;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 50px rgba(0, 0, 0, 0.9);
}
.tv__screen::after { /* scanlines and tube vignette, over everything */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(ellipse 75% 70% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.tv__static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.55; transition: opacity 0.4s ease; }
.tv.is-loading .tv__static { opacity: 0.95; }
.tv.is-playing .tv__static { opacity: 0; }
.tv__player { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: center; }
.tv__player iframe { height: 100%; aspect-ratio: 9 / 16; width: auto; border: 0; }
.tv__osd { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-family: "VT323", ui-monospace, monospace; color: #ece8dd; text-shadow: 0 0 6px rgba(0, 0, 0, 0.8), 2px 2px 0 rgba(0, 0, 0, 0.6); font-size: clamp(1rem, 2.6vw, 1.75rem); letter-spacing: 0.04em; }
.tv__osd span { position: absolute; left: 6%; }
.tv__osd-tl { top: 6%; }
.tv__osd-bl { bottom: 7%; }
.tv.is-playing .tv__osd { opacity: 0; transition: opacity 1.5s ease 2s; }
.tv__insert {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: "VT323", ui-monospace, monospace; font-size: clamp(1.1rem, 2.6vw, 1.7rem); letter-spacing: 0.06em;
  color: #1c1b19; background: #e6e2d8; border: 0; padding: 0.55em 1.1em 0.45em; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(14, 13, 12, 0.55), 0 10px 24px -8px rgba(0, 0, 0, 0.8);
}
.tv__insert:hover { background: #a08c64; }
.tv__insert[hidden] { display: none; }
.tv__panel { display: flex; flex-direction: column; align-items: center; gap: 12%; padding-top: 6%; }
.tv__knob { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3733, #1d1c1a 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.6); position: relative; }
.tv__knob::after { content: ""; position: absolute; left: 50%; top: 10%; width: 3px; height: 30%; background: #8a7a5a; transform: translateX(-50%); border-radius: 2px; }
.tv__knob--small { width: 48%; }
.tv__grille { width: 70%; flex: 1; min-height: 3rem; background: repeating-linear-gradient(0deg, #1a1917 0 3px, #2f2d29 3px 6px); border-radius: 4px; }
.tv__now { margin: 1rem 0 0; font-size: var(--s-16); color: var(--ink-soft); }
.tv__now em { margin-right: 0.4rem; }
.tv__note { margin: 0.35rem 0 0; font-size: var(--s-14); font-style: italic; color: var(--ink-soft); }
.tv__note a { color: inherit; text-decoration-color: var(--brass); }
.tv-guide__head { font-style: italic; color: var(--ink-soft); margin: 0 0 0.75rem; }
.tapes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.tape {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--rule); padding: 0.75rem 0 0.75rem 1rem; position: relative;
}
.tape::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 4px; height: 1.1rem; background: transparent; }
.tape[aria-pressed="true"]::before { background: var(--brass); }
.tape:hover .tape__title { color: var(--brass); }
.tape__title { display: block; font-family: var(--font-display); font-size: var(--s-18); line-height: 1.3; }
.tape__date { display: block; font-style: italic; color: var(--ink-soft); font-size: var(--s-14); margin-top: 0.15rem; }
@media (max-width: 860px) {
  .tv-set { grid-template-columns: 1fr; }
  .tv__cabinet { grid-template-columns: 1fr; border-radius: 22px; }
  .tv__panel { display: none; }
}

/* ---------- Easter eggs ---------- */
.site-footer { position: relative; overflow: hidden; }
/* The eyes are a button, but only catchable while they're showing. The padding makes a
   generous, invisible hit area around two small points of light. */
.mothman {
  position: absolute; display: flex; gap: 14px; z-index: 0; pointer-events: none;
  margin: -16px 0 0 -18px; padding: 16px 18px; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mothman:focus { outline: none; }
.mothman.is-seen { pointer-events: auto; z-index: 2; }
.mothman i { display: block; width: 9px; height: 6px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 8px 2px rgba(192, 57, 43, 0.55); opacity: 0; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.mothman.is-seen i { animation: mothman-eyes 5.2s ease forwards; }
.mothman.is-seen:hover i { animation: none; opacity: 0.95; box-shadow: 0 0 12px 3px rgba(192, 57, 43, 0.7); }   /* it holds still while you look */
.mothman.is-caught i { animation: none; opacity: 1; transform: scale(1.7); box-shadow: 0 0 22px 7px rgba(214, 64, 48, 0.85); }
@keyframes mothman-eyes {
  0% { opacity: 0; transform: scaleY(1); }
  12% { opacity: 0.9; }
  30% { transform: scaleY(1); } 33% { transform: scaleY(0.1); } 37% { transform: scaleY(1); }
  58% { transform: scaleY(1); } 61% { transform: scaleY(0.1); } 65% { transform: scaleY(1); }
  84% { opacity: 0.9; }
  100% { opacity: 0; }
}
@keyframes mothman-still { 0%, 94% { opacity: 0.9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mothman.is-seen i { animation-name: mothman-still; animation-timing-function: linear; }
  .mothman i { transition: none; }
}
.site-footer__inner { position: relative; z-index: 1; }

.vhs-sweep { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; transition: opacity 0.45s ease; }
.vhs-sweep canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.55; mix-blend-mode: screen; }
.vhs-sweep__band { position: absolute; left: 0; right: 0; height: 18vh; top: -20vh; background: linear-gradient(transparent, rgba(255, 255, 255, 0.18) 45%, rgba(255, 255, 255, 0.05) 55%, transparent); animation: vhs-band 1.4s linear forwards; }
@keyframes vhs-band { to { top: 105vh; } }
.vhs-sweep__osd { position: absolute; left: 5vw; font-family: "VT323", ui-monospace, monospace; font-size: clamp(1.4rem, 4vw, 2.6rem); color: #ece8dd; letter-spacing: 0.05em; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.8); }
.vhs-sweep__osd--tl { top: 5vh; }
.vhs-sweep__osd--bl { bottom: 6vh; }
.vhs-sweep.is-out { opacity: 0; }
.vhs-sweep--calm canvas, .vhs-sweep--calm .vhs-sweep__band { display: none; }

/* ---------- Cryptid Highway (opens over the page from the footer's eyes) ---------- */
html.game-open { overflow: hidden; }
.game-dialog {
  width: min(1120px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); overflow: auto;
  padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--on-field-rule);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.03) inset, 0 40px 90px rgba(0, 0, 0, 0.65);
}
.game-dialog::backdrop { background: rgba(8, 8, 7, 0.88); }
.game-dialog[open] { animation: game-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.game-dialog[open]::backdrop { animation: game-dim 0.5s ease; }
@keyframes game-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes game-dim { from { opacity: 0; } }
.game-dialog__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.game-dialog__title { margin: 0; font-family: var(--font-display); font-size: var(--s-24); }
.game-dialog__close { font: inherit; font-style: italic; font-size: var(--s-16); color: var(--ink-soft); background: none; border: 0; padding: 0.25rem 0; cursor: pointer; }
.game-dialog__close:hover { color: var(--brass); }
@media (max-height: 560px) {
  .game-dialog { padding: 0.75rem 1rem; }
  .game-dialog__head { margin-bottom: 0.5rem; }
  .game__controls { margin-top: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .game-dialog[open], .game-dialog[open]::backdrop { animation: none; }
}
.game__screen { position: relative; }
.game canvas {
  display: block; width: 100%; aspect-ratio: 8 / 3; background: #16151a; cursor: pointer;
  border: 1px solid var(--rule); box-shadow: var(--lift-high); touch-action: manipulation;
}
.game canvas:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.game__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(30rem, calc(100% - 2rem));
  text-align: center; padding: clamp(1rem, 3vw, 1.75rem); background: rgba(14, 13, 12, 0.84); border: 1px solid var(--on-field-rule);
}
.game__panel[hidden] { display: none; }
.game__panel h3 { font-size: var(--s-36); margin-bottom: 0.5rem; }
.game__panel p { font-size: var(--s-16); color: var(--on-field-soft); margin-bottom: 0.9rem; }
.game__panel .btn { margin-top: 0.25rem; }
.game__kicker { font-style: italic; margin-bottom: 0.35rem !important; }
.game__stop a { color: var(--on-field); text-decoration-color: var(--brass); }
.game__controls { display: flex; gap: 0.75rem; justify-content: space-between; margin-top: 1rem; }
.game__btn {
  font-family: "VT323", ui-monospace, monospace; font-size: 1.45rem; letter-spacing: 0.05em; line-height: 1;
  color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); padding: 0.6rem 1.4rem; cursor: pointer;
  touch-action: manipulation;
}
.game__btn span { color: var(--ink-soft); margin-left: 0.4rem; }
.game__btn:hover { border-color: var(--brass); color: var(--brass); }
.game:not(.is-running) .game__btn { opacity: 0.6; }
@media (max-width: 640px) {
  .game canvas { aspect-ratio: 3 / 2; }
  .game__panel { padding: 0.9rem; }
  .game__panel h3 { font-size: var(--s-24); }
  .game__panel p { font-size: var(--s-14); line-height: 1.45; margin-bottom: 0.6rem; }
  .game__kicker { display: none; }
  .game-dialog [data-game-start] h3 { display: none; }   /* the dialog's own header already names it */
  .game-dialog { padding: 1rem; }
  .game__btn { flex: 1; padding: 0.9rem 0.5rem; }
  .game__btn span { display: none; }
}

/* =====================================================================
   Refinements (visual review, October 2026)
   ===================================================================== */

/* Every button the same height, whether it's a <button> or a link */
.btn { line-height: 1.4; text-align: center; }

/* Short pages: the footer always reaches the bottom of the window */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Headings break evenly; paragraphs avoid one-word last lines */
h1, h2, h3, .section-title, .feature__card h2, .service h3 { text-wrap: balance; }
p, dd, li, blockquote { text-wrap: pretty; }

/* Services: dropdown and buttons sit together at the foot of each card; buttons are full
   width on purpose; opening one list no longer stretches the other cards */
.service__more { margin-top: auto; }
.service .btn-row { margin-top: 0; padding-top: 1.25rem; }
.service .btn-row .btn { flex: 1 1 100%; }
.services__grid:has(.service__more[open]) { align-items: start; }
.services__grid:has(.service__more[open]) .service__more { margin-top: 0.25rem; }
@media (max-width: 1080px) and (min-width: 761px) { .service:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* "Bookings available now": a brass light, not a green one */
.service__status::before { background: var(--brass); box-shadow: 0 0 0 3px rgba(160, 140, 100, 0.22), 0 0 8px rgba(176, 155, 114, 0.55); }
/* The feature that follows the services doesn't need a second full gap */
.services + .section { padding-top: 0; }

/* Feature: the card clearly overlaps the print's lower corner instead of nearly matching it */
@media (min-width: 821px) {
  .feature { align-items: end; }
  .feature__card { margin-bottom: calc(-1 * clamp(2rem, 4vw, 3.25rem)); }
  .feature { padding-bottom: clamp(2rem, 4vw, 3.25rem); }
}

/* Previous/next: the rule lines up with the content, not the padding */
.entry-nav { border-top: 0; position: relative; }
.entry-nav::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule); }

/* Entry heads on tablets and phones: the hanging print is centred */
@media (max-width: 820px) {
  .entry-head__print { margin-left: auto; margin-right: auto; width: 100%; max-width: 340px; }
  /* a heading stacked over its text doesn't need the column gap as well */
  .split:has(> .section-title:first-child) { row-gap: 0; }
}

/* Three prints on a phone: one large, two beneath; the sales grid goes two by two */
@media (max-width: 860px) {
  .plate-row--3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .plate-row--3 .frame { padding: 8px; }
  .plate-row--3 figcaption { font-size: var(--s-14); }
  .plate-row--3:not(.plate-row--sales) > :first-child { grid-column: 1 / -1; }
  .plate-row--3:not(.plate-row--sales) > :first-child .frame img { aspect-ratio: 4 / 3; }
}

/* Photography on phones: two columns, so the page is half as long */
@media (max-width: 640px) {
  .gallery { columns: 2; column-gap: 0.75rem; }
  .gallery .plate { margin-bottom: 0.75rem; padding-bottom: 0; }
  .gallery .frame { padding: 5px; }
  .coll-index { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; }
  .coll-index .frame { margin-bottom: 0.6rem; }
  .coll-index__title { font-size: var(--s-18); }
  .coll-index a { grid-template-columns: 1.8rem 1fr; }
}
/* A way back to the collection list, once you've scrolled into the photographs */
.coll-jump {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  font-family: var(--font-text); font-style: italic; font-size: var(--s-16); text-decoration: none;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); padding: 0.55rem 1rem; box-shadow: var(--lift);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.coll-jump.is-on { opacity: 1; transform: none; pointer-events: auto; }
.coll-jump:hover { background: var(--brass); border-color: var(--brass); color: #1c1b19; }
@media (prefers-reduced-motion: reduce) { .coll-jump { transition: none; } }

/* Mobile button rows: every button the same width */
@media (max-width: 640px) {
  .btn-row .btn { flex: 1 1 100%; }
}

/* Footer links: comfortable to tap */
.site-footer__links { line-height: 1.5; }
.site-footer__links a { display: inline-block; padding: 0.4rem 0; }

/* Booking dialog: a clearer surface, the date control on its own line */
.book { border-color: var(--rule-strong); border-top-color: var(--ink); }
.book::backdrop { background: rgba(14, 13, 12, 0.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.book__change { display: block; margin: 0.35rem 0 0; }

/* Dark mode: mats in a soft bone rather than bright white; a lifted dialog surface */
@media (prefers-color-scheme: dark) {
  :root { --mat: #cfc9bc; }
  .book { background-color: #25231f; }
  .book::backdrop { background: rgba(0, 0, 0, 0.88); }
}

/* ---------------------------------------------------------------- Journal */
.entry-head--article h1 { font-size: var(--s-48); line-height: 1.08; max-width: 18ch; }
.entry-head--article .entry-head__num a { text-decoration: none; }
.entry-head--article .entry-head__num a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.article__byline { margin: 1.5rem 0 0; font-size: var(--s-16); font-style: italic; color: var(--ink-soft); }
.article__byline a { font-style: normal; color: var(--ink); }

.article { max-width: 36em; }
.article h2 { font-size: var(--s-30); margin: 2.75rem 0 0.75rem; }
.article ul, .article ol { margin: 0 0 1.25em; padding-left: 1.2rem; }
.article li { margin-bottom: 0.6em; }
.article li::marker { color: var(--brass-ink); }
.article strong { font-weight: 700; }
.article__lede { font-size: var(--s-21); line-height: 1.55; }
.article__lede::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.35em; line-height: 0.82;
  padding: 0.07em 0.09em 0 0; color: var(--brass-ink);
}
.article__steps { list-style: upper-roman; padding-left: 2rem; }
.article__steps li { padding-left: 0.35rem; }
.article__steps li::marker { font-family: var(--font-display); }
.article__cols { columns: 2 12rem; column-gap: 2rem; }
.article__cols li { break-inside: avoid; }

.article__fig { margin: 2rem 0 2.25rem; }
.article__fig .frame img { width: 100%; height: auto; }
.article__fig figcaption { font-style: italic; }
.article__fig--narrow { max-width: 360px; }
.article__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 2.5vw, 1.5rem); margin: 2rem 0 2.25rem; }
.article__pair .article__fig { margin: 0; }
.article__pair .frame img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 640px) { .article__pair .frame { padding: 6px; } .article__pair figcaption { font-size: var(--s-14); } }

.article .quote { margin: 1.75rem 0; }
.article .quote p { font-size: var(--s-24); }
.article__credit { font-style: italic; font-size: var(--s-16); color: var(--ink-soft); }

.article__table { overflow-x: auto; margin: 1.5rem 0; }
.article__table table { width: 100%; border-collapse: collapse; font-size: var(--s-16); font-variant-numeric: lining-nums tabular-nums; }
.article__table th { text-align: right; font-weight: 400; font-style: italic; color: var(--ink-soft); font-size: var(--s-14); padding: 0 0 0.5rem 0.75rem; border-bottom: 2px solid var(--ink); }
.article__table td { text-align: right; padding: 0.6rem 0 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
.article__table th:first-child, .article__table td:first-child { text-align: left; padding-left: 0; }
.article__table td:last-child { font-family: var(--font-display); font-size: var(--s-21); }

.article__cta {
  margin: 3rem 0 0; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--paper-raised) var(--grain);
  border: 1px solid var(--rule); border-top: 2px solid var(--ink); box-shadow: var(--lift);
}
.article__cta h2 { margin: 0.25rem 0 0.5rem; }
.article__cta p:not(.service__status) { margin: 0; color: var(--ink-soft); }
.article__cta .btn-row { margin-top: 1.5rem; }

.journal-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); max-width: 54rem; }
.journal-list li { border-bottom: 1px solid var(--rule); }
.journal-list a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem clamp(1.25rem, 4vw, 2.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2rem) 0; text-decoration: none; }
.journal-list .frame { padding: 8px; }
.journal-list .frame img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.journal-list__kicker { margin: 0 0 0.35rem; font-style: italic; font-size: var(--s-14); color: var(--brass-ink); }
.journal-list__title { font-size: var(--s-30); line-height: 1.15; }
.journal-list__dek { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: var(--s-16); line-height: 1.55; }
.journal-list a:hover .journal-list__title { color: var(--brass-ink); }
@media (max-width: 640px) {
  .journal-list a { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
  .journal-list .frame { padding: 4px; }
  .journal-list__title { font-size: var(--s-21); }
  .journal-list__dek { display: none; }
}
.nowrap, .article a[href^="tel:"], .article__byline time, .journal-list__kicker time { white-space: nowrap; }
