/* Move With Brent: design tokens. The one place colours, fonts, sizes and spacing are set.
   Every stylesheet on the site (theme and plugins) reads these. See design.md at the repo root. */
:root {
  /* Spacing */
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;

  /* Type sizes (16px body, 1.25 ratio) */
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-body: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem);
  --text-display: clamp(3rem, 5.5vw + 1rem, 6rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem);
  --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);

  /* 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 */
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --banner-h: 40px; --bar-h: 76px;

  /* Layers */
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;

  /* Colour. Anchor: Brookwood navy (#012557). Paper and greys lean faintly toward it.
     Plain hex here for older browsers; the exact OKLCH values follow in the @supports block below. */
  --color-paper: #f8fafc;
  --color-paper-2: #edf1f7;
  --color-paper-3: #e1e7ef;
  --color-ink: #0d1b2f;
  --color-ink-2: #323e50;
  --color-muted: #5b6472;
  --color-rule: #d4d9e1;

  /* Navy field: the header bar's strip, the advantages band and the footer */
  --color-field: #012557;
  --color-field-2: #123465;
  --color-on-field: #f2f5fb;
  --color-on-field-2: #bfccdf;
  --color-field-rule: #2d4870;

  /* Gold signal: buttons and marks only. Never text on paper (2.1:1). Navy text on gold is 7:1. */
  --color-accent: #c6b358;
  --color-accent-2: #b09d42;
  --color-accent-ink: #012557;

  /* Focus: a deep gold on paper (5:1), the bright gold on navy (7:1) */
  --color-focus: #776100;
  --color-focus-on-field: var(--color-accent);

  --color-error: #be2323; --color-success: #21763c;
  --color-scrim: rgba(1, 16, 43, 0.62);

  /* Fonts */
  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-outlier: var(--font-body);
  --display-weight: 400;
  --tracking-display: -0.015em;

  /* Shape */
  --radius-card: 2px; --radius-input: 2px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --shadow-raised: 0 1px 2px oklch(20% 0.04 258 / 0.08);
  --shadow-float: 0 12px 32px oklch(27.6% 0.099 258 / 0.18), 0 2px 6px oklch(27.6% 0.099 258 / 0.08);
}

/* Browsers that understand OKLCH (Safari 15.4+, Chrome 111+, Firefox 113+) get the exact colours. */
@supports (color: oklch(0% 0 0)) {
  :root {
    --color-paper: oklch(98.4% 0.004 258);
    --color-paper-2: oklch(95.8% 0.009 258);
    --color-paper-3: oklch(92.6% 0.013 258);
    --color-ink: oklch(22% 0.045 258);
    --color-ink-2: oklch(36% 0.035 258);
    --color-muted: oklch(50% 0.025 258);
    --color-rule: oklch(88.5% 0.012 258);
    --color-field: oklch(27.6% 0.099 258);
    --color-field-2: oklch(33% 0.095 258);
    --color-on-field: oklch(97% 0.008 258);
    --color-on-field-2: oklch(84% 0.03 258);
    --color-field-rule: oklch(40% 0.075 258);
    --color-accent: oklch(76.4% 0.114 98);
    --color-accent-2: oklch(69.5% 0.113 98);
    --color-accent-ink: oklch(27.6% 0.099 258);
    --color-focus: oklch(50% 0.11 95);
    --color-error: oklch(52% 0.19 27);
    --color-success: oklch(50% 0.12 150);
    --color-scrim: oklch(18% 0.06 258 / 0.62);
  }
}
