/* ============================================================
   Blog — simple post list (Karpathy-style) + article typography
   ============================================================ */

/* Listing: a clean vertical list of posts, separated by thin rules. */
.blog-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.post-row {
  border-top: 1px solid var(--border-subtle);
}

.post-row:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.post-row-link {
  display: block;
  padding: 18px 2px;
  color: inherit;
}

.post-row-date {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-row-title {
  display: block;
  font-size: 1.15rem;
  color: var(--accent);
}

.post-row-ext {
  font-size: 0.8rem;
  color: var(--muted);
}

.post-row-excerpt {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 4px;
  max-width: 640px;
}

.post-row-link:hover .post-row-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-empty {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 20px;
}

/* ============================================================
   Article (post) typography
   ============================================================ */

.post {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 8px;
}

.post-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

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

.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.post-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--accent);
}

.post-lede {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
}

.post-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.post-body h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 32px 0 10px;
  color: var(--accent);
}

.post-body h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
  color: var(--accent);
}

.post-body p {
  margin: 0 0 18px;
}

.post-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: var(--accent);
}

.post-body figure {
  margin: 24px 0;
}

.post-body figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.post-body figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

.post-body blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--border-subtle);
  color: var(--muted);
  font-style: italic;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 5px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.post-body li {
  margin-bottom: 6px;
}

.post-share {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
