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

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

html { font-size: 18px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

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

h1 {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

h2 { font-size: 1.25rem; color: #f0f6fc; margin: 2rem 0 0.8rem; }
h3 { font-size: 1.05rem; color: #f0f6fc; margin: 1.5rem 0 0.6rem; }

p { margin-bottom: 1.2rem; }

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

time {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.post-header { margin-bottom: 2.5rem; }


.post-content { font-size: 1rem; }

/* Index */
.post-list { list-style: none; }

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

.post-list li:last-child { border-bottom: none; }

.post-list a {
  color: #f0f6fc;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

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

.post-list time {
  display: block;
  margin-top: 0.2rem;
}

/* Code */
code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

img { max-width: 100%; border-radius: 6px; }

@media (max-width: 600px) {
  html { font-size: 16px; }
  body { padding: 1.5rem 1rem; }
}
