:root {
  --surface: #fcfcfb;
  --text: #0b0b0b;
  --muted: #52514e;
  --line: #c3c2b7;
  --accent: #2a78d6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #161615;
    --text: #f2f1ec;
    --muted: #b3b1a8;
    --line: #4a4944;
    --accent: #6aa6f0;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}

main {
  max-width: 22rem;
  margin: 12vh auto;
  padding: 0 16px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

#status {
  color: var(--muted);
}

form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
}

input {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

button {
  font: inherit;
  padding: 0.55rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
