/**
 * The site's @font-face declarations — deliberately NOT built by Vite.
 *
 * Why this file exists rather than living in src/styles/dashboard.css:
 * the dashboard bundle is built in Vite library mode, and lib mode inlines
 * every asset a stylesheet references as a base64 data: URI regardless of
 * build.assetsInlineLimit (setting it to 0 changes nothing there). That once
 * put 653,706 bytes of font inside static/dashboard.css, which was 888 KB of
 * which 73% was font.
 *
 * That is the worst place for a font to be. dashboard.css is render-blocking,
 * so none of it painted until the whole payload arrived; the fonts could not be
 * cached separately from the CSS, so every style change re-shipped the
 * unchanged typeface; and font-display: swap could not do its job because the
 * bytes were not a separate request that could arrive late.
 *
 * Keeping the declarations in a hand-written file that Vite never processes is
 * what keeps the URLs as URLs. Do not move these rules back into src/.
 *
 * Libre Franklin (owner item 15, 2026-10-27) is the one typeface for the
 * dashboard, the homepage, the login page and the legal pages, so they all
 * link this file. Self-hosted from @fontsource-variable/libre-franklin 5.3.0
 * (SIL OFL 1.1, licence beside the files): one variable woff2 per subset and
 * style covers weights 100-900, and unicode-range means a page downloads the
 * latin-ext file only when it shows a character from it. woff2 only: it has
 * been Baseline widely available since 2018.
 *
 * Generated resume and cover-letter PDFs keep TeX Gyre Heros, from
 * fonts/tex-gyre-heros/ on the backend; that is a document face, not this one.
 *
 * Paths are absolute under /static/ so they resolve the same whether a page is
 * served from / or a nested route.
 */

/* Libre Franklin, latin-ext */
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin/libre-franklin-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin/libre-franklin-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Libre Franklin, latin */
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin/libre-franklin-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/libre-franklin/libre-franklin-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The page's default face, for pages that set no font of their own (the legal
   pages link no other stylesheet). :where() keeps this at zero specificity, so
   any page or component that names a font still wins.

   No font-size-adjust here or on any page, although it would steady the
   fallback-to-web-font swap: in Chromium it gives `font-size: 0` text a real
   width, and the dashboard hides icon-button labels that way (Inbox toolbar,
   ApplicationDetail). Measured 2026-10-27: the hidden "Filter: All" label grew
   from 0 to 68px and covered the Sort button. Revisit if those labels move to
   an sr-only pattern. */
:where(body) {
  font-family: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
}
