:root {
  color-scheme: light dark;
  --background: #f5f7fc;
  --surface: #ffffff;
  --foreground: #16213a;
  --muted: rgba(22, 33, 58, 0.68);
  --border: rgba(22, 33, 58, 0.1);
  --primary: #6d28d9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #050506;
    --surface: #111114;
    --foreground: #f5f5f7;
    --muted: rgba(235, 235, 240, 0.72);
    --border: rgba(245, 245, 247, 0.14);
    --primary: #a78bfa;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 16px;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-weight: 600;
}

.brand img {
  width: 32px;
  height: 32px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
}

p {
  margin: 0 0 20px;
  color: var(--muted);
}

a.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 4px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 0.875rem;
}

nav a {
  color: var(--muted);
}
