/* tokens.css — variables de diseño + @font-face self-hosted */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/Newsreader-Regular.woff2') format('woff2');
}

:root,
html[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAF9F7;
  --bg-tertiary: #F3F1ED;

  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;

  --border-tertiary: rgba(0, 0, 0, 0.08);
  --border-secondary: rgba(0, 0, 0, 0.15);

  --accent: #0F766E;
  --accent-hover: #0D5F58;
  --accent-soft: rgba(15, 118, 110, 0.10);
  --accent-contrast: #FFFFFF;

  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  --logo-dot: #0F766E;
  --nav-bg: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] {
  --bg-primary: #1A1815;
  --bg-secondary: #131210;
  --bg-tertiary: #0E0D0B;

  --text-primary: #F5F4F0;
  --text-secondary: #B8B5AC;
  --text-tertiary: #8A8780;

  --border-tertiary: rgba(255, 255, 255, 0.08);
  --border-secondary: rgba(255, 255, 255, 0.15);

  --accent: #5EEAD4;
  --accent-hover: #2DD4BF;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --accent-contrast: #0E0D0B;

  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.50);

  --logo-dot: #5EEAD4;
  --nav-bg: rgba(26, 24, 21, 0.72);
}

:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-body: 16px;
  --text-small: 13px;
  --text-h1: clamp(2rem, 4vw + 1rem, 2.6rem);
  --text-h2: clamp(1.5rem, 2vw + 1rem, 1.95rem);
  --text-h3: 1.25rem;

  --line-tight: 1.25;
  --line-snug: 1.4;
  --line-body: 1.6;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;

  --container-max: 1100px;
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
