/*
   blog.css — Blog post page styles
   Three-column layout: 15% | 70% | 15%
   Cream theme, matching main site palette
   ============================================================ */

/* ── Three-column wrapper ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.8fr) 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - 48px - 80px); /* viewport minus nav and footer */
  align-items: start;
}

/* ── Sidebars (15% each) ── */
.blog-sidebar {
  padding: 36px 16px 36px;
}

/* ── Sticky ad slot ── */
.ad-slot--sticky {
  position: sticky;
  top: 64px; /* 48px nav + 16px gap */
}

/* ── Ad placeholder (shown until real AdSense code is pasted in) ── */
.ad-placeholder {
  width: 100%;
  min-height: 280px;
  background: #f0ebe3;
  border: 2px dashed #d4c9b8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0a898;
  font-size: .8rem;
  font-family: Inter, sans-serif;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Centre column — article ── */
.blog-post {
  background: #ffffff;
  border-left: 1px solid #e0d9cf;
  border-right: 1px solid #e0d9cf;
  padding: 44px 52px 60px;
  min-height: 100%;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .8rem;
  color: #9c9189;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumb a {
  color: #8b4513;
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: #c9bfb3; }

/* ── Post header ── */
.post-header {
  margin-bottom: 28px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #9c9189;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.post-sep { color: #c9bfb3; }
.post-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1a1714;
  margin: 0 0 18px;
}
.post-lede {
  font-size: 1.1rem;
  color: #6b6259;
  line-height: 1.7;
  margin: 0;
  border-left: 3px solid #c9a84c;
  padding-left: 16px;
}

/* ── Divider ── */
.post-divider {
  border: none;
  border-top: 1px solid #e0d9cf;
  margin: 28px 0 32px;
}

/* ── Post body typography ── */
.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #2e2a26;
}
.post-body p {
  margin: 0 0 20px;
}
.post-body h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1714;
  margin: 36px 0 14px;
  line-height: 1.25;
}
.post-body h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1714;
  margin: 28px 0 10px;
}
.post-body ul,
.post-body ol {
  margin: 0 0 20px 20px;
  padding: 0;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: #f8f6f1;
  border-left: 4px solid #c9a84c;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #5a5048;
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-body a {
  color: #8b4513;
  text-decoration: underline;
}
.post-body a:hover { opacity: .8; }
.post-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* ── Internal CTA box ── */
.post-cta {
  background: #f8f6f1;
  border: 1px solid #e0d9cf;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 48px 0 36px;
  text-align: center;
}
.post-cta p {
  margin: 0 0 16px;
  color: #6b6259;
  font-size: .97rem;
}
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn--primary {
  background: #8b4513;
  color: #fff;
}

/* ── Post prev/next nav ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #e0d9cf;
  font-size: .88rem;
}
.post-nav a {
  color: #8b4513;
  text-decoration: none;
  font-weight: 500;
}
.post-nav a:hover { text-decoration: underline; }

/* ── Responsive — collapse sidebars on smaller screens ── */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 0 1fr 0;
  }
  .blog-sidebar {
    display: none;
  }
  .blog-post {
    border-left: none;
    border-right: none;
    padding: 36px 28px 52px;
  }
}
@media (max-width: 640px) {
  .blog-post {
    padding: 28px 18px 44px;
  }
  .post-title {
    font-size: 1.7rem;
  }
}
