:root {
  --fg: #1c1c1c;
  --fg-muted: #5e5e5e;
  --bg: #fafaf7;
  --accent: #2b4570;
  --accent-soft: #e7ecf4;
  --border: #d6d6d2;
  --error: #9a2a2a;
  --success: #1d6b3d;
  --maxw: 46rem;
  --radius: 6px;
  --pad: 1.25rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
}

header h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header .lede {
  color: var(--fg-muted);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

p { margin: 0 0 1rem; }
p.pad { margin-bottom: 1rem; }

a { color: var(--accent); }
a:hover { text-decoration: underline; }

.muted, .hint { color: var(--fg-muted); font-weight: normal; font-size: 0.9em; }

form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

legend {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  padding: 0;
  margin-bottom: 0.65rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--fg);
  transition: border-color 120ms, box-shadow 120ms;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 4.5rem;
  font-family: inherit;
}

.doc-option {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  grid-column-gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}

.doc-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.doc-option input {
  margin-top: 0.15rem;
  grid-row: span 2;
}

.doc-title {
  font-weight: 500;
  font-size: 0.98rem;
}

.doc-blurb {
  font-size: 0.88rem;
  color: var(--fg-muted);
  grid-column: 2;
}

.doc-option.subtle { opacity: 0.82; }
.doc-option.subtle:hover { opacity: 1; }

.attestation label {
  display: flex;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-weight: normal;
  cursor: pointer;
}

.attestation input { margin-top: 0.2rem; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  font: inherit;
  font-weight: 500;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 120ms, opacity 120ms;
}

button:hover:not(:disabled) { background: #1f3559; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.status {
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.status.success { color: var(--success); }
.status.error { color: var(--error); }

.legal-fine-print {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 1.5rem 0;
}

footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-muted);
}
