/*
 * SeekTower pixel type: Fusion Pixel Font, 12 px proportional, release 2026.09.25, by TakWolf
 * (https://github.com/TakWolf/fusion-pixel-font), SIL Open Font License 1.1 — LICENSES/FUSION-PIXEL-FONT-LICENSE,
 * with the upstream fonts it merges: Ark Pixel (OFL 1.1), Cubic 11 (OFL 1.1) and Galmuri (OFL 1.1), texts in LICENSES/.
 * The files are renamed and subset with fontTools to the ranges below (2026-10-12): the latin file keeps only the non-CJK
 * blocks, the zh-hans and ja files only the CJK blocks; glyph shapes are untouched.
 *
 * The released files each hold the same 36,999 code points and differ in the shapes of shared Han characters, drawn the
 * Simplified Chinese way or the Japanese way. So each family takes Latin and the rest from the latin file
 * and the CJK blocks from its language's file; unicode-range keeps a CJK file from loading until a CJK character is
 * on the page. Both families share the latin file's URL, so it downloads once.
 *
 * Use: font-family: var(--st-font). Sizes in whole multiples of 12px keep the pixels sharp.
 */

/* Everything that is not CJK: Latin, Greek, Cyrillic, punctuation, symbols, arrows, box drawing. */
@font-face {
  font-family: "SeekTower Pixel";
  src: url("./fusion-pixel-12px-prop-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0000-2E7F, U+A640-A69F, U+FB00-FB4F, U+FFF0-FFFF;
}
/* CJK radicals, symbols and punctuation, kana, Han, Hangul, compatibility and full-width forms: Simplified Chinese shapes. */
@font-face {
  font-family: "SeekTower Pixel";
  src: url("./fusion-pixel-12px-prop-zh-hans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+2E80-A4CF, U+AC00-D7AF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF;
}

/* The Japanese family: same Latin file, Japanese shapes for the CJK blocks. */
@font-face {
  font-family: "SeekTower Pixel JA";
  src: url("./fusion-pixel-12px-prop-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0000-2E7F, U+A640-A69F, U+FB00-FB4F, U+FFF0-FFFF;
}
@font-face {
  font-family: "SeekTower Pixel JA";
  src: url("./fusion-pixel-12px-prop-ja.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range: U+2E80-A4CF, U+AC00-D7AF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF, U+20000-3FFFF;
}

:root {
  --st-font: "SeekTower Pixel", ui-monospace, monospace;
}
:lang(ja) {
  --st-font: "SeekTower Pixel JA", "SeekTower Pixel", ui-monospace, monospace;
}

.st-pixel-text {
  font-family: var(--st-font);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeSpeed;
}
