/* =========================================================
   Makai Bookkeeping — styles.css
   1 Tokens · 2 Base · 3 Layout · 4 Components · 5 /components page
   Every component is shown on /components. Raw colors, sizes and
   spacing belong in the tokens; components use the variables.
   ========================================================= */

/* Fonts: self-hosted, subset woff2 built by tools/build_fonts.py (SIL OFL, licenses in assets/fonts/).
   Inter is variable 400–600; Newsreader is the 500 weight with its optical-size axis. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/newsreader.woff2") format("woff2");
}

/* =========================================================
   1. Tokens — the only place raw values live
   ========================================================= */
:root {
  /* Color */
  --ink: #141A24;            /* headings, wordmark, strong text */
  --text: #3D4655;           /* body copy */
  --muted: #5F6778;          /* secondary text; ≥ 4.5:1 on --bg and --paper */
  --line: #E3DCCD;           /* hairlines, warm so they sit on white and paper alike */
  --bg: #FFFFFF;             /* header, hero, and every other section */
  --paper: #F5F0E6;          /* washi: sections alternate white / paper below the hero */
  --paper-line: #DDD3BF;     /* hairlines inside paper sections */
  --footer: #1F3B63;         /* indigo footer */
  --footer-text: #C9D3E0;    /* ≥ 4.5:1 on --footer */
  --accent: #1F3B63;         /* Prussian indigo (Hokusai's blue): buttons, links, the ensō, current-page marker */
  --accent-strong: #0F1E33;  /* night-sea indigo: hover/pressed */
  --seal: #C2412D;           /* shu vermilion: the hanko seal only, never text or buttons */
  --placeholder: #E9E2D3;    /* image placeholder boxes */

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --text-sm: 0.875rem;                                   /* captions, footer, notes */
  --text-base: 1.0625rem;                                /* body */
  --text-lg: 1.1875rem;                                  /* lead paragraphs */
  --text-xl: clamp(1.45rem, 1.3rem + 0.6vw, 1.75rem);    /* h2 */
  --text-2xl: clamp(2rem, 1.7rem + 1.4vw, 2.75rem);      /* inner-page h1 */
  --text-3xl: clamp(2.4rem, 1.9rem + 2.4vw, 3.5rem);     /* home h1 */

  /* Space (4px base, roughly doubling) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section: clamp(4rem, 3rem + 4vw, 6.5rem);           /* gap between two sections */

  /* Widths */
  --measure: 40rem;          /* reading column */
  --wide: 68rem;             /* header, footer, two-column blocks */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4rem;

  /* Radii */
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;      /* buttons */
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.7;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); line-height: 1.1; }
h2 { font-size: var(--text-xl); line-height: 1.25; }
h3 { font-size: var(--text-lg); line-height: 1.35; }
p, li { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { padding-left: 1.2rem; }
li::marker { color: var(--muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-2); color: #fff; }

/* =========================================================
   3. Layout
   One left edge for everything: .wrap sets it, .measure keeps
   text to a readable width inside it.
   ========================================================= */
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }

/* Sections: each carries half the gap above and below, so two
   sections in a row are always one --section apart. */
.section { padding-block: calc(var(--section) * 0.7); }
/* Below the white hero, sections alternate paper / white. Pages list their sections in order in <main>.
   Paper sections are sheets of washi laid on the white page, like a gyotaku print on its mount:
   deckled top and bottom edges with a faint warm shadow, and a light grain inside
   (assets/paper-*.svg, generated by brand/wave-explorations/_src/site_logo.py). */
main > section:nth-of-type(even) {
  --line: var(--paper-line);
  --edge: 24px;              /* height of the edge strips; the torn line sits in the middle */
  position: relative; isolation: isolate;
  background:
    url("assets/paper-top.svg") left top / 600px var(--edge) repeat-x,
    url("assets/paper-bottom.svg") left bottom / 700px var(--edge) repeat-x,
    linear-gradient(var(--paper), var(--paper)) center / 100% calc(100% - 2 * var(--edge)) no-repeat;
}
main > section:nth-of-type(even)::before {
  content: ""; position: absolute; inset: calc(var(--edge) / 2 + 3px) 0; z-index: -1; pointer-events: none;
  background: url("assets/paper-grain.svg") 0 0 / 240px 240px;
}
/* A paper section that ends the page runs straight into the footer: no bottom edge */
main > section:nth-of-type(even):last-of-type {
  background:
    url("assets/paper-top.svg") left top / 600px var(--edge) repeat-x,
    linear-gradient(var(--paper), var(--paper)) bottom / 100% calc(100% - var(--edge)) no-repeat;
}
main > section:nth-of-type(even):last-of-type::before { inset: calc(var(--edge) / 2 + 3px) 0 0; }
.section-head { margin-bottom: var(--space-6); }
.section-head > * + *, .prose > * + * { margin-top: var(--space-4); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-3); }
.prose > * + h2 { margin-top: var(--space-7); }
.prose > * + h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { display: grid; gap: var(--space-2); }
.lead { font-size: var(--text-lg); line-height: 1.6; }
.note { font-size: var(--text-sm); color: var(--muted); }

/* Pull quote: a ruled line, as on deloselder.com */
blockquote { padding-left: var(--space-5); border-left: 3px solid var(--line); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.5; color: var(--ink); }
blockquote footer { margin-top: var(--space-3); font-family: var(--font-body); font-size: var(--text-sm); color: var(--muted); }

/* =========================================================
   4. Components
   ========================================================= */

/* ---- Buttons and links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0.65rem 1.15rem; border: 1px solid var(--accent); border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover, .btn:active { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn--secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--secondary:hover, .btn--secondary:active { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.actions + .note { margin-top: var(--space-3); }
.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-bar { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
/* Logo: ensō + MAKAI in Cinzel, outlined to SVG (src/partials/logo.html, generated by
   brand/wave-explorations/_src/site_logo.py). The mark takes --accent, the letters currentColor. */
.wordmark { display: inline-flex; color: var(--ink); text-decoration: none; margin-right: auto; }
.wordmark:hover { color: var(--ink); }
.logo { display: block; height: 1.9rem; width: auto; }
.logo-mark { color: var(--accent); }
.wordmark--small .logo { height: 1.5rem; }
.nav-list { display: flex; gap: var(--space-1); list-style: none; padding: 0; }
.nav-link { display: block; padding: var(--space-2) var(--space-3); color: var(--text); font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap; text-underline-offset: 8px; }
.nav-link:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.nav-link { position: relative; }
/* Current page: a small brush stroke that settles into a line (the wave-to-ledger swash) */
.nav-link[aria-current] { color: var(--ink); }
.nav-link[aria-current]::after { content: ""; position: absolute; left: var(--space-2); right: var(--space-2); bottom: -2px; height: 9px;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yIDAgNjQgMTAiPjxwYXRoIGQ9Ik0wLjMxLDUuNTcgQzAuNjIsNS40NSAxLjM0LDUuMDggMS44NSw0LjkxIEMyLjM2LDQuNzMgMi44Miw0LjYyIDMuMzgsNC41MiBDMy45NCw0LjQyIDQuNjMsNC4zNSA1LjIxLDQuMzEgQzUuOCw0LjI3IDYuMzIsNC4yNCA2LjksNC4yOSBDNy40Nyw0LjM0IDcuNzEsNC4zNSA4LjY1LDQuNjIgQzkuNiw0Ljg5IDExLjU3LDUuNTggMTIuNTgsNS44OSBDMTMuNTgsNi4yIDEzLjk4LDYuMzEgMTQuNyw2LjQ2IEMxNS40MSw2LjYxIDE2LjE1LDYuNzIgMTYuODcsNi43OSBDMTcuNTksNi44NyAxNy40OCw2LjkyIDE5LjAxLDYuODkgQzIwLjU0LDYuODUgMjIuMzcsNi42NSAyNi4wNCw2LjU4IEMyOS43LDYuNTEgMzcuOTIsNi41MyA0MSw2LjQ4IEM0NC4wOCw2LjQyIDQyLjI1LDYuNDQgNDQuNSw2LjI2IEM0Ni43NSw2LjA4IDUxLjkyLDUuNTggNTQuNSw1LjQgQzU3LjA4LDUuMjIgNTkuMDcsNS4yMyA2MCw1LjIgQzYwLjkzLDUuMTYgNjAuMDYsNS4yIDYwLjEsNS4xNyBDNjAuMTMsNS4xNCA2MC4xOCw1LjA0IDYwLjIsNSBDNjAuMjEsNC45NiA2MC4yLDQuOTMgNjAuMTcsNC45IEM2MC4xNCw0Ljg3IDYwLjk0LDQuODYgNjAsNC44IEM1OS4wNiw0Ljc1IDU3LjA4LDQuNzggNTQuNSw0LjYgQzUxLjkyLDQuNDIgNDYuODMsMy45MiA0NC41LDMuNzQgQzQyLjE3LDMuNTYgNDMuNDIsMy41NSA0MC41LDMuNTEgQzM3LjU4LDMuNDYgMjkuNjYsMy40NSAyNi45OCwzLjQ1IEMyNC4zLDMuNDYgMjUuNjgsMy40NyAyNC40MywzLjUzIEMyMy4xOCwzLjU5IDIwLjY4LDMuNzkgMTkuNDYsMy44MyBDMTguMjQsMy44OCAxNy43NSwzLjgzIDE3LjEzLDMuNzkgQzE2LjUyLDMuNzYgMTYuMjIsMy43IDE1Ljc2LDMuNjMgQzE1LjMsMy41NSAxNS4yNiwzLjU4IDE0LjM3LDMuMzMgQzEzLjQ4LDMuMDkgMTEuMzQsMi40MSAxMC40MSwyLjE1IEM5LjQ5LDEuODggOS4yNSwxLjg0IDguOCwxLjc0IEM4LjM0LDEuNjQgOC4wNSwxLjYgNy42OCwxLjU2IEM3LjMsMS41MiA2LjkxLDEuNDkgNi41MywxLjQ4IEM2LjE0LDEuNDggNS43NSwxLjQ5IDUuMzYsMS41NCBDNC45OCwxLjYgNC41OSwxLjY4IDQuMjIsMS44IEMzLjg1LDEuOTIgMy40OSwyLjA5IDMuMTQsMi4yNiBDMi43OSwyLjQzIDIuNjksMi40OSAyLjEyLDIuODUgQzEuNTQsMy4yMSAwLjE0LDQuMTMgLTAuMzEsNC40MyBDLTAuNzYsNC43MyAtMC41LDQuNTcgLTAuNTUsNC42NiBDLTAuNjEsNC43NSAtMC42NSw0Ljg3IC0wLjY1LDQuOTggQy0wLjY1LDUuMDkgLTAuNjIsNS4yMSAtMC41Nyw1LjMxIEMtMC41Miw1LjQxIC0wLjQzLDUuNSAtMC4zNCw1LjU1IEMtMC4yNSw1LjYxIC0wLjEzLDUuNjUgLTAuMDIsNS42NSBDMC4wOSw1LjY1IDAsNS42OSAwLjMxLDUuNTcgWiIgZmlsbD0iIzFGM0I2MyIvPjwvc3ZnPg==") center / 100% 100% no-repeat; }
.nav-toggle { display: none; }

/* Phones and small tablets: wordmark · CTA · menu button. The CTA never hides.
   Without JS (.js absent) the nav simply wraps onto its own row. */
@media (max-width: 52rem) {
  .header-bar { flex-wrap: wrap; gap: 0 var(--space-3); min-height: 0; padding-block: 10px; } /* 44px controls + 2×10px = --header-h */
  .header-cta { min-height: 44px; }
  .site-nav { order: 3; width: 100%; }
  .nav-list { flex-wrap: wrap; }
  .js .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.2s, background-color 0.2s; }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; }
  .nav-toggle-icon::before { transform: translateY(-6px); }
  .nav-toggle-icon::after { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(0) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-2px) rotate(-45deg); }

  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav { display: block; padding-bottom: var(--space-4); }
  .js .site-header.is-open { border-bottom-color: var(--line); }
  .js .nav-list { flex-direction: column; }
  .js .nav-link { padding: var(--space-3) 0; font-size: var(--text-base); border-top: 1px solid var(--line); }
  .js .nav-link[aria-current] { box-shadow: inset 3px 0 var(--accent); padding-left: var(--space-3); }
  .js .nav-link[aria-current]::after { content: none; }
}

/* ---- Hero ----
   Same skeleton on every page: optional kicker, h1, lead, optional actions.
   Home only changes the h1 size and adds actions. */
.hero { position: relative; isolation: isolate; padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); padding-bottom: calc(var(--section) / 2); }
/* Seigaiha tide: the wave-scale pattern rising from the bottom-right corner and fading out
   (assets/tide.svg, generated by brand/wave-explorations/_src/site_logo.py) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/tide.svg") right bottom / auto 100% no-repeat; }
.hero--home { padding-bottom: var(--section); }
@media (max-width: 48rem) {
  .hero::before { background-size: auto 55%; }
}
.hero .lead { margin-top: var(--space-5); }
.hero--home h1 { font-size: var(--text-3xl); line-height: 1.05; }
.kicker { margin-bottom: var(--space-3); font-size: var(--text-sm); font-weight: 500; color: var(--muted); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Ledger: ruled rows for services, prices, facts ---- */
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.ledger > li { border-bottom: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-5); align-items: baseline; padding-block: var(--space-4); color: inherit; text-decoration: none; }
a.ledger-row { grid-template-columns: 1fr auto 1rem; margin-inline: calc(-1 * var(--space-3)); padding-inline: var(--space-3); border-radius: var(--radius); transition: background-color 0.15s; }
a.ledger-row::after { content: "→"; color: var(--muted); }
a.ledger-row:hover { background: rgba(20, 26, 36, 0.04); color: inherit; }
a.ledger-row:hover .ledger-title, a.ledger-row:hover::after { color: var(--accent); }
.ledger-title { display: block; color: var(--ink); font-weight: 600; }
.ledger-note { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); }
.ledger-value { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
a.ledger-value { color: var(--accent); }
.ledger + .note { margin-top: var(--space-3); }
@media (max-width: 34rem) {
  .ledger-row, a.ledger-row { grid-template-columns: 1fr auto; }
  .ledger-row:has(.ledger-note) .ledger-value { grid-row: 2; }
}

/* ---- Split: text beside media; stacks on phones ---- */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse > :first-child { order: 2; }
}

/* ---- Image placeholder: a labelled box at a fixed ratio ---- */
.ph {
  display: grid; place-items: center; aspect-ratio: var(--ratio, 4 / 3); padding: var(--space-4);
  background: var(--placeholder); border-radius: var(--radius-lg);
  color: var(--muted); font-size: var(--text-sm); text-align: center;
}
figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted); }

/* ---- Steps: numbered, on a thin vertical rule ---- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-6); }
.steps > li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 50%; background: var(--bg);
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink);
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.125rem - 0.5px); top: 2.5rem; bottom: calc(-1 * var(--space-6) + var(--space-2)); width: 1px; background: var(--line); }
.steps h2, .steps h3 { padding-top: 0.2rem; margin-bottom: var(--space-1); font-size: var(--text-lg); }

/* ---- FAQ: native disclosure, one question per row ---- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details > :not(summary) { padding-bottom: var(--space-5); }

/* ---- Closing CTA: the last section; the white/paper alternation sets it apart ---- */
.cta .lead { margin-top: var(--space-4); }

/* ---- Embed slot (scheduler, map) ---- */
.embed { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.embed .ph { border-radius: 0; }
.embed iframe { display: block; width: 100%; height: 760px; border: 0; }
/* Cal.com sizes its own iframe; reserve space so the page doesn't jump while it loads */
.embed--cal { min-height: 640px; overflow: auto; }
.embed--cal iframe { height: auto; }
.embed + .note { margin-top: var(--space-3); }

/* ---- Footer ---- */
.site-footer { padding-bottom: var(--space-6); background: var(--footer); font-size: var(--text-sm); color: var(--footer-text); }
/* Seigaiha band along the top of the footer, fading down into it (assets/band.svg) */
.wave-band { height: 96px; margin-bottom: var(--space-5); background: url("assets/band.svg") left top / 240px 96px repeat-x; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--paper); }
.site-footer a.wordmark, .site-footer .logo-mark { color: var(--paper); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer-about > * + * { margin-top: var(--space-3); }
.footer-about address { font-style: normal; }
.footer-about address a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.footer-heading { margin-bottom: var(--space-2); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: #fff; letter-spacing: 0; }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: var(--space-1); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-7); }
/* The hanko seal: one small vermilion mark per page, signing the footer like a finished print */
.seal { display: inline-block; width: 1.75rem; height: 1.75rem; vertical-align: middle; transform: rotate(-3deg); }
.signoff { display: flex; align-items: center; gap: var(--space-3); }
@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { max-width: 22rem; }
}

/* =========================================================
   5. /components reference page only
   ========================================================= */
.specimen { padding-block: var(--space-6); border-top: 1px dashed var(--line); }
.specimen-label { margin-bottom: var(--space-4); font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; color: var(--muted); }
.h1-specimen { font: 500 var(--text-3xl) / 1.05 var(--font-display); color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
.h1-specimen--page { font-size: var(--text-2xl); line-height: 1.1; }
.specimen-frame { width: 390px; max-width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--space-4); list-style: none; padding: 0; font-size: var(--text-sm); }
.swatches li::before { content: ""; display: block; height: 3.5rem; margin-bottom: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: var(--swatch); }
.scale { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.scale li { display: flex; align-items: center; gap: var(--space-4); }
.scale li::before { content: ""; height: 0.75rem; width: var(--size); background: var(--accent); border-radius: 2px; flex: none; }

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