/* Hallmark · tokens · Simple Backtest
 * theme: custom · vibe: "daylight instrument, ruled paper, one red pen"
 * paper: oklch(0.978 0.006 75) · accent: oklch(0.505 0.185 32)
 * display: JetBrains Mono · body: Familjen Grotesk
 * axes: light / mono / warm
 *
 * Every colour and font in styles.css references a token from this file.
 * Contrast verified: ink/paper 16.5 · ink-2/paper 8.9 · muted/paper 4.97
 * muted/paper-2 4.64 · accent/paper 6.05 · paper/accent 6.05 · focus/paper 6.19
 */

:root {
  /* Colour — warm-tinted neutrals, one accent, no pure black or white */
  --color-paper: oklch(0.978 0.006 75);
  --color-paper-2: oklch(0.955 0.008 72);
  --color-paper-3: oklch(0.922 0.01 72);
  --color-ink: oklch(0.215 0.014 55);
  --color-ink-2: oklch(0.395 0.013 55);
  --color-muted: oklch(0.53 0.012 58);
  --color-rule: oklch(0.845 0.01 68);
  --color-rule-2: oklch(0.912 0.008 70);
  --color-accent: oklch(0.505 0.185 32);
  --color-accent-ink: oklch(0.985 0.006 75);
  --color-focus: oklch(0.5 0.19 32);

  /* Type — two families: mono carries display and code, sans carries prose */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: var(--font-mono);
  --font-body: "Familjen Grotesk", "Arial Narrow", Arial, sans-serif;

  /* Scale — 1.25 major third from a 16px body */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-display-s: clamp(1.5rem, 1.8vw + 0.85rem, 2.25rem);
  --text-display: clamp(1.75rem, 3vw + 0.85rem, 3.25rem);

  /* Space — 4pt derived */
  --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;

  /* Rules and radius — an instrument is ruled, not rounded */
  --rule-hair: 1px;
  --rule-bold: 2px;
  --radius-sm: 2px;
  --radius-md: 3px;

  /* 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;

  /* Layout */
  --page-max: 78rem;
  --page-gutter: clamp(1.125rem, 4vw, 3rem);

  /* Depth */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
}
