/* Family Flow tokens, read by the app and the wall display: Day (light) and Night (dark) colours,
   six type steps, one spacing scale. */
:root, :root[data-theme="light"] {
  --surface: #f5f6f3; --surface-raised: #ffffff; --surface-sunken: #eceee9; --line: #dfe3df;
  --ink: #1d2529; --ink-muted: #5b666b; --accent: #23707f; --on-accent: #ffffff; --accent-soft: #dceef1;
  --points: #96600f; --points-soft: #fbefd6; --good: #2e7d4f; --good-soft: #e1f2e7;
  --warning: #a8620a; --warning-soft: #fbecd8; --critical: #b3261e; --critical-soft: #fbe3e1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #12171a; --surface-raised: #1b2226; --surface-sunken: #242c30; --line: #2c363b;
    --ink: #eef2f1; --ink-muted: #9aa6aa; --accent: #6cc3d2; --on-accent: #0d1f23; --accent-soft: #1e3b41;
    --points: #f2c14e; --points-soft: #3b3121; --good: #7fd1ae; --good-soft: #173225;
    --warning: #f0b45a; --warning-soft: #372812; --critical: #f2938c; --critical-soft: #3a1a18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #12171a; --surface-raised: #1b2226; --surface-sunken: #242c30; --line: #2c363b;
  --ink: #eef2f1; --ink-muted: #9aa6aa; --accent: #6cc3d2; --on-accent: #0d1f23; --accent-soft: #1e3b41;
  --points: #f2c14e; --points-soft: #3b3121; --good: #7fd1ae; --good-soft: #173225;
  --warning: #f0b45a; --warning-soft: #372812; --critical: #f2938c; --critical-soft: #3a1a18;
  color-scheme: dark;
}

:root {
  --font-sans: Inter, system-ui, sans-serif;
  --font-display: Outfit, Inter, system-ui, sans-serif;

  /* Type: six steps. Without container units each step holds its largest size. */
  --step--1: 13px;
  --step-0: 16px;
  --step-1: 20px;
  --step-2: 24px;
  --step-3: 32px;
  --step-4: 80px;

  /* Space: one scale. The page gutter is the only fluid one. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --gutter: 16px;
  --card-pad: var(--s3);
  --card-gap: var(--s2);
  --lane-pad: var(--s2);
  --row-gap: 6px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  /* One tap size for everyone: kids tap like anyone else. A kid's task row is taller, not its buttons. */
  --tap: 44px;
  --row-tick: 52px;
}
/* Each step grows with the container it sits in, between a floor and a ceiling. */
@supports (width: 1cqi) {
  :root {
    --step-1: clamp(17px, 15px + 0.5cqi, 20px);
    --step-2: clamp(19px, 16px + 0.9cqi, 24px);
    --step-3: clamp(24px, 18px + 1.6cqi, 32px);
    --step-4: clamp(44px, 28px + 4cqi, 80px);
    --gutter: clamp(12px, 2cqi, 24px);
  }
}
