/* base.css — resets, tokens, fluid type scale */
:root {
  color-scheme: light dark;

  /* Light mode */
  --bg: #E6E8EA;
  --surface: #EEF0F1;
  --surface-2: #D6D9DC;
  --surface-offset: #C7CBCF;
  --border: #BEC2C6;
  --text: #1C2B3A;
  --text-muted: #5C6B7A;
  --text-faint: #97A2AC;
  --primary: #CC3210;
  --primary-hover: #A3270C;
  --on-primary: #FFFFFF;
  --accent-gold: #F5A623;
  --dark-band: #17212C;
  --success: #2F7D4F;
  --warning: #A8631A;
  --error: #B23B3B;

  --font-display: 'Switzer', 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

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

  --text-xs: clamp(0.75rem, 0.72rem + 0.1vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.3rem + 0.35vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.6rem + 0.7vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 2rem + 1.2vw, 3.25rem);
  --text-hero: clamp(2.75rem, 2.3rem + 2.2vw, 4.5rem);

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(28,43,58,0.06), 0 1px 1px rgba(28,43,58,0.04);
  --shadow-md: 0 4px 12px rgba(28,43,58,0.08), 0 2px 4px rgba(28,43,58,0.05);
  --shadow-lg: 0 12px 32px rgba(28,43,58,0.12), 0 4px 8px rgba(28,43,58,0.06);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme='dark'] {
  --bg: #12181F;
  --surface: #171F27;
  --surface-2: #1D2731;
  --surface-offset: #212B36;
  --border: #2B3640;
  --text: #E7E9EA;
  --text-muted: #9AA6B0;
  --text-faint: #66727C;
  --primary: #FF6B45;
  --primary-hover: #FF8F6B;
  --on-primary: #14181C;
  --accent-gold: #FFC24B;
  --dark-band: #0D1319;
  --success: #6DAA45;
  --warning: #BB653B;
  --error: #D163A7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #12181F; --surface: #171F27; --surface-2: #1D2731; --surface-offset: #212B36;
    --border: #2B3640; --text: #E7E9EA; --text-muted: #9AA6B0; --text-faint: #66727C;
    --primary: #FF6B45; --primary-hover: #FF8F6B; --on-primary: #14181C; --accent-gold: #FFC24B; --dark-band: #0D1319;
    --success: #6DAA45; --warning: #BB653B; --error: #D163A7;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
