/* Self-hosted webfonts — nothing here talks to Google.
 *
 * WHY (2026-07-31). Every page used to load its fonts from fonts.googleapis.com,
 * which means the visitor's browser had to hand Google their IP address just to
 * render text — before they signed up, typed anything, or consented to
 * anything. A German court (LG München I, 20 Jan 2022, Az. 3 O 17493/20) awarded
 * a visitor damages for exactly that, and its reasoning is the part that matters
 * here: because a privacy-neutral alternative exists and costs nothing, there is
 * no legitimate interest in the remote version. So we serve them ourselves and
 * the question disappears — no third party, nothing to disclose, nothing to
 * remember.
 *
 * All five families are SIL Open Font Licence, which expressly permits hosting
 * the files ourselves.
 *
 * ⚠ DO NOT reintroduce a <link> to fonts.googleapis.com. `scripts/legal_claims.js`
 * fails the build-time check if one comes back, because it silently re-opens the
 * disclosure question this file closed.
 *
 * Latin faces are VARIABLE (one file covers every weight we use) — the static
 * per-weight alternative measured 1,262 KB against 322 KB for these.
 * `latin-ext` is NOT optional: partner names carry macrons (Kōjōkaikan).
 */

/* ── Latin text faces ───────────────────────────────────────────────────── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-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;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/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;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/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;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/caveat-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;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/caveat-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;
}

/* ── Japanese handwriting — 3 KB, not 4 MB ──────────────────────────────────
 * Yomogi renders exactly twelve glyphs on this site: 旅（たび）, ちいさな子.
 * A text-subset of those characters is 3 KB, so the look is kept without
 * shipping a CJK font. If new Japanese copy is ever set in Yomogi, regenerate
 * the subset — an unlisted character silently falls back to the body font.  */
@font-face {
  font-family: 'Yomogi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/yomogi-subset.woff2') format('woff2');
  unicode-range: U+3044, U+3055-3056, U+305F-3062, U+306A, U+3072-3073, U+3099, U+5B50, U+65C5, U+FF08-FF09;
}

/* ── Japanese body text — the OS font, zero bytes ───────────────────────────
 * Noto Sans JP is ~9 MB; the app-side guardrail (2026-06-09, Mikko) already
 * says to prefer OS system-font fallback for CJK rather than shipping one. The
 * same answer applies here.
 *
 * This maps the NAME 'Noto Sans JP' onto whichever Japanese font the device
 * already has, so every existing `font-family: …, 'Noto Sans JP', …` stack in
 * the codebase keeps working untouched — no markup or CSS edits anywhere, and
 * no download. `local()` only: this face can never cause a network request.
 * Hiragino ships on Apple devices, Yu Gothic / Meiryo on Windows, and Noto Sans
 * CJK on Android and most Linux.                                             */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: local('Hiragino Sans'), local('Hiragino Kaku Gothic ProN'),
       local('Yu Gothic Medium'), local('Yu Gothic'), local('YuGothic'),
       local('Meiryo'), local('Noto Sans JP'), local('Noto Sans CJK JP');
}

/* ── Icons ──────────────────────────────────────────────────────────────────
 * Subset to the 19 ligatures this site actually uses, via the CSS API's
 * `icon_names` parameter — 5 KB against ~4 MB for the full family. NOTE: the
 * `text=` parameter does NOT work for icon fonts; it returned 587 KB because it
 * keeps every ligature formable from those letters. Use `icon_names`.
 * Adding an icon to a page means regenerating this file.
 * font-display:block so an icon never flashes as its ligature text.          */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 250;
  font-display: block;
  src: url('/assets/fonts/material-symbols-subset-v2.woff2') format('woff2');
}
