@font-face {
  font-family: "Noto Serif SC";
  src: url("/assets/fonts/noto-serif-sc-ascii.woff2?v=noto-ascii-20261115") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: block;
  unicode-range: U+20-7E;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/noto-sans-sc-ascii.woff2?v=noto-ascii-20261115") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  unicode-range: U+20-7E;
}

html[data-font-state="loading"] body > :not(.font-load-error) {
  visibility: hidden !important;
}

.font-load-error {
  position: relative;
  z-index: 2147483647;
  max-width: 72ch;
  margin: 24px auto;
  padding: 18px 22px;
  border: 2px solid #8a2f24;
  background: #fff8ed;
  color: #5d1d17;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.font-resource-warning {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #c81e1e;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

:root {
  --number-glyph-font: "EB Garamond";
}

.number-glyph {
  font-family: var(--number-glyph-font);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

html[lang^="zh"][data-number-glyph-mode="rollback"] .number-glyph {
  font-family: inherit;
  font-variant-numeric: normal;
  font-feature-settings: normal;
}

.missing-glyph {
  display: inline-flex;
  width: 0.78em;
  height: 0.78em;
  margin-inline: 0.04em;
  align-items: center;
  justify-content: center;
  color: #c81e1e;
  line-height: 1;
  vertical-align: -0.08em;
}

.missing-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}
