/*
 * SplitZone design tokens: the one file to edit to change how the app looks.
 *
 * Colours, type, radii and spacing live here and nowhere else. Templates and
 * components use these through semantic names (brand, positive, surface), so a
 * rebrand is a change to the values below. See docs/design/README.md.
 *
 * The look is Afterglow: dark first, large light figures, one apricot accent. Light
 * values come first in this file only because the contrast test reads them there.
 *
 * Contrast is checked by splitzone/tests/test_design_tokens.py against WCAG 2.2 AA.
 * The series colours are categorical chart slots, in a fixed order validated for
 * colour-blind separation; each category owns one slot permanently. The person
 * colours mark who is who on a split, and repeat after six people.
 */

/* Geist, self-hosted because the Content-Security-Policy allows fonts from this site
   only. Each file loads only if the page needs its characters. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-cyrillic-wght-normal.2a3115452ed6.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-ext-wght-normal.4841e590e2a9.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: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/geist-latin-wght-normal.a147f99cd533.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 {
  color-scheme: light;

  --color-bg: #f7f3f8;
  --color-surface: #ffffff;
  --color-surface-2: #eee7f1;
  --color-line: #dcd2e1;
  --color-line-strong: #85798f;
  --color-ink: #1c1526;
  --color-muted: #5a5066;
  --color-brand: #8f4a0e;
  --color-brand-hover: #743b0a;
  --color-on-brand: #ffffff;
  --color-brand-soft: #fce9d8;
  --color-positive: #0a6e55;
  --color-negative: #b4322b;
  --color-warning: #7a5400;
  --color-warning-soft: #fbf0d6;
  --color-danger-soft: #fcebe8;
  --color-focus: #8f4a0e;
  --color-on-person: #2a1706;
  --color-person-1: #e8913f;
  --color-person-2: #2fb98c;
  --color-person-3: #9c7fe8;
  --color-person-4: #3fa9e6;
  --color-person-5: #e86e9a;
  --color-person-6: #d9a620;

  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #6250d6;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --radius-card: 24px;
  --radius-control: 16px;
  --radius-sheet: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(28 21 38 / 6%), 0 1px 3px rgb(28 21 38 / 5%);
  --shadow-float: 0 6px 18px rgb(28 21 38 / 22%);
  --tap-size: 44px;
  --content-width: 42rem;
  --landing-width: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --color-bg: #14101c;
    --color-surface: #1f1929;
    --color-surface-2: #2b2338;
    --color-line: #3d334d;
    --color-line-strong: #8c8099;
    --color-ink: #f5f0f7;
    --color-muted: #bdb3c7;
    --color-brand: #ffb26b;
    --color-brand-hover: #ffc48c;
    --color-on-brand: #2a1706;
    --color-brand-soft: #43301f;
    --color-positive: #7be3b5;
    --color-negative: #ff9c8c;
    --color-warning: #ffd27a;
    --color-warning-soft: #3d2f14;
    --color-danger-soft: #45201f;
    --color-focus: #ffb26b;
    --color-on-person: #2a1706;
    --color-person-1: #ffb26b;
    --color-person-2: #7be3b5;
    --color-person-3: #c9b6ff;
    --color-person-4: #8fd3ff;
    --color-person-5: #ffa8c5;
    --color-person-6: #ffe08a;

    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;

    --shadow-card: none;
    --shadow-float: 0 6px 18px rgb(0 0 0 / 55%);
  }
}

/* A manual choice beats the system setting in both directions. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: #14101c;
  --color-surface: #1f1929;
  --color-surface-2: #2b2338;
  --color-line: #3d334d;
  --color-line-strong: #8c8099;
  --color-ink: #f5f0f7;
  --color-muted: #bdb3c7;
  --color-brand: #ffb26b;
  --color-brand-hover: #ffc48c;
  --color-on-brand: #2a1706;
  --color-brand-soft: #43301f;
  --color-positive: #7be3b5;
  --color-negative: #ff9c8c;
  --color-warning: #ffd27a;
  --color-warning-soft: #3d2f14;
  --color-danger-soft: #45201f;
  --color-focus: #ffb26b;
  --color-on-person: #2a1706;
  --color-person-1: #ffb26b;
  --color-person-2: #7be3b5;
  --color-person-3: #c9b6ff;
  --color-person-4: #8fd3ff;
  --color-person-5: #ffa8c5;
  --color-person-6: #ffe08a;

  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;

  --shadow-card: none;
  --shadow-float: 0 6px 18px rgb(0 0 0 / 55%);
}
