/* Local Noto Serif SC subsets for the current Chinese interface copy.
   OFL license accompanies the font; new glyphs fall back to installed Songti. */
@font-face {
  font-family: "ABQ Chinese Serif";
  src: url("/fonts/noto-serif-sc-titles-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-9FFF, U+FF00-FFEF;
}
@font-face {
  font-family: "ABQ Chinese Serif";
  src: url("/fonts/noto-serif-sc-titles-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+3000-9FFF, U+FF00-FFEF;
}
:root {
  --zh-serif: Georgia, "ABQ Chinese Serif", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --zh-sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
}
html:lang(zh) body { font-family: var(--zh-sans); }
html:lang(zh) :is(.hero h1, .section-heading-wrap h2, .collection-section-head h2, .catalog-heading h1, .featured h3, .shelf h3, .collection-card-title, .collection-more > h3, .closing h2) {
  font-family: var(--zh-serif);
  font-weight: 600;
  font-style: normal;
  letter-spacing: .015em;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
}
html:lang(zh) .hero h1 { letter-spacing: 0; line-height: 1.4; }
html:lang(zh) :is(.hero-preface, .question-prompt-text, .learning-note) {
  font-family: var(--zh-serif);
  font-weight: 400;
  font-style: normal;
  letter-spacing: .025em;
  line-height: 1.65;
}
html:lang(zh) :is(.dossier-tabs button strong, .index-paths strong, .tree-name, .learning-leaf h4) {
  font-family: var(--zh-sans);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.5;
}
html:lang(zh) :is(.main-nav, .header-index, .language-switch, .theme-toggle, .featured-button, .text-link, .project-link) { font-family: var(--zh-sans); }
html:lang(zh) :is(.hero-description, .featured-description, .collection-card-description, .learning-leaf p, .project-copy p, .shelf p) { line-height: 1.95; }
@media (max-width: 720px) {
  html:lang(zh) .hero h1 { font-size: clamp(32px, 8.2vw, 58px); }
  html:lang(zh) .hero-title-line { white-space: normal; }
  html:lang(zh) .dossier-stage .featured h3 { font-size: clamp(30px, 8vw, 43px); white-space: normal; }
}
