:root {
  --bg: #07090f;
  --fg: #d6e2f0;
  --muted: #8a9bb0;
  --accent: #39f3c9;
  --accent-2: #ff4fd8;
  --font: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

main, footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 9vw, 3.25rem);
  letter-spacing: 0.04em;
  color: var(--fg);
  text-shadow: 0 0 12px rgba(57, 243, 201, 0.35);
}

.prompt { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .prompt { animation: blink 1.1s steps(1) infinite; }
}

@keyframes blink { 50% { opacity: 0.35; } }

.pitch { font-size: 1.15rem; color: var(--accent); }

.status { color: var(--accent-2); font-weight: bold; }

section + section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px dashed #24304a; }

/* With JavaScript, only the selected language is shown; without it, both are. */
.js section[data-lang]:not(.active) { display: none; }
.js section + section { margin-top: 0; padding-top: 0; border-top: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent-2); }

.lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
  color: var(--muted);
}

.lang button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  padding: 0.35rem 0.6rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

footer { margin-top: 3rem; padding-bottom: 1.5rem; color: var(--muted); font-size: 0.875rem; }
