@font-face { font-family:"FSR Serif"; src:url(newsreader.woff2) format("woff2"); font-weight:200 800; font-display:swap; }
@font-face { font-family:"FSR Sans"; src:url(schibsted.woff2) format("woff2"); font-weight:400 900; font-display:swap; }

:root {
  --atlas-ui: "Orbit Atlas Sans","FSR Sans",system-ui,sans-serif;
  --atlas-editorial: "FSR Serif",Georgia,serif;
  --atlas-signature: var(--atlas-editorial);
  --atlas-reading: system-ui,sans-serif;
  --atlas-mono: "Orbit Atlas Mono",ui-monospace,Consolas,monospace;
}
:root:lang(ja) {
  --atlas-ui: "Orbit Atlas Japanese","Orbit Atlas Sans","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  --atlas-editorial: "Orbit Zen Mincho","Yu Mincho","Hiragino Mincho ProN",serif;
  --atlas-signature: "Toppan Bunkyu Gothic","Orbit Atlas Japanese","Hiragino Sans","Yu Gothic",sans-serif;
  --atlas-reading: "Orbit BIZ Gothic","BIZ UDPGothic","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}
:root:lang(ko) {
  --atlas-ui: "Orbit Atlas Sans","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --atlas-editorial: "FSR Serif","AppleMyungjo","Noto Serif CJK KR","Batang",serif;
  --atlas-reading: "Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
}
:root:lang(zh-Hans) {
  --atlas-ui: "Orbit Atlas Sans","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --atlas-editorial: "FSR Serif","Songti SC","Noto Serif CJK SC",SimSun,serif;
  --atlas-reading: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
:root:lang(zh-Hant) {
  --atlas-ui: "Orbit Atlas Sans","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
  --atlas-editorial: "FSR Serif","Songti TC","Noto Serif CJK TC","PMingLiU",serif;
  --atlas-reading: "PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
}
:root[data-type="technical"],.orbit-type-technical {
  --atlas-signature:var(--atlas-ui);
  --atlas-editorial:var(--atlas-ui);
}
:root[data-type="technical"]:lang(ja),.orbit-type-technical:lang(ja) {
  --atlas-reading:"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
}
:root[data-type="editorial"],.orbit-type-editorial { --atlas-signature:var(--atlas-editorial); }
:root[data-type="system"],.orbit-type-system {
  --atlas-ui:system-ui,sans-serif;
  --atlas-editorial:Georgia,serif;
  --atlas-signature:var(--atlas-ui);
  --atlas-reading:system-ui,sans-serif;
  --atlas-mono:ui-monospace,Consolas,monospace;
}
:root[data-type="system"]:lang(ja),.orbit-type-system:lang(ja) { --atlas-editorial:var(--atlas-ui); }

/* Home has short reading briefs. The denser reading faces load on articles and the study. */
:root[data-type="mixed"]:lang(ja):has(body.home) {
  --atlas-ui:"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  --atlas-editorial:"Yu Mincho","Hiragino Mincho ProN",serif;
}
:root[data-type="mixed"]:lang(ja) body.home :is(.nav-section-link a,.nav-stack a[aria-current],.sidebar-home[aria-current]) {
  font-family:"Orbit Atlas Japanese","Hiragino Sans","Yu Gothic",sans-serif;
}
@media(max-width:820px) {
  :root[data-type="mixed"]:lang(ja):has(body.home) { --atlas-mono:ui-monospace,Consolas,monospace; }
  :root[data-type="mixed"]:lang(ja) body.home :is(.nav-section-link a,.nav-stack a[aria-current],.sidebar-home[aria-current]) { font-family:var(--atlas-ui); }
  :root[data-type="mixed"]:lang(ja):has(.type-study) {
    --atlas-ui:"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
    --atlas-reading:"BIZ UDPGothic","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
  }
  .fsr-orbit-article.orbit-type-mixed:lang(ja) { --atlas-reading:"BIZ UDPGothic","Hiragino Sans","Yu Gothic",Meiryo,sans-serif; }
}

.fsr-orbit-article .fsr-article-header .wp-block-post-title,
.fsr-orbit-article .wp-block-post-content h2 { font-family:var(--atlas-editorial); }
.fsr-orbit-article .wp-block-post-content,
.fsr-orbit-article .wp-block-post-content :is(p,li,figcaption,table) { font-family:var(--atlas-reading); }
.fsr-orbit-article .wp-block-post-content h3 { font-family:var(--atlas-ui); }
.fsr-orbit-article .wp-block-post-content table { font-variant-numeric:tabular-nums; }
.fsr-orbit-article :is(.wp-block-post-date time,td[data-type="numeric"],.wp-block-table td.numeric) {
  font-family:var(--atlas-mono); font-variant-numeric:tabular-nums;
}
