/* ── BLOG — shared styles for index + individual posts ──────────────────── */

/* Blog pages have light content immediately — force header to stay dark */
#site-header {
  background: var(--d0) !important;
  border-bottom-color: rgba(255,255,255,0.07) !important;
}

/* ── Blog index ── */
.blog-hero {
  padding: 80px 24px 48px;
  background: #fff;
  border-bottom: 1px solid #efefef;
}
.blog-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.blog-hero-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 16px;
  display: block;
}
.blog-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #111;
  line-height: 1.1;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 15px;
  line-height: 1.75;
  color: #666;
  max-width: 520px;
}

.blog-list {
  padding: 64px 24px 96px;
  background: #fafafa;
}
.blog-list-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-post-item {
  display: block;
  padding: 36px 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
}
.blog-post-item:first-child { padding-top: 0; }
.blog-post-item:last-child { border-bottom: none; }

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-post-date {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.3px;
}
.blog-post-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  border: 1px solid #ddd;
  padding: 2px 8px;
  border-radius: 3px;
}
.blog-post-item h2 {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #111;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.blog-post-item:hover h2 { color: #444; }
.blog-post-excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  max-width: 580px;
  margin-bottom: 14px;
}
.blog-read-more {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.3px;
}
.blog-post-item:hover .blog-read-more { text-decoration: underline; }

/* ── Individual post ── */
.post-header {
  padding: 72px 24px 40px;
  background: #fff;
  border-bottom: 1px solid #efefef;
}
.post-header-inner {
  max-width: 720px;
  margin: 0 auto;
}
.post-back {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.post-back:hover { color: #555; }
.post-back svg { width: 12px; height: 12px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.post-date {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
}
.post-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  border: 1px solid #ddd;
  padding: 2px 8px;
  border-radius: 3px;
}
.post-header h1 {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #111;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-lede {
  font-size: 16px;
  line-height: 1.75;
  color: #555;
  max-width: 620px;
  font-weight: 400;
}

.post-body {
  padding: 56px 24px 80px;
  background: #fff;
}
.post-body-inner {
  max-width: 720px;
  margin: 0 auto;
}
.post-body h2 {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #111;
  margin: 48px 0 14px;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 28px 0 10px;
}
.post-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
}
.post-body ul, .post-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.post-body ul li, .post-body ol li {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 8px;
}
.post-callout {
  background: #f9f9f9;
  border-left: 3px solid #111;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.post-callout p {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin: 0;
}
.post-body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body a:hover { color: #444; }

.post-cta {
  background: #f4f4f4;
  border-top: 1px solid #e8e8e8;
  padding: 48px 24px;
}
.post-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.post-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.post-cta p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .blog-hero { padding: 56px 20px 36px; }
  .blog-list { padding: 48px 20px 72px; }
  .post-header { padding: 52px 20px 32px; }
  .post-body { padding: 40px 20px 60px; }
}

/* Book chapter nav (books section) - wrap on narrow screens */
.chapter-nav { flex-wrap: wrap; row-gap: 12px; }
