/* ============================================================
   tokens.css — Cold Case Club v2
   Locked palette + typography per LANDING-v2-SPEC.md §3
   ============================================================ */

:root {
  /* Base */
  --bg-base:          #0f0c09;
  --bg-elevated:      #1a1612;
  --bg-overlay:       rgba(15, 12, 9, 0.72);

  /* Accents */
  --accent-primary:     #d4a94a;  /* warm amber gold */
  --accent-primary-hot: #e6c45a;  /* gold hover / pressed */
  --accent-secondary:   #8b1a1a;  /* oxblood red */
  --accent-red-bright:  #c62828;  /* pulse dot, LIVE badge */
  --accent-dim:         rgba(212, 169, 74, 0.18);

  /* Surfaces */
  --bg-card:          #12121a;   /* legacy style.css card */
  --bg-paper:         #ece4d2;   /* cream polaroid / paper evidence */

  /* Text */
  --text-highlight:   #f4d89a;  /* candlelight */
  --text-body:        #d8cfc2;  /* aged paper */
  --text-muted:       #8a8073;
  --text-dim:         #4a4a5e;  /* dividers, very low emphasis */
  --text-inverse:     #0f0c09;

  /* Crime-scene tape */
  --tape-yellow:      #f5c518;
  --tape-black:       #1a1a1a;

  /* Type */
  --font-serif:       "Fraunces", "Playfair Display", Georgia, serif;
  --font-display:     "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans:        "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:        "Courier Prime", "Courier New", monospace;

  /* Scale */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.75rem;
  --fs-4xl:    clamp(2rem, 4.5vw, 3.4rem);
  --fs-5xl:    clamp(2.25rem, 5.4vw, 4.2rem);
  --fs-display: clamp(2.8rem, 9vw, 8.5rem);     /* v3 ultra-display for hero */

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

  /* Borders + radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;

  /* Shadows (warm, not cool) */
  --shadow-md:  0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 169, 74, 0.08);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 169, 74, 0.1);
  --glow-amber:     0 0 32px rgba(212, 169, 74, 0.35);
  --glow-amber-hot: 0 0 44px rgba(212, 169, 74, 0.60);

  /* Timing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --ease-io:     cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.76, 0, 0.24, 1);

  /* Layout */
  --container:  min(1200px, 92vw);
  --tape-h:     32px;
}

/* Reset + base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles it */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--accent-primary); text-decoration: none; transition: color 160ms var(--ease-out); }
a:hover { color: var(--text-highlight); }

::selection { background: var(--accent-secondary); color: var(--text-highlight); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.08; color: var(--text-highlight); letter-spacing: -0.015em; }
h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reduced motion — kill animations but keep layout */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
