/* gather — the galley design tokens. Copied 2026-08-04 from
   torc-art-apps `static/core/tokens.css` (workplan §A5: a deliberate
   inheritance, copied rather than referenced — gather is its own repo).

   The cascade contract carries over: this file is the only place a custom
   property is defined. galley.css and gather.css consume tokens and add
   their own selectors; neither redefines these.

   Two values diverge from the core file, and they are the ratified ones:
   gather-spec.md § Design names ink #211c16 and hairline #cfc8bc, where
   core carries #221d18 and #d4ccbe. The spec is the word for this binary,
   so the spec's numbers are what is set here. --rule follows --ink, as it
   does upstream. */

:root {
  --step--2: clamp(0.78rem, calc(0.74rem + 0.22vw), 0.9rem);
  --step--1: clamp(0.88rem, calc(0.84rem + 0.26vw), 1rem);
  --step-0:  clamp(1rem,    calc(0.94rem + 0.34vw), 1.2rem);
  --step-1:  clamp(1.25rem, calc(1.12rem + 0.62vw), 1.6rem);
  --step-2:  clamp(1.55rem, calc(1.32rem + 1.1vw),  2.2rem);
  --step-3:  clamp(2rem,    calc(1.6rem + 1.8vw),   3rem);

  --space-3xs: clamp(0.25rem, calc(0.2rem + 0.2vw),   0.4rem);
  --space-2xs: clamp(0.4rem,  calc(0.3rem + 0.35vw),  0.6rem);
  --space-xs:  clamp(0.6rem,  calc(0.5rem + 0.45vw),  0.9rem);
  --space-s:   clamp(0.9rem,  calc(0.75rem + 0.6vw),  1.2rem);
  --space-m:   clamp(1.2rem,  calc(1rem + 0.8vw),     1.8rem);
  --space-l:   clamp(1.8rem,  calc(1.4rem + 1.2vw),   2.6rem);
  --space-xl:  clamp(2.6rem,  calc(2rem + 1.6vw),     3.6rem);

  --bg: #f7f4ef;
  --bg-accent: #efe9e1;
  --bg-card: #fffdf9;
  --ink: #211c16;
  --muted: #6a6257;
  --accent: #7d4060;
  --accent-ink: #ffffff;
  --line: #cfc8bc;     /* hairline */
  --rule: #211c16;     /* full-weight rule, same as ink */
  --error: #8a2b2b;
  --error-bg: #f6eaea;
  --notice: #2c5e1f;
  --notice-bg: #e9f3e7;
  --max: 70ch;
  --mono: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "EB Garamond";
  --font-sans: "DM Sans";
}
