/*
 * Self-host subset 字體。
 *
 * ⚠️ **唔准改 `font-display`**：`block` 係刻意揀嘅 —— 寧願文字遲啲出現，都唔好
 * 見到字體由 A 跳去 B（`swap`）。實測（慢 3G 300 kbps + 300 ms latency）三個值：
 *
 *   block    → 3.1 秒先見字，中間完全空白（3 秒死線），之後一次到位
 *   swap     → 435 ms 見字（fallback），字體到咗先換
 *   optional → 445 ms 見字（fallback），今次唔再換
 *
 * 死線 worst case（3 秒後先用 fallback）可以接受，因為：字體已經 self-host
 * （冇 Google 往返）＋ head 有 `rel="preload"`，實測正常網絡 10 ms 就到。
 *
 * `format('woff2-variations')` + 保留 `wght` 軸 ⇒ 每個 family 一個檔就覆蓋全部
 * 字重，所以 `fontWeight="medium"`（500）之類唔使 nearest-match。
 *
 * 檔案由 `npm run fonts`（`scripts/build-fonts.py`）產生，唔好手改。
 */

@font-face {
  font-family: 'Hisskin Sans';
  src: url('/fonts/hsl-sans.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Hisskin Serif';
  src: url('/fonts/hsl-serif.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: block;
}
