/* Language chooser (Phase 09.1 plan 06, D-03). The values are the design tokens of web/src/styles/global.css:
   page #faf7f2, surface #f1ebdf, accent #4338ca, ink #1c1917, line #d6cfc2, 8px radius, the system font stack, 16px body. */
:root {
  --page: #faf7f2;
  --surface: #f1ebdf;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --line: #d6cfc2;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.chooser {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.brand {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0 0 24px;
  color: var(--ink-muted);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice {
  display: block;
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--page);
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.choice:hover,
.choice:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--page);
}

.choice:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* The suggested language (remembered choice, else the browser language) is filled; the other stays outlined. */
.choice.is-suggested {
  background-color: var(--accent);
  color: var(--page);
}

.note {
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.sep {
  padding: 0 4px;
}
