:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
}

* { 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.65;
  font-size: 17px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
  font-weight: 400;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

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

main { padding: 2.5rem 0 4rem; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

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

.post-list article:first-child { padding-top: 0; }

.post-list time, .post-meta time {
  color: var(--muted);
  font-size: 0.85rem;
}

.post-list h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.post-list h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-list h2 a:hover { color: var(--accent); }

.post-list p { color: var(--muted); margin: 0; }

.post-meta { color: var(--muted); margin-bottom: 2rem; }

article.post h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

article.post h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

article.post code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15em 0.4em;
  font-size: 0.88em;
}

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

article.post pre code {
  background: none;
  border: none;
  padding: 0;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a { color: var(--muted); }
