:root {
  color-scheme: light dark;
  --text: #111;
  --muted: #666;
  --bg: #fff;
  --line: #d0d0d0;
  --field: #fff;
  --focus: #0a58ca;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #9a9a9a;
    --bg: #121212;
    --line: #3a3a3a;
    --field: #1b1b1b;
    --focus: #7fb0ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: calc(480px + 2 * 20px);
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
}
header { padding: 32px 0 8px; }
main { flex: 1; padding: 24px 0 48px; }
body.home main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
footer {
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.88rem;
}
footer p { margin: 4px 0 0; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wordmark { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 16px; }
h2 { font-size: 1.05rem; margin: 28px 0 6px; }
p, address { margin: 0 0 12px; }
address { font-style: normal; }
.home h1 { margin-bottom: 12px; }
.home p, .home address { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }

form { display: flex; flex-direction: column; }
label { font-weight: 600; font-size: 0.92rem; margin: 16px 0 6px; }
input, select, textarea {
  font: inherit;
  font-size: 1rem; /* >= 16px keeps iOS from zooming */
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
textarea { resize: vertical; min-height: 10rem; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}
button {
  font: inherit;
  font-weight: 600;
  margin-top: 24px;
  padding: 11px 20px;
  align-self: flex-start;
  border: 0;
  border-radius: 8px;
  color: var(--bg);
  background: var(--text);
  cursor: pointer;
}
button:hover { opacity: 0.85; }
.note { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 20px; min-height: 65px; }
