:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --panel: #ffffff;
  --text: #171717;
  --muted: #666;
  --line: #ddd9cf;
  --accent: #8f3f2a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  background: var(--panel);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 24px;
}
nav { display: grid; gap: 8px; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
nav a:hover { background: #eee9df; }
.content {
  width: min(960px, 100%);
  padding: 44px 36px 80px;
}
h1, h2, h3, h4 { line-height: 1.15; margin: 28px 0 12px; }
h1 { font-size: 42px; margin-top: 0; }
h2 { font-size: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
p, li { line-height: 1.68; }
a { color: var(--accent); }
code {
  background: #eee9df;
  padding: 2px 5px;
  border-radius: 5px;
}
pre {
  background: #1d1d1b;
  color: #f4f0e8;
  padding: 18px;
  overflow: auto;
  border-radius: 8px;
}
@media (max-width: 820px) {
  body { display: block; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .content { padding: 28px 20px 64px; }
  h1 { font-size: 34px; }
}
