:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9da7b3;
  --accent: #58a6ff;
  --green: #3fb950;
  --orange: #d29922;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.9);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo-mark { color: var(--green); }
.logo-tld { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero-title { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.hero-subtitle { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0 auto 24px; }
.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.badge {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px;
  background: var(--panel);
}

/* content */
.content-body { padding-bottom: 48px; }
.content-body h2 {
  font-size: 24px; margin: 48px 0 16px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.content-body h3 { font-size: 18px; margin: 28px 0 12px; color: var(--accent); }
.content-body p { margin: 12px 0; }
.content-body ul, .content-body ol { margin: 12px 0 12px 24px; }
.content-body li { margin: 6px 0; }
.content-body code {
  font-family: var(--mono); font-size: 13px; background: #1c2129;
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: #ffa657;
}
.content-body pre {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin: 16px 0;
}
.content-body pre code { background: none; border: none; padding: 0; color: var(--text); line-height: 1.7; }
.content-body a { color: var(--accent); }
.content-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
  display: block; overflow-x: auto;
}
.content-body th, .content-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.content-body th { background: #1c2129; color: #c9d1d9; font-weight: 700; border-bottom: 2px solid var(--border); }
.content-body tr:nth-child(even) td { background: #10151c; }

/* callout */
.callout {
  background: var(--panel); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 20px 0; font-size: 14.5px;
}
.affiliate-note { border-left-color: var(--orange); font-size: 13.5px; color: #d5d8dc; }

/* blog */
.list-title { padding: 40px 0 16px; font-size: 28px; }
.post-list { list-style: none; margin: 0; padding: 0 0 64px; }
.post-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
}
.post-list a { color: var(--text); text-decoration: none; font-size: 16px; }
.post-list a:hover { color: var(--accent); }
.post-date { color: var(--muted); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.post { padding: 40px 0 64px; max-width: 760px; }
.post h1 { font-size: 30px; margin-bottom: 8px; }
.post.page h1 { padding-top: 24px; }
.post-meta { color: var(--muted); font-family: var(--mono); font-size: 13px; margin-bottom: 32px; }
.post-meta a { color: var(--accent); text-decoration: none; }
.back-link { margin-top: 48px; }
.back-link a { color: var(--accent); text-decoration: none; font-size: 14px; }

/* related posts */
.related-posts { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.related-posts h2 { font-size: 15px; margin-bottom: 8px; }
.related-posts ul { list-style: none; padding: 0; margin: 0; }
.related-posts li { margin-bottom: 6px; font-size: 14px; }
.related-posts a { color: var(--accent); text-decoration: none; }
.related-posts a:hover { text-decoration: underline; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 32px; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.footer-inner a { color: var(--muted); }

/* responsive */
@media (max-width: 720px) {
  .hero { padding: 40px 0 20px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .nav { gap: 12px; }
  .footer-inner { flex-direction: column; }
}
