/* The root language chooser. Deliberately tiny and separate from theme.css: this page is
   transient, and a meta refresh sends most visitors onward before it matters. */

body.chooser {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f2f2f4;
  color: #1d1d1f;
  font: 16px/1.6 "Segoe UI Variable Display", "Segoe UI", -apple-system, system-ui, sans-serif;
}

.chooser main { padding: 24px; }

.chooser h1 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.chooser .small { color: #55555c; margin: 0 0 20px; }

.chooser__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chooser__list a {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: #fff;
  color: #075e4f;
  font-size: 0.9375rem;
  text-decoration: none;
}

.chooser__list a:hover { background: #f7f7f8; }

@media (prefers-color-scheme: dark) {
  body.chooser { background: #1b1b1d; color: #f5f5f7; }
  .chooser .small { color: #b4b4ba; }
  .chooser__list a { background: #242426; border-color: rgba(255, 255, 255, 0.2); color: #8ff0d8; }
  .chooser__list a:hover { background: #2a2a2c; }
}
