/* torc.art core — the galley design tokens, defined once for every
   binary. The cascade contract: this file is the only place a custom
   property is defined; app stylesheets consume tokens and add their own
   selectors, never redefine these. The site manifest's theme block
   overrides --accent/--bg/--font-serif/--font-sans after all links
   (see docs/theming.md). */

: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: #221d18;
  --muted: #6a6257;
  --accent: #7d4060;
  --accent-ink: #ffffff;
  --line: #d4ccbe;     /* hairline */
  --rule: #221d18;     /* 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";
}
