/* ── Blog Styles ──
   Extends the landing page theme.css tokens:
   --bg, --bg-2, --bg-3, --fg, --fg-muted, --accent, --accent-dim,
   --accent-glow, --border, --font-head, --font-body
*/

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

/* ── Hero (shared by index + post) ── mirrors .pricing-hero / .how-hero */
.blog-index-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 120px 48px 56px;
  position: relative;
  overflow: hidden;
}
.blog-index-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(232,184,75,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.blog-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.blog-title {
  font-family: var(--font-head); font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700; color: var(--fg); line-height: 1.15; margin-bottom: 18px;
}
.blog-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.7; max-width: 620px; }

/* ── Index main + post list ── */
.blog-main { padding: 56px 48px 96px; max-width: 900px; margin: 0 auto; }
.blog-list {
  display: flex; flex-direction: column;
  gap: 24px;
}

/* ── Index card ── mirrors .pricing-card / .how-dim-card */
.blog-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: rgba(232,184,75,0.25);
  box-shadow: 0 0 40px rgba(232,184,75,0.05);
}
.blog-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-muted);
  letter-spacing: 0.4px; text-transform: uppercase;
}
.blog-card-sep { color: var(--border); }
.blog-card-date { color: var(--fg-muted); }
.blog-card-reading { color: var(--fg-muted); }
.blog-card-title {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  color: var(--fg); line-height: 1.25; margin: 0;
}
.blog-card-title a {
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.blog-card-title a:hover {
  color: var(--accent); border-bottom-color: rgba(232,184,75,0.4);
}
.blog-card-excerpt {
  font-size: 15px; color: var(--fg-muted); line-height: 1.7; margin: 0;
}
.blog-card-link {
  margin-top: 4px;
  font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.blog-card-link:hover { border-bottom-color: var(--accent); }

/* ── Post page ── */
.blog-post-main {
  padding: 120px 48px 96px;
  max-width: 760px; margin: 0 auto;
}
.blog-post-header { margin-bottom: 40px; }
.blog-post-meta { margin-top: 4px; }
.blog-article-body { display: flex; flex-direction: column; gap: 20px; }
.blog-article-body h2 {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  color: var(--fg); line-height: 1.25; margin-top: 24px;
}
.blog-article-body h3 {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: var(--fg); line-height: 1.3; margin-top: 16px;
}
.blog-article-body p {
  font-size: 16px; color: var(--fg-muted); line-height: 1.8; margin: 0;
}
.blog-article-body p strong { color: var(--fg); font-weight: 600; }
.blog-article-body p a,
.blog-article-body li a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(232,184,75,0.3);
  transition: border-color 0.2s;
}
.blog-article-body p a:hover,
.blog-article-body li a:hover { border-bottom-color: var(--accent); }
.blog-article-body ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.blog-article-body ul li {
  font-size: 16px; color: var(--fg-muted); line-height: 1.7;
  padding-left: 22px; position: relative;
}
.blog-article-body ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.blog-cta-link {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(232,184,75,0.3);
  font-weight: 600; white-space: nowrap;
  transition: border-color 0.2s;
}
.blog-cta-link:hover { border-bottom-color: var(--accent); }

/* ── Related posts ── */
.blog-related {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.blog-related-title {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  color: var(--fg); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.blog-related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.blog-related-list li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color 0.2s;
}
.blog-related-list li:hover { border-color: rgba(232,184,75,0.25); }
.blog-related-list li a {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--fg); text-decoration: none; line-height: 1.3;
  transition: color 0.2s;
}
.blog-related-list li a:hover { color: var(--accent); }
.blog-related-meta { font-size: 11px; }

/* ── 404 ── */
.blog-404-main { padding-top: 80px; }
.blog-404-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 14px; padding: 48px 32px; text-align: center;
  max-width: 640px; margin: 0 auto;
}
.blog-404-title { font-size: 36px; margin-bottom: 12px; }
.blog-404-body { margin: 0 auto 28px; max-width: 480px; }
.blog-404-slug {
  font-family: var(--font-body); font-size: 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 6px; color: var(--accent);
}
.blog-404-cta { display: inline-block; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .blog-index-hero { padding: 96px 24px 40px; }
  .blog-main { padding: 32px 24px 64px; }
  .blog-post-main { padding: 96px 24px 64px; }
  .blog-card { padding: 24px 20px; }
  .blog-card-title { font-size: 22px; }
}
