/* Blog / sermon-notes pages — The River Church
   Loaded only on /blog/ pages, on top of styles.css. Uses the site's
   CSS variables so it matches the rest of the site. */

.blog-page { padding: 2.5rem 0 4rem; }
.blog-page .container { max-width: 760px; }

/* --- index --- */
.blog-hero { margin-bottom: 2.2rem; }
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .6rem;
  color: var(--color-text);
}
.blog-hero .blog-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
}
.blog-card {
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--color-border);
}
.blog-card:last-child { border-bottom: none; }
.blog-card h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin: 0 0 .3rem;
}
.blog-card h2 a { color: var(--color-text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--color-accent-deep); }
.blog-summary { color: var(--color-text-muted); margin: .2rem 0 .7rem; line-height: 1.6; }
.blog-readmore {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-accent-deep);
  text-decoration: none;
}
.blog-readmore:hover { text-decoration: underline; }
.blog-empty { color: var(--color-text-muted); font-style: italic; padding: 1.5rem 0; }

/* --- shared --- */
.blog-date {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: var(--color-text-muted);
  margin: 0 0 .6rem;
}

/* --- single post --- */
.blog-back { margin: 0 0 .8rem; }
.blog-back a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.blog-back a:hover { color: var(--color-accent-deep); }
.blog-post h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  line-height: 1.14;
  margin: .2rem 0 .4rem;
  color: var(--color-text);
}
.blog-post h2, .blog-post h3, .blog-post h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin: 2rem 0 .7rem;
  line-height: 1.2;
}
.blog-post h2 { font-size: 1.6rem; }
.blog-post h3 { font-size: 1.3rem; }
.blog-post p { line-height: 1.75; margin: 0 0 1.15rem; color: var(--color-text); }
.blog-post ul, .blog-post ol { line-height: 1.75; margin: 0 0 1.15rem 1.4rem; color: var(--color-text); }
.blog-post li { margin: 0 0 .35rem; }
.blog-post a { color: var(--color-accent-deep); }
.blog-post blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.5rem 0;
  padding: .15rem 0 .15rem 1.2rem;
  color: var(--color-text-muted);
  font-style: italic;
}
.blog-post strong { color: var(--color-text); }

/* responsive 16:9 YouTube embed (the church-ops pipeline emits .sermon-video) */
.sermon-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0 2.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}
.sermon-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.blog-rule { border: none; border-top: 1px solid var(--color-border); margin: 2.6rem 0 1.6rem; }
.blog-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.blog-cta .btn-outline {
  background: transparent;
  color: var(--color-accent-deep);
  border: 2px solid var(--color-accent);
}
.blog-cta .btn-outline:hover { background: var(--color-bg-light); }
