/* Football Intelligence v4 - design tokens
   Two themes, one set of names. "dark" is Floodlight (the default), "light" is Daylight.
   <html data-theme="dark|light"> is set before first paint by the inline script in the document.
   Fixed 16 px root. One accent per theme. Three radii. Two elevations. 4/8 px spacing. */

/* Faces are self-hosted (SIL Open Font License): Outfit for text in both themes,
   Sofia Sans Condensed for the display type of the dark theme. */
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 600 800; font-display: swap; src: url("/static/fonts/v4/sofiacond-600-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 600 800; font-display: swap; src: url("/static/fonts/v4/sofiacond-600-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 400 800; font-display: swap; src: url("/static/fonts/v4/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 400 800; font-display: swap; src: url("/static/fonts/v4/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Floodlight (dark, default) ---------- */
:root {
  color-scheme: dark;

  /* Ground and surfaces: neutral graphite, R = G = B, no blue cast.
     Surfaces separate by tone step and by space, not by borders. */
  --g-0: #0b0b0b;   /* ground: the page */
  --g-1: #1c1c1c;   /* band: a full-width section or a large card */
  --g-2: #282828;   /* tile, control track, input */
  --g-3: #383838;   /* raised control: secondary button, selected row */
  --g-4: #525252;   /* strongest fill: active segment, handles, redaction bars */
  --rule: #2c2c2c;  /* hairline, only between rows of one list or table */

  /* Ink. --ink* are what components read; a block that sits on a photograph
     re-points them to the on-photo values, a solid panel inside it points them back. */
  --base-ink: #ffffff;
  --base-ink-2: #bdbdbd;
  --base-ink-3: #949494;
  --ink: var(--base-ink);
  --ink-2: var(--base-ink-2);
  --ink-3: var(--base-ink-3);
  --ink-inv: #0b0b0b;                    /* text on an --ink fill */
  --on-photo: #ffffff;
  --on-photo-2: rgb(255 255 255 / 0.76);
  --on-photo-3: rgb(255 255 255 / 0.6);
  --photo-rgb: 11 11 11;                 /* what a photograph fades into */

  /* The single accent: the logo mint. Primary action, active state, positive value. */
  --accent: #00e5a0;
  --accent-down: #00bd84;
  --on-accent: #0b0b0b;

  --live: #ff4b3e;                       /* red has one job: live */

  /* Probability bar: the model's lean is the brightest segment. */
  --p-lean: #ffffff;
  --p-side: #8f8f8f;
  --p-draw: #5a5a5a;

  /* Type: a soft condensed display face and a round text face (softened on the
     owner's request, 12 Nov 2026: the first cut, Big Shoulders + Archivo, read too hard). */
  --f-display: "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dw-7: 700;                           /* display weights */
  --dw-8: 800;
  --dlh: 1.04;                           /* display line-height multiplier */
  --d-case: uppercase;                   /* poster names */

  --t-12: 0.75rem;
  --t-13: 0.84375rem;
  --t-15: 0.9375rem;
  --t-20: 1.25rem;
  --t-28: 1.75rem;
  --t-48: 3rem;
  --t-mega: clamp(4.5rem, 20.5vw, 5rem);

  /* Spacing: 4 / 8 px grid */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;

  --r-1: 6px;     /* chips, result tokens, marks */
  --r-2: 12px;    /* buttons, inputs, tiles */
  --r-3: 22px;    /* bottom sheet, dialogs */
  --r-card: 16px; /* cards */
  --mark-dark: #0b0b0b;                  /* plate under a white league mark */

  --e-0: none;                              /* a card at rest */
  --e-1: 0 8px 20px rgb(0 0 0 / 0.5);        /* card floating over a photograph, toast */
  --e-2: 0 -12px 36px rgb(0 0 0 / 0.62);     /* bottom sheet, dock */
  --scrim: rgb(0 0 0 / 0.6);

  --gutter: 1rem;
  --hdr-h: 3.25rem;    /* 52 px */
  --dock-h: 4rem;      /* 64 px */
  --tap: 2.75rem;      /* 44 px minimum target */

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;
}

/* ---------- Daylight (light) ---------- */
:root[data-theme="light"] {
  color-scheme: light;

  --g-0: #f3f0e9;   /* warm off-white page */
  --g-1: #ffffff;   /* every card and band */
  --g-2: #eae6dc;   /* quiet fill: tile, chip, track */
  --g-3: #ddd8cb;   /* pressed quiet fill, secondary button */
  --g-4: #c3c8cd;   /* handles, redaction bars */
  --rule: #ebe7dd;

  --base-ink: #12171b;
  --base-ink-2: #4a535c;
  --base-ink-3: #5f6871;
  --ink-inv: #ffffff;
  --on-photo-2: rgb(255 255 255 / 0.8);
  --on-photo-3: rgb(255 255 255 / 0.66);
  --photo-rgb: 9 40 28;                  /* photographs settle into deep pitch green */

  --accent: #007a52;
  --accent-down: #00613f;
  --on-accent: #ffffff;

  --live: #cc2a1e;

  --p-lean: #007a52;
  --p-side: #bcc3c8;
  --p-draw: #d6d9dc;

  /* Solid blocks that carry imagery */
  --pitch: #10553a;
  --night: #12171b;
  --sun: #f9bd1b;                        /* play money only (DEMO) */

  --f-display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-text: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dw-7: 600;
  --dw-8: 700;
  --dlh: 1.16;
  --d-case: none;

  --t-13: 0.875rem;
  --t-15: 1rem;
  --t-20: 1.125rem;
  --t-28: 1.5rem;
  --t-48: 2.125rem;
  --t-mega: 3.5rem;

  --r-1: 8px;
  --r-2: 12px;
  --r-3: 24px;
  --r-card: 20px;
  --mark-dark: #12171b;

  --e-0: 0 1px 2px rgb(18 23 27 / 0.05), 0 8px 24px rgb(18 23 27 / 0.07);
  --e-1: 0 2px 8px rgb(18 23 27 / 0.08), 0 18px 44px rgb(18 23 27 / 0.16);
  --e-2: 0 -1px 2px rgb(18 23 27 / 0.04), 0 -10px 32px rgb(18 23 27 / 0.1);
  --scrim: rgb(18 23 27 / 0.42);

  --dock-h: 4.25rem;
}

@media (min-width: 64rem) {
  :root { --t-mega: 7.5rem; --gutter: 2rem; }
  :root[data-theme="light"] { --t-mega: 4.5rem; }
}

html { font-size: 16px; }
