/* ═══════════════════════════════════════════════════════════════════
   LendWorks web fonts — self-hosted woff2 (latin + latin-ext subsets)
   ---------------------------------------------------------------------
   Design system:
     Source Serif 4  (display / H1-H2 / hero figures)   ← GT Sectra proxy
     Inter           (sans / UI default)                  ← Söhne proxy
     JetBrains Mono  (mono / tabular data / code)         ← Söhne Mono proxy

   Files live at /public/fonts/*.woff2 — served from the same origin, no
   serial round-trips through Google CDN. Google Fonts was previously a
   render-blocking two-hop chain: this CSS @import → Google CSS → woff2.

   Subsets: latin + latin-ext only. Cyrillic/Greek/Vietnamese omitted
   (the app is English-only; reducing from 9 subsets → 2 saves ~230 KB
   of unrequested font data across the 3 families).

   Source Serif 4 is a variable-weight optical-size font. The downloaded
   woff2 covers weights 400–600 in a single file (opsz 8..60). Using
   font-display: optional on the hero face to prevent layout shift (CLS)
   on first paint — it renders system-serif until cached, then upgrades.

   Woff2 files downloaded 2026-06-25 from fonts.gstatic.com via
   Google Fonts CSS2 API (v20/Inter, v24/JetBrains Mono, v14/Source Serif 4).
   Inter and Source Serif 4 share one woff2 per subset across all weights
   (the file encodes the variation axis); JetBrains Mono likewise.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Inter — latin-ext ──────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.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;
}
/* ── Inter — latin ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.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;
}

/* ── JetBrains Mono — latin-ext ─────────────────────────────────── */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.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;
}
/* ── JetBrains Mono — latin ─────────────────────────────────────── */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.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;
}

/* ── Source Serif 4 — latin-ext ─────────────────────────────────── */
/* font-display: optional on the display/hero face eliminates CLS:
   the browser uses a system-serif fallback on first paint (never waits),
   then upgrades to Source Serif 4 on subsequent loads from cache. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/fonts/source-serif-4-latin-ext.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;
}
/* ── Source Serif 4 — latin ─────────────────────────────────────── */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: optional;
  src: url('/fonts/source-serif-4-latin.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;
}
