:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --ink: #1f1e1c;
  --sub: #6e6a63;
  --accent: #fb7299;
  --line: #e4e0d8;
  --card-bg: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1a18; --ink: #e8e3db; --sub: #9c958b; --line: #302d28; --card-bg: #242220; }
  .license-error { color: #f27b72; }
}
* { box-sizing: border-box; }
html { font-variant-ligatures: common-ligatures historical-ligatures contextual; font-feature-settings: "dlig" 0; text-autospace: normal; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Em Dash Bridge", "Th Grotesk", "HarmonyOS Sans SC", "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html[lang="zh-CN"] body { font-family: "Em Dash Bridge", "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-TW"] body { font-family: "Em Dash Bridge", "HarmonyOS Sans TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html[lang="ja"] body { font-family: "Em Dash Bridge", "Noto Sans JP", "Noto Sans SC", "Hiragino Sans", sans-serif; }
html[lang="ko"] body { font-family: "Em Dash Bridge", "Noto Sans KR", "Noto Sans SC", sans-serif; }
html:is([lang="ar"], [lang="fa"]) body { font-family: "Em Dash Bridge", "HarmonyOS Sans Arabic", "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="he"] body { font-family: "Em Dash Bridge", "Noto Sans Hebrew", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif; }
html[lang="th"] body { font-family: "Em Dash Bridge", "Noto Sans Thai", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif; }
html:is([lang="hi"], [lang="sa"]) body { font-family: "Em Dash Bridge", "Noto Sans Devanagari", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif; }
html[lang="bn"] body { font-family: "Em Dash Bridge", "Noto Sans Bengali", "HarmonyOS Sans SC", "Noto Sans SC", sans-serif; }
html:is([lang="la"], [lang="ang"], [lang="non"]) body { font-family: "Em Dash Bridge", "Gentium Plus", "Noto Serif SC", "Songti SC", serif; }
html[lang="lzh"] body { font-family: "Em Dash Bridge", "Shanggu Serif", "Noto Serif SC", "Songti SC", serif; }
html[lang="lzh-S"] body { font-family: "Em Dash Bridge", "Noto Serif SC", "Songti SC", "SimSun", serif; }
html[lang="zh-CN"] h1 { font-family: "Em Dash Bridge", "Noto Serif SC", "Songti SC", "SimSun", serif; }
html[lang="zh-TW"] h1 { font-family: "Em Dash Bridge", "Noto Serif TC", "Songti TC", "PMingLiU", serif; }
html[lang="ja"] h1 { font-family: "Em Dash Bridge", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }
html[lang="ko"] h1 { font-family: "Em Dash Bridge", "Noto Serif KR", "Batang", serif; }
/* 阿拉伯字母以 Naskh 为正文与标题的常规形态（无衬线/衬线之分），其余文字系统使用各自衬线家族。 */
html:is([lang="ar"], [lang="fa"]) h1 { font-family: "Em Dash Bridge", "HarmonyOS Sans Arabic", "Noto Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="th"] h1 { font-family: "Em Dash Bridge", "Noto Serif Thai", "Noto Serif", "Noto Serif SC", "Songti SC", "SimSun", serif; }
html:is([lang="hi"], [lang="sa"]) h1 { font-family: "Em Dash Bridge", "Noto Serif Devanagari", "Noto Serif", "Noto Serif SC", "Songti SC", "SimSun", serif; }
html[lang="he"] h1 { font-family: "Em Dash Bridge", "Noto Serif Hebrew", "Noto Serif", "Noto Serif SC", "Songti SC", "SimSun", serif; }
html[lang="bn"] h1 { font-family: "Em Dash Bridge", "Noto Serif Bengali", "Noto Serif", "Noto Serif SC", "Songti SC", "SimSun", serif; }
html:is([lang="la"], [lang="ang"], [lang="non"]) h1 { font-family: "Em Dash Bridge", "Gentium Plus", "Noto Serif SC", "Source Han Serif SC", "思源宋体", "Songti SC", "SimSun", "Noto Serif", Georgia, serif; }
html[lang="lzh"] h1 { font-family: "Em Dash Bridge", "Shanggu Serif", "Noto Serif SC", "Songti SC", serif; }
html[lang="lzh-S"] h1 { font-family: "Em Dash Bridge", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
a:hover { color: var(--accent); border-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page-wrap { width: min(100% - 48px, 860px); margin: 0 auto; padding: 96px 0 72px; }
.page-header { padding-inline-start: 28px; border-inline-start: 2px solid var(--accent); margin-bottom: 52px; }
.kicker { margin: 0 0 10px; color: var(--accent); font-family: "Em Dash Bridge", "Noto Serif", "Noto Serif SC", serif; font-size: 11px; line-height: 1.4; letter-spacing: .3em; }
h1 { margin: 0; font-family: "Em Dash Bridge", "Noto Serif", "Noto Serif SC", "Songti SC", serif; font-size: clamp(36px, 7vw, 58px); line-height: 1.2; }
.intro { max-width: 660px; margin: 16px 0 0; color: var(--sub); font-size: 15px; }
.font-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.font-list li { padding: 25px 28px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card-bg) 66%, transparent); }
h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; }
.font-list p { margin: 0; color: var(--sub); font-size: 13px; }
.font-list .font-links { margin-top: 12px; color: var(--ink); }
.font-links a, .full-notices a { white-space: nowrap; }
code { font-family: "Em Dash Bridge", "JetBrains Mono", "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace; font-size: .94em; }
.full-notices { margin: 30px 0 0; text-align: end; font-size: 13px; }
.page-footer { width: min(100% - 48px, 860px); margin: 0 auto; padding: 28px 0 60px; border-top: 1px solid var(--line); color: var(--sub); font-size: 13px; }
.page-footer a { color: var(--sub); font-size: 12px; font-weight: 500; letter-spacing: .04em; border-bottom: none; }
.page-footer a:hover { color: var(--accent); border-bottom: none; }
.license-page { width: min(100% - 48px, 860px); margin: 0 auto; padding: 72px 0; }
.license-page .page-header { margin-bottom: 36px; }
.license-text { margin: 0; padding: 28px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card-bg) 66%, transparent); color: var(--sub); font: 13px/1.75 "Em Dash Bridge", "Th Grotesk", "HarmonyOS Sans SC", "Noto Sans", sans-serif; }
html:is([lang="zh-CN"], [lang="zh-TW"], [lang="ja"], [lang="ko"], [lang="ar"], [lang="fa"], [lang="th"], [lang="hi"], [lang="he"], [lang="bn"]) [lang="en"]:not(.mono):not(.kicker) { font-family: "Em Dash Bridge", "Th Grotesk", "HarmonyOS Sans SC", "Noto Sans", sans-serif; }
.license-error { color: #b42318; }
html[dir="rtl"] .font-list [lang="en"] { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[dir="rtl"] .font-links { direction: ltr; text-align: right; unicode-bidi: isolate; }
@media (max-width: 560px) {
  .page-wrap { width: min(100% - 40px, 860px); padding-top: 64px; }
  .page-header { padding-inline-start: 20px; margin-bottom: 38px; }
  .font-list li { padding: 22px 20px; }
  .page-footer { width: min(100% - 40px, 860px); }
  .license-page { width: min(100% - 40px, 860px); padding-top: 52px; }
  .license-text { padding: 20px; }
}
