:root {
  --bg: #0d0f0e;
  --surface: #161a18;
  --line: #26302b;
  --text: #e9ece9;
  --muted: #9aa69f;
  --accent: #3fbf8a;
  --accent-ink: #06140d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f4ee;
    --surface: #ffffff;
    --line: #e1ddd2;
    --text: #1b1f1d;
    --muted: #5d6862;
    --accent: #1f8f60;
    --accent-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-wrap: break-word;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.top { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current] { color: var(--accent); }
main { padding: 36px 0 48px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: 40px; margin: 0 0 12px; }
h2 { font-size: 26px; margin: 36px 0 10px; }
h3 { font-size: 20px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.meta { color: var(--muted); font-size: 15px; }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 56px; letter-spacing: -0.5px; }
.button {
  display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card h3 { margin-top: 0; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 12px; }
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
input, select, textarea {
  display: block; width: 100%; margin: 0 0 16px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px/1.4 var(--sans);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  padding: 12px 24px; border: 0; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font: 600 16px var(--sans); cursor: pointer;
}
.note { color: var(--muted); font-size: 15px; margin-top: 12px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
@media (max-width: 520px) {
  h1 { font-size: 32px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 18px; }
}
