/* ─────────────────────────────────────────────────────────────────────────────
   THEME: every colour, font and size of the app lives here.
   Change a value and redeploy; nothing else needs touching.
   Preview every component with fake data at /#/design (no sign-in needed).
   ───────────────────────────────────────────────────────────────────────────── */
@font-face { font-family: "Anton"; src: url("/assets/fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  /* brand (CLAUDE.md: never white text on orange) */
  --accent: #FF4D1A;          /* main action colour */
  --accent-ink: #000000;      /* text on top of the accent */
  --ok: #7FD17F;              /* done / ticked */
  --warn: #FFB347;
  --danger: #FF8A73;

  /* surfaces and text */
  --bg: #000000;
  --surface: #141416;         /* cards */
  --surface-2: #0B0B0C;       /* inputs, tab bar */
  --line: #232327;            /* borders */
  --line-strong: #2A2A2E;
  --text: #F3F4F6;
  --text-muted: #8A8A8F;

  /* session kinds: the coloured bar on each card and the player header */
  --kind-strength: var(--accent);
  --kind-endurance: var(--z2);
  --kind-sprint: var(--z5);
  --kind-hyrox: var(--z6);
  --kind-test: var(--z8);

  /* training zones (CLAUDE.md, 2026-10-29) */
  --z1: #F2F2F2; --z2: #B8D8EA; --z3: #FFF1A8; --z3p: #C6E0A5; --z4: #FFB347;
  --z5: #E5533D; --z6: #C9476B; --z7: #A63A79; --z8: #7B2D8E;

  /* type */
  --font-head: "Anton", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-case: uppercase;     /* none | uppercase */
  --fs-base: 16px;
  --fs-h1: 30px;
  --fs-h2: 20px;
  --fs-small: 13px;

  /* shape */
  --radius: 14px;             /* cards */
  --radius-btn: 12px;
  --radius-pill: 22px;
  --tap: 44px;                /* minimum touch target */

  /* tab bar */
  --tab-bg: var(--surface-2);
  --tab-text: var(--text-muted);
  --tab-on: var(--text);
  --tab-on-mark: var(--accent);  /* the line over the selected tab */
  --tab-icons: 1;                /* 1 = show icons, 0 = text only */
}

/* Light theme: set theme: "light" in ui.config.js to use it. */
:root[data-theme="light"] {
  --bg: #F3F4F6; --surface: #FFFFFF; --surface-2: #E9EAEE; --line: #DADBE0; --line-strong: #C9CAD0;
  --text: #111113; --text-muted: #5E5E64; --ok: #2E8B3D; --danger: #C2411F;
  --tab-bg: #FFFFFF; --kind-endurance: #5FA4CC;
}
