:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #fff;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;
  --font-sans: system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

header a { color: var(--accent); text-decoration: none; }
nav a { margin-left: 1.5rem; color: var(--muted); }
nav a:hover { color: var(--accent); }

h1, h2, h3 { color: var(--accent); font-weight: 600; margin: 2rem 0 1rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }

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

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

code { padding: 0.15em 0.4em; border-radius: 3px; }

pre {
  padding: 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code { background: none; border: none; padding: 0; }

p { margin-bottom: 1.25rem; }

/* Post list (index page) */
.post-list { list-style: none; }
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.post-list a { text-decoration: none; color: var(--text); }
.post-list a:hover { color: var(--accent); }
.post-list .date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Post */
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.post-tags { margin-top: 0.75rem; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.1em 0.5em;
  border-radius: 2px;
  margin-right: 0.4rem;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }