/* ==========================================================================
   The Abstract: site stylesheet
   Aesthetic: vintage scientific documentation (worn 1960s-70s lab manual).
   Clinical content, vintage execution. Paper ground, ink text, brand-color
   specimen plates, monospaced display headings, Georgia serif body + italic
   captions, a quiet halftone dot texture.

   Fonts: Tabular (Fontshare) is self-hosted below, served from /assets/fonts/
   alongside this stylesheet. Body italic uses the system Georgia stack, no
   webfont needed. No external font requests ever: no Google-hosted font CSS
   or API, no font CDN of any kind, at runtime.
   ========================================================================== */

/* ---- Self-hosted webfont: Tabular (Indian Type Foundry) -----------------
   Tabular, by Indian Type Foundry (Jérémie Hornus, Julie Soudanne), a
   monospaced typeface downloaded from fontshare.com and self-hosted per the
   bundle's WEB/README.md; served locally from assets/fonts/, never fetched at
   runtime. Licensed under the ITF Free Font EULA, which permits commercial
   web use. License text: assets/fonts/FFL-Tabular.txt. woff2 only. Pangram
   Pangram faces remain the shirt-print typeface only and never appear here as
   live web text. */
@font-face {
  font-family: 'Tabular';
  src: url('/assets/fonts/Tabular-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tabular';
  src: url('/assets/fonts/Tabular-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Tabular';
  src: url('/assets/fonts/Tabular-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tabular';
  src: url('/assets/fonts/Tabular-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Palette */
  --sage: #a8b39a;
  --mustard: #c9a24b;
  --brick: #a5573e;
  --navy: #3c4a5d;
  --bone: #e8e0cd;
  --paper: #f4efe4;
  --ink: #2b2a26;

  /* Ink at reduced strength, for rules / muted text / shadows */
  --ink-80: rgba(43, 42, 38, 0.80);
  --ink-60: rgba(43, 42, 38, 0.58);
  --ink-40: rgba(43, 42, 38, 0.38);
  --ink-15: rgba(43, 42, 38, 0.15);
  --ink-08: rgba(43, 42, 38, 0.08);

  /* Type */
  --font-mono: 'Tabular', 'Courier New', ui-monospace, monospace;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Structure */
  --wrap: 1120px;
  --gap: clamp(1.1rem, 3.2vw, 2rem);
  --radius: 10px;

  /* Quiet halftone: one faint ink dot per 18px tile */
  --halftone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2.5' cy='2.5' r='1.15' fill='%232b2a26' fill-opacity='0.06'/%3E%3C/svg%3E");
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: var(--halftone);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* Headings: typewriter mono, tight, balanced (never orphan a last word) */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }

/* Serif-italic caption voice (figure captions, field labels) */
.caption {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-60);
  font-size: 0.98rem;
  text-wrap: balance;
}

/* A mono "spec value" line, e.g. shirt colour */
.spec {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-80);
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
}
.swatch {
  width: 0.82em;
  height: 0.82em;
  border-radius: 2px;
  border: 1px solid var(--ink-40);
  display: inline-block;
  flex: none;
}

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
main { flex: 1 0 auto; }
.section { padding-block: clamp(2.6rem, 7vw, 4.75rem); }
.section--tight { padding-block: clamp(1.8rem, 5vw, 3rem); }

.rule { border: 0; border-top: 1.5px solid var(--ink); margin: 0; }
.rule--double { border: 0; border-top: 3px double var(--ink-60); margin: 0; }

.mt-1 { margin-top: 1.2rem; }
.mt-2 { margin-top: 2rem; }
.subtitle { margin: -0.15rem 0 1.7rem; max-width: 52ch; }

/* Section heading with a trailing hairline that fills the row (documentation feel) */
.head-row {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: clamp(1.4rem, 3.5vw, 2.2rem);
}
.head-row h2 { margin: 0; }
.head-row::after {
  content: "";
  flex: 1;
  border-top: 1.5px solid var(--ink-40);
  transform: translateY(-0.18em);
}

/* ---- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  border-bottom: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.1) blur(2px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-80);
  padding-block: 0.2rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--brick); }
.site-nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6ch;
  padding: 0.85em 1.5em;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, color 0.15s ease;
  text-wrap: balance;
}
.btn:hover { transform: translateY(-1px); }
.btn--buy { background: var(--ink); color: var(--paper); }
.btn--buy:hover { background: var(--brick); border-color: var(--brick); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Placeholder buy state (etsyUrl null): a non-link, disabled look */
.btn--soon {
  border-style: dashed;
  border-color: var(--ink-40);
  color: var(--ink-60);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 7px,
    var(--ink-08) 7px,
    var(--ink-08) 14px
  );
  cursor: default;
}
.btn--soon:hover { transform: none; }

/* ---- Specimen card (brand-colour plate + paper label) -------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 5px 0 var(--ink-15);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  height: 100%;
}
a.card:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--ink-15); }
a.card:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

/* The plate: the print PNG on its own brand colour */
.plate {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: clamp(1.4rem, 5%, 2.4rem);
  border-bottom: 1.5px solid var(--ink);
  background: var(--plate, var(--bone));
}
.plate img { width: 100%; height: 100%; object-fit: contain; }
.plate__fig {
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  mix-blend-mode: multiply;
}
/* On the dark navy plate, a light-side annotation reads better */
.plate--navy .plate__fig { color: rgba(232, 224, 205, 0.7); mix-blend-mode: normal; }

.plate--sage { --plate: var(--sage); }
.plate--mustard { --plate: var(--mustard); }
.plate--brick { --plate: var(--brick); }
.plate--navy { --plate: var(--navy); }
.plate--bone { --plate: var(--bone); }
/* Neutral backdrop for the zoom lightbox when it opens a mockup photo
   (opaque; doesn't need a brand-colour backdrop to read, unlike the
   transparent print art). Ink stays the default .zoom-overlay__cap /
   .zoom-overlay__close colour (no navy/brick-style override needed: ink on
   paper is the highest-contrast pair on the site). */
.plate--paper { --plate: var(--paper); }

/* The label: printed record beneath the plate */
.card__label { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__name { font-family: var(--font-mono); font-weight: 700; font-size: 1.16rem; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.card__field { margin: -0.15rem 0 0; }
.card__hook { font-size: 0.98rem; line-height: 1.5; color: var(--ink-80); text-wrap: pretty; margin: 0; }
.card__foot { margin-top: auto; padding-top: 0.35rem; }

/* ---- Grids --------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.3rem, 3.2vw, 2.1rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.grid > * { min-width: 0; }

/* Featured (home): staggered / offset at wider widths */
@media (min-width: 560px) {
  .grid--featured, .grid--shop, .grid--related { grid-template-columns: repeat(2, 1fr); }
  .grid--featured > :nth-child(2n) { margin-top: 2.4rem; }
}
@media (min-width: 900px) {
  .grid--featured, .grid--shop { grid-template-columns: repeat(3, 1fr); }
  .grid--featured > :nth-child(n) { margin-top: 0; }
  .grid--featured > :nth-child(3n + 2) { margin-top: 2.5rem; }
  .grid--featured > :nth-child(3n + 3) { margin-top: 5rem; }
  .grid--related { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Hero (home) --------------------------------------------------------- */
.hero { padding-block: clamp(2.8rem, 8vw, 5.5rem); }
.hero__inner { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.hero__logo { width: min(440px, 82%); }
.hero__logo img { width: 100%; }
.hero__tagline { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2.5rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0.2rem 0 0; max-width: 18ch; }
.hero__sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--ink-60); margin: 0; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.7rem; }

/* ---- About teaser (home) ------------------------------------------------- */
.teaser { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.teaser__body { max-width: 60ch; }
.teaser h2 { margin-bottom: 0.8rem; }
@media (min-width: 780px) {
  .teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; column-gap: clamp(2rem, 5vw, 4rem); }
}

/* ---- Shop: filter bar + field sections ----------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: clamp(1.6rem, 4vw, 2.5rem); }
.filterbar a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-80);
  padding: 0.5em 0.9em;
  border: 1.5px solid var(--ink-40);
  border-radius: 20px;
  background: var(--paper);
}
.filterbar a:hover { border-color: var(--ink); color: var(--ink); }
.filterbar a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.field-section { padding-top: clamp(1.6rem, 4vw, 2.4rem); }
.field-section[hidden] { display: none; }
.field-section .head-row { scroll-margin-top: 84px; }

/* ---- Design detail page -------------------------------------------------- */
.detail { display: grid; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: start; grid-template-columns: minmax(0, 1fr); }
.detail > * { min-width: 0; }
@media (min-width: 820px) {
  .detail { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); column-gap: clamp(2.2rem, 5vw, 4rem); }
  .detail__media { position: sticky; top: 96px; }
}
.detail__plate {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: clamp(1.8rem, 6%, 3.4rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--plate, var(--bone));
  box-shadow: 6px 8px 0 var(--ink-15);
}
.detail__plate img { width: 100%; height: 100%; object-fit: contain; }
/* Click/tap-to-zoom: the plate image links out to the full-size PNG (href +
   target=_blank stay as the no-JS fallback). The anchor takes over the
   sizing role .detail__plate img held on its own (100%/100% of the plate's
   padded box); the img rule above still matches it as a descendant, so the
   rendered size is unchanged. Where JS runs, the inline script at the end of
   this page intercepts the click and opens the .zoom-overlay lightbox below
   instead of navigating to the raw PNG. */
.detail__plate a.plate-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.detail__figcap { margin-top: 0.8rem; }

/* Fig-thumb (B6): secondary thumbnail beneath the mockup hero that swaps the
   print-on-plate render into the hero on click (JS; href is the no-JS
   fallback, a plain link to the full-size print PNG). Seed of the
   fig-lettered gallery: more thumbnails (b/c/d) arrive with future photos. */
.fig-thumb {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.fig-thumb__plate {
  width: 62px;
  flex: none;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 0.3rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--plate, var(--bone));
  transition: box-shadow 0.12s ease;
}
.fig-thumb__plate img { width: 100%; height: 100%; object-fit: contain; }
.fig-thumb__label { text-wrap: pretty; }
.fig-thumb:hover .fig-thumb__plate,
.fig-thumb:focus-visible .fig-thumb__plate { box-shadow: 3px 4px 0 var(--ink-15); }

/* Zoom lightbox (progressive enhancement): a fixed, full-viewport overlay
   that shows whichever image is currently in the hero (mockup photo, on a
   neutral plate--paper backdrop; or print art, on its own brand plate
   colour), in-page, instead of the raw file landing on a plain white
   browser tab. */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 50; /* above the sticky header's z-index:10 */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  gap: 1.1rem;
  padding-block: clamp(1rem, 4vh, 2.5rem);
  padding-inline: clamp(0.5rem, 2vw, 2rem);
  background: var(--plate, var(--bone));
  cursor: zoom-out;
  overflow-y: auto;
  overflow-x: hidden; /* guards against 100vw/scrollbar rounding at 390px */
}
.zoom-overlay > * { min-width: 0; }
.zoom-overlay__img {
  max-width: min(94vw, 1100px);
  max-height: 82vh;
  width: auto;
  object-fit: contain;
}
.zoom-overlay__cap {
  margin: 0;
  max-width: 100%;
  text-align: center;
  /* .caption's own ink-60 is tuned for legibility on the paper page
     background and reads too faint on a saturated plate colour; full ink
     restores contrast here (see the navy/brick override + math below). */
  color: var(--ink);
}
.zoom-overlay__close {
  position: fixed;
  top: clamp(0.9rem, 3vw, 1.5rem);
  right: clamp(0.9rem, 3vw, 1.5rem);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.55em 0.9em;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.zoom-overlay__close:hover { background: var(--ink); color: var(--paper); }

/* Caption + close-button colour vs. each plate, WCAG relative-luminance
   contrast (text/border colour against the plate background colour): ink
   passes AA (>=4.5:1 for normal text) on sage (6.6:1), mustard (6.0:1), bone
   (10.9:1). Ink FAILS on navy (1.6:1) and brick (2.8:1), so those two swap to
   paper instead (7.9:1 on navy, 4.5:1 on brick: both pass). Default above is
   ink; override to paper only where the math says ink fails. */
.zoom-overlay.plate--navy .zoom-overlay__cap,
.zoom-overlay.plate--brick .zoom-overlay__cap {
  color: var(--paper);
}
.zoom-overlay.plate--navy .zoom-overlay__close,
.zoom-overlay.plate--brick .zoom-overlay__close {
  border-color: var(--paper);
  color: var(--paper);
}
.zoom-overlay.plate--navy .zoom-overlay__close:hover,
.zoom-overlay.plate--brick .zoom-overlay__close:hover {
  background: var(--paper);
  color: var(--ink);
}
/* Long design names (>=15 chars) shrink to their column so no word strands;
   short names keep the sitewide h1 size; threshold matches build.mjs designPage. */
.detail__info { container-type: inline-size; }
.detail h1 { margin-bottom: 0.3rem; }
.detail__title--fit {
  font-size: 2rem; /* fallback for browsers without container-query units */
  font-size: clamp(1.6rem, 8cqi, 3.4rem);
}
.detail__field { margin: 0 0 1.2rem; }
.detail__hook { font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.45; text-wrap: pretty; margin-bottom: 1.5rem; }

/* Inside-joke explainer block */
.joke {
  border: 1.5px solid var(--ink);
  border-left-width: 6px;
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  background: color-mix(in srgb, var(--bone) 55%, var(--paper));
  margin-bottom: 1.75rem;
}
.joke h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.5rem; }
.joke p { margin: 0; text-wrap: pretty; }
/* Gift-buyer line: quieter serif-italic caption below the explainer. Higher
   specificity than `.joke p` so its margin + balanced wrap take effect. */
.joke .joke__gift {
  margin: 0.75rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-60);
  text-wrap: balance;
}

/* Fit + buy */
.buybox { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.9rem; }
.buybox .btn { align-self: flex-start; }
/* Trust block: three quiet lines directly under the buy button. Unbulleted;
   subtle rule separators stand in for bullets; mono/caption register keeps it
   clearly subordinate to the button above it. */
.buybox__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.buybox__trust li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-80);
  text-wrap: pretty;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ink-15);
}
.buybox__trust li:first-child { padding-top: 0; border-top: 0; }
.fit { margin-bottom: 1.6rem; }
.fit h2, .sizing h2 { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 0.55rem; }
.fit p { color: var(--ink-80); text-wrap: pretty; }

/* ---- Size chart table ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1.5px solid var(--ink); border-radius: 6px; }
table.sizes { border-collapse: collapse; width: 100%; min-width: 360px; font-family: var(--font-mono); font-size: 0.9rem; }
table.sizes caption { text-align: left; padding: 0.7rem 0.9rem; font-family: var(--font-serif); font-style: italic; color: var(--ink-60); caption-side: bottom; }
table.sizes th, table.sizes td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--ink-15); white-space: nowrap; }
/* Header cells may wrap so a plain-English label like "Length (shoulder to hem)"
   never forces the table wider than its column (would clip under overflow-x).
   Data cells + row headers keep nowrap (line above) so measurements stay tidy. */
table.sizes thead th { background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.76rem; border-bottom: 0; white-space: normal; }
table.sizes tbody tr:nth-child(even) { background: var(--ink-08); }
table.sizes tbody th { font-weight: 700; }
table.sizes tr:last-child td, table.sizes tr:last-child th { border-bottom: 0; }
.sizes-note { margin-top: 0.75rem; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: clamp(1.4rem, 3.2vw, 2rem); max-width: 74ch; }
.qa { border-top: 1.5px solid var(--ink-15); padding-top: 1.2rem; }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa h2 { font-size: clamp(1.1rem, 2.6vw, 1.3rem); margin-bottom: 0.5rem; }
.qa p { color: var(--ink-80); }

/* ---- Prose (About) ------------------------------------------------------- */
.prose { max-width: 62ch; }
.prose p { font-size: clamp(1.05rem, 2.4vw, 1.16rem); }
.prose .lead { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.14; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 1.3rem; }
.prose .signature { font-style: italic; color: var(--ink-60); margin-top: 1.6rem; }

/* ---- 404 ----------------------------------------------------------------- */
.notfound { text-align: center; padding-block: clamp(3.5rem, 12vw, 8rem); }
.notfound__code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.4rem, 9vw, 4.5rem); letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.notfound p { font-size: 1.15rem; color: var(--ink-80); margin-bottom: 1.8rem; }

/* ---- More-from-the-lab --------------------------------------------------- */
.related { margin-top: clamp(2.6rem, 6vw, 4rem); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1.5px solid var(--ink); margin-top: clamp(2.6rem, 7vw, 4.5rem); background: color-mix(in srgb, var(--bone) 34%, var(--paper)); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem 2.5rem; padding-block: clamp(2rem, 5vw, 3rem); }
.footer-brand img { height: 24px; width: auto; margin-bottom: 0.7rem; }
.footer-brand p { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ink-60); max-width: 30ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-nav a { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; color: var(--ink-80); }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { flex-basis: 100%; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-40); letter-spacing: 0.03em; margin: 0; }

/* ---- Breadcrumb / back --------------------------------------------------- */
.back { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); text-decoration: none; display: inline-block; margin-bottom: 1.4rem; }
.back:hover { color: var(--ink); }

/* ---- Focus visibility ---------------------------------------------------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; border-radius: 2px; }

/* ---- Motion / print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .filterbar, .btn { display: none; }
  .card, .detail__plate { box-shadow: none; break-inside: avoid; }
}
