:root {
  --text: #1d1d1f;
  --muted: #5b5b60;
  --accent: #1d4ed8;
  --error: #b42318;
  --border: #d0d0d5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: #fff;
}

main { max-width: 34rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }

h1 { margin: 2rem 0 0.5rem; font-size: 2rem; }

.lede { color: var(--muted); margin-top: 0; }

label { display: block; font-weight: 600; margin-top: 1.25rem; }

.optional { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

input:focus, select:focus, button:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.hint { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); }

.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.5rem; }
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.check label { margin: 0; font-weight: 400; }

.invalid { border-color: var(--error) !important; outline-color: var(--error); }
.check.invalid label { color: var(--error); }

.cf-turnstile { margin-top: 1.5rem; }

button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

button[disabled] { opacity: 0.6; cursor: progress; }

#status { min-height: 1.5rem; margin-top: 1rem; }
#status.error { color: var(--error); }

.notice { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 6px; }

footer { margin-top: 3rem; font-size: 0.8rem; color: var(--muted); }
footer a, .hint a { color: inherit; }
