/* ============================================================
   UX.IPEK — Typography tokens
   Inter for UI & headlines · Playfair Display for editorial
   pull-quotes · Space Grotesk for eyebrows, data & wordmark.
   ============================================================ */

:root {
  /* --- Families --------------------------------------------- */
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif:   "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono:    "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Weights ---------------------------------------------- */
  --fw-light:   300; /* @kind font */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */

  /* --- Fluid display scale (headlines use Inter medium) ----- */
  --text-display-2xl: clamp(3rem, 6vw, 4.5rem);    /* 48 → 72  hero       */
  --text-display-xl:  clamp(2.5rem, 4.6vw, 3.5rem);/* 40 → 56  section H2 */
  --text-display-lg:  clamp(2rem, 3.4vw, 2.75rem); /* 32 → 44             */
  --text-display-md:  clamp(1.6rem, 2.4vw, 2rem);  /* 26 → 32  card title */

  /* --- Static UI scale -------------------------------------- */
  --text-2xl: 1.5rem;    /* 24 */
  --text-xl:  1.25rem;   /* 20 */
  --text-lg:  1.125rem;  /* 18 */
  --text-md:  1rem;      /* 16  base body */
  --text-sm:  0.875rem;  /* 14 */
  --text-xs:  0.75rem;   /* 12 */
  --text-2xs: 0.6875rem; /* 11  eyebrow / micro-label */

  /* --- Line heights ----------------------------------------- */
  --leading-none:  1.05;  /* large display          */
  --leading-tight: 1.15;  /* headlines              */
  --leading-snug:  1.35;
  --leading-normal:1.6;   /* body copy              */
  --leading-relaxed:1.75;

  /* --- Letter spacing --------------------------------------- */
  --tracking-tighter: -0.03em; /* big display        */
  --tracking-tight:   -0.015em;/* headlines          */
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-eyebrow: 0.2em;   /* uppercase eyebrows */

  /* --- Semantic role aliases -------------------------------- */
  --type-hero-family:   var(--font-sans);
  --type-hero-weight:   var(--fw-medium);
  --type-eyebrow-family:var(--font-display);
  --type-quote-family:  var(--font-serif);
  --type-data-family:   var(--font-display);
}
