/* ==========================================================================
   Parkinship — Design Tokens
   Warm Sunbelt palette: rust copper accent, warm sand / near-black neutrals
   ========================================================================== */

:root {
  /* Type scale (fluid, clamp-based) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 6.75rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Clash Display', 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ---- Light mode (default) ---- */
:root,
[data-theme='light'] {
  /* Surfaces — warm sand */
  --color-bg: #f6f1e8;
  --color-surface: #ffffff;
  --color-surface-2: #fbf7ee;
  --color-surface-offset: #efe6d3;
  --color-surface-offset-2: #e7dcc3;
  --color-surface-dynamic: #ddd0b3;
  --color-divider: #e2d7bf;
  --color-border: #d8caa9;

  /* Text — dark umber charcoal */
  --color-text: #201a13;
  --color-text-muted: #6c6152;
  --color-text-faint: #a89c86;
  --color-text-inverse: #f8f2e6;

  /* Primary accent — Parkinship Copper */
  --color-primary: #bf3f0e;
  --color-primary-hover: #9c350c;
  --color-primary-active: #7a2a0a;
  --color-primary-highlight: #f1d4c0;

  /* Secondary supporting accent — Desert Dusk Plum (sparingly, e.g. sky gradient) */
  --color-plum: #4a3352;

  /* Warning / Error / Success (semantic, restrained use) */
  --color-warning: #8c5a12;
  --color-warning-highlight: #e9dcc0;
  --color-error: #96233a;
  --color-error-highlight: #e6cdd2;
  --color-success: #3d6a2c;
  --color-success-highlight: #d6e0cb;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 40 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.02 40 / 0.12);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 40 / 0.18);
}

/* ---- Dark mode ---- */
[data-theme='dark'] {
  --color-bg: #150f0a;
  --color-surface: #1b140e;
  --color-surface-2: #201810;
  --color-surface-offset: #241b12;
  --color-surface-offset-2: #2b2015;
  --color-surface-dynamic: #33261a;
  --color-divider: #2c2118;
  --color-border: #3a2c1e;

  --color-text: #f1e8da;
  --color-text-muted: #b3a58e;
  --color-text-faint: #7a6c58;
  --color-text-inverse: #201a13;

  --color-primary: #ea7635;
  --color-primary-hover: #f28f56;
  --color-primary-active: #ffab77;
  --color-primary-highlight: #3d2716;

  --color-plum: #9c86a8;

  --color-warning: #d8ac5c;
  --color-warning-highlight: #453a26;
  --color-error: #dd7f8e;
  --color-error-highlight: #402129;
  --color-success: #8fbf72;
  --color-success-highlight: #263420;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

/* Note: intentionally no `@media (prefers-color-scheme: dark)` block here.
   The site always boots in light mode (see js/main.js) regardless of the
   visitor's OS/browser preference. Dark mode is opt-in only, via the
   header toggle, which sets [data-theme='dark'] above. */
