:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --code-bg: #0b1120;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.92);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .brand { font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
header nav a { color: var(--muted); text-decoration: none; margin-left: 1.5rem; font-size: 0.92rem; }
header nav a:hover { color: var(--accent); }
.layout { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem; }
aside { border-right: 1px solid var(--border); padding-right: 1.25rem; }
aside h4 { margin: 0 0 0.75rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
aside ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
aside li { margin: 0.4rem 0; }
aside a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
aside a:hover { color: var(--accent); }
main h1 { margin-top: 0; font-size: 2rem; color: #fff; }
main h2 { margin-top: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; color: #f8fafc; }
.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(56, 189, 248, 0.14); color: var(--accent); font-size: 0.78rem; font-weight: 600; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; overflow-x: auto; font-size: 0.88rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
footer { border-top: 1px solid var(--border); text-align: center; padding: 1.5rem; color: var(--muted); font-size: 0.85rem; margin-top: 3rem; }
@media (max-width: 780px) { .layout { grid-template-columns: 1fr; } aside { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1rem; } }
