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

:root {
  --bg: #0d1419;
  --bg2: #131c24;
  --fg: #c9d1d9;
  --fg-dim: #8b949e;
  --accent: #58a6ff;
  --accent2: #3fb950;
  --border: #21262d;
  --code-bg: #161b22;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
}

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

.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
}
.header-inner { max-width: 860px; margin: 0 auto; }
.site-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.site-title:hover { text-decoration: none; opacity: .85; }
.site-sub {
  font-size: .8rem;
  color: var(--fg-dim);
  margin-top: .2rem;
}

.post-main, .index-main {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.post-header { margin-bottom: 1.5rem; }
.post-date {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--fg-dim);
}

.post-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 1rem;
  line-height: 1.3;
}
.post-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent2);
  margin: 2rem 0 .5rem;
}
.post-body p { margin: .75rem 0; }
.post-body ul, .post-body ol {
  margin: .75rem 0 .75rem 1.5rem;
}
.post-body li { margin: .3rem 0; }

code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 4px;
  color: #f0f6fc;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
}
pre code {
  background: none;
  padding: 0;
  font-size: .83rem;
  line-height: 1.55;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
}

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.post-item {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.post-item-date {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--fg-dim);
  white-space: nowrap;
  min-width: 10rem;
}
.post-item-link {
  font-size: .95rem;
}

@media (max-width: 600px) {
  .post-item { flex-direction: column; gap: .2rem; }
  .post-item-date { min-width: unset; }
}
