:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --code-bg: #111827;
  --code-fg: #f3f4f6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
.shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
aside {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}
aside h1 { font-size: 1.08rem; margin: 0 0 4px; }
aside .tag { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 22px; }
aside nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 3px;
}
aside nav a:hover { background: #eff6ff; color: var(--accent); }
main { max-width: 860px; padding: 40px 48px 72px; }
section { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
h2 { margin-top: 0; font-size: 1.5rem; }
h3 { font-size: 1.08rem; margin-top: 22px; }
pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.87rem;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.92rem; }
th, td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
th { background: #f3f4f6; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  aside { position: static; height: auto; }
  main { padding: 24px 18px; }
}
