:root {
  --bg: #0d1117;
  --bg-elevated: #161b22;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --border: #21262d;
  --max-width: 760px;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
}

.brand {
  display: block;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.mirror-r {
  display: inline-block;
  transform: scaleX(-1);
  color: #e5534b;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.tagline { color: var(--text-muted); font-size: 1.1rem; margin-top: 0; }

.about h2, .stats h2, .cta h2, .blog-index h1 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.site-main > section:first-child > h2:first-child {
  margin-top: 0;
}

.about ul { padding-left: 1.25rem; }
.about li { margin-bottom: 0.5rem; }

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.stats-grid img { max-width: 100%; height: auto; }
.contrib-graph { display: block; max-width: 100%; margin-top: 1rem; }

.advisory-list { list-style: none; padding: 0; }

.advisory-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.advisory-title { font-size: 1.05rem; font-weight: 600; }
.advisory-meta { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.15rem; }
.advisory-summary { color: var(--text-muted); margin-top: 0.4rem; }

.post-list, .post-list-compact { list-style: none; padding: 0; }

.post-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.post-title { font-size: 1.15rem; font-weight: 600; }
.post-date { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.15rem; }
.post-excerpt { color: var(--text-muted); margin-top: 0.5rem; }

.post-list-compact li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.post-header h1 { margin-bottom: 0.25rem; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; }
.tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

.post-content { margin-top: 1.5rem; }
.post-content pre {
  background: var(--bg-elevated);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
.post-content code {
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre code { background: none; padding: 0; }

.back-link { margin-top: 2rem; }

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 2rem 1.5rem;
}
