/* HerCapital — Design Tokens
   Aesthetic: Editorial/Magazine
   Frank: reference these tokens exclusively. Never hardcode values. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* ═══════════════════════════════════════════
     TYPOGRAPHY
     ═══════════════════════════════════════════ */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Scale — modular, magazine-grade */
  --text-xs: 0.75rem;     /* 12px — metadata, source citations */
  --text-sm: 0.875rem;    /* 14px — captions, overlines, tags */
  --text-base: 1.0625rem; /* 17px — body copy */
  --text-lg: 1.25rem;     /* 20px — lead paragraphs, card titles */
  --text-xl: 1.5rem;      /* 24px — H4, section subtitles */
  --text-2xl: 2rem;       /* 32px — H3, article titles */
  --text-3xl: 2.75rem;    /* 44px — H2, page headlines */
  --text-4xl: 3.75rem;    /* 60px — H1, hero headlines */
  --text-5xl: 5rem;       /* 80px — stat numbers, editorial emphasis */

  /* Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Leading */
  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.7;
  --leading-relaxed: 1.85;

  /* Tracking */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-widest: 0.14em;

  /* ═══════════════════════════════════════════
     COLORS
     ═══════════════════════════════════════════ */

  /* Core palette */
  --color-primary: #1A1A2E;       /* Deep ink — headings, nav, footer bg */
  --color-secondary: #2D2D44;     /* Softer ink — secondary headings, dark UI */
  --color-accent: #C2185B;        /* Deep magenta — CTAs, links, emphasis */
  --color-accent-hover: #A01349;  /* Darkened magenta for hover states */

  /* Surfaces */
  --color-bg: #FFFFFF;            /* Pure white — primary canvas */
  --color-surface: #F6F5F3;       /* Warm gray — card backgrounds, alternating sections */
  --color-surface-dark: #1A1A2E;  /* Ink — footer, stat bars, dark sections */
  --color-surface-accent: #FDF0F4; /* Pale magenta tint — CTA backgrounds, highlights */

  /* Text */
  --color-text: #1A1A2E;          /* Primary text — deep ink */
  --color-text-muted: #6B6B80;    /* Secondary text — metadata, captions */
  --color-text-inverse: #FFFFFF;  /* Text on dark backgrounds */
  --color-text-accent: #C2185B;   /* Accent text — links, tags, emphasis */

  /* Borders */
  --color-border: #E0DED9;        /* Subtle warm gray borders */
  --color-border-strong: #1A1A2E; /* Editorial rules, strong dividers */

  /* ═══════════════════════════════════════════
     SPACING
     ═══════════════════════════════════════════ */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* ═══════════════════════════════════════════
     RADIUS — editorial sites use minimal radius
     ═══════════════════════════════════════════ */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-full: 9999px;

  /* ═══════════════════════════════════════════
     SHADOWS
     ═══════════════════════════════════════════ */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.16);

  /* ═══════════════════════════════════════════
     MOTION
     ═══════════════════════════════════════════ */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.15, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-medium: 500ms;
  --duration-slow: 700ms;
  --duration-slower: 1000ms;

  /* ═══════════════════════════════════════════
     LAYOUT
     ═══════════════════════════════════════════ */
  --max-width: 1200px;
  --max-width-narrow: 720px;  /* Article/body text column */
  --max-width-wide: 1400px;   /* Full-bleed sections */
  --gutter: 24px;

  /* ═══════════════════════════════════════════
     Z-INDEX
     ═══════════════════════════════════════════ */
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-medium: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
}
