:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #5d5c57;
  --line: #d8d5cc;
  --accent: #1f5f4a;
  --accent-fg: #ffffff;
  --error: #b3261e;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151614;
    --fg: #ecebe6;
    --muted: #a8a69e;
    --line: #3a3b37;
    --accent: #7cc4a6;
    --accent-fg: #0f1a15;
    --error: #f2b8b5;
  }
}

* {
  box-sizing: border-box;
}

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

.top,
main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

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

h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin: 1.5rem 0 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
}

[aria-invalid="true"] {
  border-color: var(--error);
  outline: 2px solid var(--error);
}

.row {
  display: flex;
  gap: 0.5rem;
}

.row input {
  flex: 1;
}

button {
  margin-top: 1rem;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  cursor: pointer;
}

.row button {
  margin-top: 0;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
}

.check input {
  margin-top: 0.35rem;
}

.hint,
.status,
footer {
  color: var(--muted);
  font-size: 0.9rem;
}

[data-turnstile] {
  margin-top: 1rem;
  min-height: 65px;
}

/* The honeypot stays reachable for bots that ignore CSS but not for people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.legal section {
  margin-top: 0;
  padding-top: 0;
  border: 0;
}

.eyebrow {
  margin: 1.5rem 0 0;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

/* Text for AI agents only: hidden on screen and, through aria-hidden, from screen readers. */
.agent-note {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
