/* Round 3 tokens: the brand package as it stood on 13 November 2026 (strgy-design-system, packages/brand/brand.yaml,
   preview commit 30e0578f). The agency's eight colours, the colourways made from them, and the editorial type
   scale of decision 0079. Nothing here is mixed, tinted or picked by eye. */
:root {
  /* Colour: the eight. */
  --white: #ffffff;
  --black: #000000;
  --grey: #4e4e4e;
  --stone: #cdcac5;
  --acid-green: #d7f85d;
  --blue-wash: #d3daf0;
  --acid-wash: #fdfed7;
  --stone-wash: #faf4ee;

  /* Type: KMR Apparat, then the brand's fallbacks. */
  --font: 'KMR Apparat', 'Arial Nova', system-ui, sans-serif;
  --label-size: 0.75rem;
  --label-track: 0.07em;
  --body-size: 1rem;
  --body-line: 1.5;
  --lead-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --heading-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  --headline-size: clamp(2.25rem, 1.1rem + 3.7vw, 4.75rem);
  --statement-size: clamp(2.75rem, 0.9rem + 5.6vw, 7rem);
  --number-size: clamp(4.5rem, 1.5rem + 9vw, 11rem);

  /* Layout. */
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --column: 90rem;
  --header-h: 4.25rem;
  --strip: clamp(8px, 1.875vw, 36px);
  --gap: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(4rem, 9vw, 8rem);

  /* Motion: the site's one timing (decision 0095). */
  --fade: 200ms;
  --step: 200ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Colourways: a ground with the type it takes. Type is black on a light ground and white on a dark one. */
[data-ground] {
  background: var(--ground);
  color: var(--text);
}
[data-ground='white'] { --ground: var(--white); --text: var(--black); --muted: var(--grey); --rule: var(--black); }
[data-ground='stone-wash'] { --ground: var(--stone-wash); --text: var(--black); --muted: var(--grey); --rule: var(--black); }
[data-ground='stone'] { --ground: var(--stone); --text: var(--black); --muted: var(--grey); --rule: var(--black); }
[data-ground='blue-wash'] { --ground: var(--blue-wash); --text: var(--black); --muted: var(--grey); --rule: var(--black); }
[data-ground='acid-wash'] { --ground: var(--acid-wash); --text: var(--black); --muted: var(--grey); --rule: var(--black); }
[data-ground='acid-green'] { --ground: var(--acid-green); --text: var(--black); --muted: var(--grey); --rule: var(--black); }
[data-ground='grey'] { --ground: var(--grey); --text: var(--white); --muted: var(--stone); --rule: var(--white); }
[data-ground='black'] { --ground: var(--black); --text: var(--white); --muted: var(--stone); --rule: var(--white); }

/* The dark theme, after the brand's own: the page on Black and a section set apart on Grey, white type on both.
   A section's ground changes with the theme; a block inside a section keeps the tint it was given, with black
   type on it; the footer stays on Stone in both. With nothing chosen, the device's setting decides. */
:root[data-theme='dark'] {
  color-scheme: dark;
}
:root[data-theme='dark'] body[data-ground],
:root[data-theme='dark'] main > section[data-ground='white'],
:root[data-theme='dark'] main > section[data-ground='stone-wash'],
:root[data-theme='dark'] main > section[data-ground='acid-wash'] {
  --ground: var(--black);
  --text: var(--white);
  --muted: var(--stone);
  --rule: var(--white);
}
:root[data-theme='dark'] main > section[data-ground='stone'],
:root[data-theme='dark'] main > section[data-ground='blue-wash'],
:root[data-theme='dark'] main > section[data-ground='acid-green'] {
  --ground: var(--grey);
  --text: var(--white);
  --muted: var(--stone);
  --rule: var(--white);
}
