/* Design tokens from spec §8.2. Tailwind theme will read these same values. */
:root {
  --color-text: #102027;
  --color-text-muted: #52606d;
  --color-text-subtle: #3e4c59;
  --color-brand: #0b63ce;
  --color-brand-pressed: #084c9e;
  --color-brand-tint: #e8f1fc;
  --color-brand-solid: #0b63ce; /* filled buttons (white text) */
  --color-brand-solid-hover: #084c9e;
  --color-success: #268736; /* spec #278A37 is 4.40:1 with white; nudged to pass AA */
  --color-success-text: #1e6e2c;
  --color-success-tint: #e6f4e8;
  --color-warning: #8a5f00;
  --color-warning-text: #7a5300;
  --color-warning-tint: #fff3d6;
  --color-danger: #b42318;
  --color-danger-text: #8f1d13;
  --color-danger-tint: #fdecea;
  --color-pickleball: #d8f238;
  --color-surface: #ffffff;
  --color-background: #f6f7f7;
  --color-border: #e1e5e8;
  --color-border-input: #cbd2d9;
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-pill: 999px;
  --font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root {
  --shadow-card: 0 1px 2px rgba(16, 32, 39, .05), 0 2px 8px rgba(16, 32, 39, .04);
  --shadow-raised: 0 4px 16px rgba(16, 32, 39, .10);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* Dark mode follows the device setting. Text colors are lighter so they keep AA contrast
   on dark surfaces; filled buttons keep a mid blue/green/red that passes with white text. */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #e7ecf0;
    --color-text-muted: #a3afba;
    --color-text-subtle: #c5ced6;
    --color-brand: #7ab4ff;
    --color-brand-pressed: #b5d3ff;
    --color-brand-tint: #1a2b42;
    --color-brand-solid: #2f74d0;
    --color-brand-solid-hover: #255fae;
    --color-success-text: #8fd49b;
    --color-success-tint: #16301c;
    --color-warning-text: #f0c56a;
    --color-warning-tint: #33290f;
    --color-danger-text: #ff9e93;
    --color-danger-tint: #3b1a17;
    --color-surface: #171d22;
    --color-background: #0e1316;
    --color-border: #2a333a;
    --color-border-input: #3d4851;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-raised: 0 4px 16px rgba(0, 0, 0, .5);
  }
}
