:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5b6470;
  --border: #e2e6eb;
  --accent: #0f6e56;
  --accent-soft: #e3f2ed;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111416;
    --surface: #1a1e21;
    --text: #e8ebee;
    --muted: #a0a8b1;
    --border: #2b3136;
    --accent: #4cc29d;
    --accent-soft: #17302a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111416;
  --surface: #1a1e21;
  --text: #e8ebee;
  --muted: #a0a8b1;
  --border: #2b3136;
  --accent: #4cc29d;
  --accent-soft: #17302a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
}
nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

main { padding: 40px 0 56px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; }
.updated { color: var(--muted); font-size: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.contact {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.contact dt { font-weight: 600; }
.contact dd { margin: 0; overflow-wrap: anywhere; }

footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { padding-top: 20px; padding-bottom: 24px; }
footer.site p { margin: 4px 0; }
