/* aripone.com — Intaglio (Rey, 2026-09-14: "let's use it as the base").
   Everything that does not change with the theme: type, space, layout, components, the engraved
   ornament's styles, motion, and the status colours. Every colour a component uses is a token
   from /assets/theme.css, the one file that holds the palette. Source of truth for the rules:
   /opt/facet/wiki/pages/concepts/visual-system.md. Plain CSS, no build. */

/* ---------- Scales ---------- */
:root {
  --didone: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.125rem, 1.2rem + 4.2vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;
  --fs-denom: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  --fs-numeral: clamp(4.5rem, 2rem + 7.5vw, 9rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --pad: 20px;
  --gutter: var(--s5);
  --section: var(--s8);
  --radius: 2px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms;
  --t-move: 300ms;
}
@media (min-width: 768px) { :root { --pad: 40px; --section: var(--s9); } }
@media (min-width: 1024px) { :root { --pad: 56px; --gutter: var(--s6); --section: var(--s10); } }

/* ---------- Status colours: not theme tokens (Ari, 2026-09-14) ----------
   good, warn and bad mean the same in every theme; tools/theme-check.py keeps them apart for
   colour-blind readers, and the band label text carries the meaning as well. */
:root {
  --good-d: #7FD1B0; --warn-d: #EABB60; --bad-d: #FF9C8C; --warn-bg-d: #3A2C10;
  --good-l: #1C6A50; --warn-l: #7B5409; --bad-l: #B3264F; --warn-bg-l: #F0DDB5;
  --good: var(--good-d); --warn: var(--warn-d); --bad: var(--bad-d); --warn-bg: var(--warn-bg-d);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --good: var(--good-l); --warn: var(--warn-l); --bad: var(--bad-l); --warn-bg: var(--warn-bg-l); color-scheme: light; }
}
:root[data-theme="light"] { --good: var(--good-l); --warn: var(--warn-l); --bad: var(--bad-l); --warn-bg: var(--warn-bg-l); color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Bands: header, hero and contact read the band tokens in both themes ---------- */
.site-header, .hero, .contact {
  --ink: var(--band-ink); --ink-2: var(--band-ink-2); --line: var(--band-line); --link: var(--band-link);
  --accent: var(--band-accent); --accent-hover: var(--band-accent-hover); --accent-ink: var(--band-accent-ink);
  --detail: var(--band-detail); --rosette: var(--band-rosette); --rosette-2: var(--band-rosette-2);
  --glow: var(--band-glow); --glow-2: var(--band-shade);
  --good: var(--good-d); --warn: var(--warn-d); --bad: var(--bad-d); --warn-bg: var(--warn-bg-d);
  color: var(--ink); color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body { position: relative; margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--t-fast) ease, text-decoration-color var(--t-fast) ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--pad), 1280px); margin-inline: auto; }
.skip { position: absolute; left: var(--s4); top: -80px; padding: var(--s2) var(--s3); background: var(--surface); color: var(--link); border: 1px solid var(--edge); z-index: 10; }
.skip:focus { top: var(--s4); }
.num { font-family: var(--didone); font-variant-numeric: lining-nums proportional-nums; font-variation-settings: "opsz" 11; font-weight: 600; }

/* type roles */
h1 { font-family: var(--didone); font-variation-settings: "opsz" 36; font-weight: 600; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-family: var(--didone); font-optical-sizing: auto; font-weight: 500; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-family: var(--didone); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; }
/* Bodoni's display hyphen is a hairline ("big-bang" read as "big bang"); headings carry it at the small optical size */
.hy { font-variation-settings: "opsz" 6; font-weight: 700; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 46ch; }
.lead strong { font-weight: 650; }
.muted { color: var(--ink-2); }

/* chip */
.tc { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.01em; line-height: 1.4; color: var(--ink); background: var(--warn-bg); border: 1px solid var(--warn); border-radius: 2px; padding: 1px var(--s2); vertical-align: middle; white-space: nowrap; font-weight: 500; }
.tc-line { display: block; width: fit-content; max-width: 100%; white-space: normal; }

/* ---------- Ornament: engraved lines drawn by the page ---------- */
.lathe { display: block; width: 100%; height: 40px; color: var(--rosette); }
.lathe path { fill: none; stroke: currentColor; stroke-width: 0.75; vector-effect: non-scaling-stroke; }
.rosette path, .rosette circle { fill: none; vector-effect: non-scaling-stroke; }
.rosette .l1 { stroke: var(--rosette); stroke-width: 0.6; }
.rosette .l2 { stroke: var(--rosette-2); stroke-width: 0.6; }
.rosette g { transform-box: fill-box; transform-origin: 50% 50%; }
.js .rosette .spin-a { animation: spin 150s linear infinite; }
.js .rosette .spin-b { animation: spin 210s linear infinite reverse; }
.js .rosette .spin-c { animation: spin 120s linear infinite; }
.js .rosette .spin-d { animation: spin 180s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cert .corner g { transform-box: view-box; transform-origin: 0 0; } /* viewBox is centred on 0,0 */
.js .cert .corner .spin-e { animation: spin 48s linear infinite; }
.js .cert .corner .spin-f { animation: spin 72s linear infinite reverse; }
.cert .corner .l2 { opacity: 0.45; }
/* the band drifts by exactly one envelope period (1200 units), so the loop has no seam */
.js .lathe .w-l { animation: lathe-l 70s linear infinite; }
.js .lathe .w-r { animation: lathe-r 95s linear infinite; }
@keyframes lathe-l { from { transform: translateX(0); } to { transform: translateX(-1200px); } }
@keyframes lathe-r { from { transform: translateX(-1200px); } to { transform: translateX(0); } }
.offscreen g, .offscreen path { animation-play-state: paused !important; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
:root { --header-h: 118px; }
@media (min-width: 1024px) { :root { --header-h: 76px; } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s6); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--didone); font-weight: 600; font-size: 1.625rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--link); }
.nav { display: flex; gap: var(--s2) var(--s5); font-size: var(--fs-small); font-weight: 500; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; padding: var(--s2) 0; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
@media (max-width: 767px) { .nav { flex-wrap: wrap; gap: 0 var(--s3); width: 100%; font-size: 0.8125rem; overflow: visible; } }
@media (max-width: 379px) { :root { --header-h: 150px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--band); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 60% at 82% 42%, var(--glow) 0%, transparent 70%),
    radial-gradient(60% 80% at 8% 100%, var(--glow-2) 0%, transparent 70%); }
.hero .rosette { position: absolute; z-index: -1; pointer-events: none; width: 150vw; max-width: 980px; aspect-ratio: 1; right: -58vw; top: -8vw; }
.hero .rosette svg { width: 100%; height: 100%; display: block; }
.hero .rosette { -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side, #000 58%, transparent 100%); }
.hero-body { display: grid; gap: var(--s5); padding-block: calc(var(--header-h) + var(--s6)) var(--s7); }
.hero h1 { max-width: 17ch; }
.actions { display: grid; gap: var(--s3); justify-items: start; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: var(--s3) var(--s6); font: inherit; font-weight: 650; font-size: 1.0625rem; letter-spacing: 0.005em; text-decoration: none; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: var(--btn-shadow), inset 0 0 0 3px var(--accent), inset 0 0 0 4px color-mix(in srgb, var(--accent-ink) 35%, transparent); transition: background-color var(--t-fast) ease, transform var(--t-move) var(--ease), box-shadow var(--t-move) var(--ease); }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--btn-shadow), inset 0 0 0 3px var(--accent-hover), inset 0 0 0 4px color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.btn:focus-visible { outline-color: var(--ink); }
.quiet { font-weight: 600; }
.hero-price { display: grid; gap: var(--s1); font-size: var(--fs-small); color: var(--ink-2); padding-top: var(--s4); border-top: 1px solid var(--line); max-width: 46ch; }
.hero-price .row { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.hero-price b { font-family: var(--didone); font-variant-numeric: lining-nums proportional-nums; font-variation-settings: "opsz" 11; font-weight: 600; font-size: 1.375rem; line-height: 1.1; color: var(--ink); }
.hero-price .name { color: var(--ink); font-weight: 600; }
@media (max-width: 767px) {
  .hero-body { gap: var(--s4); padding-block: calc(var(--header-h) + var(--s5)) var(--s6); }
  .btn { width: 100%; }
  .hero-price { padding-top: var(--s3); }
}
@media (min-width: 768px) {
  .hero .rosette { width: 92vw; right: -34vw; top: -10vw; }
  .hero-body { padding-block: calc(var(--header-h) + var(--s8)) var(--s9); }
}
@media (min-width: 1024px) {
  .hero .rosette { width: 78vw; max-width: 1020px; right: -14vw; top: 50%; transform: translateY(-50%); }
  .hero-body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: calc(var(--header-h) + var(--s7)) var(--s9); }
  .hero-body > * { grid-column: 1 / span 8; }
  .hero h1 { max-width: 21ch; }
  .hero .lead { max-width: 52ch; }
  .actions { grid-column: 1 / span 6; align-self: start; }
  .hero-price { max-width: none; grid-column: 7 / -1; align-self: start; border-top: 0; padding-top: 0; padding-left: var(--s5); border-left: 1px solid var(--line); }
}

/* ---------- Certificate and denominations ---------- */
.issue { position: relative; padding-block: var(--section); }
.issue .wrap { display: grid; gap: var(--s8); }
@media (min-width: 1024px) { .issue .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; } .issue .wrap > .cert-col { grid-column: 1 / span 6; } .issue .wrap > .denoms { grid-column: 8 / span 5; } }
@media (min-width: 1280px) { .issue .wrap > .cert-col { grid-column: 1 / span 6; } .issue .wrap > .denoms { grid-column: 8 / -1; } }

.cert { position: relative; display: grid; gap: var(--s5); padding: var(--s6) var(--s5); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow-2); color: var(--ink); transition: transform var(--t-move) var(--ease), box-shadow var(--t-move) var(--ease); }
.cert::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 10px; border: 1px dashed color-mix(in srgb, var(--line) 60%, transparent); pointer-events: none; }
@media (min-width: 768px) { .cert { padding: var(--s7) var(--s7); } }
.cert:hover, .cert:focus-within { transform: translateY(-3px); }
.cert:focus-within { outline: 2px solid var(--link); outline-offset: 4px; }
.cert .corner { position: absolute; width: 56px; height: 56px; background: var(--surface); padding: 6px; z-index: 1; color: var(--detail); }
.cert .corner.tl { top: -20px; left: -20px; border-radius: 50%; }
.cert .corner.br { bottom: -20px; right: -20px; border-radius: 50%; }
.cert .corner svg { width: 100%; height: 100%; display: block; }
.cert .corner path { fill: none; stroke: currentColor; stroke-width: 0.6; opacity: 0.8; vector-effect: non-scaling-stroke; }
.cert .head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s4); flex-wrap: wrap; font-size: var(--fs-small); color: var(--ink-2); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.cert .head .t { font-family: var(--didone); font-style: italic; font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.cert .score-row { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.cert .score { font-family: var(--didone); font-variant-numeric: lining-nums proportional-nums; font-variation-settings: "opsz" 28; font-size: clamp(4rem, 3rem + 3vw, 5.5rem); font-weight: 500; line-height: 0.9; color: var(--detail); }
.cert .score small { font-size: 1.25rem; color: var(--ink-2); font-weight: 400; }
.cert .pill { display: inline-block; padding: 2px var(--s3); border-radius: 999px; font-size: var(--fs-small); font-weight: 650; border: 1px solid currentColor; color: var(--bad); }
/* the pill reads the tool's own band, mapped as the tools map it */
.cert .pill[data-b="exposed"], .cert .pill[data-b="measure"] { color: var(--warn); }
.cert .pill[data-b="strong"], .cert .pill[data-b="sound"], .cert .pill[data-b="ready"], .cert .pill[data-b="nearly"], .cert .pill[data-b="tuning"] { color: var(--good); }
.cert .disclaimer { margin-top: calc(-1 * var(--s3)); font-size: var(--fs-small); color: var(--ink-2); font-style: italic; }
.cert .bars { display: grid; grid-template-columns: 1fr; gap: var(--s2) var(--s6); }
@media (min-width: 480px) { .cert .bars { grid-template-columns: 1fr 1fr; } }
.cert .bar { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s2); font-size: 0.8125rem; color: var(--ink-2); align-items: center; }
.cert .bar b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.cert .track { grid-column: 1 / -1; height: 3px; background: var(--line); overflow: hidden; }
.cert .fill { height: 100%; width: var(--w); background: var(--good); }
.cert .fill[data-l="bad"] { background: var(--bad); }
.cert .fill[data-l="warn"] { background: var(--warn); }
.cert .first { display: grid; gap: var(--s2); font-size: var(--fs-small); }
.cert .first > strong { font-family: var(--didone); font-size: 1.25rem; font-weight: 600; }
.cert .first ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s2); color: var(--ink-2); }
.cert .first ol strong { color: var(--ink); font-weight: 650; }
.cert .go { font-weight: 600; font-size: var(--fs-small); color: var(--link); text-decoration: none; padding-top: var(--s3); border-top: 1px solid var(--line); }
.cert .go::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.cert-col { padding: 20px; }
.cert:hover .go { color: var(--ink); }
.cert .go:focus-visible { outline: none; }

.denoms h2, .denoms h3 { font-size: var(--fs-h3); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 18; padding-bottom: var(--s4); }
.denoms ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--edge); }
.denoms li { display: grid; grid-template-columns: 1fr auto; gap: var(--s2) var(--s5); align-items: end; padding-block: var(--s5); border-bottom: 1px solid var(--line); position: relative; }
.denoms li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.denoms .label { font-size: var(--fs-small); color: var(--ink-2); max-width: 26ch; line-height: 1.45; display: grid; gap: var(--s2); justify-items: start; }
.denoms .price { font-family: var(--didone); font-variant-numeric: lining-nums proportional-nums; font-variation-settings: "opsz" 28; font-size: var(--fs-denom); font-weight: 500; line-height: 0.95; text-align: right; color: var(--ink); letter-spacing: -0.01em; }
.denoms .price .cur { font-size: 0.5em; vertical-align: 0.62em; margin-right: 0.06em; color: var(--detail); }

/* ---------- Editorial sections ---------- */
.sec { padding-block: var(--section); position: relative; }
.issue + .sec, .sec + .sec { padding-top: 0; }
.ed { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .ed { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .ed > .side { grid-column: 1 / span 4; }
  .ed > .main { grid-column: 5 / -1; }
  .ed > .side .stick { position: sticky; top: var(--s7); }
}
.side h2 { max-width: 12ch; }

/* doors: not cards — columns ruled like a ledger */
.doors { display: grid; gap: var(--s7); }
@media (min-width: 768px) { .doors { grid-template-columns: 1fr 1fr; gap: 0; } .door { padding-inline: var(--s6); } .door:first-child { padding-left: 0; border-right: 1px solid var(--line); } .door:nth-child(2) { padding-right: 0; } }
.door { display: grid; gap: var(--s4); align-content: start; }
.door .trigger { font-family: var(--didone); font-style: italic; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.3; color: var(--ink); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.door h3 { color: var(--detail); }
.door p { max-width: 60ch; }
.offer { color: var(--ink-2); }
.offer .num { color: var(--ink); font-size: 1.375rem; font-weight: 600; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-small); font-weight: 600; }
.door.small { grid-column: 1 / -1; margin-top: var(--s7); padding: var(--s6) 0 0; border-top: 1px solid var(--edge); border-right: 0; display: grid; gap: var(--s4) var(--s6); }
@media (min-width: 768px) { .door.small { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .door.small h3 { grid-column: 1; } .door.small > p { grid-column: 1; } .door.small > div { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: var(--s3); justify-items: start; } }

/* method */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--edge); }
.rows li { padding-block: var(--s5); border-bottom: 1px solid var(--line); max-width: 68ch; color: var(--ink-2); }
.rows li { font-size: var(--fs-lead); line-height: 1.5; }
.rows li strong { font-family: var(--didone); font-weight: 600; font-variation-settings: "opsz" 24; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.3; color: var(--ink); }
.rows li .tc-line { margin-top: var(--s2); }

/* proof and the checklist ledger: bands of their own */
.proof, .ledger, .note-band { background: var(--surface-2); padding-block: var(--section); position: relative; overflow: hidden; isolation: isolate; }
.proof .lathe, .ledger .lathe, .note-band .lathe { position: absolute; left: 0; right: 0; top: 0; }
.proof .lead { color: var(--ink-2); max-width: 40ch; margin-top: var(--s4); }
.moments { list-style: none; padding: 0; margin: var(--s8) 0 0; display: grid; gap: var(--s7); }
@media (min-width: 768px) { .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.moment { display: grid; gap: var(--s4); align-content: start; padding-top: var(--s4); border-top: 1px solid var(--edge); }
.numeral { font-family: var(--didone); font-variation-settings: "opsz" 28; font-variant-numeric: lining-nums; font-size: var(--fs-numeral); font-weight: 600; line-height: 0.85; color: var(--detail); letter-spacing: -0.03em; display: flex; align-items: flex-start; gap: 0.12em; }
.numeral .was { font-size: 0.36em; line-height: 1; color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1px; margin-top: 0.2em; }
.numeral .unit { font-size: 0.4em; line-height: 1; margin-top: 0.15em; }
.numeral .was small, .numeral .unit { font-variant: normal; }
.numeral .was small { font-size: 0.6em; margin-left: 0.04em; }
.numeral .to { flex: none; width: 0.42em; height: auto; align-self: center; margin-inline: 0.04em 0.08em; color: var(--ink-2); }
.numeral .unit-word { align-self: flex-end; margin: 0 0 0.12em 0.1em; font-family: var(--sans); font-size: max(0.875rem, 0.14em); font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--ink-2); max-width: 9ch; }
.moment p { max-width: 36ch; }
.slot { margin-top: var(--s8); padding: var(--s5); border: 1px dashed var(--edge); color: var(--ink-2); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }

/* ---------- Practice pages: start section, offer rows, checklist ledger ---------- */
.start-copy { display: grid; gap: var(--s5); align-content: start; }
.start-copy h2 { max-width: 20ch; }
.start-copy > p { max-width: 58ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.start-copy .denoms { margin-top: var(--s5); }
@media (min-width: 1024px) {
  .start .wrap > .start-copy { grid-column: 1 / span 6; }
  .start .wrap > .cert-col { grid-column: 8 / -1; }
}
/* the certificate's column is narrow between 1024 and 1279: one column of bars keeps area names on one line */
@media (min-width: 1024px) and (max-width: 1279px) { .start .cert .bars { grid-template-columns: 1fr; } }

.offers { display: grid; border-top: 1px solid var(--edge); }
.offer-row { display: grid; gap: var(--s3); padding-block: var(--s6); border-bottom: 1px solid var(--line); }
.offer-row h2 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; color: var(--detail); max-width: 18ch; }
.offer-row p { max-width: 66ch; color: var(--ink-2); }
.offer-row .num { color: var(--ink); font-size: 1.25rem; }
@media (min-width: 1024px) {
  .offer-row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s3); padding-block: var(--s7); }
  .offer-row h2 { grid-column: 1 / span 4; grid-row: span 2; }
  .offer-row > p { grid-column: 5 / -1; }
}

.ledger .lead { color: var(--ink-2); max-width: 56ch; }
.ledger .note { margin-top: var(--s4); font-size: var(--fs-small); color: var(--ink-2); }
.ledger-grid { display: grid; gap: var(--s7); margin-top: var(--s8); align-items: start; }
@media (min-width: 768px) { .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); } }
@media (min-width: 1280px) { .ledger-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ledger .area { display: grid; gap: var(--s2); align-content: start; }
.ledger .area h3 { font-size: 1.375rem; font-style: italic; font-weight: 500; line-height: 1.25; padding-bottom: var(--s3); border-bottom: 1px solid var(--edge); }
.ledger .items { list-style: none; margin: 0; padding: 0; display: grid; }
.ledger .items li { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: var(--s2); padding-block: var(--s3); border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.5; }
.ledger .items .n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.8125rem; color: var(--detail); padding-top: 1px; }
.ledger code { font-family: var(--mono); font-size: 0.9em; }
.ledger .tail { margin-top: var(--s7); font-size: var(--fs-small); color: var(--ink-2); }

/* ---------- Performance, About, Contact (2026-09-14) ---------- */
.cert .verdict { font-family: var(--didone); font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; color: var(--detail); }
.cert .first p { color: var(--ink-2); max-width: 60ch; }
.note-sec .statement { font-family: var(--didone); font-size: var(--fs-h3); line-height: 1.4; max-width: 40ch; }
/* the statement and the start section read as one passage: no double section gap between them */
.note-sec { padding-bottom: 0; }
.note-sec + .issue { padding-top: var(--s8); }
.prose.plain p:first-child { font-family: var(--sans); font-size: var(--fs-lead); line-height: 1.6; }
.prose.plain p { color: var(--ink-2); }
.note-band .prose p { color: var(--ink); }
.hero-short .hero-body { padding-bottom: var(--s8); }
.hero-fill { min-height: 100svh; display: grid; align-content: center; }
.hero .reach { font-size: var(--fs-lead); }

.book { position: relative; padding-block: var(--section); }
.book .wrap { display: grid; gap: var(--s8); }
.book .orn { display: none; }
@media (min-width: 1024px) {
  .book .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .book .form-col { grid-column: 1 / span 7; }
  .book .orn { display: block; grid-column: 9 / -1; }
  .book .orn .rosette { width: 100%; aspect-ratio: 1; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); mask-image: radial-gradient(closest-side, #000 60%, transparent 100%); }
  .book .orn .rosette svg { width: 100%; height: 100%; display: block; }
}
.book-form, .results-form { position: relative; display: grid; gap: var(--s5); padding: var(--s6) var(--s5); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow-2); }
.book-form::before, .results-form::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
@media (min-width: 768px) { .book-form, .results-form { padding: var(--s7); } }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field .opt { font-weight: 400; color: var(--ink-2); margin-left: var(--s2); }
.field input, .field textarea { position: relative; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--edge); border-radius: var(--radius); padding: var(--s3) var(--s4); width: 100%; min-height: 48px; }
.field textarea { min-height: 5.5em; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-color: var(--link); }
.consent { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: var(--fs-small); color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-state { display: none; position: relative; padding: var(--s4) var(--s5); border: 1px solid var(--edge); background: var(--surface-2); color: var(--ink); }
.form-state:target, .form-state.is-shown { display: grid; gap: var(--s3); }
.form-state[data-kind="error"] { border-color: var(--bad); }
.form-state .tc { white-space: normal; }
.form-state:focus { outline: 2px solid var(--link); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--edge); box-shadow: none; }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--link); box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Self-check tools (stage 4, 2026-09-14) ----------
   Every id and class the scoring scripts write is kept; these rules only style them, scoped to .tool. */
.tool .hero-body .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3) var(--s5); font-size: var(--fs-small); color: var(--ink-2); }
.tool .meta button { background: none; border: 0; padding: var(--s2) 0; font: inherit; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color var(--t-fast) ease; }
.tool .meta button:hover { color: var(--ink); }
.tool .meta button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.tool-body { position: relative; padding-top: var(--s8); }
.tool-body > .wrap { display: grid; gap: var(--s8); }
.tool #form { display: grid; gap: var(--s8); }
.tool .area { display: grid; gap: var(--s4); }
.tool .area h2 { display: flex; align-items: baseline; gap: var(--s3); max-width: none; font-size: var(--fs-h3); font-style: italic; font-weight: 500; line-height: 1.25; padding-bottom: var(--s3); border-bottom: 1px solid var(--edge); }
.tool .area h2 .n { font-family: var(--mono); font-style: normal; font-size: 0.875rem; color: var(--detail); }
@media (min-width: 1024px) {
  .tool .area { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .tool .area h2 { grid-column: 1 / span 4; position: sticky; top: var(--s6); border-bottom: 0; }
  .tool .area .q { grid-column: 5 / -1; }
}
.tool .q { position: relative; display: grid; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: border-color var(--t-fast) ease; }
.tool .q:focus-within { border-color: var(--edge); }
.tool .q.w3 { border-color: var(--edge); }
.tool .q.w3::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }
.tool .q p { position: relative; margin: 0; font-weight: 600; max-width: 68ch; }
.tool .q .why { display: block; margin-top: var(--s2); font-weight: 400; color: var(--ink-2); font-size: var(--fs-small); }
.tool .q .k { font-family: var(--mono); font-size: 0.8125rem; color: var(--detail); }
.tool .seg { position: relative; display: flex; flex-wrap: wrap; gap: var(--s2); }
.tool .seg label { position: relative; }
.tool .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tool .seg span { display: inline-block; min-height: 44px; padding: var(--s2) var(--s4); line-height: 26px; border: 1px solid var(--edge); border-radius: 999px; font-size: var(--fs-small); color: var(--ink); cursor: pointer; user-select: none; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease; }
.tool .seg span:hover { border-color: var(--link); }
.tool .seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.tool .seg input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }

/* the result: a panel with a rule edge; sticky at the bottom of the window from 1024 px, in the flow below */
.tool .result { position: relative; display: grid; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow-2); }
.tool .result::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-top: 1px solid var(--rule-edge); border-bottom: 1px solid var(--rule-edge-2); pointer-events: none; }
@media (min-width: 1024px) { .tool .result { position: sticky; bottom: 0; z-index: 2; max-height: 62vh; overflow: auto; padding: var(--s5) var(--s6); border-bottom: 0; } }
.tool .score-row, .tool .verdict { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.tool .result .score { font-family: var(--didone); font-variation-settings: "opsz" 28; font-variant-numeric: lining-nums proportional-nums; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 500; line-height: 0.9; color: var(--detail); }
.tool .result .score small { font-size: 1.125rem; font-weight: 400; color: var(--ink-2); }
.tool .verdict h2 { max-width: none; font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; color: var(--detail); }
.tool .band { display: inline-block; padding: 2px var(--s3); border-radius: 999px; font-size: var(--fs-small); font-weight: 650; border: 1px solid currentColor; color: var(--bad); }
.tool .band[data-b="strong"], .tool .band[data-b="sound"], .tool .band[data-b="ready"], .tool .band[data-b="nearly"], .tool .band[data-b="tuning"] { color: var(--good); }
.tool .band[data-b="exposed"], .tool .band[data-b="measure"] { color: var(--warn); }
.tool .band[data-b="none"] { color: var(--ink-2); }
.tool .progress { margin-left: auto; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tool .result .bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--s2) var(--s5); }
.tool .result .bar { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s2); align-items: center; font-size: 0.8125rem; color: var(--ink-2); }
.tool .result .bar b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.tool .result .track { grid-column: 1 / -1; height: 3px; background: var(--line); overflow: hidden; }
.tool .result .fill { height: 100%; width: 0; background: var(--good); transition: width var(--t-move) var(--ease); }
.tool .result .fill[data-l="bad"] { background: var(--bad); }
.tool .result .fill[data-l="warn"] { background: var(--warn); }
.tool .first, .tool .block { display: grid; gap: var(--s2); }
.tool .first h3, .tool .block h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.tool .first ol, .tool .block ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s1); font-size: var(--fs-small); }
.tool .first li strong { font-weight: 650; }
.tool .first li .r, .tool .block p { color: var(--ink-2); }
.tool .block p { margin: 0; max-width: 72ch; font-size: var(--fs-small); }
.tool .result .note { margin: 0; max-width: 78ch; font-size: var(--fs-small); color: var(--ink-2); }
.tool .toast { font-size: var(--fs-small); color: var(--good); }

.results-email { position: relative; padding-block: var(--s8) var(--section); }
.results-email > .wrap { display: grid; gap: var(--s6); }
@media (min-width: 1024px) {
  .results-email > .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .results-email .form-col { grid-column: 1 / span 7; }
  .results-email .tool-notes { grid-column: 9 / -1; padding-top: var(--s7); }
}
.results-form h2 { font-size: var(--fs-h3); }
.results-form textarea { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; min-height: 12em; }
.tool .tool-notes { font-size: var(--fs-small); color: var(--ink-2); max-width: 72ch; }

/* about */
.prose { display: grid; gap: var(--s4); }
.prose p { max-width: 62ch; font-size: var(--fs-lead); line-height: 1.6; }
.prose p:first-child { font-family: var(--didone); font-size: var(--fs-h3); line-height: 1.35; }

/* contact band */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--band); padding-block: var(--section); border-top: 1px solid var(--line); }
.contact .rosette { position: absolute; z-index: -1; width: 720px; aspect-ratio: 1; left: 50%; bottom: -520px; transform: translateX(-50%); pointer-events: none; }
.contact .rosette svg { width: 100%; height: 100%; display: block; }
.contact .inner { display: grid; gap: var(--s5); justify-items: center; text-align: center; }
.contact h2 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); max-width: 14ch; }
.contact .lead { color: var(--ink-2); max-width: 40ch; }
.contact .reach { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s6); font-size: var(--fs-lead); }
@media (min-width: 1024px) { .contact .rosette { width: 1100px; bottom: -820px; } }

/* footer */
.site-footer { background: var(--surface-2); padding-block: var(--s7); font-size: var(--fs-small); color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: var(--s4) var(--s6); }
.site-footer .firm { display: grid; gap: var(--s1); }
.site-footer .firm b { font-family: var(--didone); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }

/* no script: an engraved ring field stands in for the rosette so the hero keeps its plane */
html:not(.js) .hero .rosette { background: repeating-radial-gradient(circle at center, transparent 0 7px, var(--rosette) 7px 8px); border-radius: 50%; opacity: 0.5; }

/* ---------- The gold line where a band meets the page (Rey, 2026-09-14) ----------
   Two engraved rules: the strong one on the band's edge, a faint one 3 px inside it. */
.hero::after, .proof::after, .contact::after, .proof::before, .contact::before, .ledger::before, .ledger::after, .note-band::before, .note-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 4px; pointer-events: none; z-index: 1;
}
.hero::after, .proof::after, .contact::after, .ledger::after, .note-band::after { bottom: 0; border-bottom: 1px solid var(--band-edge); border-top: 1px solid var(--band-edge-2); }
.proof::before, .contact::before, .ledger::before, .note-band::before { top: 0; border-top: 1px solid var(--band-edge); border-bottom: 1px solid var(--band-edge-2); }
/* navy bands keep gold in both modes; the proof band follows the page, so it takes the rule tokens */
.proof::before, .proof::after, .ledger::before, .ledger::after, .note-band::before, .note-band::after { --band-edge: var(--rule-edge); --band-edge-2: var(--rule-edge-2); }
.contact { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .btn:hover, .cert:hover, .cert:focus-within { transform: none; }
}
