/* ============================================================
   TYPOGRAPHY
   ============================================================ */
:root {
  /* Families */
  --font-brand:   'Baloo 2', 'Trebuchet MS', system-ui, sans-serif; /* rounded, logo-matching */
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;         /* editorial long-form */
  --font-sans:    'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; /* UI + body */
  --font-script:  'Caveat', 'Segoe Script', cursive;                 /* handwritten accent */

  /* Type scale (1.250 major-third, 16px base) */
  --text-2xs: 0.694rem;   /* 11px  micro labels        */
  --text-xs:  0.8rem;     /* 12.8  captions            */
  --text-sm:  0.9rem;     /* 14.4  meta, small UI      */
  --text-md:  1rem;       /* 16    body                */
  --text-lg:  1.125rem;   /* 18    lead body           */
  --text-xl:  1.5rem;     /* 24    small heading       */
  --text-2xl: 1.953rem;   /* 31    section heading     */
  --text-3xl: 2.75rem;    /* 44    page heading        */
  --text-4xl: 3.75rem;    /* 60    hero                */
  --text-5xl: 5rem;       /* 80    display             */

  /* Weights */
  --fw-regular: 400;  /* @kind other */
  --fw-medium:  600;  /* @kind other */
  --fw-bold:    700;  /* @kind other */
  --fw-black:   800;  /* @kind other */

  /* Line heights */
  --lh-tight:   1.05; /* @kind other */
  --lh-snug:    1.2;  /* @kind other */
  --lh-normal:  1.5;  /* @kind other */
  --lh-relaxed: 1.7;  /* @kind other */

  /* Letter spacing */
  --ls-tight:   -0.02em; /* @kind other */
  --ls-normal:  0;       /* @kind other */
  --ls-wide:    0.02em;  /* @kind other */
  --ls-label:   0.14em;  /* @kind other */

  /* ---- Semantic roles ---- */
  --role-display:  var(--fw-black)   var(--text-5xl)/var(--lh-tight) var(--font-brand);
  --role-hero:     var(--fw-bold)    var(--text-4xl)/var(--lh-tight) var(--font-brand);
  --role-h1:       var(--fw-bold)    var(--text-3xl)/var(--lh-snug)  var(--font-brand);
  --role-h2:       var(--fw-bold)    var(--text-2xl)/var(--lh-snug)  var(--font-brand);
  --role-h3:       var(--fw-bold)    var(--text-xl)/var(--lh-snug)   var(--font-brand);
  --role-article:  var(--fw-regular) var(--text-lg)/var(--lh-relaxed) var(--font-serif);
  --role-body:     var(--fw-regular) var(--text-md)/var(--lh-normal) var(--font-sans);
  --role-meta:     var(--fw-bold)    var(--text-xs)/var(--lh-normal) var(--font-sans);
  --role-script:   var(--fw-bold)    var(--text-2xl)/var(--lh-snug)  var(--font-script);
}
