:root {
  --bg: #f6f3ea;
  --surface: #ffffff;
  --text: #1d2b22;
  --muted: #5c6b61;
  --border: #e3dccb;
  --accent: #2f6b45;
  --accent-text: #f6f3ea;
  --error: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a14;
    --surface: #16241c;
    --text: #e8efe9;
    --muted: #9aab9f;
    --border: #25382d;
    --accent: #5fae7b;
    --accent-text: #0f1a14;
    --error: #f97066;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a14;
  --surface: #16241c;
  --text: #e8efe9;
  --muted: #9aab9f;
  --border: #25382d;
  --accent: #5fae7b;
  --accent-text: #0f1a14;
  --error: #f97066;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  padding: 0 16px;
}
a { color: var(--accent); }

.site-header, main, .site-footer { max-width: 720px; margin: 0 auto; }
.site-header { display: flex; align-items: center; gap: 10px; padding: 24px 0 8px; }
.site-header a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.site-header svg { width: 22px; height: 29px; }

main { padding: 16px 0 48px; }
h1 { font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.15; margin: 16px 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
p, li { color: var(--text); }
.lead { font-size: 1.1rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.9rem; }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}
.box h2 { margin-top: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea {
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
textarea { resize: vertical; min-height: 140px; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: default; }
.form-status { min-height: 1.6em; margin: 0; }
.form-status.error { color: var(--error); }
/* Honeypot: hidden from people, bots fill it in. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
