/* Blog pages: article and index. Pairs with landing.css for shared tokens. */

.blog-shell {
  min-height: 100vh;
}

.blog-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.blog-index .blog-main {
  max-width: 820px;
}

.blog-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-meta {
  color: var(--text-dim, #6b6b80);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Hero image on individual post pages */
.blog-hero {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
}

.blog-prose {
  color: var(--text-muted, #a0a0b8);
  font-size: 16px;
  line-height: 1.75;
}

.blog-prose h2 {
  color: var(--text-main, #fff);
  font-size: 20px;
  font-weight: 700;
  margin: 2em 0 0.75em;
}

.blog-prose h2:first-child {
  margin-top: 0;
}

.blog-prose p {
  margin: 0 0 1.1em;
}

.blog-prose a {
  color: var(--accent-light, #a78bfa);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
}

.blog-prose a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.blog-prose figure {
  margin: 1.5em 0;
  background: var(--void-card, rgba(20, 20, 32, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius, 12px);
  padding: 12px;
}

.blog-prose figcaption {
  color: var(--text-dim, #6b6b80);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.5;
}

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

.patreon-callout {
  margin-top: 3rem;
  padding: 20px 22px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-muted, #a0a0b8);
}

.patreon-callout a {
  color: var(--accent-light, #a78bfa);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
}

.patreon-callout a:hover {
  color: #fff;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-list li {
  margin: 0;
  padding: 0;
}

.post-row {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--void-card, rgba(20, 20, 32, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

/* Card with thumbnail: side-by-side layout */
.post-row--has-thumb {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.post-row:hover {
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.post-row-thumb {
  flex-shrink: 0;
  width: 140px;
  align-self: stretch;
  overflow: hidden;
}

.post-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.post-row-body {
  padding: 20px 22px;
}

.post-row:not(.post-row--has-thumb) .post-row-body {
  padding: 0;
}

.post-row-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main, #fff);
  margin-bottom: 6px;
}

.post-row-excerpt {
  font-size: 14px;
  color: var(--text-muted, #a0a0b8);
  line-height: 1.5;
}

.post-row-date {
  font-size: 12px;
  color: var(--text-dim, #6b6b80);
  margin-top: 10px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}

.rss-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim, #6b6b80);
  margin-top: 8px;
}

.rss-pill a {
  color: var(--accent-light, #a78bfa);
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
}

.rss-pill a:hover {
  color: #fff;
}

.blog-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-main, #fff);
  margin-bottom: 2rem;
  font-weight: 500;
}
