/* ─────────────────────────────────────────────────────────────
   The SWAN Blog — index listing and single post.
   Sits on top of panchakarma.css (palette, nav, hero, footer).
   ───────────────────────────────────────────────────────────── */

/* ── Blog index: article list + sidebar ── */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px 96px;
  align-items: start;
}

.blog-list { min-width: 0; }

/* ── Post card ── */
.post-card {
  display: block;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.post-card:last-of-type { border-bottom: 0; }

.post-thumb {
  display: block;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: 24px;
  border: 1px solid var(--rule);
}
.post-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  -webkit-filter: saturate(0.92) contrast(0.98);
  filter: saturate(0.92) contrast(0.98);
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
  -webkit-transition: -webkit-transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-thumb:hover img {
  -webkit-transform: scale(1);
  transform: scale(1);
}

.post-body { min-width: 0; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 31, 36, 0.55);
  margin-bottom: 12px;
}
.post-cats {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--saffron);
}

.post-title {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.post-title a {
  color: var(--ink);
  text-decoration: none;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}
.post-title a:hover { color: var(--moss); }

.post-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(26, 31, 36, 0.78);
  max-width: 66ch;
  margin: 0 0 18px;
}

.post-more,
.side-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 90, 85, 0.35);
  padding-bottom: 3px;
  -webkit-transition: color 0.25s ease, border-color 0.25s ease;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.post-more:hover,
.side-link:hover {
  color: var(--ochre-ink);
  border-color: var(--ochre-ink);
}

.blog-empty {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px dashed var(--rule);
  background: rgba(255, 255, 255, 0.2);
}
.blog-empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 31, 36, 0.7);
}
.blog-empty a { color: var(--moss); }

/* ── Sidebar ── */
.blog-side {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  min-width: 0;
}
.side-block {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.side-block:last-child { border-bottom: 0; margin-bottom: 0; }
.side-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 16px;
}
.side-block p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26, 31, 36, 0.72);
  margin: 0 0 14px;
}
.side-block .side-link { display: block; margin-bottom: 12px; }
.side-block .side-link:last-child { margin-bottom: 0; }

/* responsive video embeds — no fixed pixel heights */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;      /* 16:9 */
  margin-bottom: 16px;
  background: var(--forest);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.video-embed:last-child { margin-bottom: 0; }
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ─────────────────────────────────────────────────────────────
   Single post
   ───────────────────────────────────────────────────────────── */
.post {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.post-header { margin-bottom: 32px; }

.crumbs {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26, 31, 36, 0.5);
  margin-bottom: 20px;
}
.crumbs a {
  color: rgba(26, 31, 36, 0.6);
  text-decoration: none;
  -webkit-transition: color 0.25s ease;
  transition: color 0.25s ease;
}
.crumbs a:hover { color: var(--moss); }
.crumbs span { margin: 0 8px; }

.post-header .post-cats { display: block; margin-bottom: 14px; }

.post-header h1 {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}

.post-header .post-meta { margin-bottom: 0; }

/* figures */
.post-figure { margin: 0 0 36px; }
.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.post-figure-wide { margin-bottom: 44px; }
.post-figure-inset {
  max-width: 480px;
  margin: 36px auto 40px;
}

/* body copy */
.post-content p,
.post-content li {
  font-size: 17.5px;
  line-height: 1.78;
  color: rgba(26, 31, 36, 0.84);
}
.post-content p { margin: 0 0 22px; }

.post-content .lead {
  font-size: 20px;
  line-height: 1.68;
  color: rgba(26, 31, 36, 0.9);
}
.post-content .lead em { font-style: italic; color: var(--moss); }

.post-content h2 {
  font-family: 'Fraunces', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  color: var(--ink);
  margin: 46px 0 20px;
}

.post-content strong { color: var(--ink); font-weight: 600; }
.post-content em { font-style: italic; }
.post-content a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-text-decoration-color: rgba(47, 90, 85, 0.4);
  text-decoration-color: rgba(47, 90, 85, 0.4);
}
.post-content a:hover { color: var(--ochre-ink); }

/* the numbered parameters */
.cooking-list {
  list-style: none;
  counter-reset: cook;
  padding: 0;
  margin: 28px 0 34px;
}
.cooking-list li {
  position: relative;
  counter-increment: cook;
  padding: 0 0 20px 52px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(188, 179, 154, 0.5);
}
.cooking-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cooking-list li::before {
  content: counter(cook);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-pack: center; -webkit-justify-content: center; justify-content: center;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.3);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--saffron);
}
.cooking-list li strong { display: block; margin-bottom: 4px; }

/* the post uses .callout from panchakarma.css */
.post-content .callout { margin: 32px 0; }
.post-content .callout a { color: var(--moss); }

/* back link */
.post-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.post-nav-back {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
}
.post-nav-back:hover { color: var(--ochre-ink); }

/* ── responsive ── */
@media (max-width: 1040px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 56px 32px 80px;
  }
  .blog-side { position: static; }
}

@media (max-width: 640px) {
  .blog-layout { padding: 40px 20px 64px; gap: 44px; }
  .post-card { margin-bottom: 40px; padding-bottom: 40px; }
  .post { padding: 40px 20px 72px; }
  .post-content p,
  .post-content li { font-size: 16.5px; }
  .post-content .lead { font-size: 18px; }
  .post-figure-inset { margin: 28px auto 32px; }
  .cooking-list li { padding-left: 44px; }
  .cooking-list li::before { width: 30px; height: 30px; font-size: 14px; }
}
