/* Chinese, Japanese and Korean typesetting on the /zh/, /ja/, /ko/ copies.
   The Latin faces stay first in every stack, so brand names, prices and "ISK" keep the
   site's look; CJK glyphs fall through to the reader's own system fonts (PingFang /
   Hiragino / Apple SD Gothic Neo on Apple, YaHei / Yu Gothic / Malgun on Windows, Noto on
   Android). No CJK webfont is shipped: a single one is 2-8 MB, slower than the page. */
html.lang-zh {
  --sans: "Switzer", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --mono: "Server Mono", "SF Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;
}
html.lang-zh-hant {
  --sans: "Switzer", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  --serif: "Newsreader", "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif;
  --mono: "Server Mono", "SF Mono", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", monospace;
}
html.lang-ja {
  --sans: "Switzer", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --serif: "Newsreader", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --mono: "Server Mono", "SF Mono", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", monospace;
}
html.lang-ko {
  --sans: "Switzer", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --serif: "Newsreader", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif;
  --mono: "Server Mono", "SF Mono", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", monospace;
}

/* Tracking: CJK glyphs are set solid. The site's tight negative tracking on headings and its
   open tracking on mono labels both read as mistakes on Han, kana and hangul. */
html.cjk body, html.cjk body * { letter-spacing: 0 !important; }

/* No CJK face has an italic; the browser would slant the glyphs. The serif italics in the
   headings keep their colour and lose the slant. */
html.cjk i, html.cjk em, html.cjk .h-sec i { font-style: normal; }

/* Leading: display lines set at 0.95-1.1 clip CJK ascenders; body copy wants air. */
html.cjk :is(h1, h2, h3, h4, .hero__title, .h-sec, .tour__title, .footer__tag) { line-height: 1.3; }
html.cjk :is(p, li, dd, dt, td, th, summary, .tour__prose) { line-height: 1.8; }
html.cjk .mono { line-height: 1.6; }

/* Line breaking: Chinese and Japanese break between any two characters but never before 。、）
   (strict); Korean breaks at spaces like English and must never split a word. Long Latin
   names (Norðurflug Helicopter Tours) may still wrap rather than overflow. */
html.lang-zh body, html.lang-zh-hant body, html.lang-ja body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html.lang-ko body { word-break: keep-all; overflow-wrap: anywhere; }
/* Japanese headings: proportional kana and punctuation, the way Japanese print sets titles */
html.lang-ja :is(h1, h2, h3, .hero__title, .h-sec) { font-feature-settings: "palt" 1; }

/* Uppercase transforms are for the Latin wordmark only; on CJK they do nothing, but the mono
   eyebrows set in caps look shouty beside hangul, so they drop the transform. */
html.cjk .mono:not(.footer__who):not(.footer__credit) { text-transform: none; }
