/* Hallmark tokens · genre: editorial · theme: Newsprint
 * axes: paper-band=light · display-style=roman-serif · accent-hue=cool(258)
 */

:root {
  color-scheme: light dark;

  /* Colour: cool ink-blue anchor (258), newsprint-grey paper */
  --color-paper:       oklch(97% 0.006 255);
  --color-paper-2:     oklch(94% 0.008 255);
  --color-rule:        oklch(85% 0.008 255);
  --color-neutral:     oklch(58% 0.010 255);
  --color-muted:       oklch(44% 0.010 255);
  --color-ink:         oklch(18% 0.012 255);
  --color-accent:      oklch(52% 0.170 258);
  --color-accent-ink:  oklch(98% 0.006 255);
  --color-focus:       oklch(58% 0.180 258);

  /* Type */
  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-body:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --text-xs:      0.8rem;
  --text-sm:      0.9rem;
  --text-base:    1.0625rem;
  --text-md:      1.25rem;
  --text-lg:      1.5625rem;
  --text-xl:      1.9531rem;
  --text-2xl:     2.4414rem;
  --text-display: clamp(2rem, 2.4vw + 1.2rem, 3.0518rem);

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

  --page-gutter: clamp(1rem, 4vw, 1.5rem);
  --measure: 65ch;

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

  --radius-sm: 6px;
  --radius-md: 10px;

  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-paper:      oklch(15% 0.010 255);
    --color-paper-2:    oklch(19% 0.012 255);
    --color-rule:       oklch(30% 0.010 255);
    --color-neutral:    oklch(62% 0.010 255);
    --color-muted:      oklch(74% 0.008 255);
    --color-ink:        oklch(94% 0.006 255);
    --color-accent:     oklch(68% 0.140 258);
    --color-accent-ink: oklch(14% 0.010 255);
    --color-focus:      oklch(72% 0.150 258);
  }
}
