/* ============================================================
   Theme — Typography
   Modeled on Ignite's theme/typography.ts.

   Font families, weights, a size scale, and line heights.
   All font @imports for the site live here, in one place.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,600;6..72,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Libre+Franklin:wght@400;500;600;700&display=swap');

:root {
  /* ---------- Families ----------
     Three families, no more. An editorial site needs a headline serif, a
     reading serif, and one sans for rubrics; a fourth face is a tell that
     nobody chose. Size, weight, and rules carry the rest of the hierarchy.

     Newsreader is the headline face: a newspaper serif with an optical-size
     axis, so it stays sturdy at a masthead size and doesn't get spindly in a
     small card title. It runs light, so the h1 scale below is set a step large.

     Source Serif 4 is the body face. Its optical-size axis keeps the 0.75rem
     source lines under ledger rows crisp on a modern display.

     Libre Franklin is the UI and rubric face. It descends from Franklin Gothic,
     the face on American newspaper decks for a century, so nav and meta lines
     share the headline's print ancestry. */
  --font-heading: 'Newsreader', Georgia, serif;
  --font-content: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Libre Franklin', Helvetica, Arial, sans-serif;

  /* ---------- Weights ---------- */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-bold-heading: var(--font-weight-semibold);

  /* ---------- Size scale ---------- */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.85rem;
  --font-size-md: 1rem;
  /* The lede rung. md → lg is a 25% jump, which is a lot for running prose: a
     paragraph set one full step above body copy stops reading as a lede and
     starts reading as large type. This is the half-step for prose that should
     sit just above body size — currently the artist-page influence summary. */
  --font-size-lede: 1.0625rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;

  /* Semantic size aliases (existing names, mapped to the scale) */
  --font-size-base: var(--font-size-md);
  --font-size-base-plus: var(--font-size-lg);
  --font-size-small: var(--font-size-xs);
  --font-size-medium: var(--font-size-sm);
  --font-size-heading: var(--font-size-2xl);
  --font-size-heading-medium: var(--font-size-xl);
  --font-size-heading-xl: var(--font-size-3xl);
  --font-size-page-title: var(--font-size-4xl);
  --font-size-heading-mobile: var(--font-size-xl);
  --font-size-page-heading-mobile: var(--font-size-2xl);
  --font-size-section-heading-mobile: 1.85rem;

  /* Wordmark in the fixed header. The header doesn't resize on scroll, so this
     is the only size. */
  --font-size-site-title: 1.4rem;

  /* ---------- Line heights ---------- */
  --line-height-tight: 1.3;
  --line-height-body: 1.7;
  --line-height-relaxed: 1.8;

  /* ---------- Letter spacing ----------
     Uppercase text needs air. Capitals were designed to sit in inscriptions
     with generous space around them, and setting them at body tracking makes
     a rubric read as cramped interface chrome rather than a considered label.
     --tracking-caps is the default for any `text-transform: uppercase` rule;
     --tracking-caps-wide is for short, isolated labels (a kicker, a single
     badge) where the extra air reads as deliberate rather than loose.

     Negative tracking is for large display type only, where default spacing
     looks gappy. Never apply it below about 1.5rem. */
  --tracking-caps: 0.13em;
  --tracking-caps-wide: 0.16em;
  --tracking-display: -0.02em;
  --tracking-display-tight: -0.025em;
}
