/* CricBoss design tokens: the shared fonts and colours for both themes.
   New and refreshed components use these. Older hard-coded colours move over
   gradually; see docs/DESIGN_TOKENS.md. Fonts are self-hosted (SIL OFL 1.1). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-wght-normal-1f021a24.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-ext-wght-normal-65edaaef.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/barlow-condensed-latin-600-normal-1a79f86d.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/barlow-condensed-latin-700-normal-74ef7090.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;
}

:root {
  --cb-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cb-font-display: "Barlow Condensed", Inter, ui-sans-serif, system-ui, sans-serif;

  /* Surfaces, from the page background up to raised cards. */
  --cb-surface-page: #050e13;
  --cb-surface-card: #0b191e;
  --cb-surface-raised: #10251e;
  --cb-border-subtle: #a9d0bc24;
  --cb-border: #77c4a635;

  /* Text and brand. */
  --cb-text: #f2f7f5;
  --cb-text-muted: #a4b9ac;
  --cb-accent: #55edb0;
  --cb-accent-strong: #43e8b0;
  --cb-gold: #f2d392;

  /* Status tones. Chips derive their border and fill from the tone. */
  --cb-tone-open: #74f2c0;
  --cb-tone-upcoming: #8ccaff;
  --cb-tone-live: #ff7d6e;
  --cb-tone-progress: #f5d796;
  --cb-tone-complete: #f2d392;
  --cb-tone-muted: #a9bdb6;
  --cb-tone-danger: #f4b1a7;

  /* Team colours are lifted on dark surfaces so navy or maroon stays visible. */
  --cb-team-fallback: #6f8f84;
  --cb-team-lift: white 28%;
  --cb-team-glow: 20%;

  /* Soft light behind app pages so cards read as raised. */
  --cb-ambient: radial-gradient(1100px 560px at 8% -160px, #1d74503a, transparent 70%), radial-gradient(900px 520px at 100% -120px, #17506438, transparent 70%);
}

:root[data-theme="light"] {
  --cb-surface-page: #f3f7f5;
  --cb-surface-card: #fff;
  --cb-surface-raised: #fff;
  --cb-border-subtle: #dbe8e0;
  --cb-border: #cadcd2;

  --cb-text: #17372d;
  --cb-text-muted: #526d62;
  --cb-accent: #087b55;
  --cb-accent-strong: #056443;
  --cb-gold: #8a6514;

  --cb-tone-open: #08754f;
  --cb-tone-upcoming: #1c5f9f;
  --cb-tone-live: #c0392b;
  --cb-tone-progress: #865307;
  --cb-tone-complete: #85600f;
  --cb-tone-muted: #55695f;
  --cb-tone-danger: #a23b31;

  --cb-team-fallback: #8aa69a;
  --cb-team-lift: black 18%;
  --cb-team-glow: 9%;

  --cb-ambient: radial-gradient(1100px 560px at 8% -160px, #cdeedcb3, transparent 70%), radial-gradient(900px 520px at 100% -120px, #d6eaf3a6, transparent 70%);
}
