/* Step Up intake — accessible, no framework, no external fonts. */

:root {
  --ink: #1a1c1f;
  --muted: #4a5058;
  --line: #c4c9d0;
  --line-strong: #6b7280;
  --accent: #1a4d8f;
  --accent-ink: #ffffff;
  --bg: #ffffff;
  --panel: #f3f5f8;
  --error: #9a1c1c;
  --focus: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e8eaed;
    --muted: #b0b6be;
    --line: #4a5058;
    --line-strong: #8e959e;
    --accent: #8ab4f8;
    --accent-ink: #10243f;
    --bg: #15171a;
    --panel: #1f2225;
    --error: #f28a8a;
    --focus: #a8c7fa;
  }
}

:root[data-theme='dark'] {
  --ink: #e8eaed;
  --muted: #b0b6be;
  --line: #4a5058;
  --line-strong: #8e959e;
  --accent: #8ab4f8;
  --accent-ink: #10243f;
  --bg: #15171a;
  --panel: #1f2225;
  --error: #f28a8a;
  --focus: #a8c7fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--bg);
  padding: 12px 16px;
  border: 2px solid var(--focus);
}

.topbar {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.topbar a { color: var(--accent); }

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.lede { color: var(--muted); }

.notice {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.notice h2 { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

.errors {
  border: 2px solid var(--error);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 24px 0;
}
.errors h2 { margin-top: 0; color: var(--error); }
.errors ul { margin: 0; padding-left: 20px; }

.field { margin: 28px 0; border: 0; padding: 0; }
fieldset.field { border: 0; }

label, legend {
  display: block;
  font-weight: 600;
  padding: 0;
  margin-bottom: 4px;
}

.req { font-weight: 400; color: var(--error); }
.opt { font-weight: 400; color: var(--muted); }

.hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.925rem;
}

input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  max-width: 34rem;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
textarea { resize: vertical; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
}
.choice input { width: 20px; height: 20px; margin-top: 10px; flex: none; }
.choice label { font-weight: 400; margin: 0; padding: 8px 0; }

:is(input, textarea, button, a, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.submit {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 6px;
  padding: 14px 24px;
  min-height: 48px;
  cursor: pointer;
}
.submit:hover { filter: brightness(1.08); }

/* Honeypot: hidden from people and assistive tech, present for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.confirm ol { padding-left: 20px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 400px) {
  main { padding-left: 16px; padding-right: 16px; }
}
