/* Simmy Lunatics design tokens. Palette sampled from the league logo (see brand/BRAND.md and design/DESIGN-NOTES.md).
   Neutral greys only; red is the single accent; amber exists only to tell a warning from an error. */
:root {
  /* Named base palette */
  --black: #0a0a0a;          /* page, header, tab bar */
  --pit: #121212;            /* cards, hero, stat tiles */
  --garage: #1a1a1a;         /* inputs, segmented control, hover */
  --tarmac: #262626;         /* selected segment, skeleton, solid tags */
  --kerb: #2b2b2b;           /* hairlines */
  --kerb-strong: #6e6e6e;    /* control borders: 3.9:1 on black */
  --white: #ffffff;
  --silver: #cfcfcf;         /* secondary text: 12.7:1 on black */
  --grey: #9b9b9b;           /* muted text: 7.1:1 on black, 5.4:1 on tarmac */
  --red: #e10613;            /* fills; white on it is 4.96:1 */
  --red-hi: #fb041f;         /* large display use only (4.8:1 on black) */
  --red-deep: #a8040e;       /* pressed; white on it is 7.9:1 */
  --red-text: #ff4d57;       /* small red text: 6.1:1 on black, 4.7:1 on tarmac */
  --amber: #ffb81c;          /* warnings only */

  /* Semantic roles used by app.css and screens.css */
  --surface: var(--black);
  --surface-2: var(--garage);
  --surface-raised: var(--pit);
  --surface-3: var(--tarmac);
  --line: var(--kerb);
  --line-strong: var(--kerb-strong);
  --text: var(--white);
  --text-2: var(--silver);
  --text-muted: var(--grey);
  --accent: var(--red);
  --accent-hi: var(--red-hi);
  --accent-text: var(--red-text);
  --accent-press: var(--red-deep);
  --on-accent: var(--white);
  --warm: var(--amber);
  --danger: var(--red-text);

  /* Shape and layout */
  --gutter: 20px;
  --r: 4px;                  /* controls */
  --r-lg: 6px;               /* cards */
  --skew: -12deg;            /* the slant shared by type, streak, swatches and tab bar */

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;   /* system stack: only for code and the rules editor */
  --font-lockup: "Atkinson Hyperlegible Next", system-ui, sans-serif;

  /* spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  /* sizes */
  --tap: 44px;              /* minimum touch target */
  --tabbar-h: 60px;         /* bottom tab bar, excluding the safe-area inset */
  --content-max: 720px;     /* main column width */
  --swatch-w: 6px;          /* team colour swatch */
  --strip-h: 28px;          /* opening strip */
  /* type scale: phone first, raised at 720px in app.css */
  --fs-lede: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-caption: 13px;
  --fs-ui: 16px;
  --fs-h1: 44px;
  --fs-h2: 30px;
  --fs-h3: 24px;
  --lh-body: 1.55;
  --lh-tight: 0.98;
}
@media (min-width: 720px) {
  :root {
    --fs-lede: 20px;
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-caption: 13.5px;
    --fs-h1: 60px;
    --fs-h2: 36px;
    --fs-h3: 26px;
  }
}
