:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --text: #16241d;
  --muted: #53645b;
  --line: #dde6e0;
  --brand: #12593f;
  --brand-2: #1f8a5c;
  --accent: #b8f0d0;
  --link: #11704b;
  --code-bg: #eef3f0;
  --danger: #ae2e24;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1512;
    --bg-soft: #141e19;
    --text: #e3ece7;
    --muted: #9fb2a8;
    --line: #25332c;
    --link: #7fdcaa;
    --code-bg: #1a2620;
    --danger: #ff8f84;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1512; --bg-soft: #141e19; --text: #e3ece7; --muted: #9fb2a8; --line: #25332c; --link: #7fdcaa; --code-bg: #1a2620; --danger: #ff8f84;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
code { font: 0.9em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

.hero { background: linear-gradient(135deg, #0b3d2e 0%, #12593f 55%, #1d7a55 100%); color: #fff; padding: 64px 0 0; overflow: hidden; }
.hero-inner { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 18px auto 14px; max-width: 820px; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: #cfeadc; max-width: 700px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.cta-note { font-size: 14px; color: #cfeadc; margin: 0 auto 40px; max-width: 640px; }
.cta-note a { color: #fff; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn-primary { background: #fff; color: var(--brand); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.hero-shot { max-width: 1000px; margin: 0 auto; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4); display: block; }

section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.feature:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: 26px; margin: 0 0 10px; }
.feature p, .feature li { color: var(--muted); }
.feature img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 800px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 16px; }
  .feature:nth-child(even) .feature-text { order: 0; }
}
@media (max-width: 560px) {
  .header-inner { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .nav { margin-left: -10px; }
  .prose table { display: table; table-layout: fixed; }
  .prose th:first-child, .prose td:first-child { width: 38%; }
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--muted); background: var(--bg); }

.prose { padding-top: 48px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 8px; }
.prose h2 { margin-top: 2.2em; font-size: 24px; }
.prose h3 { margin-top: 1.6em; font-size: 18px; }
.prose .updated { color: var(--muted); margin-top: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose td code { word-break: break-word; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.callout { border-left: 4px solid var(--brand-2); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 20px; }
.toc ul { margin: 6px 0; padding-left: 18px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); }
.fineprint { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; }
