/* The landing page in Vietnamese and Chinese (round i18n1). Hidden for at most 1.5s while the words load
   (i18n.js), so English never flashes first. */
html.mk-i18n-wait body { visibility: hidden; }

/* Chinese: the system's Simplified Chinese faces after our Latin ones, so Latin words in a Chinese line
   keep Work Sans and Bitter. No web font is downloaded for Chinese. */
html[lang="zh-Hans"] {
  --font-sans: 'Work Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Bitter', 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', Georgia, serif;
}
/* Latin-tuned negative tracking squeezes Chinese characters together, and italic has no Chinese form. */
html[lang="zh-Hans"] :is(h1, h2, h3, em, .hp-eyebrow) { letter-spacing: 0; }
html[lang="zh-Hans"] em { font-style: normal; }
html[lang="zh-Hans"] body { line-break: strict; word-break: normal; }

/* Small tags (Coming soon, Save 17%; their 20px centred pill is in overrides.css) in Vietnamese and Chinese.
   Chinese reads at 12px, since 11px is too small for its strokes. Save 17% measured half a pixel off centre in
   each, Vietnamese ink low and Chinese high. Measured with canvas text metrics, 2026-11-02. */
html:is([lang="vi"], [lang="zh-Hans"]) :is(.site-footer-tag, .pr-soon) { padding-block: 0; }
html[lang="zh-Hans"] :is(.site-footer-tag, .pr-soon) { font-size: 12px; letter-spacing: 0.04em; }
html[lang="vi"] .pr-switch-tag { padding-block: 0 1px; }
html[lang="zh-Hans"] .pr-switch-tag { padding-block: 1px 0; }
