/* ============================================================
   LUX VIDIGAL — cjk.css (2026-09-26)
   Japanese (/ja/) and Simplified Chinese (/zh/) pages only.
   Linked after lv2.css by _v2/i18n_sweep.py on ja/zh pages.

   Latin text stays in the site's self-hosted Fraunces / Archivo.
   Japanese and Chinese glyphs fall through to the reader's own
   system fonts: nothing extra to download, nothing sent to Google.
   Display = Mincho / Song (serif, to sit with Fraunces), UI = Gothic / Hei.
   ============================================================ */

:root:lang(ja) {
  --f-display: "Fraunces", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --f-ui: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", "Yu Gothic", "YuGothic", sans-serif;
  --f-hand: "Caveat", "Hiragino Sans", "BIZ UDPGothic", "Meiryo", sans-serif;
}
:root:lang(zh-Hans) {
  /* Song on Apple and Android; Windows has no good heavy Song face, so it falls to YaHei */
  --f-display: "Fraunces", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Microsoft YaHei", "PingFang SC", serif;
  --f-ui: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --f-hand: "Caveat", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* CJK glyphs fill the em box: the Latin-tuned sizes read about a size too big */
:root:is(:lang(ja), :lang(zh-Hans)) {
  --size-mega: clamp(2.3rem, 1.4rem + 4.2vw, 5rem);
  --size-h1: clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem);
  --size-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --size-lede: clamp(1.08rem, 1rem + 0.45vw, 1.32rem);
}

html:is(:lang(ja), :lang(zh-Hans)) body { line-height: 1.85; line-break: strict; overflow-wrap: break-word; }
html:lang(ja) body { letter-spacing: 0.02em; }
html:lang(zh-Hans) body { letter-spacing: 0.01em; }

/* no italics, ever — and never a synthetic slant on CJK (some journal ledes carry an inline italic) */
html:is(:lang(ja), :lang(zh-Hans)) :is(em, i, cite, var, dfn) { font-style: normal; }
html:is(:lang(ja), :lang(zh-Hans)) [style*="italic"] { font-style: normal !important; }

/* headings: no negative tracking (it crushes CJK), roomier leading, phrase-aware breaks */
html:is(:lang(ja), :lang(zh-Hans)) :is(h1, h2, h3, h4, .display, .hero__title, .lvx-hero h1, .lvx-head h2, .lvx-cta h2,
  .lvx-mapteaser-b h2, .lvx-phero h1, .sec-head h1, .sec-head h2, .lvp-t, .lvp-feat-t, .lvx-gcard-t, .lvx-place h3,
  .lvf-logo, .tile h3, .post-body h2, .post-body h3) {
  letter-spacing: 0.01em;
  text-wrap: balance;
}
html:lang(ja) :is(h1, h2, h3, h4, .hero__title, .lede, .hero__sub, .lvx-hero p, .lvx-head p) { word-break: auto-phrase; }

html:is(:lang(ja), :lang(zh-Hans)) .hero__title { line-height: 1.14; letter-spacing: 0.02em; max-width: 12em; }
/* the depth hero sets its own 12rem title: a CJK line of 5-9 characters needs about half */
html:is(:lang(ja), :lang(zh-Hans)) .hero--depth .hero__title { font-size: clamp(2.1rem, 0.7rem + 5.8vw, 6.6rem); line-height: 1.2; letter-spacing: 0.02em; max-width: none; }
html:is(:lang(ja), :lang(zh-Hans)) .hero__title .w { padding-bottom: 0.14em; }
html:is(:lang(ja), :lang(zh-Hans)) .hero__sub { line-height: 1.7; }
html:is(:lang(ja), :lang(zh-Hans)) .sec-head h1,
html:is(:lang(ja), :lang(zh-Hans)) .sec-head h2 { line-height: 1.24; max-width: 16em; }
html:is(:lang(ja), :lang(zh-Hans)) .lvx-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 5rem); line-height: 1.16; }
html:is(:lang(ja), :lang(zh-Hans)) .lvx-head h2,
html:is(:lang(ja), :lang(zh-Hans)) .lvx-cta h2,
html:is(:lang(ja), :lang(zh-Hans)) .lvx-mapteaser-b h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.3rem); line-height: 1.2; }
html:is(:lang(ja), :lang(zh-Hans)) .lvx-phero h1 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.4rem); line-height: 1.25; }
html:is(:lang(ja), :lang(zh-Hans)) .display { line-height: 1.12; }
html:is(:lang(ja), :lang(zh-Hans)) .lede { line-height: 1.75; }
html:is(:lang(ja), :lang(zh-Hans)) .grid-12 > .span-8:first-child:last-child .lede { font-size: clamp(1.3rem, 0.95rem + 1.2vw, 2.1rem); line-height: 1.55; }
html:is(:lang(ja), :lang(zh-Hans)) :is(.lvx-prose, .post-body) { line-height: 1.95; }
html:is(:lang(ja), :lang(zh-Hans)) :is(.tile h3, .lvx-gcard-t, .lvx-place h3, .lvp-t, .lvp-feat-t, .lvx-faq summary) { line-height: 1.35; }
html:is(:lang(ja), :lang(zh-Hans)) .lvm-gb,
html:is(:lang(ja), :lang(zh-Hans)) .lvm-gl { font-size: clamp(1.35rem, 5.4vw, 1.9rem); line-height: 1.3; }
html:is(:lang(ja), :lang(zh-Hans)) .kicker { line-height: 1.35; }

/* wide tracking was set for Latin capitals; CJK labels only need a little */
html:is(:lang(ja), :lang(zh-Hans)) :is(.mono-label, .hero__kicker, .lvx-eyebrow, .pill, .lvp-h, .lvf-h) { letter-spacing: 0.08em; }
html:is(:lang(ja), :lang(zh-Hans)) :is(.stat .lbl, .btn, .header-cta, .lang-switch__code) { letter-spacing: 0.05em; }

/* the "before you book" note on the ja/zh homepage and apartment page:
   heading row on top, the six notes in a 3 x 2 grid (a side column would leave a hole:
   body{overflow-x:hidden} stops position:sticky on this site) */
.lv-honest { background: var(--c-ocean-deep); color: var(--c-cream); padding: var(--space-section) var(--space-pad); position: relative; z-index: 2; }
.lv-honest__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "lbl lbl" "h p" "h cta";
  column-gap: clamp(28px, 5vw, 96px); row-gap: 1rem; align-items: start; margin-bottom: clamp(28px, 4vw, 56px); }
.lv-honest__head .mono-label { grid-area: lbl; color: var(--c-lime); }
.lv-honest__head h2 { grid-area: h; font-family: var(--f-display); font-weight: 900; font-size: var(--size-h1); line-height: 1.22; margin: 0; }
.lv-honest__head p { grid-area: p; margin: 0; color: rgba(245, 239, 228, 0.86); font-size: var(--size-lede); line-height: 1.75; }
.lv-honest__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0.4rem; }
.lv-honest__cta .btn--ghost { color: var(--c-cream); border-color: var(--c-cream); }
.lv-honest__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: rgba(245, 239, 228, 0.14); border: 1px solid rgba(245, 239, 228, 0.14); }
.lv-honest__list > div { background: var(--c-ocean-deep); padding: clamp(18px, 2vw, 30px); }
.lv-honest__list b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.08rem, 0.95rem + 0.45vw, 1.34rem); line-height: 1.4; color: var(--c-lime); margin-bottom: 0.5rem; }
.lv-honest__list p { font-size: 0.98rem; line-height: 1.85; color: rgba(245, 239, 228, 0.9); }
.lv-honest__list a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .lv-honest__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lv-honest__head { display: block; }
  .lv-honest__head h2 { margin: 0.8rem 0 1.2rem; }
  .lv-honest__cta { margin-top: 1.4rem; }
}
@media (max-width: 620px) {
  .lv-honest__list { grid-template-columns: 1fr; }
}

/* official-advice callout on /before-you-book */
.lv-advice { border-left: 4px solid var(--c-terracotta); background: rgba(212, 80, 42, 0.07); padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.lv-advice p { margin: 0 0 0.6rem; }
.lv-advice p:last-child { margin-bottom: 0; }
.lv-advice cite { display: block; font-size: 0.86rem; color: var(--c-fog); margin-top: 0.4rem; }
