/* ============================================================
   COACH STEVE BASEBALL — Design Tokens
   Black · Red · White sports performance palette
   ============================================================ */

:root,
[data-theme='light'] {
  /* ── Surfaces ────────────────────────────────────────────── */
  --color-bg:               #f5f0e8;   /* warm cream */
  --color-surface:          #fffef9;
  --color-surface-2:        #ffffff;
  --color-surface-offset:   #ede8df;
  --color-surface-dark:     #0d0d0d;
  --color-surface-card:     #141414;
  --color-divider:          rgba(0,0,0,0.10);
  --color-border:           rgba(0,0,0,0.14);

  /* ── Text ────────────────────────────────────────────────── */
  --color-text:             #111111;
  --color-text-muted:       #555555;
  --color-text-faint:       #999999;
  --color-text-inverse:     #ffffff;
  --color-text-on-dark:     #ffffff;
  --color-text-muted-dark:  rgba(255,255,255,0.65);

  /* ── Brand Red ───────────────────────────────────────────── */
  --color-red:              #cc0000;
  --color-red-hover:        #aa0000;
  --color-red-active:       #880000;
  --color-red-muted:        rgba(204,0,0,0.12);

  /* ── Type Scale ─────────────────────────────────────────── */
  --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,    5rem);
  --text-hero:  clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* ── Spacing ────────────────────────────────────────────── */
  --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.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-pill: 9999px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
  --shadow-red: 0 4px 24px rgba(204,0,0,0.30);

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

  /* ── Widths ─────────────────────────────────────────────── */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* ── Fonts ──────────────────────────────────────────────── */
  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;
}

/* Dark mode — dark nav / hero sections use these via class */
[data-theme='dark'],
.dark-section {
  --color-bg:           #0d0d0d;
  --color-surface:      #141414;
  --color-surface-2:    #1a1a1a;
  --color-border:       rgba(255,255,255,0.10);
  --color-text:         #ffffff;
  --color-text-muted:   rgba(255,255,255,0.65);
  --color-text-faint:   rgba(255,255,255,0.35);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.40);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.50);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg:           #0d0d0d;
    --color-surface:      #141414;
    --color-surface-2:    #1a1a1a;
    --color-border:       rgba(255,255,255,0.10);
    --color-text:         #ffffff;
    --color-text-muted:   rgba(255,255,255,0.65);
    --color-text-faint:   rgba(255,255,255,0.35);
  }
}
