/* =====================================================================
   THEME — the whole look of the site lives here.
   Change a value below and every page updates. Nothing else needs editing
   for color, font, size or corner changes.
   ===================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 600; font-display: swap; src: url("../fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-display: swap; src: url("../fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-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"); }

:root {
  color-scheme: dark;
  /* Backgrounds */
  --bg: #121314;            /* page ground */
  --header-bg: #17191b;     /* top bar */
  --panel: #1a1c1f;         /* panels / tables */
  --panel-2: #25282c;       /* active nav, bar tracks */
  --input-bg: #121314;

  /* Lines */
  --border: #2a2d31;        /* panel borders */
  --border-2: #363a3f;      /* buttons, inputs */
  --row-line: #222529;      /* lines between table rows */

  /* Text */
  --text: #ececea;
  --text-2: #c3c5c6;        /* secondary text */
  --muted: #a2a6aa;         /* labels */
  --faint: #858a8f;         /* small print */

  /* Accents */
  --accent: #e8a849;        /* amber: links, active buttons, eyebrows */
  --accent-hover: #f4c27a;
  --on-accent: #14110a;     /* text on amber */
  --num: #a9cbec;           /* blue-steel: big numbers */
  --blue: #5c9be0;          /* blue: links, selected controls, technical */
  --blue-soft: #24354a;     /* blue fill for selected buttons and chips */
  --blue-ink: #cfe2f6;      /* text on blue fill */
  --rule: #3a3e44;          /* section rules */

  /* Faint outline so dark school colors (navy, maroon) show on the dark ground */
  --stripe-edge: rgba(255,255,255,.28);

  /* Medals */
  --gold: #e2b84b;
  --silver: #c3ccd1;
  --bronze: #c98a5a;
  --on-medal: #101614;

  /* Status badges */
  --ok-bg: #1e2124;  --ok-border: #41474d;  --ok-text: #c9d3dc;
  --warn-bg: #2a2212; --warn-border: #5a4520; --warn-text: #f0c071;
  --info-border: #565c62;

  /* Charts */
  --band-off: rgba(255,255,255,.07);     /* 2020–21: no Conclave */
  --band-off-edge: #5a6067;
  --chart-line: #e8a849;                 /* winning mark */
  --chart-median: #b7c9d8;               /* median of all marks */
  --chart-compare: #d0d2d4;              /* compared school, when its color clashes */
  --chart-muted: #9aa0a6;
  --shadow: rgba(0,0,0,.35);

  /* Type */
  --font-head: "Zilla Slab", Rockwell, Georgia, serif;   /* slab: stamped-timber headings */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --size-body: 15px;
  --size-h1: 52px;
  --size-h2: 22px;
  --size-stat: 34px;

  /* Shape */
  --radius-lg: 16px;   /* panels */
  --radius: 10px;      /* inputs, toggles */
  --radius-sm: 8px;    /* buttons, chips */
  --page-width: 1200px;
}

/* ---------------------------------------------------------------------
   LIGHT MODE — used when the visitor picks it (sun/moon button) or their
   device is set to light. Same names as above, lighter values.
   --------------------------------------------------------------------- */
:root[data-theme=light] {
  color-scheme: light;
  --bg: #f5f4f0;  --header-bg: #fbfaf7;  --panel: #ffffff;  --panel-2: #ebe9e3;  --input-bg: #ffffff;
  --border: #dcd9d2;  --border-2: #c9c5bd;  --row-line: #e6e3dc;
  --text: #1b1d20;  --text-2: #33373c;  --muted: #5d6268;  --faint: #6c7177;
  --accent: #a8650f;  --accent-hover: #8a5209;  --on-accent: #ffffff;
  --num: #1f3f5e;  --blue: #2463ad;  --blue-soft: #dbe7f5;  --blue-ink: #163f70;  --rule: #1c1e21;
  --stripe-edge: rgba(0,0,0,.25);
  --gold: #d9a92e;  --silver: #b3bcc5;  --bronze: #c98a55;  --on-medal: #1b1d20;
  --ok-bg: #eef0f2;  --ok-border: #c4cad0;  --ok-text: #2f3a44;
  --warn-bg: #fbf1dc; --warn-border: #e0bf7a; --warn-text: #6b4708;
  --info-border: #a9afb5;
  --band-off: rgba(0,0,0,.06);  --band-off-edge: #9aa0a6;
  --chart-line: #b8700f;  --chart-median: #3d6a92;  --chart-compare: #6b7177;  --chart-muted: #7a8087;
  --shadow: rgba(0,0,0,.14);
}
