/*
 * 自托管可变字体 —— Fraunces(display)+ Inter(正文)。
 *
 * ## 为什么不用 Google Fonts CDN
 *
 * 1. **GDPR**:德国有几份针对 Google Fonts CDN 的判决(未取得同意即向 Google 传输 IP)。
 *    这个站点首站是德国、面向欧盟,不能冒这个险。
 * 2. **零外部依赖**:这个项目从 Next.js 阶段就坚持「不引外部资源」。
 *    媒体库、字体、图标全部本地化。
 * 3. **性能**:字体跟站点同源同 CDN,不需要额外 DNS + TLS + 连接建立。
 *
 * ## 为什么是可变字体
 *
 * 一个 woff2 覆盖 100–900 全字重(常规静态字体要 9 个文件)。
 * 拉丁 + 拉丁扩展两个子集,共 4 个文件 ~333KB。
 *
 * ## 字重轴
 *
 * Fraunces 还有 SOFT / WONK 两个轴(可变字体的「软度」和「古怪度」),
 * 本项目只用 opsz(光学尺寸)+ wght —— 光学尺寸让大标题比小字更精细,
 * 这是可变字体最值得用的地方。
 *
 * unicode-range 保留原始子集切分:浏览器只会下载页面真正用到的子集。
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
