:root {
  --bg: #ffffff;
  --surface: #f7f8f7;
  --text: #14201a;
  --muted: #5c6b62;
  --line: #dfe5e1;
  --accent: #0f7a52;
  --accent-soft: #e8f3ee;
}
:root:not([data-theme="light"]) {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1512;
    --surface: #16201b;
    --text: #e8efea;
    --muted: #9aaba1;
    --line: #26332c;
    --accent: #4ecb96;
    --accent-soft: #16281f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1512;
  --surface: #16201b;
  --text: #e8efea;
  --muted: #9aaba1;
  --line: #26332c;
  --accent: #4ecb96;
  --accent-soft: #16281f;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}
.brand span { color: var(--accent); }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.92rem;
}
nav a:hover { color: var(--accent); }

h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
  padding-top: 0.4rem;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}
p, li { color: var(--text); }
.lede { color: var(--muted); font-size: 1.05rem; }
.updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
a { color: var(--accent); }
ul { padding-left: 1.15rem; }
li { margin: 0.3rem 0; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 30rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; font-size: 0.95rem; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--surface);
}
footer.site .wrap { padding: 1.5rem 1.25rem; }
footer.site a { color: var(--muted); }

.hero { padding: 1rem 0 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 2rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.15rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
