.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.language-switcher a,
.language-switcher span[aria-current="true"] {
  padding: 4px 2px;
}

.language-switcher span[aria-current="true"] {
  color: var(--gold-pale);
}

.language-switcher .language-separator {
  opacity: 0.45;
}

@media (max-width: 720px) {
  .language-switcher {
    width: 100%;
    padding: 12px;
  }
}

.journey-song-translation {
  margin: -10px 0 18px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.journey-language-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* Language gateway */

.language-gateway-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(215, 180, 95, 0.12),
      transparent 34rem
    ),
    #050505;
}

.language-gateway {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 52px 24px;
}

.gateway-light {
  position: absolute;
  top: -220px;
  left: 50%;
  width: min(920px, 130vw);
  height: 620px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(215, 180, 95, 0.14),
      transparent 68%
    );
  filter: blur(18px);
  pointer-events: none;
}

.gateway-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  text-align: center;
}

.gateway-logo {
  display: block;
  width: clamp(150px, 24vw, 230px);
  height: auto;
  margin: 0 auto 30px;
  filter:
    drop-shadow(0 0 32px rgba(215, 180, 95, 0.12));
}

.gateway-eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
}

.gateway-content h1 {
  margin: 18px 0;
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.08;
}

.gateway-divider {
  width: 68px;
  height: 1px;
  margin: 30px auto;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}

.gateway-language-title {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.22em;
}

.gateway-language-options {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.gateway-language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 13, 11, 0.78);
  color: var(--ivory);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.gateway-language-option:hover,
.gateway-language-option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(215, 180, 95, 0.08);
}

.gateway-language-option strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.gateway-language-option span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.gateway-edition {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2em;
}

@media (max-width: 560px) {
  .language-gateway {
    padding: 38px 22px;
  }

  .gateway-logo {
    width: 150px;
    margin-bottom: 26px;
  }

  .gateway-content h1 {
    font-size: 46px;
  }

  .gateway-language-options {
    grid-template-columns: 1fr;
  }
}
/* Mobile composition refinement */

@media (max-width: 720px) {
  /*
   * Preserve the ceremonial logo-first entrance,
   * while allowing the mission text to enter the first screen sooner.
   */
  .hero {
    gap: 12px;
    padding: 32px 0 64px;
  }

  .hero-mark {
    min-height: 220px;
    margin-bottom: 2px;
  }

  .hero-mark::before {
    width: 64%;
  }

  .hero-mark img {
    width: min(60vw, 270px);
  }

  /*
   * Bring the Roadmap title and current chapter
   * closer to the mobile navigation.
   */
  .page-hero {
    padding: 52px 0 48px;
  }

  .page-hero h1 {
    margin-top: 16px;
  }

  .page-status {
    margin-top: 30px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 26px;
  }

  .hero-mark {
    min-height: 200px;
  }

  .hero-mark img {
    width: min(58vw, 238px);
  }

  .page-hero {
    padding: 42px 0 42px;
  }
}
/* Mobile header language switcher */

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.header-language-switcher {
  display: none;
}

@media (max-width: 720px) {
  .header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
  }

  .header-language-switcher {
    display: block;
  }

  .header-language-switcher .language-switcher {
    display: inline-flex;
    width: auto;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .header-language-switcher
  .language-switcher a,
  .header-language-switcher
  .language-switcher span[aria-current="true"] {
    padding: 7px 2px;
    font-size: 11px;
    line-height: 1;
  }

  .header-language-switcher
  .language-switcher a {
    color: var(--muted);
  }

  .header-language-switcher
  .language-switcher span[aria-current="true"] {
    color: var(--gold-pale);
  }

  .header-language-switcher
  .language-separator {
    opacity: 0.42;
  }

  .nav-links > .language-switcher {
    display: none;
  }

  .menu-button {
    flex: 0 0 auto;
  }
}
/* Language switcher link reset */

.language-switcher a,
.language-switcher a:hover,
.language-switcher a:focus,
.language-switcher a:active {
  text-decoration: none;
}
