:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #111d28;
  --panel-2: #172737;
  --text: #f7fbff;
  --muted: #aebdca;
  --accent: #20d6a3;
  --accent-dark: #073e32;
  --focus: #ffd54a;
  --danger: #ff6b6b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, #16314a 0, transparent 42%),
    var(--bg);
  color: var(--text);
}

button, a {
  font: inherit;
}

button:focus-visible, a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 1rem;
  background: var(--focus);
  color: #000;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid #2b3b49;
  background: rgba(7, 16, 24, .82);
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
}

.eyebrow {
  margin-bottom: .25rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .14em;
}

.status {
  padding: .75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
}

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.announcement {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.voice-button {
  width: min(320px, 90vw);
  min-height: 150px;
  padding: 1.5rem;
  border: 3px solid var(--accent);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--accent-dark), #102a30);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
}

.mic {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border: 12px solid rgba(32, 214, 163, .25);
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
}

.voice-button.listening {
  border-color: var(--danger);
  background: #431d25;
}

.help {
  margin-top: 1rem;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-list, .channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card, .channel-button {
  width: 100%;
  min-height: 120px;
  padding: 1.25rem;
  border: 2px solid #344b5e;
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.card button, .channel-button, .secondary {
  cursor: pointer;
}

.card h3 {
  font-size: 1.4rem;
}

.card p {
  color: var(--muted);
}

.primary, .secondary {
  min-height: 52px;
  padding: .75rem 1rem;
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: #001a13;
  font-weight: 900;
}

.secondary {
  background: transparent;
  color: var(--accent);
}

.channel-button {
  font-size: 1.2rem;
  font-weight: 800;
}

.channel-button span {
  display: block;
  margin-top: .5rem;
  color: var(--muted);
  font-size: .95rem;
}

.hidden {
  display: none;
}

footer {
  padding: 2rem 1rem;
  border-top: 1px solid #263746;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
