:root {
  color-scheme: dark;
  --bg: #17181c;
  --bg-alt: #1f2126;
  --fg: #e7e7ea;
  --fg-muted: #9a9ba3;
  --accent: #8fb3ff;
  --border: #2b2d33;
  --max-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
}
.site-title:hover { text-decoration: none; opacity: 0.85; }

.site-tagline {
  color: var(--fg-muted);
  margin: 0.5rem 0 0;
  font-style: italic;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.post-date {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.excerpt {
  color: var(--fg);
  margin: 0;
}

.post h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.post-content {
  margin-top: 1.5rem;
}

.post-content p, .post-content li {
  margin-bottom: 1rem;
}

.post-content figure {
  margin: 2rem 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.post-content figcaption {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

.back-link {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-footer {
  text-align: center;
  color: var(--fg-muted);
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
}
