/* =========================================================
   BRANDON JINWOO CHOI — Japanese edition (/jp/)
   Loaded only by jp/index.html, after assets/css/style.css.
   Same design system; Japanese type sets the rhythm.
   ========================================================= */

html[lang="ja"] {
  --sans: "Noto Sans JP", "Pretendard Variable", Pretendard, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Noto Sans JP", "Pretendard Variable", Pretendard, "Inter", -apple-system, sans-serif;
}

/* Japanese text needs looser leading and no negative tracking on body copy */
html[lang="ja"] body { letter-spacing: 0; line-height: 1.8; }

/* Display type: Japanese glyphs are full-width, so the scale is set by how many
   characters fit the column (14 full-width characters ~ the longest heading line). */
html[lang="ja"] .h1,
html[lang="ja"] .h2 {
  font-feature-settings: "palt" 1;
  letter-spacing: 0;
  font-weight: 800;
  text-wrap: pretty;
}
html[lang="ja"] .h1 { font-size: clamp(1.95rem, 3.55vw, 3.7rem); line-height: 1.18; }
html[lang="ja"] .h2 { font-size: clamp(1.55rem, 2.4vw, 2.65rem); line-height: 1.32; }

html[lang="ja"] .hero .h1 { max-width: none; }

/* the Japanese hero line is twelve full-width characters long, so it gets a wider column */
@media (min-width: 901px) {
  html[lang="ja"] .hero__grid { grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.66fr); }
}
html[lang="ja"] .hero__sub { max-width: 34em; line-height: 1.85; }
html[lang="ja"] .hero__sub--line { max-width: 32em; line-height: 1.65; letter-spacing: 0; }

/* section headers: the title needs the wider column in Japanese */
html[lang="ja"] .head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }

/* break Japanese lines at phrase boundaries where the browser supports it,
   so words like クレストン or サクソフォニスト are not split */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang="ja"] .card__desc, html[lang="ja"] .sched-row__title,
html[lang="ja"] .watch__label, html[lang="ja"] .watch__next-title { word-break: auto-phrase; }

html[lang="ja"] .label { letter-spacing: .1em; }
html[lang="ja"] .label b { font-weight: 700; }

html[lang="ja"] .lead,
html[lang="ja"] .head p { line-height: 1.8; }
html[lang="ja"] .head p { max-width: 36em; }

html[lang="ja"] .profile__body p { line-height: 1.9; }
@media (min-width: 901px) {
  html[lang="ja"] .profile__grid { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); }
}
html[lang="ja"] .facts dd { line-height: 1.7; }
html[lang="ja"] .facts dt { letter-spacing: .06em; }

html[lang="ja"] .card__title { letter-spacing: 0; line-height: 1.45; }
html[lang="ja"] .card__desc { line-height: 1.75; }
html[lang="ja"] .card__en { letter-spacing: .08em; }
html[lang="ja"] .card__meta span { font-weight: 500; }

html[lang="ja"] .step h3 { letter-spacing: 0; }
html[lang="ja"] .step p { line-height: 1.75; }

html[lang="ja"] .sched-row__title { line-height: 1.55; font-weight: 600; }
html[lang="ja"] .sched-row__flag { font-size: 10px; line-height: 1.25; padding: 4px 9px; letter-spacing: .06em; }

html[lang="ja"] .bio-text { line-height: 1.85; letter-spacing: 0; }
html[lang="ja"] .bio-text p + p { margin-top: 12px; }
html[lang="ja"] .rp__work { line-height: 1.6; }
html[lang="ja"] .rp.rp--list .rp__work,
html[lang="ja"] .rp.rp--list .rp__note { display: block; }
html[lang="ja"] .rp.rp--list .rp__note { margin-top: 3px; }
html[lang="ja"] .rp__note { letter-spacing: .04em; }
html[lang="ja"] .tech dd { line-height: 1.65; }
html[lang="ja"] .media-card__body b { line-height: 1.5; }

html[lang="ja"] .watch__label { line-height: 1.8; max-width: 34em; }
html[lang="ja"] .watch__next-title { letter-spacing: 0; }
html[lang="ja"] .watch__next-meta { line-height: 1.6; }
html[lang="ja"] .watch__next-tag { letter-spacing: .08em; }

html[lang="ja"] .contact__intro { line-height: 1.8; max-width: 34em; }
html[lang="ja"] .person__row dd { font-weight: 500; line-height: 1.7; }
html[lang="ja"] .field input,
html[lang="ja"] .field select,
html[lang="ja"] .field textarea { letter-spacing: 0; line-height: 1.6; }
html[lang="ja"] .form__note { line-height: 1.65; max-width: 26em; }

html[lang="ja"] .foot__roles { line-height: 1.7; }
html[lang="ja"] .sched__empty { line-height: 1.85; }

/* Japanese nav labels are wider than the Korean/English ones: fold to the menu earlier */
@media (max-width: 1140px) {
  html[lang="ja"] .nav__links,
  html[lang="ja"] .nav .btn--sm { display: none; }
  html[lang="ja"] .nav__burger { display: block; }
}

/* mobile: Japanese lines wrap earlier, so relax a few max-widths */
@media (max-width: 900px) {
  html[lang="ja"] .head { grid-template-columns: 1fr; }
  html[lang="ja"] .h1 { font-size: clamp(1.9rem, 7.6vw, 2.9rem); line-height: 1.24; }
  html[lang="ja"] .h2 { font-size: clamp(1.28rem, 5.1vw, 2.1rem); }
  html[lang="ja"] .facts div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
  html[lang="ja"] .facts dt { padding-top: 0; }
  html[lang="ja"] .hero__sub--line { max-width: none; }
}
@media (max-width: 640px) {
  html[lang="ja"] body { font-size: 16px; }
  html[lang="ja"] .hero__sub--line { max-width: none; }
}
