/* =========================================================================
   Collingwood Trailblazers — design tokens
   Carried over from the May 2026 board prototype, with one correction:
   the brand red is now taken from the club's actual logo file.
   Use the variables. Never hardcode a colour.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* --- Core palette ----------------------------------------------------
     --ctb-red and --ctb-red-deep are sampled pixel-by-pixel from
     Trailblazer-Logo_Original-Wordmark_On-White.png. The May prototype used
     #C8242A, which is NOT the club's red and clashed with the logo sitting
     directly above it. See BRAND-COLOURS.md.
     --------------------------------------------------------------------- */
  --ctb-red:       #ED174F;   /* the brand red — 70% of the logo */
  --ctb-red-deep:  #BB1943;   /* logo shadow tone. 6.36:1 on white */
  --ctb-red-hover: #BB1943;
  --ctb-foul:      #881B38;   /* deepest logo tone — pressed states */
  --ctb-amber:     #F9A451;   /* the blaze accent in the logo */

  --ctb-ink:       #231F20;   /* the logo's black. text + dark surfaces */
  --ctb-ink-2:     #2B2B2B;
  --ctb-cream:     #F4ECDA;   /* page background */
  --ctb-cream-2:   #EAE0C7;   /* divider on cream */
  --ctb-net:       #FFFFFF;
  --ctb-hardwood:  #D9B98A;   /* warm tan — chips, secondary surfaces */
  --ctb-line:      #F2C744;   /* yellow accent — highlights only */
  --ctb-whistle:   #5C5246;   /* muted text on cream */
  --ctb-whistle-2: #837868;

  /* --- Semantic mappings ----------------------------------------------- */
  --bg:            var(--ctb-cream);
  --surface:       var(--ctb-net);
  --surface-alt:   var(--ctb-cream-2);
  --ink:           var(--ctb-ink);
  --ink-muted:     var(--ctb-whistle);
  --brand:         var(--ctb-red);
  --brand-text:    var(--ctb-red-deep);  /* red text on white needs the deep tone */
  --brand-on:      var(--ctb-net);
  --rule:          rgba(35,31,32,.10);
  --rule-strong:   rgba(35,31,32,.20);

  /* --- Typography ------------------------------------------------------- */
  --ff-display: "Anton", "Arial Narrow", sans-serif;
  --ff-body:    "DM Sans", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ts-display:  4.5rem;
  --ts-h1:       3rem;
  --ts-h2:       2rem;
  --ts-h3:       1.375rem;
  --ts-eyebrow:  .875rem;
  --ts-body:     1rem;
  --ts-small:    .875rem;
  --ts-micro:    .75rem;

  --lh-tight:   .95;
  --lh-snug:    1.1;
  --lh-normal:  1.55;

  --tracking-display: .01em;
  --tracking-eyebrow: .14em;

  /* --- Spacing (8px base) ---------------------------------------------- */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;  --sp-5: 24px;
  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;  --sp-9: 96px;

  /* --- Radii ------------------------------------------------------------ */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:  14px;
  --r-pill: 999px;

  /* --- Shadows ---------------------------------------------------------- */
  --sh-1:     0 1px 0 rgba(35,31,32,.08);
  --sh-2:     0 4px 14px rgba(35,31,32,.10);
  --sh-3:     0 10px 28px rgba(35,31,32,.14);
  --sh-press: inset 0 -3px 0 rgba(0,0,0,.22);

  /* --- Layout ----------------------------------------------------------- */
  --max-w: 720px;   /* the passport is a phone-first document, even on desktop */
}

/* =========================================================================
   Reset + base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--ts-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ctb-foul); }

/* Anything focusable gets a visible ring. People will use this one-handed,
   on a phone, in a loud gym. Make the target obvious. */
:focus-visible {
  outline: 3px solid var(--ctb-red);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Respect people who have asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
