/* Base tokens (#84, ADR 0013): neutrals, type, spacing, shape, motion. The same values
   are in tokens.json; TestTokensMatchCSS fails when the two disagree. The product's accent is
   in theme.css; components are in site.css, which only reads these properties. */

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-price: 1.75rem;

  --leading-tight: 1.2;
  --leading-base: 1.5;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 650;

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

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --size-page: 44rem;
  --size-narrow: 30rem;
  --size-target: 44px;
  --size-chip: 36px;

  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-easing: cubic-bezier(0.2, 0, 0, 1);
}

/* Light, the default: a warm off-white page with white cards. */
:root, .theme-light {
  color-scheme: light;
  --color-bg: #faf8f5;
  --color-card: #ffffff;
  --color-ink: #1f1d1a;
  --color-muted: #5f5a53;
  --color-line: #e6e1da;
  --color-field: #8c857b;
  --color-error: #b3261e;
  --color-pin-outline: #ffffff;
  --shadow-card: 0 1px 2px rgb(31 29 26 / 0.06), 0 1px 3px rgb(31 29 26 / 0.08);
}

/* Dark: for visitors whose system asks for it, and for .theme-dark (the /_design page). */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg: #161513;
    --color-card: #201f1c;
    --color-ink: #ece8e2;
    --color-muted: #a9a39a;
    --color-line: #36332e;
    --color-field: #77716a;
    --color-error: #f2b8b5;
    --color-pin-outline: #ffffff;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4);
  }
}

.theme-dark {
  color-scheme: dark;
  --color-bg: #161513;
  --color-card: #201f1c;
  --color-ink: #ece8e2;
  --color-muted: #a9a39a;
  --color-line: #36332e;
  --color-field: #77716a;
  --color-error: #f2b8b5;
  --color-pin-outline: #ffffff;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4);
}
