/* ==========================================================================
   FUEGO & CARBÓN — Design Tokens
   Sistema de diseño premium · Industrial Editorial
   ========================================================================== */

:root {
  /* ---------- Color System (HSL) ---------- */
  --color-bg: hsl(0 0% 8%);
  --color-bg-elevated: hsl(0 0% 11%);
  --color-surface: hsl(0 0% 14%);
  --color-surface-alt: hsl(0 0% 18%);
  --color-surface-hover: hsl(0 0% 22%);

  --color-text: hsl(30 20% 96%);
  --color-text-muted: hsl(30 10% 70%);
  --color-text-subtle: hsl(30 8% 55%);
  --color-text-inverse: hsl(0 0% 10%);

  --color-primary: hsl(15 85% 52%);
  --color-primary-hover: hsl(15 85% 46%);
  --color-primary-active: hsl(15 85% 40%);
  --color-primary-subtle: hsl(15 60% 20%);

  --color-secondary: hsl(40 80% 55%);
  --color-secondary-hover: hsl(40 80% 48%);

  --color-accent: hsl(25 70% 45%);
  --color-border: hsl(0 0% 22%);
  --color-border-strong: hsl(0 0% 30%);
  --color-border-subtle: hsl(0 0% 16%);

  --color-success: hsl(145 60% 42%);
  --color-warning: hsl(40 90% 50%);
  --color-error: hsl(0 70% 55%);

  --color-overlay: hsl(0 0% 0% / 0.65);
  --color-overlay-light: hsl(0 0% 0% / 0.4);

  /* ---------- Typography ---------- */
  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --text-6xl: clamp(3.25rem, 2.4rem + 3.5vw, 5.5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.14em;

  /* ---------- Spacing Scale ---------- */
  --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;

  /* ---------- Border Radius ---------- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.25);
  --shadow-md: 0 4px 12px hsl(0 0% 0% / 0.3);
  --shadow-lg: 0 12px 32px hsl(0 0% 0% / 0.35);
  --shadow-xl: 0 20px 48px hsl(0 0% 0% / 0.4);
  --shadow-primary: 0 8px 24px hsl(15 85% 40% / 0.35);

  /* ---------- Layout ---------- */
  --container-sm: 640px;
  --container-md: 840px;
  --container-lg: 1120px;
  --container-xl: 1280px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);

  --header-height: 72px;
  --header-height-scrolled: 64px;
  --announcement-height: 40px;

  /* ---------- Transitions ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 320ms;
  --duration-slower: 450ms;

  /* ---------- Z-index ---------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* Light theme override (optional, primary is dark) */
[data-theme="light"] {
  --color-bg: hsl(30 20% 97%);
  --color-bg-elevated: hsl(30 15% 100%);
  --color-surface: hsl(30 15% 100%);
  --color-surface-alt: hsl(30 12% 94%);
  --color-surface-hover: hsl(30 12% 90%);

  --color-text: hsl(0 0% 12%);
  --color-text-muted: hsl(0 0% 40%);
  --color-text-subtle: hsl(0 0% 55%);
  --color-text-inverse: hsl(30 20% 96%);

  --color-primary: hsl(15 85% 48%);
  --color-primary-hover: hsl(15 85% 42%);
  --color-primary-active: hsl(15 85% 36%);
  --color-primary-subtle: hsl(15 40% 92%);

  --color-secondary: hsl(40 80% 48%);
  --color-secondary-hover: hsl(40 80% 42%);

  --color-border: hsl(30 10% 88%);
  --color-border-strong: hsl(30 10% 78%);
  --color-border-subtle: hsl(30 10% 92%);

  --color-overlay: hsl(0 0% 0% / 0.45);
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / 0.06);
  --shadow-md: 0 4px 12px hsl(0 0% 0% / 0.08);
  --shadow-lg: 0 12px 32px hsl(0 0% 0% / 0.1);
  --shadow-xl: 0 20px 48px hsl(0 0% 0% / 0.12);
  --shadow-primary: 0 8px 24px hsl(15 85% 48% / 0.25);
}
