/*
  Displai design tokens: the single source for colour, type, spacing and shape
  values on the public site.

  Read two ways:
  - The Next.js layout imports it through src/app/(frontend)/tokens.css, so every
    page it renders (the React homepage included) defines these on :root.
  - The remaining static pages (walk.html, vicious-biscuit.html) link it before
    css/main.css with a ?v= cache key (npm run version-b:fingerprint).

  src/lib/designTokens.test.ts fails when css/main.css or css/theme-white.css
  redeclares one of these, or when a token the homepage CSS uses is declared
  nowhere. See DESIGN-SYSTEM.md for what each token is for.
*/
:root {
  --font: 'Gellix', Arial, sans-serif;
  --black: #171717;
  --white: #ffffff;

  /* Colour scales. Blue 03 is the primary action colour. */
  --blue-01: #879cff;
  --blue-02: #4270eb;
  --blue-03: #0047d4;
  --blue-04: #0530a6;
  --blue-05: #08177a;
  --purple-01: #d1b0ff;
  --purple-03: #6e33c9;
  --purple-04: #542499;
  --purple-05: #38146b;
  --teal-01: #63f5d9;
  --teal-03: #08d4b8;
  --teal-04: #058a82;
  --teal-05: #003d4d;
  --green-01: #4feb94;
  --green-02: #33cc70;
  --green-03: #17b04d;
  --orange-01: #ffab91;
  --orange-03: #ff5438;
  --orange-04: #d43b1f;
  --red-01: #ffa3a8;
  --red-03: #fa3d4a;
  --gray-10: #f3f3f3;
  --gray-20: #dcdcdc;
  --gray-30: #bebebe;
  --gray-80: #3d3d3d;
  --gray-90: #282828;
  --gray-100: #171717;

  /* Grounds: page backgrounds, body type and rules (the white theme). */
  --bg: #ffffff;
  --bg-alt: #f3f3f3;
  --fg: #171717;
  --rule: #dcdcdc;
  --rule-strong: #171717;

  /* Type: three sizes per layout (display, lede, small). */
  --fs-h1: clamp(2.625rem, min(1.55rem + 3.4vw, 7.1vh), 4.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  --fs-lede: clamp(1.125rem, 1.03rem + 0.3vw, 1.3125rem);
  --fs-small: 0.9375rem;

  /* Layout and shape. */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec-pad: clamp(72px, 9vw, 136px);
  --radius: 6px;
  --header-h: 72px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--blue-03);
}
