/* Build Better design tokens. Source of truth: Build_Better_DESIGN.md */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@700&display=swap');

:root {
  /* Colour (DESIGN.md 3) */
  --black:  #000000;
  --grey:   #202020;
  --gold:   #FAC42F;
  --cream:  #FFEEC1;
  --white:  #FFFFFF;
  --line:   rgba(250, 196, 47, 0.24);
  --field:  #3A3A3A;

  /* Tier colours, result states only */
  --tier-red:     #C0392B;
  --tier-orange:  #E67E22;
  --tier-yellow:  #E9B824;
  --tier-green:   #1E8E57;

  /* Type */
  --display-font: 'Barlow Condensed', system-ui, sans-serif;
  --body-font:    'Barlow', system-ui, sans-serif;

  --fs-display: clamp(3rem, 7vw, 5.625rem);   /* 48 to 90, TP h1 = 90px */
  --fs-h1:      clamp(2.75rem, 6vw, 5.625rem); /* TP h1 = 90px */
  --fs-h2:      clamp(1.75rem, 3vw, 2.5rem);   /* TP h2 = 40px */
  --fs-h3:      1.375rem;                      /* TP h3 = 22px */
  --fs-body-lg: 1.25rem;                       /* 20px */
  --fs-body:    1.125rem;                      /* TP body = 18px, weight 500 */
  --fs-small:   1.0625rem;                     /* 17px, was 15px */
  --fs-eyebrow: 1.375rem;                      /* TP eyebrow = 22px bold */
  --fs-button:  1.125rem;
  --fs-stat:    clamp(4rem, 8vw, 5.625rem);

  /* Spacing, 8px base */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --container: 1200px;
  --content:   1120px;
  --measure:   680px;
  --gutter:    24px;
  --section-y: clamp(64px, 8vw, 96px);

  --radius-pill: 999px;
  --radius-card: 12px;
}

@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 var(--s-4); }

h1 {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.85;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: normal; line-height: 1.0; text-wrap: balance; }
h3 { font-family: var(--display-font); font-size: var(--fs-h3); font-weight: 700;
     text-transform: uppercase; letter-spacing: 1px; line-height: 1.0; }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

/* Focus is mandatory. Gold on black is 13:1. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* No shadows, no gradients. Depth is tonal. */
