/*
  Self-hosted webfonts (2026-09-17; site-wide since 2026-09-19). Every page
  loads this file, so the site makes no third-party font requests at all.

  - Dela Gothic One (Google Fonts, OFL): blocky face for section headings and the
    nav, set in title or sentence case, never capitals.
  - Khand (Google Fonts, OFL): condensed face for numbers and small labels.
  - Clash Display (Fontshare, ITF Free Font License): body copy.
  - Kalam (Google Fonts, OFL): chalk and marker handwriting in the illustrations.
  - Bungee (Google Fonts, OFL): wordmark, buttons, tags, and all manipulative titles.
  - Press Start 2P (Google Fonts via Fontsource, OFL, licence in ../fonts/OFL-press-start-2p.txt):
    the pixel face for Lane Runner's arcade counters. A browser downloads it only on a page that
    uses it.
  - Upheaval (Brian Kent, Aenigma Fonts; freeware, "Personal use, Commercial use, or whatever"):
    the arcade face for short, loud titles (2026-10-25; it and Pixel Operator replaced the
    dot-matrix Array, which visitors found hard to read). Its licence forbids altering the font file and asks
    that its text file travel with it, so ../fonts/upheavtt.ttf is the original file as
    distributed, not converted to woff2 like the rest, beside the designer's
    ../fonts/upheaval.txt. Capitals only: lowercase letters show as capitals. Its & looks
    like a euro sign and its en dash like a dot, so the family borrows those two from
    Bungee (unicode-range below) rather than editing the file.
  - Pixel Operator HB (Jayvee Enaguas, CC0 public domain; ../fonts/CC0-pixel-operator.txt):
    the display face for page titles and the landing page's section titles (2026-10-25).
    Pixel letters with real lowercase, where Upheaval is capitals only, so Upheaval keeps
    the short, loud titles (`--font-arcade`) and this face takes the rest (`--font-display`).
    Served as the original .ttf, renamed.

  The Google files are the Latin subset. Dela Gothic One is a Japanese family
  whose Latin letters Google spreads over several subsets, so its file was cut
  with the css2 text= parameter to printable ASCII plus the punctuation, maths
  signs and accented letters the site uses; add a character there to use it.

  Swap a family by replacing its files here and the matching --font-* token
  in style.css.
*/

@font-face {
  font-family: "Khand";
  src: url("/assets/fonts/khand-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Khand";
  src: url("/assets/fonts/khand-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/kalam-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Dela Gothic One";
  src: url("/assets/fonts/dela-gothic-one-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/fonts/press-start-2p-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Upheaval";
  src: url("/assets/fonts/upheavtt.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* Everything but & (U+0026) and the en dash (U+2013). */
  unicode-range: U+0000-0025, U+0027-2012, U+2014-FFFF;
}

/* Upheaval's & and en dash, from Bungee: the same height and weight, and legible. */
@font-face {
  font-family: "Upheaval";
  src: url("/assets/fonts/bungee-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0026, U+2013;
}

@font-face {
  font-family: "Pixel Operator HB";
  src: url("/assets/fonts/pixel-operator-hb.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
