/*
 * Landing v2026 — self-hosted display + mono fonts for stardentlab.com.
 * Wired by L6 PR-B. Consumed by `font-display` / `font-mono` Tailwind
 * utilities defined in tailwind.config.ts (PR-A).
 *
 * Privacy basis: same as inter.css — removes pre-consent transmission
 * of visitor IP to third-party font CDNs (AVG/GDPR Art. 5(1)(a) +
 * Art. 13, Dutch AP 2022 Google Fonts guidance).
 *
 * Font licenses:
 *   - Fraunces by Phaedra Charles / Undercase Type — SIL Open Font 1.1
 *   - JetBrains Mono by JetBrains s.r.o. — SIL Open Font 1.1
 *
 * Source: cdn.jsdelivr.net/fontsource (Latin subset, variable weight).
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 105%;
  src: url('/fonts/Fraunces-VF.woff2') format('woff2-variations');
}

/*
 * CLS-killer fallback (L6 Phase 2b). The big hero H1 reflows when
 * Fraunces swaps in under slow load (Lighthouse measured CLS 0.516).
 * This metric-adjusted Georgia fallback is sized so its line box +
 * advance width approximate Fraunces-as-displayed (which itself runs
 * at size-adjust:105%). With it as the first fallback in the
 * `font-display` stack, the swap from fallback → Fraunces produces a
 * near-zero layout shift. Same technique Next.js/Fontaine apply
 * automatically; tuned here by hand + verified via Lighthouse.
 */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman');
  ascent-override: 91%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 112%;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  size-adjust: 95%;
  src: url('/fonts/JetBrainsMono-VF.woff2') format('woff2-variations');
}
