/* Self-hosted web fonts — the three pairings the Appearance picker offers.

   Why self-hosted: the CSP is font-src 'self', and until now the picker named
   IBM Plex and Roboto Mono without shipping either, so those choices only
   worked on a machine that happened to have them installed. The files under
   /fonts are OFL-licensed (see /fonts/LICENSES.md), subsetted to Latin plus the
   finance symbols the UI uses (₹ € ▲ ▼ ✓ ✕ ≈ ≤ ≥ − …) with fontTools, and named
   with their upstream version so server.ts can serve them immutable.

   Only the pairing in use is downloaded: @font-face is lazy, a face is fetched
   the first time rendered text asks for it. The default pairing (Inter +
   JetBrains Mono) is two files, ~156 KB. font-display: swap keeps first paint
   on the system fallback rather than invisible text.

   tnum is on for every face so figures line up in tables regardless of the
   pairing; the monospaced data faces are tabular by construction. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-4.1-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-2.304-var-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-1.1-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-1.1-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-1.1-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/IBMPlexSans-1.1-700-latin.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-1.1-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-1.1-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-1.1-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-1.1-700-latin.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap; }
