/* ============================================================
   TYPOGRAPHY
   Display/headings: Plus Jakarta Sans (modern humanist, friendly + serious)
   Body/UI:          Public Sans (accessibility-first, highly legible)
   ============================================================ */
:root {
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

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

  /* Type scale (font-size; fluid where it matters) */
  --fs-xs:   0.75rem;   /* @kind spacing */
  --fs-sm:   0.875rem;  /* @kind spacing */
  --fs-base: 1rem;      /* @kind spacing */
  --fs-md:   1.125rem;  /* @kind spacing */
  --fs-lg:   1.375rem;  /* @kind spacing */
  --fs-xl:   1.75rem;   /* @kind spacing */
  --fs-2xl:  clamp(1.75rem, 1.2rem + 2vw, 2.25rem);  /* @kind spacing */
  --fs-3xl:  clamp(2.1rem, 1.4rem + 3vw, 2.9rem);    /* @kind spacing */
  --fs-4xl:  clamp(2.5rem, 1.5rem + 4.5vw, 3.75rem); /* @kind spacing */

  /* Line heights */
  --lh-tight:   1.1;   /* @kind other */
  --lh-snug:    1.25;  /* @kind other */
  --lh-normal:  1.5;   /* @kind other */
  --lh-relaxed: 1.65;  /* @kind other */

  /* Letter spacing */
  --ls-tight:  -0.02em;  /* @kind other */
  --ls-snug:   -0.01em;  /* @kind other */
  --ls-normal: 0;        /* @kind other */
  --ls-wide:   0.04em;   /* @kind other */
  --ls-caps:   0.08em;   /* @kind other */

  /* Semantic roles */
  --eyebrow-size: var(--fs-sm);
  --eyebrow-weight: var(--fw-bold);
}

/* Base element styling (opt-in via .esn-prose or applied globally by consumers) */
.esn-h1, .esn-h2, .esn-h3, .esn-h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}
.esn-h1 { font-size: var(--fs-4xl); font-weight: var(--fw-extra); }
.esn-h2 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); }
.esn-h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); }
.esn-h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); line-height: var(--lh-snug); letter-spacing: var(--ls-snug); }

.esn-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--brand-teal);
}
.esn-lead {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}
.esn-body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}
.esn-meta {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
