:root {
  color-scheme: light dark;
  --text: #11181c;
  --muted: #5f6b73;
  --background: #ffffff;
  --surface: #f2f4f7;
  --accent: #2563eb;
  --danger: #dc2626;
  --on-accent: #ffffff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ecedee;
    --muted: #9ba5ae;
    --background: #0b0d10;
    --surface: #171a1f;
    --accent: #60a5fa;
    --danger: #f87171;
    --on-accent: #0b0d10;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

main, footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

h1 { font-size: 2.25rem; line-height: 1.15; margin: 0 0 1rem; font-weight: 800; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.5rem; font-weight: 700; }
p, li { font-size: 1.05rem; }
.lead { font-size: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }

.brand { font-weight: 800; text-decoration: none; color: var(--text); font-size: 1.1rem; }

.badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 2rem 0; }
.badges img { height: 3rem; width: auto; display: block; }

.code {
  display: inline-block;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0.25rem 0 1rem;
  user-select: all;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: var(--on-accent);
}
.button.danger { background: var(--danger); }
.button.quiet { background: var(--surface); color: var(--text); }

.signin { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin: 1.5rem 0; }
#appleid-signin { width: 240px; height: 44px; cursor: pointer; }

.status { font-weight: 600; }
.status.error { color: var(--danger); }

footer { padding-top: 0; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
footer a { color: var(--muted); }

[hidden] { display: none !important; }
