:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #6b675f;
  --accent: #3d5a4f;
  --accent-text: #ffffff;
  --border: #ddd6ca;
  --error: #a33a2b;
  --ok: #2f6b45;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1a;
    --surface: #262624;
    --text: #ece8e1;
    --muted: #a39e94;
    --accent: #8fb3a3;
    --accent-text: #1c1c1a;
    --border: #3a3936;
    --error: #e08a7c;
    --ok: #8fc7a0;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; }

.top, .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px;
}

.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px;
}

.foot { font-size: 0.85rem; color: var(--muted); }

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

h2 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 28px 0 8px; }

.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

form { display: flex; flex-direction: column; gap: 14px; }

label { font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; }

input[type="email"] {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

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

.consent { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.consent input { margin-top: 4px; flex: none; }

.note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button {
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

button:disabled { opacity: 0.6; cursor: default; }

.msg { font-size: 0.95rem; }
.msg:empty { display: none; }
.msg.error { color: var(--error); }
.msg.ok { color: var(--ok); }

.prose p, .prose li { margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
