/* vintagemintage.com: the site stylesheet (plan docs/plans/2026-11-19-design-in-repo.md, Task 11).
   Ported from the approved comps (docs/brand/comps/comps.css, owner O6, 2026-11-23).
   Implements docs/brand/site-brief.md S3 to S27 and S33. Every value comes from
   /vm/tokens.css; nothing here adds a colour (S2, S25).

   Cascade layers, declared before the tokens import so the order is fixed
   whatever loads first: reset, then the tokens, then base element styles, then
   the site's components in the comps' source order, then utilities (reduced
   motion last, so it wins over every component, S23). */

@layer reset, tokens, base, layout, components, utilities;
@import url("/vm/tokens.css") layer(tokens);

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
}

@layer base {
:root {
  --ink: var(--vm-color-role-ink);
  --paper: var(--vm-color-role-ground);
  --surface: var(--vm-color-role-surface);
  --row-alt: var(--vm-color-role-row-alt);
  --text-2: var(--vm-color-role-text-secondary);
  --caption: var(--vm-color-role-caption);
  --large-only: var(--vm-color-role-text-large-only);
  --divider: var(--vm-color-role-divider);
  --gold: var(--vm-color-role-coin-gold);
  --pale-gold: var(--vm-color-role-pale-gold);
  --link: var(--vm-color-role-link);
  --ease: var(--vm-motion-easing-standard);
  --t-instant: var(--vm-motion-duration-instant);
  --t-micro: var(--vm-motion-duration-micro);
  --t-reveal: var(--vm-motion-duration-reveal);
  --t-panel: var(--vm-motion-duration-panel-in);
  --margin: var(--vm-grid-margin-desktop);
  --gutter: var(--vm-grid-gutter);
  --bar: 72px;
  --paper-20: rgb(242 238 229 / .2);
  --paper-80: rgb(242 238 229 / .8);
  /* The warm duotone (S16): darks stay ink, lights land on pale gold. One filter
     list, so the resolve to full colour interpolates in a single property. */
  /* Solved numerically: paper #F2EEE5 lands on (242,209,148), about pale gold
     #F0D493, and ink #15130F stays (19,17,12). */
  --duotone: grayscale(1) brightness(.73) sepia(1) saturate(1.3);
  --full-colour: grayscale(0) brightness(1) sepia(0) saturate(1);
}

@media (max-width: 760px) {
  :root { --margin: var(--vm-grid-margin-phone); }
}

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 16px);
}

body {
  margin: 0;
  font-family: var(--vm-font-family-ui);
  font-size: var(--vm-type-scale-body);
  line-height: var(--vm-type-leading-body);
  font-weight: 400;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--pale-gold); color: var(--ink); }
.ink-ground ::selection, .panel ::selection { background: var(--gold); color: var(--ink); }
html { scrollbar-color: var(--large-only) var(--surface); }
}

@layer components {
.wrap {
  max-width: calc(1280px + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  font-weight: 600; text-decoration: none;
  transition: transform var(--t-micro) var(--ease);
}
.skip:focus-visible { transform: translateY(68px); }

/* Focus ring (S21, S29): 2 px coin gold, with an ink inner ring so it holds 3:1 on paper. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
}
.panel :where(a, button):focus-visible,
.ink-ground :where(a, button, input):focus-visible {
  box-shadow: none;
}
/* A fragment a menu link lands on (site.js gives it tabindex -1) holds focus
   so the next Tab starts there; it is a landing point, not a control, so it
   draws no ring. */
[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

/* ---------- Type roles (S4 to S10) ---------- */

/* S4: Newsreader at the display end of its optical-size axis. opsz 72 tightens
   spacing and sharpens contrast for large sizes; 600 at display, 500 below. */
.display, .headline, .subhead-serif {
  font-family: var(--vm-font-family-display);
  font-weight: var(--vm-font-weight-display-medium);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
  line-height: var(--vm-type-leading-display);
  text-wrap: balance;
}
.display { font-size: var(--vm-type-scale-display); font-weight: var(--vm-font-weight-display-semibold); }
.headline { font-size: var(--vm-type-scale-headline); line-height: 1; }
.subhead-serif { font-size: max(24px, var(--vm-type-scale-subhead)); line-height: 1.05; }
.bold { font-weight: var(--vm-font-weight-display-semibold); }

.subhead {
  font-family: var(--vm-font-family-ui);
  font-weight: 600;
  font-size: var(--vm-type-scale-subhead);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.deck {
  font-family: var(--vm-font-family-ui);
  font-weight: 400;
  font-size: var(--vm-type-scale-deck);
  line-height: 1.4;
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}

.body { max-width: 64ch; color: var(--ink); text-wrap: pretty; }
.body + .body { margin-top: 16px; }

.prose {
  font-family: var(--vm-font-family-text);
  font-optical-sizing: auto;
  font-size: calc(var(--vm-type-scale-body) * 1.06);
  line-height: 1.6;
  max-width: 64ch;
  text-wrap: pretty;
  hanging-punctuation: first;
}
.prose p + p { margin-top: 1em; }
.prose em { font-style: italic; }

.data {
  font-family: var(--vm-font-family-data);
  font-size: var(--vm-type-scale-data);
  line-height: var(--vm-type-leading-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.caption { color: var(--caption); }

/* The wordmark is the lockup's outlined letters (docs/brand/lockup), drawn as
   inline SVG paths in currentColor, so no page loads the wordmark face (S3). */
.wordmark {
  display: block;
  height: 18px;
  width: auto;
  aspect-ratio: 684 / 46;
  overflow: visible;
  flex: none;
  fill: currentColor;
}

/* Inline links (S21): deep gold to ink, underline drawn on. */
.link {
  color: var(--link);
  text-decoration: underline 1px;
  text-decoration-color: rgb(122 86 32 / .35);
  text-underline-offset: 4px;
  transition: color var(--t-micro) var(--ease), text-decoration-color var(--t-micro) var(--ease);
}
.link:hover, .link:focus-visible { color: var(--ink); text-decoration-color: var(--ink); }

/* The section style (S9): one style for every catalog section name, everywhere.
   Sizes come from the place (tile, column, index row, mark, Catalog Scroll). */
.sec {
  font-family: var(--vm-font-family-ui);
  font-weight: var(--vm-font-weight-section);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-kerning: normal;
}

/* ---------- The bar (S11) ---------- */

.bar {
  position: sticky; top: 0; z-index: 20;
  height: var(--bar);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: stretch;
}
.bar__cell { display: flex; align-items: center; }
.burger {
  width: var(--bar);
  justify-content: center;
  border-right: 1px solid var(--ink);
  transition: background-color var(--t-micro) var(--ease);
}
.burger:hover { background: var(--surface); }
.burger__lines { position: relative; width: 24px; height: 12px; }
.burger__lines span {
  position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink);
  transition: transform var(--t-reveal) var(--ease);
}
.burger__lines span:first-child { top: 0; }
.burger__lines span:last-child { top: 10px; }
body:has(#panel:popover-open) .burger__lines span:first-child { transform: translateY(5px) rotate(45deg); }
body:has(#panel:popover-open) .burger__lines span:last-child { transform: translateY(-5px) rotate(-45deg); }

.brand {
  gap: 12px;
  padding-inline: 20px 24px;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark-small { width: 32px; height: 32px; flex: none; }

.nav { margin-inline: auto; display: flex; gap: 32px; align-items: center; }
.nav a {
  position: relative;
  font-weight: 500; font-size: 16px; line-height: 1;
  color: var(--ink);
  text-decoration: underline 1px;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  padding-block: 12px;
  transition: text-decoration-color var(--t-micro) var(--ease);
}
.nav a:hover, .nav a:focus-visible { text-decoration-color: var(--ink); }
.nav a[aria-current="page"]::before,
[data-page="product"] .nav a[data-nav="product"]::before,
[data-page="pricing"] .nav a[data-nav="pricing"]::before,
[data-page="about"] .nav a[data-nav="about"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--gold);
}

.cell-cta {
  display: flex; align-items: center;
  padding-inline: 28px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 16px;
  text-decoration: none; white-space: nowrap;
  border-left: 1px solid var(--ink);
  transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.cell-cta:hover, .cell-cta:focus-visible { background: var(--gold); color: var(--ink); }
.cell-cta:focus-visible { outline-offset: -4px; box-shadow: none; outline-color: var(--ink); }
.cell-cta .short { display: none; }
.cell-cta { gap: 10px; }


@media (max-width: 1180px) {
  .nav { display: none; }
  .brand { margin-inline-end: auto; }
}
@media (max-width: 760px) {
  .brand .wordmark { display: none; }
  .brand { padding-inline: 16px; }
  .cell-cta { padding-inline: 20px; }
  .cell-cta .long { display: none; }
  .cell-cta .short { display: inline; }
  .burger { width: 64px; }
}

/* ---------- The panel (S12, S14, S20) ---------- */

.panel {
  margin: 0;
  inset: 0 auto 0 0;
  width: min(760px, 100%);
  height: 100dvh; max-height: none;
  border: 0; padding: 0;
  background: var(--ink); color: var(--paper);
  overflow-y: auto;
  transform: translateX(-100%);
  opacity: 1;
  transition:
    transform var(--t-reveal) var(--ease),
    overlay var(--t-reveal) allow-discrete,
    display var(--t-reveal) allow-discrete;
}
.panel:popover-open {
  transform: translateX(0);
  transition-duration: var(--t-panel);
}
@starting-style { .panel:popover-open { transform: translateX(-100%); } }

.panel::backdrop, .slideout::backdrop {
  background: rgb(21 19 15 / 0);
  transition:
    background-color var(--t-reveal) var(--ease),
    overlay var(--t-reveal) allow-discrete,
    display var(--t-reveal) allow-discrete;
}
.panel:popover-open::backdrop, .slideout:popover-open::backdrop {
  background: rgb(21 19 15 / .15);
  transition-duration: var(--t-panel);
}
@starting-style {
  .panel:popover-open::backdrop, .slideout:popover-open::backdrop { background: rgb(21 19 15 / 0); }
}

.panel__inner { display: flex; flex-direction: column; min-height: 100%; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--bar);
  border-bottom: 1px solid var(--paper-20);
  padding-inline-start: 24px;
}
.panel__head-title { font-weight: 500; font-size: 15px; color: var(--paper); }
.close {
  width: var(--bar); height: var(--bar);
  display: grid; place-items: center;
  border-left: 1px solid var(--paper-20);
  color: var(--paper);
  transition: background-color var(--t-micro) var(--ease);
}
.close:hover { background: rgb(242 238 229 / .08); }
.close svg { width: 24px; height: 24px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 132px;
  padding: 20px 24px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-20);
}
.tile:nth-child(odd) { border-right: 1px solid var(--paper-20); }
.tile__name {
  position: relative;
  align-self: flex-start;
  font-size: 30px; line-height: 1;
  color: var(--paper-80);
  padding-bottom: 8px;
  transition: color var(--t-micro) var(--ease);
}
.tile__name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-micro) var(--ease);
}
.tile:hover .tile__name, .tile:focus-visible .tile__name { color: var(--paper); }
.tile:hover .tile__name::after, .tile:focus-visible .tile__name::after { transform: scaleX(1); }
.tile:focus-visible { outline-offset: -4px; }
.tile .data { color: var(--paper-80); }

.panel__cta {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding-inline: 24px;
  background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: 18px; text-decoration: none;
  transition: background-color var(--t-micro) var(--ease);
}
.panel__cta:hover, .panel__cta:focus-visible { background: var(--pale-gold); }
.panel__cta:focus-visible { outline-color: var(--ink); outline-offset: -4px; }

.panel__links { padding: 24px; display: grid; gap: 4px; border-bottom: 1px solid var(--paper-20); }
.panel__links a, .panel__browse {
  font-family: var(--vm-font-family-text);
  font-size: 28px; line-height: 1.3;
  color: var(--paper);
  text-decoration: underline 1px transparent;
  text-underline-offset: 6px;
  justify-self: start;
  transition: text-decoration-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.panel__links a:hover, .panel__links a:focus-visible,
.panel__browse:hover, .panel__browse:focus-visible { text-decoration-color: var(--gold); }
.panel__browse { text-align: left; text-decoration-color: var(--gold); text-wrap: balance; }
.panel__browse:hover, .panel__browse:focus-visible { text-decoration-color: var(--paper); }
.panel__utility {
  margin-top: auto;
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 20px 24px 28px;
}
.panel__utility a {
  font-size: 13px; color: var(--paper-80);
  text-decoration: underline 1px transparent; text-underline-offset: 4px;
  transition: color var(--t-micro) var(--ease), text-decoration-color var(--t-micro) var(--ease);
}
.panel__utility a:hover, .panel__utility a:focus-visible { color: var(--paper); text-decoration-color: var(--paper); }

@media (max-width: 760px) {
  .panel {
    width: 100%;
    transform: translateY(-100%);
  }
  .panel:popover-open { transform: translateY(0); }
  @starting-style { .panel:popover-open { transform: translateY(-100%); } }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  /* The longest name (Commemoratives) must not widen the track past the phone;
     its dates wrap under it instead. */
  .tile { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 16px; row-gap: 4px; padding-block: 16px; }
  .tile:nth-child(odd) { border-right: 0; }
  .tile__name { font-size: 28px; }
  .panel__cta { position: sticky; bottom: 0; order: 10; }
}

/* ---------- The slide-out (S13, S19, S20) ---------- */

.slideout {
  margin: 0;
  inset: 0 0 0 auto;
  width: min(1180px, 92vw);
  height: 100dvh; max-height: none;
  border: 0; border-left: 1px solid var(--ink);
  padding: 0;
  background: var(--paper); color: var(--ink);
  transform: translateX(100%);
  transition:
    transform var(--t-reveal) var(--ease),
    overlay var(--t-reveal) allow-discrete,
    display var(--t-reveal) allow-discrete;
}
.slideout:popover-open { transform: translateX(0); transition-duration: var(--t-panel); }
/* The page behind does not move while an overlay is open (S13): site.js puts
   `is-locked` on <html> on the popover's toggle, and the overlays keep their own
   scrolling from chaining to the page. The gutter keeps the width steady. */
html.is-locked { overflow: hidden; scrollbar-gutter: stable; }
.panel[popover], .slideout[popover] { overscroll-behavior: contain; }
@starting-style { .slideout:popover-open { transform: translateX(100%); } }

.slideout__inner { display: flex; flex-direction: column; height: 100%; }
.slideout__head {
  display: flex; align-items: stretch;
  height: var(--bar);
  border-bottom: 1px solid var(--ink);
}
.slideout__title {
  display: flex; align-items: center;
  padding-inline: 24px;
  margin-inline-end: auto;
  font-weight: 600; font-size: 18px;
}
.arrow {
  width: var(--bar);
  display: grid; place-items: center;
  border-left: 1px solid var(--ink);
  transition: background-color var(--t-micro) var(--ease);
}
.arrow:hover { background: var(--surface); }
.arrow svg { width: 24px; height: 24px; }
.slideout .close { color: var(--ink); border-left-color: var(--ink); }
.slideout .close:hover { background: var(--surface); }

.columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  flex: 1;
}
.columns > * { scroll-snap-align: start; }
.slideout .columns { grid-auto-columns: calc((min(1180px, 92vw) - 1px) / 3.4); }
.column {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--ink);
}
.column__name {
  font-size: 22px; line-height: 1.05;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.column .slot { aspect-ratio: 1; }
.column__head {
  font-family: var(--vm-font-family-display);
  font-variation-settings: "opsz" 72;
  font-size: 30px; line-height: 1.02; letter-spacing: -0.01em;
  font-weight: var(--vm-font-weight-display-medium);
  text-wrap: balance;
}
.column__deck { font-size: 16px; line-height: 1.45; color: var(--text-2); }
.column .data { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--divider); }
.column a { color: inherit; text-decoration: none; }

@media (max-width: 760px) {
  .slideout { width: 100%; border-left: 0; }
  .slideout .columns { grid-auto-columns: 82%; }
  .slideout .arrow { display: none; }
}

/* ---------- The Catalog Scroll (S13, S19) ---------- */

.catalog-scroll {
  position: sticky; top: var(--bar); z-index: 15;
  display: flex; align-items: stretch;
  height: 48px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.catalog-scroll__track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-inline-start: calc(max(var(--margin), (100vw - 1280px) / 2) - 49px);
  scroll-padding-inline-start: calc(max(var(--margin), (100vw - 1280px) / 2) - 49px);
}
.catalog-scroll__track::-webkit-scrollbar { display: none; }
.catalog-scroll__track a {
  position: relative;
  flex: none;
  display: flex; align-items: center;
  padding-inline: 18px;
  scroll-snap-align: start;
  font-size: 14px; line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.catalog-scroll__track a:first-child { padding-inline-start: 0; }
.catalog-scroll__track a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-micro) var(--ease);
}
.catalog-scroll__track a:first-child::after { left: 0; }
.catalog-scroll__track a:hover::after,
.catalog-scroll__track a:focus-visible::after,
.catalog-scroll__track a[aria-current="true"]::after { transform: scaleX(1); }
.catalog-scroll__track a:focus-visible { outline-offset: -6px; box-shadow: none; }
.catalog-scroll .arrow { width: 48px; }
.catalog-scroll .arrow svg { width: 20px; height: 20px; }
.catalog-scroll__all {
  display: flex; align-items: center; gap: 8px;
  padding-inline: 20px;
  border-left: 1px solid var(--ink);
  font-weight: 500; font-size: 14px;
  white-space: nowrap;
  transition: background-color var(--t-micro) var(--ease);
}
.catalog-scroll__all:hover { background: var(--surface); }
@media (max-width: 760px) {
  .catalog-scroll__track { padding-inline-start: var(--margin); scroll-padding-inline-start: var(--margin); }
  .catalog-scroll .arrow { display: none; }
  .catalog-scroll__all { padding-inline: 14px; }
}

/* ---------- Coin slots and the resolve (S16, S26) ---------- */

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  text-decoration: none;
}
.slot { container-type: inline-size; }
@container (max-width: 260px) { .slot__chart { display: none; } .slot__wedge { right: 12px; } }
/* A step wedge from the photo rig, paper to ink: under the duotone it shows the
   whole ink-to-pale-gold range (S16); resolved, it reads neutral. */
.slot__wedge {
  position: absolute; left: 12px; right: 76px; bottom: 12px; height: 14px;
  display: grid; grid-template-columns: repeat(8, 1fr);
  outline: 1px solid var(--paper);
}
.slot__wedge i:nth-child(1) { background: var(--paper); }
.slot__wedge i:nth-child(2) { background: color-mix(in srgb, var(--ink) 14%, var(--paper)); }
.slot__wedge i:nth-child(3) { background: color-mix(in srgb, var(--ink) 28%, var(--paper)); }
.slot__wedge i:nth-child(4) { background: color-mix(in srgb, var(--ink) 42%, var(--paper)); }
.slot__wedge i:nth-child(5) { background: color-mix(in srgb, var(--ink) 57%, var(--paper)); }
.slot__wedge i:nth-child(6) { background: color-mix(in srgb, var(--ink) 71%, var(--paper)); }
.slot__wedge i:nth-child(7) { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.slot__wedge i:nth-child(8) { background: var(--ink); }
.slot--slab { aspect-ratio: 3 / 4; }
.slot--wide { aspect-ratio: 4 / 3; }
/* The colour layer: a calibration card from the photo rig, the only colour in the frame. */
.slot__plate {
  position: relative; flex: 1; display: block;
  /* S26: a paper-toned ground under raking light, so the field falls off from
     paper toward a darker paper. Under the duotone (S16) it reads pale gold to deep gold. */
  background: linear-gradient(155deg, var(--paper) 0%, var(--paper) 25%,
    color-mix(in srgb, var(--ink) 30%, var(--paper)) 100%);
  filter: var(--duotone);
  transition: filter var(--t-reveal) var(--ease);
}
.slot__chart {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: repeat(3, 14px); grid-auto-rows: 14px; gap: 2px;
  padding: 3px; background: var(--paper);
}
.slot__chart i:nth-child(1) { background: var(--gold); }
.slot__chart i:nth-child(2) { background: var(--pale-gold); }
.slot__chart i:nth-child(3) { background: var(--link); }
.slot__chart i:nth-child(4) { background: var(--vm-color-role-mark-shadow); }
.slot__chart i:nth-child(5) { background: var(--ink); }
.slot__chart i:nth-child(6) { background: var(--divider); }
.slot__guides {
  position: absolute; inset: 12% 14%;
  --g: rgb(21 19 15 / .55);
  background:
    linear-gradient(var(--g), var(--g)) left top / 18px 1px no-repeat,
    linear-gradient(var(--g), var(--g)) left top / 1px 18px no-repeat,
    linear-gradient(var(--g), var(--g)) right top / 18px 1px no-repeat,
    linear-gradient(var(--g), var(--g)) right top / 1px 18px no-repeat,
    linear-gradient(var(--g), var(--g)) left bottom / 18px 1px no-repeat,
    linear-gradient(var(--g), var(--g)) left bottom / 1px 18px no-repeat,
    linear-gradient(var(--g), var(--g)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--g), var(--g)) right bottom / 1px 18px no-repeat;
}
.slot__measure {
  position: absolute; left: 14%; right: 14%; top: 50%;
  border-top: 1px dashed rgb(21 19 15 / .45);
}
.slot__measure span {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  white-space: nowrap; color: var(--text-2);
}
.slot__label {
  order: -1;
  display: block;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--divider);
  color: var(--ink);
}
.slot__label b { font-weight: 500; }

/* Hover and focus win over the scroll-driven resolves below (the hero and touch):
   an animation would otherwise own `filter`, so the interaction cancels it (S16). */
:is(a:hover, a:focus-visible) .slot__plate,
.slot:is(:hover, :focus-visible) .slot__plate { filter: var(--full-colour); animation: none; }

/* Touch screens: the resolve is scroll-driven as the slot crosses the middle (S16). */
@media (hover: none) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .slot__plate {
      animation: plate-in linear both;
      animation-timeline: view();
      animation-range: cover 40% cover 55%;
      animation-timing-function: var(--ease);
    }
  }
}
@keyframes plate-in { from { filter: var(--duotone); } to { filter: var(--full-colour); } }

.slot-caption { margin-top: 12px; color: var(--caption); }

/* ---------- Ledgers (S7, S24, S30) ---------- */

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--vm-font-family-data);
  font-size: var(--vm-type-scale-data);
  line-height: var(--vm-type-leading-data);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ledger caption {
  caption-side: top; text-align: left;
  font-family: var(--vm-font-family-ui); font-weight: 600; font-size: 16px;
  padding-bottom: 12px;
}
.ledger th, .ledger td { text-align: left; padding: 10px 12px; vertical-align: top; }
.ledger th:first-child, .ledger td:first-child { padding-inline-start: 0; }
.ledger thead th { font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--ink); }
.ledger tbody tr + tr td, .ledger tbody tr + tr th { border-top: 1px solid var(--divider); }
.ledger tbody th { font-weight: 500; }
.ledger .num { text-align: right; padding-inline-end: 0; white-space: nowrap; }
.ledger .num:not(:last-child) { padding-inline-end: 24px; }
.ledger .src { color: var(--caption); }
.ledger--striped tbody tr:nth-child(even) { background: var(--row-alt); }
.ledger--striped td:first-child, .ledger--striped th:first-child { padding-inline-start: 8px; }

.ledger-line {
  display: flex; flex-wrap: wrap; gap: 4px 20px;
  padding-block: 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.ledger-line span { white-space: nowrap; }
.ledger-line .sep { color: var(--caption); }

/* ---------- Sections and entrances (S18, S24) ---------- */

.sect {
  position: relative;
  padding-block: 96px;
}
.sect::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--ink);
  transform-origin: left;
}
.sect--surface { background: var(--surface); }
.sect--tight { padding-block: 64px; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sect::before {
      animation: rule-draw linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
      animation-timing-function: var(--ease);
    }
    .sect [data-enter="1"], .sect [data-enter="2"] {
      animation: enter linear both;
      animation-timeline: view();
      animation-timing-function: var(--ease);
    }
    .sect [data-enter="1"] { animation-range: entry 0% entry 70%; }
    .sect [data-enter="2"] { animation-range: entry 20% entry 90%; }
    /* Each section animates once (S18, S22): site.js marks a rule or block
       `is-entered` as soon as its own entrance animation reaches its end, and
       the finished state below then holds whatever the reader scrolls next.
       Without the script the view timeline still plays, reversibly. */
    .sect.is-entered::before { animation: none; transform: scaleX(1); }
    .sect [data-enter].is-entered { animation: none; opacity: 1; transform: none; }
  }
}
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons and forms (S21, S28, S29) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding-inline: 28px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 16px; text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--ink); }
.btn--plain { background: transparent; color: var(--ink); }
.btn--plain:hover, .btn--plain:focus-visible { background: var(--surface); color: var(--ink); }

.inkform {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--paper);
  max-width: 640px;
}
.inkform label { display: contents; }
.inkform input {
  flex: 1; min-width: 0;
  min-height: 64px;
  padding-inline: 20px;
  border: 0; background: transparent;
  font: 400 18px/1.2 var(--vm-font-family-ui);
  color: var(--ink);
  caret-color: var(--link);
  transition: background-color var(--t-micro) var(--ease);
}
.inkform input::placeholder { color: var(--caption); }
.inkform input:hover { background: var(--surface); }
.inkform input:focus-visible { outline-offset: -4px; box-shadow: none; }
.inkform button {
  padding-inline: 28px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 16px;
  border-left: 1px solid var(--ink);
  transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.inkform button:hover, .inkform button:focus-visible { background: var(--gold); color: var(--ink); }
.inkform button:focus-visible { outline-color: var(--ink); outline-offset: -5px; }
@media (max-width: 520px) {
  .inkform { flex-direction: column; }
  .inkform button { min-height: 56px; border-left: 0; border-top: 1px solid var(--ink); }
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--ink);
  padding-block: 48px 40px;
}
.foot__grid { row-gap: 32px; align-items: start; }
.foot__brand { grid-column: 1 / span 5; display: flex; gap: 16px; align-items: center; }
.foot__brand svg { width: 64px; height: 64px; flex: none; }
.foot__brand .wordmark { width: auto; height: 18px; }
.foot__links { grid-column: 7 / span 3; display: grid; gap: 8px; }
.foot__links a {
  color: var(--ink); text-decoration: underline 1px transparent; text-underline-offset: 6px;
  transition: text-decoration-color var(--t-micro) var(--ease);
}
.foot__links a:hover, .foot__links a:focus-visible { text-decoration-color: var(--ink); }
.foot__note { grid-column: 10 / span 3; color: var(--caption); }
@media (max-width: 760px) {
  .foot__brand, .foot__links, .foot__note { grid-column: 1 / -1; }
  .foot__brand .wordmark { height: 14px; }
}


/* ======================================================================
   Page layouts
   ====================================================================== */

/* ---------- Launch motion in the hero (S17) ----------
   The keyframes are the logo canvas's, verbatim (plan Appendix). Played once:
   an iteration count of .86 stops the run at the 86 % keyframe, the finished
   mark, and `forwards` holds it there. No loop. */
@keyframes vmV{0%{opacity:0;transform:translateY(-14px)}14%{opacity:1;transform:translateY(0)}86%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(0)}}
@keyframes vmS{0%,20%{transform:scaleY(0)}38%{transform:scaleY(1)}86%{opacity:1;transform:scaleY(1)}100%{opacity:0;transform:scaleY(1)}}
.launch { width: 120px; height: 120px; margin: 0 0 24px -8px; overflow: visible; }
.launch .vm-stems { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .launch .vm-stems { animation: vmS 4.4s cubic-bezier(.2,.7,.2,1) 0s .86 normal forwards; }
  .launch .vm-v { animation: vmV 4.4s cubic-bezier(.2,.7,.2,1) 0s .86 normal forwards; }
}

/* ---------- Heroes ---------- */
.hero { padding-block: 72px 96px; align-items: end; row-gap: 48px; }
.hero__text { grid-column: 1 / span 7; }
.hero__text .display { max-width: 9.5em; }
.hero__text .deck { margin-top: 32px; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero__coin { grid-column: 8 / span 5; }
.hero__coin figcaption { margin-top: 16px; }
.link--button { font: inherit; padding: 0; cursor: pointer; }

/* Home hero coin: resolves to colour as the page scrolls, one parallax layer, at most 4 % (S17, S27). */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__parallax {
      animation: parallax linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 720px;
      animation-timing-function: var(--ease);
    }
    .slot--hero .slot__plate {
      animation: plate-in linear both;
      animation-timeline: scroll(root);
      animation-range: 80px 520px;
      animation-timing-function: var(--ease);
    }
  }
}
@keyframes parallax { from { transform: translateY(0); } to { transform: translateY(-4%); } }

.hero--product .display { max-width: 8.5em; }
.hero--product .hero__coin { grid-column: 9 / span 4; }
.hero--pricing { align-items: start; }
.hero--pricing .inkform { margin-top: 40px; }
.form-note { margin-top: 12px; color: var(--caption); }
.hero__ledger { grid-column: 9 / span 4; align-self: end; }
.hero__ledger td { text-align: right; padding-inline-end: 0; }
.hero--about { padding-block: 72px 64px; }
.hero--about .display { grid-column: 1 / span 10; max-width: 11em; }
.hero--about .deck { grid-column: 1 / span 6; }

/* ---------- Section heads ---------- */
.sect__head { max-width: 760px; margin-bottom: 64px; }
.sect__head .deck { margin-top: 20px; }

/* ---------- Home: raw and slab ---------- */
.split { row-gap: 48px; align-items: start; }
.split__raw { grid-column: 1 / span 7; }
.split__slab { grid-column: 9 / span 4; padding-top: 96px; }
.split .subhead { margin-top: 24px; }
.split .body { margin-top: 12px; }
.split .ledger-line { margin-top: 24px; }

/* ---------- Home: sources ---------- */
.sources { row-gap: 48px; align-items: start; }
.sources__head { grid-column: 1 / span 5; }
.sources__head .headline { margin-bottom: 24px; }
.sources__ledger { grid-column: 7 / span 6; }

/* ---------- Home: the index ---------- */
.index { border-top: 1px solid var(--ink); }
.index__row { border-bottom: 1px solid var(--ink); }
.index__link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: 20px;
  color: var(--ink); text-decoration: none;
  transition: background-color var(--t-micro) var(--ease);
}
a.index__link:hover, a.index__link:focus-visible { background: var(--surface); }
.index__name { grid-column: 1 / span 6; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1; }
.index__series { grid-column: 7 / span 4; color: var(--text-2); }
.index__data { grid-column: 11 / span 2; text-align: right; color: var(--text-2); }

/* ---------- Ink ground band ---------- */
.ink-ground { background: var(--ink); color: var(--paper); }
.ink-ground::before { background: var(--gold); }
.ink-ground .deck { color: var(--paper-80); }
.closing { row-gap: 40px; align-items: end; }
.closing__title { grid-column: 1 / span 7; }
.closing__form { grid-column: 8 / span 5; }
.closing__form .inkform { margin-top: 24px; border-color: var(--paper); background: var(--ink); }
.ink-ground .inkform input { color: var(--paper); }
.ink-ground .inkform input::placeholder { color: rgb(242 238 229 / .62); }
.ink-ground .inkform input:hover { background: rgb(242 238 229 / .06); }
.ink-ground .inkform button { background: var(--gold); color: var(--ink); border-left-color: var(--paper); }
.ink-ground .inkform button:hover, .ink-ground .inkform button:focus-visible { background: var(--pale-gold); }

/* ---------- Product: steps ---------- */
.steps-wrap { row-gap: 48px; align-items: start; }
.steps-wrap__head { grid-column: 1 / span 7; }
.steps-wrap__head .deck { margin-top: 20px; }
.steps { grid-column: 1 / span 6; border-top: 1px solid var(--ink); counter-reset: none; }
.step {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--divider);
}
.step:last-child { border-bottom-color: var(--ink); }
.step__n { grid-row: 1 / span 2; padding-top: 6px; color: var(--text-2); }
.step__t { font-weight: 600; font-size: var(--vm-type-scale-deck); line-height: 1.2; margin-bottom: 8px; }
.steps-wrap__coin { grid-column: 8 / span 5; grid-row: 2; position: sticky; top: calc(var(--bar) + 48px + 24px); }
.steps-wrap__coin .ledger-line { margin-top: 16px; }

/* ---------- Product: slabs ---------- */
.slabs { row-gap: 48px; align-items: start; }
.slabs__head { grid-column: 1 / span 7; }
.slabs__head .deck { margin-top: 20px; }
.slabs__body { grid-column: 1 / span 8; }
.slabs__coin { grid-column: 10 / span 3; grid-row: 1 / span 2; align-self: end; }

/* ---------- Product: a record ---------- */
.record { row-gap: 40px; align-items: start; }
.record__head { grid-column: 1 / span 7; }
.record__head .deck { margin-top: 20px; }
.section-mark { font-size: 18px; line-height: 1; margin-bottom: 16px; }
.record__coins { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.record__ledgers { grid-column: 8 / span 5; display: grid; gap: 40px; }
.record .ledger td { text-align: left; }


/* ---------- Pricing: Q and A ---------- */
.qa-wrap { row-gap: 40px; align-items: start; }
.qa-wrap__title { grid-column: 1 / span 4; }
.qa { grid-column: 6 / span 7; border-top: 1px solid var(--ink); }
.qa__row { display: grid; grid-template-columns: 5fr 7fr; gap: 8px var(--gutter); padding-block: 24px; border-bottom: 1px solid var(--divider); }
.qa__row:last-child { border-bottom-color: var(--ink); }
.qa dt { font-size: var(--vm-type-scale-deck); }

/* ---------- About: the essay ---------- */
.sect--flush { padding-top: 64px; }
.essay { row-gap: 48px; align-items: start; }
.essay__text { grid-column: 1 / span 7; }
.essay__text .subhead-serif { margin-bottom: 32px; max-width: 18em; }
.essay__rules { grid-column: 9 / span 4; position: sticky; top: calc(var(--bar) + 32px); }
.pull {
  margin: 40px 0;
  padding-block: 24px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.pull p {
  font-family: var(--vm-font-family-text);
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.15;
  text-wrap: balance;
}
.next { row-gap: 32px; align-items: start; }
.next__title { grid-column: 1 / span 5; }
.next__body { grid-column: 7 / span 6; }


/* ---------- Phone layouts ---------- */
@media (max-width: 960px) {
  .hero__text, .hero__coin, .hero--product .hero__coin, .hero__ledger,
  .split__raw, .split__slab, .sources__head, .sources__ledger,
  .closing__title, .closing__form, .steps-wrap__head, .steps, .steps-wrap__coin,
  .slabs__head, .slabs__body, .slabs__coin, .record__head, .record__coins, .record__ledgers,
  .qa-wrap__title, .qa, .essay__text, .essay__rules, .next__title, .next__body,
  .hero--about .display, .hero--about .deck {
    grid-column: 1 / -1;
  }
  .steps-wrap__coin, .essay__rules { position: static; grid-row: auto; }
  .slabs__coin { grid-row: auto; max-width: 320px; }
  .split__slab { padding-top: 0; }
}
@media (max-width: 760px) {
  .hero { padding-block: 40px 64px; }
  .launch { width: 72px; height: 72px; margin-bottom: 16px; }
  .sect { padding-block: 64px; }
  .sect__head { margin-bottom: 40px; }
  .index__link { grid-template-columns: 1fr auto; row-gap: 4px; padding-block: 16px; }
  .index__name { grid-column: 1 / -1; }
  .index__series { grid-column: 1; font-size: 15px; }
  .index__data { grid-column: 2; }
  .ledger th, .ledger td { padding: 10px 8px; }
  .slabs .ledger thead { display: none; }
  .slabs .ledger tr { display: grid; grid-template-columns: 1fr; padding-block: 8px; }
  .slabs .ledger th, .slabs .ledger td { padding: 2px 0; border-top: 0 !important; }
  .slabs .ledger tbody tr + tr { border-top: 1px solid var(--divider); }
  .qa__row { grid-template-columns: 1fr; }
}
/* ---------- Icons (S33) ----------
   One hand-drawn set in /img/icons/sprite.svg, 1.5 px stroke on a 24 px grid.
   An icon takes the colour of the text it sits with (currentColor) and changes
   with it over `micro` (S21); it never lifts, grows or rotates, and it is never
   coin gold (S25). Sizes are 16, 20 and 24 px. */
.icon {
  display: inline-block;
  flex: none;
  width: 24px; height: 24px;
  fill: none;
  color: inherit;
  transition: color var(--t-micro) var(--ease);
}
.icon--16 { width: 16px; height: 16px; }
.icon--20 { width: 20px; height: 20px; }
.icon--24 { width: 24px; height: 24px; }
/* Beside a label: centred on the text's x-height, a fixed gap, never replacing it. */
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.with-icon .icon--16 { margin-block: -2px; }
.icon--after { display: inline-block; vertical-align: -0.2em; margin-inline-start: 6px; }
.subhead--icon { display: flex; align-items: center; gap: 12px; }
.subhead--icon .icon { color: var(--text-2); }
.ledger tbody th .icon { color: var(--text-2); }
/* A wrapped label keeps its icon on the first line. */
.ledger tbody th .with-icon { align-items: flex-start; }
.ledger tbody th .with-icon .icon--16 { margin-block: 1px 0; }
.ledger .src .icon--after { color: var(--caption); }
/* Phones: the three-source ledger is already tight at 390 px (approved as is),
   so row icons step aside there and the labels keep the room. */
@media (max-width: 760px) {
  .ledger tbody th .with-icon .icon { display: none; }
}
/* Desktop: every label in a ledger with icons shares one left edge, so a row
   without an icon reserves the icon's 16 px slot and its 8 px gap. */
@media (min-width: 761px) {
  .ledger:has(tbody th .with-icon) th:first-child:not(:has(.with-icon)) { padding-inline-start: 24px; }
  .ledger--striped:has(tbody th .with-icon) th:first-child:not(:has(.with-icon)) { padding-inline-start: 32px; }
}
.cell-cta__icon { transition: color var(--t-micro) var(--ease); }
.link--icon { display: inline-flex; align-items: center; gap: 0; }

/* ---------- Waitlist form states (Task 12 endpoint) ---------- */
/* The honeypot `website`: out of sight and out of the tab order; people never fill it. */
.hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.form-note--joined { color: var(--ink); background: var(--pale-gold); padding: 8px 12px; display: inline-block; }
.form-note--joined[hidden] { display: none; }
.ink-ground .form-note { color: var(--paper-80); }

/* ---------- 404 (a reading page in the same system) ---------- */
.hero--missing { padding-block: 96px 144px; row-gap: 0; }
.hero--missing .display { grid-column: 1 / span 9; max-width: 10em; }
.hero--missing .deck { grid-column: 1 / span 6; margin-top: 32px; }
.hero--missing__home { grid-column: 1 / -1; margin-top: 40px; font-size: var(--vm-type-scale-deck); }
@media (max-width: 960px) {
  .hero--missing .display, .hero--missing .deck { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero--missing { padding-block: 48px 96px; }
}

}

@layer utilities {
/* ---------- Reduced motion (S23) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slot__plate { filter: var(--full-colour); }
  .panel, .panel:popover-open, .slideout, .slideout:popover-open { transform: none; }
  .panel[popover], .slideout[popover] {
    opacity: 0;
    transition:
      opacity var(--t-instant) var(--ease),
      overlay var(--t-instant) allow-discrete,
      display var(--t-instant) allow-discrete;
  }
  .panel:popover-open, .slideout:popover-open { opacity: 1; transition-duration: var(--t-instant); }
  @starting-style { .panel:popover-open, .slideout:popover-open { opacity: 0; } }
  .panel::backdrop, .slideout::backdrop { transition-duration: var(--t-instant); }
  .burger__lines span { transition: none; }
  .launch .vm-stems, .launch .vm-v { animation: none; }
  /* Scroll-driven animations are off and content renders final (S16, S17, S18). */
  .sect::before, .sect [data-enter], .hero__parallax, .slot__plate { animation: none; }
  .sect::before { transform: none; }
  .sect [data-enter] { opacity: 1; transform: none; }
}
}
