/* Editorial type system:
   - Performance Sans  → chrome, headings, meta
   - Performance Serif → prose body
   - Performance Mono  → diagrams (loaded on demand)

   No italic faces shipped — italics are explicitly disabled in
   shell.tsx (em, i { font-style: normal }), so loading italic woff2
   would just be wasted bytes. font-synthesis: none on body keeps the
   browser from faking italics if anyone ever opts in via inline style.

   font-display: optional — if the woff2 arrives within the browser's
   short grace window (typically ~100ms) the editorial face is used
   for this paint; otherwise the fallback persists for the page and
   the woff2 caches for next time. No mid-paint swap, no layout
   shift. Preloaded woff2 + brotli + HTTP/3 means the gate almost
   always succeeds. */

@font-face {
  font-family: "Performance Sans";
  src: url("/fonts/performance-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Performance Sans";
  src: url("/fonts/performance-sans-bold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Performance Serif";
  src: url("/fonts/performance-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: "Performance Serif";
  src: url("/fonts/performance-serif-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

/* Performance Mono — used by .post-diagram for ASCII architecture
   diagrams. Full character set including box-drawing (U+2500–U+257F)
   and shade blocks (U+2580–U+259F). */
@font-face {
  font-family: "Performance Mono";
  src: url("/fonts/performance-mono-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
