/* ── Blog-specific styles ────────────────────────────────── */

.blog-hero {
  padding-bottom: 2rem;
}

.blog-back {
  margin-bottom: 1.5rem;
}

.blog-back a {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
}
.blog-back a:hover {
  color: var(--accent);
}

/* ── Post list ──────────────────────────────────────────── */

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

.post-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--border);
}
.post-item:last-child {
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  flex-shrink: 0;
  width: 7rem;
}

.post-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.post-title:hover {
  color: var(--accent);
}

/* ── Post body ──────────────────────────────────────────── */

.post-body {
  max-width: 640px;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--muted);
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.post-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body ul, .post-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: .35rem;
}

.post-body code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--surface);
  padding: .15rem .35rem;
  border-radius: 3px;
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.post-body img {
  max-width: 100%;
  border-radius: 5px;
  margin-block: 1rem;
}

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

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 760px) {
  .post-item {
    flex-direction: column;
    gap: .25rem;
  }

  .post-date {
    width: auto;
  }
}
