[data-language-slot] {
  flex-shrink: 0;
}

[data-language-slot] #sf-lang {
  --sf-lang-accent: 215, 169, 201;
  --sf-lang-fg: 245, 222, 202;
  position: relative;
  inset: auto;
  cursor: pointer;
}

[data-language-slot] #sf-lang-btn {
  height: 34px;
}

[data-language-slot] #sf-lang-btn::before {
  width: 100%;
  height: 100%;
}

header:has(> .brand) nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editorial :is(h1, h2, p),
.journal-story-copy :is(h2, p),
.journal-intro-copy :is(h2, p),
.studio-content :is(h2, p),
#creations .app p {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.journal-page-header a,
.editorial-end-actions a,
.journal-action {
  max-width: 100%;
}

:root:is([lang="ja"], [lang="ko"]) {
  --serif-cjk: Georgia, "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", Batang, "Noto Serif CJK KR", serif;
}

:root[lang="ko"] {
  --serif-cjk: Georgia, Batang, "Noto Serif CJK KR", "Malgun Gothic", serif;
}

:root:is([lang="ja"], [lang="ko"]) :is(.journal-title, .journal-subtitle, .journal-action, .editorial-prose,
  .editorial-prose h2, .journal-story-copy h2, .journal-story-summary, .editorial-viewer h2, .section-title,
  #creations .app h3, #creations .app p, .studio-content p, #about, .explore) {
  font-family: var(--serif-cjk);
  line-break: strict;
}

:root:is([lang="ja"], [lang="ko"]) :is(.journal-kicker, .eyebrow, .tagline) {
  letter-spacing: .14em;
}

@media (max-width: 650px) {
  header:has(> .brand) {
    gap: 8px 12px;
    flex-wrap: wrap;
  }
  header:has(> .brand) nav {
    margin-left: auto;
    gap: 6px 9px;
  }
  .journal-page-header {
    position: relative;
    padding-right: 58px;
  }
  .journal-page-header > [data-language-slot] {
    position: absolute;
    right: 0;
    top: 1.4rem;
  }
  :root:not([lang="en"]) .hero-content {
    top: auto;
    bottom: max(22px, 5svh);
  }
}
