/* ============================================================
   Self-hosted Geist webfonts
   ============================================================
   Replaces the Google Fonts CDN <link> that the studio used to
   load Geist from. Local hosting gives us:

     · Deterministic font availability in the server-side
       Chromium PDF renderer (no CDN race / outage risk).
     · Faster initial page load — no DNS handshake + CSS fetch
       to fonts.googleapis.com before the font files even start
       downloading.
     · A class of "font didn't load in time" rendering bugs
       eliminated because the file is same-origin.

   We use the VARIABLE font (single 169KB TTF that handles all
   weights via the `wght` axis) rather than 5 separate static
   files (~450KB total). All modern browsers + Chromium support
   variable fonts; the font-weight: 300-700 CSS continues to
   work transparently.

   font-display: block is intentional. Other studio fonts use
   `swap` so the page paints fast even before the font loads;
   here we want layout to wait briefly for Geist because most
   of the studio's headlines depend on Geist's specific
   metrics. The render path waits on document.fonts.ready
   before capturing, so the small extra paint delay is invisible
   to operators.

   Geist license: SIL Open Font License 1.1 (see OFL.txt in
   the same directory). Free to redistribute. Copyright Vercel.
   ============================================================ */

/* Absolute /assets/... paths (not relative) so the same fonts.css file
   works when loaded from /Ventum%20Content%20Studio.html, /render.html,
   AND when fetched as text and injected into the html2canvas clone
   iframe (which has a different base URL). */

/* ---- Geist (sans) ---- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('/assets/fonts/Geist-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/Geist-Variable.ttf') format('truetype');
}

@font-face {
  font-family: 'Geist';
  font-style: italic;
  font-weight: 100 900;
  font-display: block;
  src: url('/assets/fonts/Geist-Italic-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/Geist-Italic-Variable.ttf') format('truetype');
}

/* ---- Geist Mono ---- */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('/assets/fonts/GeistMono-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/GeistMono-Variable.ttf') format('truetype');
}

@font-face {
  font-family: 'Geist Mono';
  font-style: italic;
  font-weight: 100 900;
  font-display: block;
  src: url('/assets/fonts/GeistMono-Italic-Variable.ttf') format('truetype-variations'),
       url('/assets/fonts/GeistMono-Italic-Variable.ttf') format('truetype');
}
