/* Local Source Serif 4 pairs with Noto Serif SC (Source Han Serif's sister family)
   for article prose. The CJK font faces are loaded from fonts/noto-serif-sc.css. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/files/source-serif-4-latin-400-normal.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: "Source Serif 4";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/files/source-serif-4-latin-700-normal.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: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/files/source-serif-4-latin-400-italic.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: "Source Serif 4";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/files/source-serif-4-latin-700-italic.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;
}

:root {
  --article-serif: "Source Serif 4", "Noto Serif SC Variable", "Source Han Serif SC", "Songti SC", SimSun, serif;
}

.prose :is(p, li, blockquote, th, td),
.lake-document :is(p, li, blockquote, th, td) {
  font-family: var(--article-serif);
}

.post-header h1,
.post-entry h3,
.archive-entry h4,
.prose :is(h1, h2, h3, h4, h5, h6),
.lake-document :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--article-serif);
  font-style: normal;
  font-weight: 700;
}
.post-pagination a { font-family: var(--article-serif); }

/* Preserve the font metrics used by SVG equations (ex units). */
.prose :is(.math-inline, .equation) {
  font-family: var(--reading);
}
.lake-document .lake-math {
  font-family: var(--lake-font);
}
.lake-document li::marker { font-family: var(--lake-font); }
.prose li::marker { font-family: var(--reading); }

/* Keep prose terms together, using the surrounding English text style. */
:is(.prose, .lake-document) .english-term {
  font-style: normal;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
