/* ============================================================
   EtherealMinds — Blog
   Long-form reading + blog index styles.
   Loaded AFTER the shared styles.css (tokens, nav, footer, buttons).
   ============================================================ */

/* ============ BLOG HERO ============ */
.blog-hero {
  padding: 88px 0 56px;
  background:
    radial-gradient(1100px 460px at 50% -120px, var(--accent-glow), transparent 70%),
    var(--bg);
  text-align: center;
}
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.blog-hero .eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}
.blog-hero h1 { max-width: 16ch; margin: 0 auto 18px; }
.blog-hero p {
  max-width: 60ch; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft);
}

/* ============ ARTICLE CARDS (index) ============ */
.blog-list { padding: 8px 0 80px; }
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-bright);
}
.post-card.featured { grid-column: 1 / -1; }
@media (max-width: 760px) { .post-card.featured { grid-column: auto; } }

.post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 16px;
}
.post-tag {
  padding: 4px 11px; border-radius: 999px;
  background: var(--accent-glow); color: var(--accent);
  letter-spacing: 0.06em;
}
.post-card h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.post-card.featured h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.post-card p { font-size: 0.96rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: 20px; flex-grow: 1; }
.post-readmore {
  font-size: 0.9rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============ NEWSLETTER BLOCK ============ */
.newsletter {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-xl);
}
@media (max-width: 560px) { .newsletter { padding: 40px 24px; } }
.newsletter h2 { color: var(--white); margin-bottom: 14px; }
.newsletter p { color: rgba(255,255,255,0.72); max-width: 50ch; margin: 0 auto 28px; font-size: 1rem; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 460px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 14px 20px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input[type="email"]:focus {
  outline: none; border-color: var(--accent-bright); background: rgba(255,255,255,0.12);
}
.newsletter-form .btn-primary { background: var(--white); color: var(--ink); }
.newsletter-form .btn-primary:hover { background: var(--accent); color: var(--white); }
.newsletter-note { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* ============ INDEX CTA ============ */
.blog-cta {
  text-align: center; padding: 64px 0 16px;
}
.blog-cta h2 { margin-bottom: 14px; }
.blog-cta p { max-width: 52ch; margin: 0 auto 26px; color: var(--ink-soft); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.breadcrumb {
  padding: 26px 0 4px; font-size: 0.84rem; color: var(--ink-dim);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

.article-head { padding: 16px 0 8px; }
.article-head .post-meta { margin-bottom: 18px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.1; margin-bottom: 18px;
}
.article-dek { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 8px; }
.article-byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 22px 0; margin: 24px 0 8px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--ink-dim);
}
.article-byline strong { color: var(--ink); font-weight: 600; }
.article-byline .dot { color: var(--border); }

/* Body typography */
.article-body { padding: 14px 0 40px; }
.article-body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.article-body p { font-size: 1.08rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 1.4em; }
.article-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2;
  margin: 1.6em auto 0.6em; color: var(--ink);
}
.article-body h3 {
  font-size: 1.3rem; margin: 1.4em auto 0.5em; color: var(--ink);
}
.article-body ul, .article-body ol { margin: 0 auto 1.5em; padding-left: 1.3em; }
.article-body li { font-size: 1.06rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 0.6em; }
.article-body li::marker { color: var(--accent); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-figure {
  margin: 2.2em auto; max-width: 100%;
}
.article-figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.article-figure figcaption {
  margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft);
  text-align: center; line-height: 1.6;
}

.pull-stat {
  margin: 2em auto; padding: 28px 30px;
  background: var(--bg-warm); border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}
.pull-stat .big { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); line-height: 1.1; display: block; margin-bottom: 6px; }
.pull-stat .label { font-size: 0.96rem; color: var(--ink-soft); }

.callout {
  margin: 2.2em auto; padding: 34px 34px 30px;
  background: linear-gradient(180deg, var(--white), var(--bg-warm));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.callout h3 { margin-top: 0; font-family: var(--serif); }
.callout p { margin-bottom: 1em; }
.callout .btn { margin-top: 6px; }

/* FAQ */
.article-faq { padding: 20px 0 40px; }
.article-faq h2 { text-align: center; margin-bottom: 30px; }
.faq-item {
  max-width: 720px; margin: 0 auto 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); padding: 22px 26px;
}
.faq-item h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-weight: 500; }
.faq-item p { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* End CTA band */
.article-end-cta {
  margin: 40px 0 80px;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px; text-align: center;
  box-shadow: var(--shadow-xl);
}
@media (max-width: 560px) { .article-end-cta { padding: 40px 24px; } }
.article-end-cta h2 { color: var(--white); margin-bottom: 14px; }
.article-end-cta p { color: rgba(255,255,255,0.74); max-width: 52ch; margin: 0 auto 26px; }
.article-end-cta .btn-primary { background: var(--white); color: var(--ink); }
.article-end-cta .btn-primary:hover { background: var(--accent); color: var(--white); }

/* responsive media (fix overflow) */
.article-body img,.article-figure img{max-width:100%!important;height:auto!important;display:block;margin-left:auto;margin-right:auto}
.article-figure,figure{max-width:100%;overflow:hidden}
