/* ===========================================================================
   BLOG ARTICLE  ·  /blogs/<slug>/
   ---------------------------------------------------------------------------
   Layered on site-pages.css, which supplies the tokens (both themes), the
   header, footer, ambient and the .mrc family. This file is only what an
   article adds: the artwork hero, the stat chips, the pill lists, the FAQ
   grid and the related-reads list. Emitted by scripts/generate-static-blogs.js.
   =========================================================================== */

main.blog-article {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 30px);
  padding-top: clamp(24px, 3.5vw, 40px);
}

/* ---- Hero: the post artwork, dark in both themes ------------------------
   The artwork is a night-sky illustration with white text over it, so the
   hero stays dark on the cream canvas too — the same call the listing's
   card art makes. What changes with the theme is the frame around it. */
.blog-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 340px;
  padding: clamp(28px, 4.5vw, 56px);
  background-color: #141225;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  color: #ffffff;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 24, 0.45), rgba(10, 8, 24, 0.72));
  z-index: 0;
}
.blog-hero > * {
  position: relative;
  z-index: 1;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.hero-tags span {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.blog-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #ffffff;
  max-width: 22ch;
  text-wrap: balance;
}
.blog-hero .subtitle {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
}
.blog-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.stat-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  max-width: 760px;
  align-items: start;
}
.stat {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.stat strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  /* The per-post accent colour arrives inline; it was tuned for a dark hero. */
  color: var(--accent-gold);
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}
.hero-quote {
  margin-top: 20px;
  max-width: 62ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.hero-quote:empty {
  display: none;
}

/* ---- Body cards --------------------------------------------------------- */

.blog-article .mrc section {
  margin-bottom: 30px;
}
.blog-article .mrc section:last-child {
  margin-bottom: 0;
}
.blog-article .mrc section h3 {
  margin-top: 0;
}
.blog-article .mrc ul:not(.pill-list):not(.related-list) {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.7;
}
.blog-article .mrc li {
  margin-bottom: 6px;
}
.blog-article .mrc blockquote {
  margin: 0 0 16px;
  padding: 14px 20px;
  border-left: 3px solid var(--primary-color);
  border-radius: 0 14px 14px 0;
  background: var(--tile-bg);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-color);
}
.blog-article .mrc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
}
.blog-article .mrc th,
.blog-article .mrc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-muted);
  vertical-align: top;
}
.blog-article .mrc th {
  color: var(--text-color);
  font-weight: 600;
}
.blog-article .mrc table {
  display: block;
  overflow-x: auto;
}

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-list li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tile-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-size: 14.5px;
}

.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.faq-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--tile-bg);
  border: 1px solid var(--card-border);
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}
.faq-item p {
  margin: 0;
  font-size: 15px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.related-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--tile-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related-list li a::after {
  content: "→";
  color: var(--primary-color);
}
.related-list li a:hover {
  border-color: var(--card-border-strong);
  transform: translateX(2px);
}

.blog-cta {
  text-align: center;
}
.blog-cta .cta-row {
  justify-content: center;
}

@media (max-width: 600px) {
  .blog-hero {
    min-height: 0;
    border-radius: 22px;
  }
}
.hero-image-wrapper { display: none; }


/* ---- The sleep verse callout (scripts/generate-static-blogs.js) ---------- */

.mantra-callout__dev {
  margin: 20px 0 0;
  font-family: "Noto Serif Devanagari", "Tiro Devanagari Sanskrit", serif;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.85;
  color: var(--accent-gold-ink);
}
.mantra-callout__rom {
  margin: 10px 0 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.mantra-callout__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
  color: var(--text-muted);
}
