/* FootLog v2 design tokens (docs/v2/02_design_system.md is the source of truth).
   Colours are only ever referenced through these variables; hex values elsewhere
   are limited to team colours and share images. */
:root {
  color-scheme: light;
  --bg: #F3F2EF;
  --surface: #FFFFFF;
  --surface-2: #E4E2DD;
  --ink: #151515;
  --muted: #66645F;
  --line: #D6D3CD;
  --nav-bg: #151515;
  --nav-ink: #FFFFFF;
  --nav-muted: #A3A19C;
  --nav-active-bg: #2E2E30;
  --nav-plus-bg: #FFFFFF;
  --nav-plus-ink: #151515;
  --accent-mom: #F2C14E;
  --accent-mom-ink: #151515;
  --danger: #C2412D;
  --focus: #2459A6;
  --on-team: #FFFFFF;             /* text on team colours; overridden per element (white or #151515, display.ink_for) */
  --pitch-line: rgba(255, 255, 255, .35);
  --pitch-label-bg: rgba(0, 0, 0, .28);
  --pitch-line-on-light: rgba(0, 0, 0, .28);    /* pitch lines / name labels when the team colour is light */
  --pitch-label-bg-on-light: rgba(255, 255, 255, .55);
  --pitch-disc: #FFFFFF;          /* shirt-number disc (always white) */
  --on-photo: #FFFFFF;            /* text / icons over photos */
  --photo-scrim: rgba(0, 0, 0, .55);
  --viewer-bg: rgba(0, 0, 0, .92);

  /* typography */
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-display: "Space Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-h1: 30px;   --lh-h1: 1.3;
  --fs-h2: 18px;   --lh-h2: 1.4;
  --fs-body: 15px; --lh-body: 1.8; --lh-prose: 1.9;
  --fs-small: 13px; --lh-small: 1.5;
  --fs-label: 10px; --fs-label-lg: 11px; --ls-label: .12em;

  /* spacing (4px grid) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-22: 22px; --sp-6: 24px; --sp-8: 32px;
  --gutter: 20px;
  --section-gap: 32px;

  /* radii */
  --r-card: 16px;      /* 14–18px */
  --r-ticket: 14px;
  --r-thumb: 12px;
  --r-pitch: 18px;
  --r-nav: 34px;
  --r-pill: 999px;

  --nav-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  --nav-height: 68px;
  --nav-clearance: 140px;
  --content-max: 480px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F10;
  --surface: #1C1C1E;
  --surface-2: #2A2A2E;
  --ink: #F2F2F2;
  --muted: #A1A1A6;
  --line: #3A3A3F;
  --nav-bg: #2A2A2D;
  --nav-ink: #F2F2F2;
  --nav-muted: #A1A1A6;
  --nav-active-bg: #3A3A3F;
  --nav-plus-bg: #F2F2F2;
  --nav-plus-ink: #141414;
  --danger: #E2614C;
  --focus: #7FA8E8;
}
