/* ---------------------------------------------------------------------------
   Hasu Stay — blog.
   Loaded *after* css/style.css and depends on it: every colour here is one of
   the site's existing custom properties, and the header, footer, .btn, .eyebrow
   and .reveal rules all come from that file unchanged. Nothing is redefined.
   --------------------------------------------------------------------------- */

/* ---------- Listing hero ---------- */
.blog-hero {
  background:
    linear-gradient(180deg, rgba(20,24,10,.55) 0%, rgba(12,15,6,.78) 100%),
    url('/images/hero-madikere.webp') center 55%/cover no-repeat;
  padding: 92px 0 84px;
  text-align: center;
  color: #fff;
}
.blog-hero .eyebrow { color: var(--pink-light); }
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 62px; line-height: 1.08; margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.blog-hero p { max-width: 620px; margin: 0 auto; font-size: 17px; color: rgba(255,255,255,.88); line-height: 1.6; }

/* ---------- Listing grid ---------- */
.blog-list { padding: 86px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Cover: a photo when one exists, otherwise a brand wash carrying a single motif.
   Adding real photography later means setting `image` on the post in build-blog.py —
   `.has-image` already has the styling waiting. */
.post-cover {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}
.post-cover.has-image { display: block; }
.post-cover.has-image img { width: 100%; height: 100%; object-fit: cover; }
.cover-mist   { background: linear-gradient(135deg, #8fa06a 0%, var(--olive) 60%, var(--olive-dark) 100%); }
.cover-olive  { background: linear-gradient(135deg, var(--olive-light) 0%, var(--olive-dark) 100%); }
.cover-rain   { background: linear-gradient(135deg, #7d9199 0%, #46555c 100%); }
.cover-coffee { background: linear-gradient(135deg, #b0794f 0%, #6d4326 100%); }

.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px; line-height: 1.32; margin: 4px 0 10px; color: var(--olive-darker);
}
.post-excerpt { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-bottom: 18px; }

/* margin-top:auto keeps the date row on one baseline no matter how long the excerpt runs */
.post-meta {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); letter-spacing: .3px;
}

/* ---------- Article ---------- */
.article-head { padding: 64px 0 34px; text-align: center; }
.article-narrow { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--olive-dark); }
.crumbs span { margin: 0 6px; opacity: .6; }
.article-head h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px; line-height: 1.15; color: var(--olive-darker); margin: 6px 0 16px;
}
.article-head .post-meta { justify-content: center; }

.article-image {
  max-width: 1040px; margin: 0 auto 8px; padding: 0 24px;
}
.article-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.article-body { padding: 48px 24px 10px; font-size: 16.5px; line-height: 1.78; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body .lead { font-size: 19px; line-height: 1.7; color: var(--olive-dark); }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 29px; line-height: 1.25; color: var(--olive-darker); margin: 44px 0 14px;
}
.article-body h3 { font-size: 18px; color: var(--olive-dark); margin: 30px 0 10px; }
.article-body ul { margin: 0 0 22px; padding-left: 0; }
.article-body ul li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
}
.article-body ul li::before {
  content: '🌸'; position: absolute; left: 0; top: 1px; font-size: 12px;
}
.article-body a { color: var(--olive); border-bottom: 1px solid var(--pink-light); }
.article-body a:hover { color: var(--olive-dark); border-bottom-color: var(--pink); }
.article-body blockquote {
  margin: 34px 0; padding: 22px 26px;
  background: var(--pink-pale); border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px; line-height: 1.7; color: var(--olive-darker);
}

/* ---------- End-of-article and listing CTAs ---------- */
.article-cta {
  margin: 46px 24px 0; padding: 34px 32px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article-cta h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--olive-darker); margin-bottom: 8px; }
.article-cta p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.blog-cta { background: var(--olive-darker); color: #fff; text-align: center; padding: 76px 0; }
.blog-cta .eyebrow { color: var(--pink-light); }
.blog-cta h2 { font-family: 'Playfair Display', serif; font-size: 38px; margin-bottom: 10px; }
.blog-cta p { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.blog-cta .btn-primary { background: #fff; color: var(--olive-darker); }
.blog-cta .btn-primary:hover { background: var(--pink-pale); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-hero h1 { font-size: 46px; }
  .article-head h1 { font-size: 36px; }
  .article-body h2 { font-size: 25px; }

  /* style.css hides .main-nav below 980px and shows the ☰ button. On the blog that
     button actually opens this panel — see js/blog.js. */
  .site-header .main-nav.nav-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px 24px 16px; z-index: 99;
  }
  .site-header .main-nav.nav-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header .main-nav.nav-open a:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 68px 0 60px; }
  .blog-hero h1 { font-size: 36px; }
  .blog-list { padding: 60px 0; }
  .article-head { padding: 44px 0 26px; }
  .article-head h1 { font-size: 29px; }
  .article-body { font-size: 16px; padding-top: 36px; }
  .article-body .lead { font-size: 17.5px; }
  .article-cta { padding: 28px 22px; }
  .blog-cta h2 { font-size: 29px; }
}
