/* ==========================================================================
   Self-hosted faces. Companion to Assets/Accents/css/kg-type.css, which owns
   the roles and the stacks; this file only supplies the files.

   Anton, Hanken Grotesk and IBM Plex Mono are OFL and served from our own
   origin, via the @fontsource packages so they are versioned and updatable.
   Cheee is the one exception and not by choice: Adobe's terms forbid
   self-hosting, so it loads from use.typekit.net. See TYPE.md.

   Anton is SUBSET TO CAPS, figures and punctuation. The hero and every
   section display are uppercase, so the lowercase glyphs were dead weight —
   18.2 KB down to 7.0 KB, the single biggest saving in the type system.
   If lowercase Anton is ever needed, re-run the subset with a wider --text
   rather than reaching for the full face.

   Hanken 600 ITALIC is subset the same way and for the same reason — see the
   note on it below.

   Whole system: 66.6 KB, against TYPE.md's under-120 KB budget.
   ========================================================================== */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Caps, figures and punctuation only — see the note above. */
  unicode-range: U+0020, U+0021-0026, U+0027-002F, U+0030-0039, U+003A-003B,
    U+003F, U+0040, U+0041-005A, U+2013-2014, U+2018-2019, U+201C-201D,
    U+00B7, U+2022;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* kg-type.css steps from .kg-display to a heavy Hanken rather than to a lighter
   Anton, because Anton has no lighter cut. This is that step. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The one italic in the system, added 26 Aug 2026 for the "come on!" in the
   doors eyebrow. It exists as a real face rather than a `font-style: italic`
   on the upright because nothing else here is italic: with no italic
   registered, the browser synthesises an oblique by shearing the 600, and a
   mechanical shear of letterspaced caps sits badly next to drawn letterforms.
   This is the drawn one — post.italicAngle is -8, not 0.

   SUBSET TO CAPS, like Anton and for the same reason: its only role is an
   uppercase eyebrow, so 14.3 KB of latin became 5.1 KB. The unicode-range is
   Anton's, deliberately — one rule to understand rather than two — and it is
   what makes the subset safe. Ask for italic lowercase and the range excludes
   this file rather than showing tofu; you get the synthesised oblique, which
   is the old behaviour, not a bug. If italic lowercase is ever genuinely
   wanted, re-subset with a wider --unicodes rather than shipping the full
   face.

   TRACKED WITH AN EXPLICIT EXCEPTION. `.gitignore` still blanket-ignores font
   binaries as a guard against committing Cheee or another licensed face, then
   names the six OFL files in public/fonts that production is allowed to ship.
   Keep those exceptions exact: a clean checkout and the production server must receive these
   files, while adding an unrelated font should still require a licensing review. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020, U+0021-0026, U+0027-002F, U+0030-0039, U+003A-003B,
    U+003F, U+0040, U+0041-005A, U+2013-2014, U+2018-2019, U+201C-201D,
    U+00B7, U+2022;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
