:root {
  color-scheme: dark;
  font-family: Geist, system-ui, sans-serif;
  color: #f4f8fc;
  background: #041421;
  --muted: #a9c0d2;
  --line: #345264;
  --orange: #ff9c37;
}

@font-face {
  font-family: Geist;
  src: url('/xmap/fonts/geist/Geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 78% 10%, #0a3955, transparent 52%);
}
a { color: inherit; }
[hidden] { display: none !important; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.shell { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .shell, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 750;
  text-decoration: none;
}
.brand img { border-radius: 9px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-block: clamp(32px, 5vw, 64px);
}
.hero-art {
  display: block;
  width: clamp(120px, 22vw, 240px);
  height: auto;
  filter: drop-shadow(0 16px 28px #0008);
}
.eyebrow {
  color: var(--orange);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); letter-spacing: -.055em; line-height: 1; margin: 12px 0; }
h2 { font-size: 1.45rem; margin: 0; }
p { color: var(--muted); line-height: 1.6; }
.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.release {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0a2335;
}
#stable { border-color: #9b633b; }
.release-heading, .release-links { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.badge { border-radius: 30px; padding: 4px 10px; background: #ff9c3720; color: #ffc588; font-size: .75rem; }
.badge.beta { background: #c9e5ff16; color: #c7def2; }
.release p { margin: 12px 0; }
.details { color: #d5e5f2; font-size: .875rem; margin: auto 0 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  background: #102f45;
}
.button:hover { background: #1a405a; }
.primary { background: var(--orange); border-color: var(--orange); color: #181006; }
.primary:hover { background: #ffb45f; }
.button[aria-disabled=true] { opacity: .6; pointer-events: none; }
.release-links { margin-top: 16px; font-size: .85rem; color: var(--muted); }
.release-links a { text-underline-offset: 3px; }
.site-footer { color: var(--muted); font-size: .85rem; margin-top: 32px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .hero, .channels { grid-template-columns: 1fr; }
  .hero { gap: 16px; }
  .hero-art { grid-row: 1; }
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #061a29;
}

.language-switch button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button:hover { color: #fff; }
.language-switch button[aria-pressed=true] { background: var(--orange); color: #181006; }
.language-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
