/* ==========================================================================
   Design tokens
   Every colour, font and size used on the site comes from here.
   Palette: black, white and one lime-green accent. Nothing else carries colour
   (form errors keep a red so they read as errors).
   Light values live on :root; dark values are redefined twice so that both
   the OS setting and the in-page theme toggle work.
   ========================================================================== */

:root {
  /* colour */
  --paper: #FFFFFF;            /* page background */
  --paper-2: #F1F1F1;          /* raised surfaces, canvas backgrounds */
  --ink: #0A0A0A;              /* text and strong lines */
  --ink-soft: #5C5C5C;         /* secondary text */
  --line: rgba(10, 10, 10, .1); /* hairlines and the drafting grid */
  --lime: #A3E635;             /* the accent as a fill: discs, bars, hover wipes, selection */
  --on-accent: #0A0A0A;        /* text on lime fills */
  --accent: #4D7C0F;           /* the accent as text and thin lines: lime deepened so it reads on white (5:1) */
  --danger: #C2362B;           /* form errors */

  /* type */
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-hero: clamp(3rem, .5rem + 7.6vw, 8.5rem);

  /* layout + motion */
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .8, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #050505; --paper-2: #141414; --ink: #FAFAFA; --ink-soft: #9B9B9B;
    --line: rgba(250, 250, 250, .08); --accent: #A3E635; --danger: #FF8A7E;   /* on black, text can use the lime itself */
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #050505; --paper-2: #141414; --ink: #FAFAFA; --ink-soft: #9B9B9B;
  --line: rgba(250, 250, 250, .08); --accent: #A3E635; --danger: #FF8A7E;   /* on black, text can use the lime itself */
  color-scheme: dark;
}
