:root {
  --bg: #f3faf8;
  --card: #ffffff;
  --ink: #12302b;
  --muted: #4c6762;
  --line: #cfe3df;
  --brand: #0b6b5f;
  --brand-ink: #ffffff;
  --note-bg: #fff6df;
  --note-line: #ecd38b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a18;
    --card: #14282a;
    --ink: #e5f2ef;
    --muted: #9db8b3;
    --line: #25403d;
    --brand: #5cb879;
    --brand-ink: #0d1a18;
    --note-bg: #2a2410;
    --note-line: #5b4d1c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right)); }
header.site { padding: 1.25rem 0 0.75rem; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
nav.site a { text-decoration: none; }
nav.site a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
main { padding: 1.5rem 0 3rem; }
h1 { font-size: clamp(1.75rem, 5vw, 2.3rem); line-height: 1.2; margin: 0.5rem 0 0.5rem; text-wrap: balance; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol { margin: 0.6rem 0; }
li { margin: 0.3rem 0; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px; padding: 0.85rem 1.1rem; margin: 1.25rem 0; font-size: 0.97rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.button { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 600; }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer.site { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.93rem; }
footer.site ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
