/* Colors match src/theme.js. Fonts are self-hosted (fonts/, SIL OFL) so no third party sees visitors. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --pitch: #1A3B2A; --pitch-mid: #2D5E44; --grass: #2E7D4F; --grass-dark: #27713F;
  --chalk: #F7F9F4; --flag: #E8A020; --flag-dark: #A06010;
  --ink: #18231C; --ink-mid: #3C5040; --muted: #5E7066; --line: #D9E0D9;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 18px/1.6 var(--body); }
a { color: var(--pitch-mid); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }

/* Header */
.site-header { background: var(--pitch); color: var(--chalk); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 26px/1 var(--display); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--flag); color: var(--pitch); display: grid; place-items: center; font-size: 16px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--chalk); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 0; }
.site-nav a:hover { text-decoration: underline; }

/* Hero: headline left, the pitch right */
.hero { background: var(--pitch); color: var(--chalk); padding: 40px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(52px, 9vw, 112px); line-height: 0.92; text-transform: none; }
.hero-copy p { font-size: 21px; line-height: 1.5; max-width: 30em; margin: 24px 0 32px; color: #DCE6DE; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 26px; font: 700 21px/1 var(--display); letter-spacing: 0.01em; text-decoration: none; }
.btn-primary { background: var(--flag); color: var(--pitch); }
.btn-primary:hover { background: #F0B23A; }
.btn-secondary { color: var(--chalk); box-shadow: inset 0 0 0 2px rgba(247, 249, 244, 0.55); }
.btn-secondary:hover { box-shadow: inset 0 0 0 2px var(--chalk); }
.hero-note { font-size: 15px; color: #A9BDAE; margin-top: 18px; }

.pitch { width: 100%; max-width: 380px; justify-self: end; display: block; }
.pitch .turf { fill: var(--grass); }
.pitch .stripe { fill: var(--grass-dark); }
.pitch .chalk-line { fill: none; stroke: rgba(247, 249, 244, 0.75); stroke-width: 2; }
.token circle { fill: var(--flag); stroke: var(--pitch); stroke-width: 2; }
.token.keeper circle { fill: var(--chalk); }
.token text { font: 800 15px var(--display); fill: var(--pitch); text-anchor: middle; dominant-baseline: central; }
/* The page's one motion: players run from the centre spot into formation. */
.token { transform: translate(calc(var(--x) * 1px), calc(var(--y) * 1px)); animation: take-position 900ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes take-position { from { transform: translate(150px, 200px); opacity: 0; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .token { animation: none; } }

/* Team sheet: one row per role */
.sheet { padding: 72px 0 40px; }
.sheet h2 { font-size: clamp(36px, 5vw, 52px); max-width: 16em; }
.sheet .intro { color: var(--ink-mid); max-width: 38em; margin: 12px 0 36px; }
.sheet-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-top: 2px solid var(--line); }
.sheet-row:last-child { border-bottom: 2px solid var(--line); }
.sheet-row h3 { font-size: 40px; color: var(--pitch); }
.sheet-row p { margin: 0 0 6px; font-weight: 600; font-size: 20px; }
.sheet-row ul { margin: 0; padding: 0; list-style: none; columns: 2 18em; column-gap: 32px; color: var(--ink-mid); }
.sheet-row li { padding: 3px 0 3px 18px; position: relative; break-inside: avoid; }
.sheet-row li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--flag); }

/* Privacy band */
.band { background: var(--pitch); color: var(--chalk); margin-top: 56px; padding: 56px 0; }
.band .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 32px; }
.band h2 { font-size: 40px; }
.band p { margin: 0; max-width: 40em; color: #DCE6DE; font-size: 19px; }
.band a { color: var(--flag); }

/* Legal and support pages */
.doc { max-width: 720px; padding: 56px 20px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(44px, 7vw, 64px); color: var(--pitch); }
.doc .updated { color: var(--muted); margin: 8px 0 32px; }
.doc h2 { font-size: 30px; color: var(--pitch); margin: 44px 0 10px; }
.doc h3 { font-size: 24px; margin: 28px 0 4px; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: #E8EFE6; border-left: 4px solid var(--grass); padding: 16px 22px; margin: 28px 0; }
.doc .summary ul { margin: 0; }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-mid); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .pitch { justify-self: start; max-width: 300px; }
  .sheet-row, .band .wrap { grid-template-columns: 1fr; }
  .sheet-row h3, .band h2 { font-size: 34px; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .hero { padding-top: 28px; }
  .hero-copy p { font-size: 19px; }
  .site-nav { gap: 16px; }
}
