/* Hallmark · tokens · theme: Terminal
 * axes — paper band: dark (L 15.5%) · display style: mono · accent hue: amber phosphor (74°)
 * Anchor hue 74. Every neutral carries a trace of it, so the greys read warm rather than
 * clinical. Derived from the TUI palette in src/theme.ts — the lightness ramp is preserved
 * (18% / 32% / 62% / 94%); the hue is rotated from zinc-cool to phosphor-warm so the
 * neutrals agree with the accent instead of fighting it.
 */

:root {
  /* ── Colour ─────────────────────────────────────────────── */
  --color-paper:       oklch(15.5% 0.009 74);  /* base ground   */
  --color-paper-2:     oklch(19%   0.010 74);  /* figures, dock */
  --color-paper-3:     oklch(24%   0.011 74);  /* hover lift    */
  --color-rule:        oklch(32%   0.010 74);  /* decorative hairline           */
  --color-rule-strong: oklch(50%   0.012 74);  /* interactive boundary — 3.3:1  */
  --color-neutral:     oklch(62%   0.009 74);  /* tertiary text — 5.1:1         */
  --color-muted:       oklch(72%   0.008 74);  /* secondary text — 7.0:1        */
  --color-ink:         oklch(94%   0.007 80);  /* primary text — 12.9:1         */
  --color-accent:      oklch(80%   0.148 74);  /* amber phosphor — 8.8:1        */
  --color-accent-dim:  oklch(62%   0.110 74);
  --color-accent-ink:  oklch(15.5% 0.020 74);  /* text ON accent — 8.8:1        */
  --color-focus:       oklch(84%   0.150 74);

  /* ── Type ───────────────────────────────────────────────── */
  --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;

  /* Major third (1.25) from a 16px base. */
  --text-xs:   0.64rem;
  --text-sm:   0.8rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   1.9531rem;
  --text-2xl:  2.4414rem;
  /* Mono sets ~25% wider than a sans at the same size, so the display ceiling sits
     below the 5.25rem default. Cap is a maximum, not a target. */
  --text-display:   clamp(2rem, 3.2vw + 0.9rem, 3.5rem);
  --text-display-s: clamp(1.65rem, 2vw + 0.9rem, 2.4rem);

  /* ── Space — 4pt scale ──────────────────────────────────── */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  /* ── Motion ─────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long:  420ms;

  /* Optical inline padding — em-relative, so it tracks the type it sits in
     rather than the rem-based layout scale. */
  --space-code-y: 0.12em;
  --space-code-x: 0.4em;

  /* ── Line & shape ───────────────────────────────────────── */
  --rule-hair:  1px;
  --radius-none: 0;
  --radius-xs:   2px;
  --radius-full: 50%;
  --size-pin:    1.6rem;   /* callout pin / legend numeral */
  --hit-min:     44px;     /* WCAG AA coarse-pointer floor */

  /* ── Measure & gutter ───────────────────────────────────── */
  --measure:      62ch;
  --page-gutter:  clamp(1.15rem, 4vw, 3.5rem);
  --page-max:     72rem;
  --page-max-wide: 84rem;

  /* ── Elevation ──────────────────────────────────────────── */
  --z-base:     1;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    400;
  --z-toast:    500;
  --z-tooltip:  600;
}
