:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #9aa8bc;
  --accent: #3b82f6;
  --border: #2d3a4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.site-header a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.site-header a:hover {
  text-decoration: underline;
}

.content {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.content h1 {
  font-size: 1.75rem;
  margin-top: 0;
}

.content h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.content h3 {
  font-size: 1.05rem;
}

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

.content code {
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
}

.content pre code {
  background: none;
  padding: 0;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.content th,
.content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.content th {
  background: var(--surface);
}

.content ul {
  padding-left: 1.25rem;
}

.content li {
  margin: 0.35rem 0;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

@media print {
  .site-header,
  .site-footer {
    display: none;
  }
}
