:root {
  --bg: #080a0f;
  --sidebar-bg: #0e121b;
  --card-bg: #141a26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #10b981;
  --accent-cyan: #38bdf8;
  --accent-glow: rgba(16, 185, 129, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.wiki-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 300px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 700;
}

.sidebar a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.sidebar a:hover, .sidebar a.active {
  background: rgba(29, 185, 84, 0.12);
  color: var(--accent);
}

.content {
  flex: 1;
  max-width: 920px;
  padding: 3rem 4rem;
  overflow-x: hidden;
}

.content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.content h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.75rem 0;
  color: #e2e8f0;
}

.content p {
  margin-bottom: 1.2rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.content ul, .content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
  color: #cbd5e1;
}

.content li {
  margin-bottom: 0.4rem;
}

.content code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-cyan);
}

.content pre {
  background: #030508;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.callout {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}

.callout p {
  margin-bottom: 0;
}

.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

@media (max-width: 860px) {
  .wiki-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .content { padding: 2rem 1.5rem; }
}
