/* ---------------------------------------------------------------------------
   The three AL.KA house faces, self-hosted.
   ---------------------------------------------------------------------------
   These used to come from fonts.googleapis.com, which meant the menu at `/`
   made a render-blocking cross-origin stylesheet request plus a handshake with
   fonts.gstatic.com before it could set a single word. They are the entry point
   for the whole site, so that cost landed on every first visit.

   Each file is the upstream VARIABLE font, subset to the characters this shell
   actually uses, so one request covers every weight the CSS asks for instead of
   one per weight:

     Onest           wght 400-900   Latin + Latin Ext-A + Cyrillic
     JetBrains Mono  wght 400-700   Latin + Latin Ext-A + Cyrillic
     Fraunces        wght 400-900 italic only, opsz kept, Latin + Latin Ext-A

   Cyrillic is not optional: this site is Russian first, and a Latin-only subset
   would drop every word of the primary language to a system fallback.

   Fraunces keeps its `opsz` axis because the shell wears it at 280px in the
   wordmark and at body size in the pull quotes; pinning it would make one of
   those wrong. SOFT and WONK are pinned to 0 - the design uses neither.

   Latin Extended-A is included although the shell needs none of it today. It
   costs little and it means a Lithuanian name can never fall through to a
   system serif here, which is the failure kair.page carries a whole rule about.

   Rebuild:
     uv tool run --from "fonttools[woff]" fonttools varLib.instancer <upstream>.ttf wght=<lo>:<hi> -o pinned.ttf
     uv tool run --from "fonttools[woff]" pyftsubset pinned.ttf --output-file=<name>.woff2 --flavor=woff2 \
       --unicodes='U+0020-007E,U+00A0-00FF,U+0100-017F,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2013-2014,U+2018-201D,U+2022,U+2026,U+2116,U+2122,U+2192,U+2212,U+20AC,U+00D7,U+00B7' \
       --layout-features='kern,liga,calt,ccmp,mark,mkmk,locl' --no-hinting --desubroutinize
   --------------------------------------------------------------------------- */

@font-face {
	font-family: 'Onest';
	src: url('/fonts/onest.woff2') format('woff2');
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'JetBrains Mono';
	src: url('/fonts/jetbrains-mono.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* Only the italic cut is used: the wordmark `Ka` and the four anchor points. */
@font-face {
	font-family: 'Fraunces';
	src: url('/fonts/fraunces-italic.woff2') format('woff2');
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}
