.site-header {
  column-gap: 16px;
}

.site-header .wordmark {
  margin-inline-end: auto;
}

.language-switcher {
  position: relative;
  flex: none;
  z-index: 1;
}

.language-switcher summary,
.language-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 46px;
  min-height: 44px;
  border-radius: 4px;
}

.language-switcher summary {
  list-style: none;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher img {
  display: block;
  width: 24px;
  height: 16px;
  box-shadow: 0 0 0 1px #1a1c1a28;
}

.language-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.language-switcher[open] .language-caret {
  margin-top: 3px;
  transform: rotate(225deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  max-height: calc(100dvh - 85px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 24px #1a1c1a24;
}

.language-options a[aria-current="true"],
.language-options a:hover,
.language-switcher summary:hover {
  background: #e5e5da;
}

.language-switcher :is(summary, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

@media (min-width: 1051px) {
  .site-header .site-nav {
    gap: clamp(12px, 1.6vw, 24px);
    white-space: nowrap;
  }

  .site-header .site-nav > a:last-child {
    padding-left: 16px;
  }
}

@media (max-width: 700px) {
  .site-header {
    column-gap: 8px;
  }

  .site-header .menu-toggle {
    flex: none;
    padding-inline-start: 4px;
  }

  :lang(bg) .hero h1 {
    font-size: clamp(68px, 22vw, 154px);
  }
}

@media (max-width: 460px) {
  .site-header {
    padding-inline: 14px;
    column-gap: 5px;
  }

  .site-header .wordmark {
    gap: 8px;
    min-width: 0;
  }

  .site-header .monogram {
    height: 25px;
  }

  .site-header .brand-text {
    justify-content: center;
    gap: 4px;
    height: auto;
    font-size: 13px;
    white-space: normal;
    line-height: 1.12;
  }

  .site-header .brand-text > span {
    display: block;
    font-size: 10px;
    letter-spacing: 0;
  }

  .site-header .menu-toggle {
    gap: 6px;
    font-size: 13px;
  }

  .site-header .menu-lines {
    width: 17px;
  }
}

html[lang="zh-TW"] {
  --serif: 'Noto Serif TC', 'Songti TC', 'Noto Serif CJK TC', serif;
  --sans: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Noto Sans CJK TC', sans-serif;
}

html[lang="ja"] {
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK JP', serif;
  --sans: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Noto Sans CJK JP', sans-serif;
}

:is(:lang(zh-TW), :lang(ja)) .hero h1 {
  font-size: clamp(50px, 8.7vw, 155px);
  line-height: 1.12;
}

:is(:lang(zh-TW), :lang(ja)) .hero h1 em {
  font-style: normal;
}

:is(:lang(zh-TW), :lang(ja)) .section-heading h2 {
  font-size: clamp(38px, 4.8vw, 84px);
  line-height: 1.13;
}

:is(:lang(zh-TW), :lang(ja)) .record-copy h3,
:is(:lang(zh-TW), :lang(ja)) .solo-intro h3 {
  font-size: clamp(36px, 5vw, 78px);
  line-height: 1.15;
}

:is(:lang(zh-TW), :lang(ja)) .footer-wordmark {
  font-size: clamp(33px, 9.5vw, 165px);
}

@media (max-width: 700px) {
  :is(:lang(zh-TW), :lang(ja)) .hero h1 {
    font-size: clamp(48px, 18vw, 107px);
  }
}

@media (max-width: 460px) {
  :lang(de) .recordings .section-heading h2 {
    font-size: clamp(42px, 13vw, 61px);
  }

  :lang(bg) .listen h2 {
    font-size: clamp(55px, 18vw, 75px);
  }
}

/* Hero name fit for Chinese, Japanese and Bulgarian (full-width / wider glyphs than the Latin design) */
html[lang="zh-TW"] .hero h1,html[lang="ja"] .hero h1,html[lang="bg"] .hero h1{font-size:clamp(90px,10vw,175px);line-height:.98}
html[lang="zh-TW"] .hero h1 em,html[lang="ja"] .hero h1 em,html[lang="bg"] .hero h1 em{font-size:1em;margin-top:6px}
@media(max-width:1100px){
html[lang="zh-TW"] .hero h1,html[lang="ja"] .hero h1,html[lang="bg"] .hero h1{font-size:10.5vw}
}
@media(max-width:800px){
html[lang="zh-TW"] .hero h1,html[lang="ja"] .hero h1,html[lang="bg"] .hero h1{font-size:10.5vw}
}
@media(max-width:700px){
html[lang="zh-TW"] .hero h1,html[lang="ja"] .hero h1,html[lang="bg"] .hero h1{font-size:clamp(76px,19vw,140px);line-height:1}
}
@media(max-width:380px){
html[lang="zh-TW"] .hero h1,html[lang="ja"] .hero h1,html[lang="bg"] .hero h1{font-size:19vw}
}
