:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --border: #d0d7de;
  --code-bg: #f6f8fa;
  --accent: #0969da;
  --note-bg: #fff8c5;
  --note-border: #d4a72c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --border: #30363d;
    --code-bg: #161b22;
    --accent: #4493f8;
    --note-bg: #2a2410;
    --note-border: #9e6a03;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
header.site {
  border-bottom: 1px solid var(--border);
}
header.site .inner, main, footer.site .inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
header.site .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header.site .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
header.site nav a { margin-left: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
header.site nav a:hover { color: var(--accent); }
main { padding-top: 32px; padding-bottom: 48px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
h3 { font-size: 17px; margin: 24px 0 8px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 4px; }
.lead { font-size: 18px; color: var(--muted); }
a { color: var(--accent); }
code, pre {
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  border-radius: 6px;
}
code { padding: 2px 5px; }
pre { padding: 12px 14px; overflow-x: auto; white-space: pre; }
pre code { padding: 0; background: none; }
table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--code-bg); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-border);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
}
.cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.muted { color: var(--muted); }
dl dt { font-weight: 600; margin-top: 12px; }
dl dd { margin: 4px 0 0 0; }
footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
footer.site .inner { padding-top: 20px; padding-bottom: 28px; }
