:root {
  color-scheme: light dark;
  --text: #1d1b19;
  --muted: #5d5a55;
  --line: #d6d1ca;
  --surface: #fbfaf8;
  --danger: #b00020;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1eee9;
    --muted: #b8b2a9;
    --line: #4a4640;
    --surface: #1c1a18;
    --danger: #ff8a80;
  }
}

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

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
}

.notice {
  border-left: 3px solid var(--line);
  padding-left: 0.75rem;
}

form {
  display: grid;
  gap: 0.6rem;
  max-width: 24rem;
}

label {
  color: var(--muted);
}

input[type="email"],
input[inputmode="numeric"] {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
}

.check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: inherit;
}

button {
  font: inherit;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

#status:not(:empty) {
  font-weight: 600;
}
