/* innerexile Japanese typography fix */

html:lang(ja),
body:lang(ja),
.ja,
[lang="ja"] {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}

html:lang(ja) h1,
html:lang(ja) h2,
html:lang(ja) h3,
html:lang(ja) h4,
body:lang(ja) h1,
body:lang(ja) h2,
body:lang(ja) h3,
body:lang(ja) h4,
[lang="ja"] h1,
[lang="ja"] h2,
[lang="ja"] h3,
[lang="ja"] h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}

html:lang(ja) h1,
body:lang(ja) h1,
[lang="ja"] h1 {
  font-weight: 500 !important;
  line-height: 1.08 !important;
}

html:lang(ja) p,
html:lang(ja) li,
html:lang(ja) span,
body:lang(ja) p,
body:lang(ja) li,
body:lang(ja) span,
[lang="ja"] p,
[lang="ja"] li,
[lang="ja"] span {
  font-weight: 400 !important;
  line-height: 1.65 !important;
  letter-spacing: -0.005em !important;
}

/* Japanese topbar should be lighter */
html:lang(ja) nav a,
body:lang(ja) nav a,
[lang="ja"] nav a {
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}

html:lang(ja) nav a:first-child,
body:lang(ja) nav a:first-child,
[lang="ja"] nav a:first-child {
  font-weight: 500 !important;
}

/* keep CTA readable but not too heavy */
html:lang(ja) .ix-preorder-link,
body:lang(ja) .ix-preorder-link,
[lang="ja"] .ix-preorder-link {
  font-weight: 400 !important;
}
