/* ================================================================
   C5 Design Tokens — Single Source of Truth
   Source: brand-os/tokens.css
   Version: 1.0
   ================================================================ */

:root {
  /* ── Primitive Colors ── */
  --c5-orange: #f44d37;
  --c5-dark-grey: #1a171a;
  --c5-dark: #1a171a;
  --c5-white: #ffffff;
  --c5-light-grey: #f6f6f6;
  --c5-light-pink: #fbdbf2;
  --c5-acid-green: #b9ec3b;

  /* Compact aliases */
  --orange: #f44d37;
  --dark: #1a171a;
  --white: #ffffff;
  --grey: #f6f6f6;
  --pink: #fbdbf2;
  --green: #b9ec3b;

  /* ── Semantic Surfaces ── */
  --surface: #1a171a;
  --surface-default: #1a171a;
  --surface-light: #f6f6f6;
  --surface-card: rgba(255, 255, 255, 0.04);
  --surface-card-border: rgba(255, 255, 255, 0.12);
  --surface-card-hover: rgba(255, 255, 255, 0.07);
  --surface-divider: rgba(255, 255, 255, 0.15);

  /* Compact aliases */
  --card: rgba(255, 255, 255, 0.04);
  --card-b: rgba(255, 255, 255, 0.12);
  --card-h: rgba(255, 255, 255, 0.07);
  --divider: rgba(255, 255, 255, 0.15);

  /* ── Semantic Text ── */
  --text-primary: rgba(255, 255, 255, 1);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);

  /* Compact aliases */
  --t1: rgba(255, 255, 255, 1);
  --t2: rgba(255, 255, 255, 0.6);
  --t3: rgba(255, 255, 255, 0.4);

  /* ── Action ── */
  --action-primary: #f44d37;

  /* ── Campaign ── */
  --surface-campaign: #fbdbf2;

  /* ── Radii ── */
  --radius-card: 50px;
  --radius-pill: 999px;
  --radius-input: 8px;
  --radius-sm: 16px;

  /* Compact aliases */
  --r-card: 50px;
  --r-pill: 999px;

  /* ── Typography ── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f: Inter, system-ui, -apple-system, sans-serif;

  --display-size: clamp(48px, 7vw, 96px);
  --h1-size: 48px;
  --h2-size: 32px;
  --h3-size: 22px;
  --body-size: 16px;
  --label-size: 13px;

  /* ── Motion ── */
  --motion-instant: 80ms;
  --motion-fast: 150ms;
  --motion-standard: 250ms;
  --motion-slow: 400ms;

  /* ── Web Type Scale (confirmed from columnfivemedia.com) ── */
  --web-display-size: 124px;
  --web-display-weight: 600;
  --web-display-leading: 0.88;
  --web-display-tracking: -4.96px;
  --web-h1-size: 64px;
  --web-h1-leading: 1.04;
  --web-h2-size: 48px;
  --web-h2-leading: 1.12;
  --web-h3-size: 24px;
  --web-h3-leading: 1.2;
  --web-h4-size: 20px;
  --web-h4-leading: 1.28;
  --web-nav-size: 18px;
  --web-body-size: 16px;
  --web-body-light-size: 14px;
  --web-label-size: 13px;
  --web-small-size: 12px;

  /* ── Additional Radii (from live site) ── */
  --radius-md: 14px;
  --radius-lg: 60px;
}

/* ================================================================
   Light Theme — confirmed from columnfivemedia.com (March 2026)
   Apply via [data-theme="light"] or .theme-light
   ================================================================ */

[data-theme="light"],
.theme-light {
  /* ── Surfaces ── */
  --surface: #ffffff;
  --surface-default: #ffffff;
  --surface-alt: #f2f2f2;
  --surface-warm: #faf9f5;
  --surface-card: rgba(0, 0, 0, 0.03);
  --surface-card-border: rgba(0, 0, 0, 0.08);
  --surface-card-hover: rgba(0, 0, 0, 0.05);
  --surface-divider: rgba(0, 0, 0, 0.10);

  /* Compact aliases */
  --card: rgba(0, 0, 0, 0.03);
  --card-b: rgba(0, 0, 0, 0.08);
  --card-h: rgba(0, 0, 0, 0.05);
  --divider: rgba(0, 0, 0, 0.10);

  /* ── Text ── */
  --text-primary: #1a171a;
  --text-secondary: #545759;
  --text-tertiary: #a7a7aa;

  /* Compact aliases */
  --t1: #1a171a;
  --t2: #545759;
  --t3: #a7a7aa;

  /* ── Action ── */
  --action-primary: #f44d37;
  --action-hover: #e4250c;

  /* ── Campaign ── */
  --surface-campaign: #fbdbf2;
}

/* ── Best Story Wins Badge Animation ── */
@keyframes c5-spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) {
  .bsw-badge { animation: none !important; }
}
