@layer base {
  /* ===================================================
     Typographic Scale + Normalised Copy Rules
     Version: 2.5  Luxe Typography Refresh (2026) — REVISED
     Changes:
     • Updated to v2.5 standard with full parity to root tokens
     • Minor comment clean-up for clarity
     • No functional changes — all typography, spacing, and link behaviour preserved exactly
     • Perfect alignment with all 7 pillar themes + global light/dark bases
     =================================================== */

  body {
    font-family: var(--type-body-font, var(--font-serif, 'Libre Baskerville', serif));
    font-size: var(--type-body-size);
    line-height: var(--type-body-line);
    font-weight: var(--type-body-weight, 400);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    margin: var(--space-md) 0 var(--space-sm);
    letter-spacing: var(--type-tracking-heading, 0.04em);
    color: var(--text-accent);
    font-weight: var(--type-weight-semibold, 600);
  }

  h1, .page-title, .index-heading {
    font-family: var(--page-title, 'Cormorant Garamond', serif);
    font-weight: var(--type-weight-bold, 700);
    letter-spacing: var(--type-tracking-page-title, 0.025em);
  }

  h2, h3 {
    font-family: var(--font-display);
    font-weight: var(--type-weight-bold, 700);
    letter-spacing: var(--type-tracking-heading, 0.04em);
  }

  .card-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-weight: var(--type-weight-bold, 700);
    letter-spacing: var(--type-tracking-heading, 0.04em);
  }

  /* Copy normalisation – paragraphs and lists share the same comfortable sizing
     Batch 4D: removed the confirmed-dead `.note` selector from this list — no
     live template, JS or built-output reference (see the Batch 4C audit). */
  :where(p, li, .card-desc, .disclaimer-box p) {
    font-family: var(--font-serif, 'Libre Baskerville', serif);
    font-weight: var(--type-weight-regular, 400);
    font-size: var(--type-copy-size, 1em);
    line-height: var(--type-copy-line);
  }

  /* Lock subline (used on season/landing pages) */
  .lock-subline {
    font-size: var(--type-copy-size, 1em);
    line-height: var(--type-copy-line);
    color: var(--text-accent);
    max-width: 72ch;
    margin: var(--space-md) auto;
    padding: var(--space-sm);
    text-align: left;
  }

  @media (min-width: 769px) {
    .lock-subline {
      margin-inline: 0;
      padding-inline: 0;
    }
  }

  /* Lists inherit the same comfortable sizing as body copy */
  :where(ul, ol) {
    font-size: var(--type-list-size, var(--type-copy-size, 1em));
    line-height: var(--type-list-line);
    padding-left: var(--list-indent, 1.25em);
    margin: var(--space-xs) 0 var(--list-gap, 0.6em);
  }

  :where(li) {
    margin-bottom: var(--list-gap, 0.6em);
  }

  /* Nested lists stay the same size */
  :where(li > ul, li > ol) {
    margin-top: var(--list-gap, 0.6em);
  }

  /* Badges, cards, and small UI text */
  .card-badge,
  .card-overlay .banner,
  .badge {
    font-family: var(--font-display);
    font-weight: var(--type-weight-semibold, 600);
    letter-spacing: var(--type-tracking-badge, 0.05em);
    font-size: var(--type-badge-size, 0.85em);
  }

  /* Links */
  a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  a:hover,
  a:focus-visible {
    color: var(--highlight);
    text-shadow: 0 0 8px var(--shadow-glow);
  }

  /* Utility helpers */
  .muted { color: var(--text-muted); }
  .small { font-size: var(--type-small-size, var(--font-size-vs)); line-height: var(--type-copy-line); }
  .small.muted,
  .muted.small { font-size: calc(var(--type-small-size, var(--font-size-vs)) * 1.1); }

  /* Strong & emphasis inside copy */
  strong, b { color: var(--strong-text); font-weight: var(--type-weight-semibold, 600); }
  em { color: var(--text-accent); font-style: italic; }
}
