/* The web's design tokens (docs/DESIGN.md §"Web tokens"): the one file
   where a literal color, size or radius may appear. */
:root {
  color-scheme: light dark;

  --color-background: #F2F2F7;
  --color-surface: #FFFFFF;
  --color-label: #000000;
  --color-secondary-label: #3C3C4399;
  --color-separator: #3C3C434A;
  --color-accent: #185FA5;
  --color-on-accent: #FFFFFF;
  --color-status-delay: #854F0B;
  --color-status-canceled: #A32D2D;

  /* Line badges without a readable feed color: one of twelve pairs,
     chosen by mode and name (docs/DESIGN.md §"Color"). */
  --line-0-bg: #F7C9C9;  --line-0-fg: #650B0B;
  --line-1-bg: #F7DCC9;  --line-1-fg: #652F0B;
  --line-2-bg: #F7EAC9;  --line-2-fg: #654A0B;
  --line-3-bg: #F4F7C9;  --line-3-fg: #5F650B;
  --line-4-bg: #D9F7C9;  --line-4-fg: #29650B;
  --line-5-bg: #C9F7E0;  --line-5-fg: #0B6538;
  --line-6-bg: #C9F7F4;  --line-6-fg: #0B655D;
  --line-7-bg: #C9ECF7;  --line-7-fg: #0B4F65;
  --line-8-bg: #C9DDF7;  --line-8-fg: #0B3165;
  --line-9-bg: #C9C9F7;  --line-9-fg: #0B0B65;
  --line-10-bg: #E0C9F7; --line-10-fg: #380B65;
  --line-11-bg: #F7C9F4; --line-11-fg: #650B5E;

  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-title: 700 1.75rem/1.2 var(--font-family);
  --text-minutes: 600 1.25rem/1.2 var(--font-family);
  --text-body: 400 1rem/1.4 var(--font-family);
  --text-subheadline: 400 0.9375rem/1.4 var(--font-family);
  --text-footnote: 400 0.8125rem/1.4 var(--font-family);
  --text-badge: 700 0.75rem/1.3 var(--font-family);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-badge: 6px;
  --radius-group: 12px;
  --radius-field: 10px;

  --hairline: 0.5px;
  --border: 1px;
  --focus-ring: 3px;
  --target: 44px;
  --badge-width: 3rem;
  --badge-min-width: 1.5rem;
  --content-width: 40rem;
  --search-min-width: 14rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #000000;
    --color-surface: #1C1C1E;
    --color-label: #FFFFFF;
    --color-secondary-label: #EBEBF599;
    --color-separator: #545458A6;
    --color-accent: #85B7EB;
    --color-on-accent: #042C53;
    --color-status-delay: #FAC775;
    --color-status-canceled: #F09595;

    --line-0-bg: #5D1414;  --line-0-fg: #F7BABA;
    --line-1-bg: #5D3114;  --line-1-fg: #F7D3BA;
    --line-2-bg: #5D4714;  --line-2-fg: #F7E5BA;
    --line-3-bg: #585D14;  --line-3-fg: #F3F7BA;
    --line-4-bg: #2C5D14;  --line-4-fg: #CFF7BA;
    --line-5-bg: #145D38;  --line-5-fg: #BAF7D9;
    --line-6-bg: #145D56;  --line-6-fg: #BAF7F2;
    --line-7-bg: #144A5D;  --line-7-fg: #BAE8F7;
    --line-8-bg: #14325D;  --line-8-fg: #BAD4F7;
    --line-9-bg: #14145D;  --line-9-fg: #BABAF7;
    --line-10-bg: #38145D; --line-10-fg: #D9BAF7;
    --line-11-bg: #5D1456; --line-11-fg: #F7BAF2;
  }
}
