/* Latin numerals and titles use JetBrains. Each CJK family comes from the archive's own font collection. */
@font-face {
  font-family: Archive Sans KR;
  src: url("assets/fonts/locales/noto-sans-kr.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Archive Serif KR;
  src: url("assets/fonts/locales/noto-serif-kr.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Archive Sans JP;
  src: url("assets/fonts/locales/noto-sans-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Archive Serif JP;
  src: url("assets/fonts/locales/noto-serif-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
/* W6 is used only on devices with a local licensed installation. */
@font-face {
  font-family: Local Japanese Mincho;
  src: local("HiraMinProN-W6"), local("Hiragino Mincho ProN W6"), local("ヒラギノ明朝 ProN W6");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}
:root {
  --ui-cjk: "Archive Sans KR", "Archive Sans JP", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --reading-cjk: "Archive Serif KR", "Archive Serif JP", "Noto Serif CJK KR", serif;
  --sans: JetBrains, var(--ui-cjk);
  --prose: JetBrains, var(--reading-cjk);
  --signal: Signal, JetBrains, var(--ui-cjk);
}
:root:lang(ja) {
  --ui-cjk: "Archive Sans JP", "Archive Sans KR", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --reading-cjk: "Archive Serif JP", "Archive Serif KR", "Yu Mincho", serif;
}
:root:lang(ja) body {
  word-break: normal;
  line-break: strict;
}
:root:lang(ko) :is(.page-title, .intro, .note-body, .about-copy),
:root:lang(ja) :is(.page-title, .intro, .note-body, .about-copy) {
  font-family: var(--prose);
}
:root:lang(ko) .page-title, :root:lang(ja) .page-title {
  font-weight: 650;
  letter-spacing: -.045em;
}
:root:lang(ja) .page-title {
  font-family: JetBrains, "Local Japanese Mincho", var(--reading-cjk);
  letter-spacing: -.025em;
}
:root:lang(ko) :is(.intro, .note-body, .about-copy),
:root:lang(ja) :is(.intro, .note-body, .about-copy) {
  font-weight: 480;
  letter-spacing: 0;
  line-height: 1.95;
}
:root:lang(ko) :is(.page-title, .intro, .note-body, .about-copy) {
  word-spacing: -.24em;
}
:root:lang(ja) .card-title, :root:lang(ja) .shelf-label h2 {
  letter-spacing: -.022em;
}
.hero-fig, .stamp, .counter, .cut-times {
  font-family: JetBrains, var(--ui-cjk);
  font-variant-numeric: tabular-nums;
}
[lang|="ko"]:not(html):not(body) {
  font-family: JetBrains, "Archive Sans KR", "Malgun Gothic", sans-serif;
}
[lang|="ja"]:not(html):not(body) {
  font-family: JetBrains, "Archive Sans JP", "Yu Gothic", sans-serif;
  word-break: normal;
  line-break: strict;
}
