/* ==============================================================
   Mixed serif family, ported verbatim from ../../assets/custom.css
   of the Typst site: Linux Libertine covers Latin, punctuation and
   symbols; the CJK ranges fall through to locally installed
   STZhongsong / 华文中宋 / Songti SC / SimSun.
   ============================================================== */

@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: url('../fonts/LinLibertine_R.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: url('../fonts/LinLibertine_RI.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: url('../fonts/LinLibertine_RZ.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: url('../fonts/LinLibertine_RZI.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: url('../fonts/LinLibertine_RB.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: url('../fonts/LinLibertine_RBI.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2100-214F;
}

/* --- CJK ranges -------------------------------------------------------
   Regular (400): 华文中宋 / STZhongsong — the medium-weight serif the Typst
   site already uses, kept as the body face.

   Bold (600/700): a slightly heavier serif only. 黑体 / SimHei is deliberately
   NOT in the stack — it is a solid-black sans and reads far too heavy next to
   中宋. When no real semibold/bold serif is installed these faces resolve to
   nothing, the CJK glyphs fall through to the regular 中宋 in the font-family
   list, and the browser synthesises a light bold — which is the intended look.

   To go all-serif with a lighter body instead (SimSun body, 中宋 for bold),
   swap the 400 src to local("SimSun"), local("Songti SC") and the bold srcs to
   local("STZhongsong"), local("华文中宋").
   -------------------------------------------------------------------- */

@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: local("STZhongsong"), local("华文中宋"), local("Songti SC"), local("SimSun");
  font-weight: 400;
  font-style: normal;
  unicode-range: U+2E80-2EFF, U+2F00-2FDF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: local("Source Han Serif SC SemiBold"), local("Noto Serif CJK SC SemiBold"),
       local("Source Han Serif SC Medium"), local("Noto Serif CJK SC Medium");
  font-weight: 600;
  font-style: normal;
  unicode-range: U+2E80-2EFF, U+2F00-2FDF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF;
}
@font-face {
  font-family: 'Jiaxu Mixed Serif';
  src: local("Source Han Serif SC Bold"), local("Noto Serif CJK SC Bold"),
       local("Songti SC Bold");
  font-weight: 700;
  font-style: normal;
  unicode-range: U+2E80-2EFF, U+2F00-2FDF, U+3000-303F, U+31C0-31EF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF;
}
