:root {
  --bg: #f7f5f0; --surface: #fffefb; --text: #1c1c1f; --muted: #6a6a70; --line: #e6e2d9; --line-strong: #d3cec2;
  --accent: #2c4a88; --accent-hover: #233c70; --accent-soft: #e7ebf4; --on-accent: #fff; --bad: #9c2b20;
  --shadow: 0 1px 2px rgb(28 28 31 / 0.04), 0 2px 8px -4px rgb(28 28 31 / 0.06);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Bitstream Charter", Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316; --surface: #1a1b1f; --text: #ece9e2; --muted: #9c9a94; --line: #2b2c31; --line-strong: #3b3c42;
    --accent: #a9bbec; --accent-hover: #c2cff3; --accent-soft: #252c40; --on-accent: #10131a; --bad: #f1a197;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 540px; margin: 0 auto; padding: 64px 16px 28px; }
h1 { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 14px; }
p { margin: 0 0 14px; overflow-wrap: anywhere; }
a { color: var(--accent); }
form { display: grid; gap: 16px; margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.hint { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 12px; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button, .button { font: inherit; font-weight: 500; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 8px; padding: 10px 20px; cursor: pointer; text-decoration: none; display: inline-block; justify-self: start; transition: background-color 0.15s; }
button:hover, .button:hover { background: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: var(--bad); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { max-width: 540px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 560px) { main { padding-top: 36px; } h1 { font-size: 28px; } form { padding: 18px 16px; } }
