/* FACTASH Design Tokens — editorial technology publication */
:root {
  /* Brand */
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --secondary: #0f172a;
  --accent: #ea580c;

  /* Surfaces */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Text */
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #f8fafc;

  /* Status */
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;

  /* Typography */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-display: clamp(2rem, 3.2vw, 2.75rem);
  --fs-h1: clamp(1.75rem, 2.6vw, 2.35rem);
  --fs-h2: clamp(1.35rem, 1.8vw, 1.65rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-caption: 0.78rem;
  --fs-meta: 0.82rem;

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-body: 1.7;
  --measure: 72ch;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
  --radius-sm: 0.4rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.9rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

  /* Ads / CLS */
  --ad-min-height: 100px;
}

[data-theme="dark"] {
  --bg: #020617;
  --surface: #0b1220;
  --surface-muted: #111827;
  --border: #1e293b;
  --border-strong: #334155;
  --text: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --secondary: #e2e8f0;
  --white: #0b1220;
  --glass: rgba(15, 23, 42, 0.82);
  --glass-border: rgba(51, 65, 85, 0.7);
}
