:root {
  color-scheme: light dark;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5e687c;
  --border: #dde3ee;
  --accent: #1457d9;
  --accent-soft: #eaf1ff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d111b;
    --surface: #151b27;
    --text: #eef2fb;
    --muted: #aeb8cc;
    --border: #2a3447;
    --accent: #79a7ff;
    --accent-soft: #17294b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

main {
  width: min(880px, calc(100% - 32px));
  margin: 48px auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgb(25 45 85 / 8%);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  text-decoration: none;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2.15rem, 7vw, 3.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-top: 2.4rem;
  font-size: 1.35rem;
}

p,
li {
  max-width: 75ch;
}

.eyebrow,
.updated,
footer {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.updated {
  margin-top: 0;
}

.card {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--accent-soft);
}

a {
  color: var(--accent);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-picker select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 10px;
  font: inherit;
}

.recovery-shell {
  max-width: 680px;
}

.recovery-card {
  display: grid;
  gap: 14px;
}

.primary-action {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .language-picker {
    width: 100%;
    margin-left: 0;
  }

  main {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}
