/* Senior Games tokens: look B, editorial and calm. The one token file for the whole site.

   Contrast against --bg (WCAG ratio). Text needs 4.5 or more, marks and control edges need 3 or more.
                   light        dark
   --text          17.6         17.3     text and chart line
   --quiet          5.0          7.1     labels, captions, field underlines (also passes 3 as an edge)
   --red            5.4          7.0     the one action, the changed dot, errors
   --link          11.4         17.3     links
   --mark          11.4          9.6     second chart color, feed drop lines
   --bar            3.1          3.3     histogram bars (darkened from the plan's first guess, which was 1.9 and 2.2)
   --focus         17.6         17.3     focus ring
   --hair           1.3          1.4     hairline dividers only, never the only edge of a control
   --weekend       tinted band, decoration only

   Theme: follows the device, unless <html data-theme="light"> or "dark" is set. */

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --text: #111111;
  --quiet: #6a6a70;
  --hair: #d8d8d3;
  --red: #c1282e;
  --on-red: #ffffff;         /* text on a red fill: 6.0 */
  --link: #2b3160;
  --mark: #2b3160;
  --bar: #8c8c92;
  --weekend: rgba(17, 17, 17, 0.05);
  --focus: #111111;
  /* Player app only (Field Kit exceptions, see design/README.md) */
  --drop-text: #8a5a00;      /* drop words on --bg: 5.5 */
  --drop-fill: #b87900;      /* drop strip and parcel: 3.4 against --bg */
  --drop-ink: #111111;       /* text on --drop-fill: 5.2 */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0f;
    --text: #f2f2f0;
    --quiet: #9c9ca4;
    --hair: #2a2a2e;
    --red: #ff6b70;
    --on-red: #0d0d0f;
    --link: #f2f2f0;
    --mark: #aab2f0;
    --bar: #64646e;
    --weekend: rgba(242, 242, 240, 0.06);
    --focus: #f2f2f0;
    --drop-text: #e8b13a;
    --drop-fill: #e8b13a;
    --drop-ink: #111111;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0f;
  --text: #f2f2f0;
  --quiet: #9c9ca4;
  --hair: #2a2a2e;
  --red: #ff6b70;
  --on-red: #0d0d0f;         /* text on a red fill: 7.0 */
  --link: #f2f2f0;
  --mark: #aab2f0;
  --bar: #64646e;
  --weekend: rgba(242, 242, 240, 0.06);
  --focus: #f2f2f0;
  --drop-text: #e8b13a;      /* on --bg: 10.0 */
  --drop-fill: #e8b13a;
  --drop-ink: #111111;       /* on --drop-fill: 9.7 */
}
:root[data-theme="light"] { color-scheme: light; }

:root {
  /* Type */
  --font: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --fs-label: 12px;
  --fw-label: 600;
  --ls-label: 0.14em;
  --fs-body: 16px;
  --fs-small: 15px;
  --fs-brand: 17px;         /* the "Senior Games" name in the top line */
  --fs-caption: 14px;       /* notes under charts and tables, legends */
  --fs-fine: 13px;          /* hints under fields, the loop check line */
  --fs-lead: 20px;
  --fs-stat: 38px;
  --fw-stat: 600;
  --ls-stat: -0.03em;
  --fs-hero: 44px;          /* phones: 58px breaks long names badly at 375 */
  --fw-hero: 700;
  --ls-hero: -0.04em;
  --lh-hero: 1.02;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --gutter: 20px;
  --page-max: 1100px;
  --tap: 44px;

  /* Shape */
  --radius: 0;
  --hairline: 1px solid var(--hair);
}
@media (min-width: 700px) {
  :root { --gutter: 32px; --fs-hero: 58px; }
}
