:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --text: #1d2a22;
  --muted: #55625a;
  --accent: #2f5d46;
  --accent-soft: #e3ece5;
  --rule: #dcdfd6;
  --max: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121814;
    --surface: #1a221d;
    --text: #e6ebe6;
    --muted: #a3b0a7;
    --accent: #8cc4a3;
    --accent-soft: #223129;
    --rule: #2c3830;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
header.site, main, footer.site { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
nav.site { display: flex; gap: 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(--text); }
main { padding-bottom: 48px; }
h1 { font-size: 34px; line-height: 1.2; margin: 24px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 20px; color: var(--muted); margin-bottom: 24px; }
.summary {
  background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 20px 0 8px;
}
.summary p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.table-wrap { overflow-x: auto; margin: 12px 0 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; }
td code { font-size: 14px; word-break: break-all; }
footer.site {
  border-top: 1px solid var(--rule); padding-top: 18px; padding-bottom: 32px;
  color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px;
}
footer.site a { color: var(--muted); }
@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .lede { font-size: 18px; }
  nav.site { gap: 14px; }
}
@media (max-width: 600px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
  td { border: 0; padding: 2px 0; }
  td::before { content: attr(data-label); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 6px; }
  td:first-child::before { margin-top: 0; }
  td:first-child { font-weight: 600; }
  td code { word-break: normal; overflow-wrap: anywhere; }
}
