/* ============================================================
   MagpieToolbox - Typography tokens
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans:    'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* semantic family aliases */
  --font-heading: var(--font-display);
  --font-body:    var(--font-sans);
  --font-numeric: var(--font-mono);

  /* ---- Type scale (16px root) ---- */
  --text-2xs:  0.6875rem;  /* 11 - micro labels */
  --text-xs:   0.75rem;    /* 12 */
  --text-sm:   0.8125rem;  /* 13 */
  --text-md:   0.875rem;   /* 14 - dense UI text */
  --text-base: 1rem;       /* 16 - body default */
  --text-lg:   1.125rem;   /* 18 */
  --text-xl:   1.375rem;   /* 22 */
  --text-2xl:  1.75rem;    /* 28 */
  --text-3xl:  2.25rem;    /* 36 */
  --text-4xl:  3rem;       /* 48 */
  --text-5xl:  3.75rem;    /* 60 */
  --text-6xl:  4.5rem;     /* 72 */

  /* fluid display sizes for hero headlines */
  --text-hero:  clamp(2.5rem, 6vw, 4.25rem);   /* @kind font */
  --text-title: clamp(1.875rem, 4vw, 2.75rem); /* @kind font */

  /* ---- Weights ---- */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* ---- Line heights ---- */
  --leading-none:    1;
  --leading-tight:   1.12;
  --leading-snug:    1.28;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  /* ---- Letter spacing ---- */
  --tracking-tighter: -0.03em;
  --tracking-tight:   -0.02em;
  --tracking-snug:    -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-caps:    0.09em;  /* uppercase eyebrows / overlines */
}
