/* ============================================================
   SuperScout — base.css
   Design tokens, reset, typography base.
   Dark mode is default. Light mode via [data-theme="light"].
   ============================================================ */

:root,
:root[data-theme="dark"] {
  /* Brand */
  --indigo: #4B3FD4;
  --gold: #F5A623;
  --coral: #FF6B6B;
  --green: #4CAF7D;
  --amber: #E5A825;
  --error: #E84C4C;

  /* Vibe accents */
  --vibe-expert: #6B8FBF;
  --vibe-critic: #C49B2A;
  --vibe-fanboy: #FF6B6B;

  /* Surfaces (dark) */
  --bg: #0D0D1A;
  --surface: #161630;
  --surface-alt: #1E1E42;
  --surface-elevated: #252550;
  --border: #2A2A5A;

  /* Text (dark) */
  --text-primary: #EEEEF2;
  --text-secondary: #9999B8;
  --text-muted: #666680;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;
  --text-hero: clamp(2.75rem, 8vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --radius-card: 12px;
  --radius-pill: 999px;

  /* Shadow (for lifts) */
  --shadow-cta: 0 8px 24px rgba(245, 166, 35, 0.25);
  --shadow-cta-hover: 0 12px 32px rgba(245, 166, 35, 0.35);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
}

:root[data-theme="light"] {
  --bg: #F8F7F5;
  --surface: #FFFFFF;
  --surface-alt: #F0EFE9;
  --surface-elevated: #FFFFFF;
  --border: #E0DED6;
  --text-primary: #1A1A2E;
  --text-secondary: #666666;
  --text-muted: #999999;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Type base ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}
h2 { font-weight: 500; letter-spacing: -0.015em; }
p { margin: 0; }

/* Italic forbidden per brand; use bold */
em, i { font-style: normal; font-weight: 600; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Selection */
::selection { background: var(--gold); color: #1A1A2E; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
