/* Hope Church Winchester — blog styles (blog index and post pages).
   Colours and type follow the rest of the site: navy rgb(13,27,62),
   deep navy rgb(8,15,30), cream rgb(244,235,225), slate blue rgb(63,92,170),
   light blue rgb(163,192,232); Inter for headings, Neue Montreal for body. */

.bl-wrap { max-width: 1280px; margin: 0 auto; }
.bl-narrow { max-width: 860px; }

/* ---------- hero (blog home) ---------- */
/* Header photo, treated like the other pages' heroes: navy shade from the
   left (behind the words) and from the bottom; site.js adds the parallax. */
.bl-hero {
  position: relative; overflow: hidden; background: rgb(8, 15, 30);
  min-height: 72vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 170px 40px 8vh;
}
.bl-hero-bg {
  position: absolute; inset: -8% 0; background-size: cover; background-position: center 40%;
  will-change: transform;
}
.bl-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8, 15, 30, 0.92), rgba(8, 15, 30, 0.55) 55%, rgba(8, 15, 30, 0.3)),
              linear-gradient(to top, rgba(8, 15, 30, 0.85), transparent 50%);
}
.bl-hero .bl-wrap { position: relative; width: 100%; }
.bl-kicker {
  font-family: Inter; font-size: 15px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgb(163, 192, 232); margin-bottom: 22px;
}
.bl-h1 {
  font-family: Inter; font-weight: 200; font-size: clamp(52px, 8.4vw, 116px);
  line-height: 0.92; letter-spacing: -0.035em; color: #fff; margin: 0;
}
.bl-h1 span { color: rgb(163, 192, 232); }
.bl-lede {
  max-width: 640px; margin-top: 26px; font-size: 22px; line-height: 1.6; color: rgba(255, 255, 255, 0.85);
}

/* ---------- listing ---------- */
.bl-section { background: rgb(244, 235, 225); padding: clamp(48px, 7vw, 88px) 40px clamp(72px, 10vw, 116px); }
.bl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.bl-chip {
  font-family: Inter; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid rgba(13, 27, 62, 0.18);
  background: transparent; color: rgb(13, 27, 62); transition: background .2s, color .2s, border-color .2s;
}
.bl-chip:hover { border-color: rgb(13, 27, 62); }
.bl-chip[aria-pressed="true"] { background: rgb(13, 27, 62); border-color: rgb(13, 27, 62); color: #fff; }
.bl-chip:focus-visible { outline: 3px solid rgb(63, 92, 170); outline-offset: 2px; }

.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-featured { margin-bottom: 24px; }
.bl-empty { font-size: 18px; color: rgb(91, 89, 85); padding: 24px 0; }
[hidden] { display: none !important; }

.bl-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  color: inherit; box-shadow: 0 8px 26px -18px rgba(13, 27, 62, 0.35);
}
.bl-card:hover { color: inherit; }
/* Photos sit inset in the card with a narrow white frame and rounded corners,
   plus one gentle, shared colour balance, so covers feel like a set. */
.bl-card-media { aspect-ratio: 16 / 10; padding: 14px 14px 0; }
.bl-card-img { display: block; border-radius: 12px; overflow: hidden; background: rgb(13, 27, 62); }
.bl-card-img, .bl-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-card-img img, .bl-cover img { filter: saturate(0.92) contrast(1.03); }
.bl-card:hover .bl-card-img img { transform: scale(1.03); }
.bl-card-img img { transition: transform .6s cubic-bezier(0.2, 0, 0, 1); }
.bl-card-img.bl-card-fallback {
  display: flex; align-items: center; justify-content: center;
  background: rgb(13, 27, 62); background-image: radial-gradient(90% 90% at 80% 10%, rgba(63, 92, 170, 0.55), transparent 65%);
}
.bl-card-fallback img { width: 34% !important; height: auto !important; opacity: 0.9; }
.bl-card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.bl-eyebrow {
  display: inline-block; font-family: Inter; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 12px; color: rgb(63, 92, 170);
}
.bl-cat-city { color: #2A8460; }
.bl-cat-nations { color: rgb(63, 92, 170); }
.bl-cat-disciples { color: #6028A7; }
.bl-card-title {
  font-family: Inter; font-weight: 300; font-size: 25px; line-height: 1.15; letter-spacing: -0.02em;
  color: rgb(13, 27, 62); margin-bottom: 12px;
}
.bl-card-excerpt {
  font-size: 16px; line-height: 1.6; color: rgb(91, 89, 85); margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-meta { margin-top: auto; font-family: Inter; font-size: 14px; color: rgb(138, 127, 116); }

/* featured: image left, words right */
.bl-card-featured { flex-direction: row; }
.bl-card-featured .bl-card-media { flex: 1.35; aspect-ratio: auto; min-height: 420px; padding: 14px 0 14px 14px; }
.bl-card-featured .bl-card-body { flex: 1; padding: clamp(30px, 4vw, 52px); justify-content: center; }
.bl-card-featured .bl-card-title { font-size: clamp(30px, 3.2vw, 42px); font-weight: 200; line-height: 1.05; margin-bottom: 18px; }
.bl-card-featured .bl-card-excerpt { font-size: 18px; -webkit-line-clamp: 5; }
.bl-card-featured .bl-meta { margin-top: 8px; }

/* ---------- post page ---------- */
.bl-post-head {
  background: rgb(8, 15, 30);
  background-image: radial-gradient(120% 90% at 85% 0%, rgba(63, 92, 170, 0.4), transparent 60%);
  padding: 150px 40px 0;
}
.bl-post-head .bl-wrap { padding-bottom: 64px; }
.bl-has-cover { margin-top: 0; }
.bl-back {
  display: inline-block; font-family: Inter; font-size: 15px; font-weight: 600;
  color: rgba(255, 255, 255, 0.6); margin-bottom: 34px;
}
.bl-back:hover { color: #fff; }
.bl-on-dark { display: block; width: fit-content; }
.bl-on-dark.bl-eyebrow { color: rgb(163, 192, 232); }
.bl-on-dark:hover { color: #fff; }
.bl-post-title {
  font-family: Inter; font-weight: 200; font-size: clamp(40px, 6vw, 76px); line-height: 1;
  letter-spacing: -0.03em; color: #fff; margin: 4px 0 26px;
}
.bl-post-meta { font-family: Inter; font-size: 16px; color: rgba(255, 255, 255, 0.62); }

.bl-article { background: rgb(244, 235, 225); padding: 0 40px clamp(64px, 9vw, 110px); }
.bl-cover {
  max-width: 1080px; margin: 0 auto; padding: 14px; background: #fff;
  border-radius: 24px; box-shadow: 0 24px 60px -30px rgba(13, 27, 62, 0.55);
}
.bl-cover picture { display: block; border-radius: 14px; overflow: hidden; }
.bl-has-cover { background: linear-gradient(to bottom, rgb(8, 15, 30) 0, rgb(8, 15, 30) 140px, rgb(244, 235, 225) 140px); }
.bl-cover img { width: 100%; height: auto; display: block; }
.bl-article:not(.bl-has-cover) { padding-top: clamp(48px, 7vw, 80px); }

.bl-prose {
  max-width: 720px; margin: clamp(44px, 6vw, 72px) auto 0;
  font-size: 19px; line-height: 1.75; color: rgb(35, 34, 32);
}
.bl-prose > * + * { margin-top: 1.1em; }
.bl-prose h2 {
  font-family: Inter; font-weight: 400; font-size: clamp(25px, 2.6vw, 30px); line-height: 1.2;
  letter-spacing: -0.015em; color: rgb(13, 27, 62); margin-top: 1.9em;
}
.bl-prose h3 {
  font-family: Inter; font-weight: 600; font-size: 20px; line-height: 1.3; color: rgb(13, 27, 62); margin-top: 1.6em;
}
.bl-prose h2 + *, .bl-prose h3 + * { margin-top: 0.6em; }
.bl-prose a { color: rgb(63, 92, 170); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.bl-prose a:hover { color: rgb(13, 27, 62); }
.bl-prose strong { font-weight: 700; }
.bl-prose ul, .bl-prose ol { padding-left: 1.3em; }
.bl-prose li + li { margin-top: 0.4em; }
.bl-prose blockquote {
  border-left: 3px solid rgb(63, 92, 170); padding: 4px 0 4px 24px;
  font-family: Inter; font-weight: 300; font-size: 24px; line-height: 1.45; color: rgb(13, 27, 62);
}
.bl-prose hr { border: 0; height: 1px; background: rgba(35, 34, 32, 0.14); margin: 2.4em 0; }
.bl-prose figure { margin: 2em 0; }
.bl-prose figure img { width: 100%; height: auto; border-radius: 16px; }
.bl-prose figcaption { margin-top: 10px; font-family: Inter; font-size: 14px; line-height: 1.5; color: rgb(138, 127, 116); }
.bl-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.bl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bl-more { background: #fff; padding: clamp(64px, 9vw, 104px) 40px; }
.bl-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.bl-more-head h2 {
  font-family: Inter; font-weight: 200; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; color: rgb(13, 27, 62);
}
.bl-more-head a { font-family: Inter; font-size: 16px; font-weight: 600; }
.bl-more .bl-card { background: rgb(244, 235, 225); box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 1079px) {
  .bl-grid { grid-template-columns: 1fr 1fr; }
  .bl-card-featured { flex-direction: column; }
  .bl-card-featured .bl-card-media { min-height: 0; aspect-ratio: 16 / 10; flex: none; padding: 14px 14px 0; }
}
@media (max-width: 700px) {
  .bl-hero { padding: 120px 20px 56px; min-height: 0; }
  .bl-hero-bg { background-position: 14% 30%; }
  .bl-lede { font-size: 19px; }
  .bl-section, .bl-more { padding-left: 16px; padding-right: 16px; }
  .bl-grid { grid-template-columns: 1fr; gap: 18px; }
  .bl-card-body { padding: 22px 22px 24px; }
  .bl-post-head { padding: 112px 20px 0; }
  .bl-post-head .bl-wrap { padding-bottom: 44px; }
  .bl-back { margin-bottom: 24px; }
  .bl-article { padding-left: 16px; padding-right: 16px; }
  .bl-has-cover { background: linear-gradient(to bottom, rgb(8, 15, 30) 0, rgb(8, 15, 30) 70px, rgb(244, 235, 225) 70px); }
  .bl-cover { border-radius: 18px; padding: 10px; }
  .bl-cover picture { border-radius: 10px; }
  .bl-card-media { padding: 10px 10px 0; }
  .bl-card-img { border-radius: 10px; }
  .bl-prose { font-size: 18px; }
  .bl-prose blockquote { font-size: 21px; padding-left: 18px; }
}
