:root {
  color-scheme: light dark;
  --bg: #fffdf5;
  --text: #1f1d16;
  --muted: #5f5a48;
  --accent: #d4b106;
  --accent-strong: #8a7000;
  --surface: #ffffff;
  --border: #e6dfc4;
  --success: #2f6b2f;
  --error: #b42318;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --text: #f2efe3;
    --muted: #b3ad97;
    --accent: #f0cf2a;
    --accent-strong: #f0cf2a;
    --surface: #1e1c15;
    --border: #3a3627;
    --success: #7cc47c;
    --error: #ff8a80;
  }
}

* {
  box-sizing: border-box;
}

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

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

.topbar,
main,
footer {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

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

.login {
  font-weight: 600;
  text-decoration: none;
}

section {
  padding: 2.5rem 0;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
  margin: 1rem 0;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.lead strong {
  color: var(--text);
}

h2 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
}

.steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.steps h3::before {
  content: counter(step) '. ';
  color: var(--accent-strong);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.signup > p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

form {
  max-width: 32rem;
}

.field {
  margin-bottom: 1rem;
}

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

.optional {
  font-weight: 400;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

input[aria-invalid='true'] {
  border-color: var(--error);
}

textarea {
  resize: vertical;
}

.field-error {
  color: var(--error);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
  min-height: 1em;
}

.field-error:empty {
  margin: 0;
  min-height: 0;
}

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

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #1f1d16;
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.05);
}

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

.form-status {
  margin: 1rem 0 0;
  font-weight: 600;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}
