/*
 * Korean — Noto Sans KR, subset to this site's own text.
 *
 * GENERATED-ISH, BUT COMMITTED AND EDITABLE. Like every other face on this site the files are
 * served from our own origin, never a webfont CDN — the page states that no request leaves for
 * anybody else's server, and the host ships a strict CSP.
 *
 * ⚠ THIS FILE IS LOADED BY ONE LOCALE GROUP ONLY (ko), from
 * src/components/ScriptFont.tsx. That is the whole design: see the header of
 * src/styles/fonts.css for why unicode-range alone could not do this job.
 *
 * It sets --font-script / --font-mono-script rather than --font, so it never has to win a
 * cascade race against tokens.css: those two are consumed through var() inside --font, so the
 * order the stylesheets happen to load in cannot change the result.
 *
 * ⚠ THIS FACE IS SUBSET TO THE TEXT THIS SITE ACTUALLY SHOWS, and that is a maintenance
 * obligation, not a free win. The full face is 2.3-3.6 MB and Fontsource's 100+ chunk split
 * still cost ~1.3 MB here, because our few hundred glyphs scatter across ~50 chunks of ~800.
 * Subsetting to the union of this locale's dictionary plus every switcher endonym brings it
 * to ~30-105 KB per weight.
 *
 * SOURCE OF THE FULL FACE: @expo-google-fonts/noto-sans-{jp,kr,sc,tc} 0.4.x, which ship the
 * unsplit Noto TTFs. They are deliberately NOT a devDependency of this app and must not
 * become one — they are 48-92 MB each, ~258 MB for the four. They are an input to the
 * generator, which is where they should be declared.
 *
 * THE COST: new copy using a Han character no translation used before renders as tofu. The
 * subsets must be regenerated when the CJK dictionaries change — see docs, and the generator
 * that belongs at landing/tools/build-fonts.mjs.
 *
 * Only 400 and 700 ship. The page also asks for 600 in ten rules; browsers resolve that
 * upward to 700, which is the right compromise against another ~100 KB per locale.
 */

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/noto-sans-kr-subset-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans KR";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/noto-sans-kr-subset-700-normal.woff2") format("woff2");
}

:root {
  --font-script: "Noto Sans KR";
  --font-mono-script: "Noto Sans KR";
}
