/* S2 functional stylesheet - S3 replaces the design. One file, no font or script from elsewhere. */
:root {
  color-scheme: light dark;
  --fg: #1b1f23;
  --bg: #ffffff;
  --muted: #4a5560;
  --line: #8a959f;
  --accent: #0b5cad;
  --error: #b00020;
  --focus: #0b5cad;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8eaed;
    --bg: #15181b;
    --muted: #b4bcc4;
    --line: #6b7682;
    --accent: #7ab7ff;
    --error: #ff8a8a;
    --focus: #7ab7ff;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5; }
body { margin: 0; color: var(--fg); background: var(--bg); }
main { max-width: 36rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
a { color: var(--accent); }
.warning { font-weight: 600; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field input[type="text"], .field input[type="email"] {
  display: block; width: 100%; padding: 0.55rem 0.6rem; font: inherit;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
}
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: start; }
.field-check input { width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.field-help { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.field-error, .gate-message { margin: 0.35rem 0 0; color: var(--error); font-weight: 600; }
.gate-message { margin: 0 0 1rem; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }
.notice { margin: 1.25rem 0; padding: 0.75rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.notice p { margin: 0; }
.cf-turnstile { margin: 1rem 0; min-height: 65px; }
button {
  font: inherit; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 4px; cursor: pointer;
  color: #ffffff; background: var(--accent); border: 1px solid var(--accent);
}
@media (prefers-color-scheme: dark) { button { color: #0b1117; } }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* The placeholder homepage's footer (its inline <style> moved here - ruling R19 d). */
footer { border-top: 1px solid var(--line); margin-top: 2.6rem; padding-top: 1rem; color: var(--muted); }
