/* =========================
   RAKSTI PAGE
   One stream: news image left, sermons/articles image right
========================= */

.articles-page {
  min-height: 720px;
  padding: 0 38px 80px;
  background: var(--cream);
}

.articles-hero {
  max-width: 940px;
  margin: 0 auto;
  padding: 38px 48px 34px;
  background: #fffdf9;
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow);
}

.articles-hero h1 {
  margin: 0 0 14px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--navy-deep);
}

.articles-hero p:last-child {
  max-width: 740px;
  margin: 0;
  font-size: 1.12rem;
  color: #3f4954;
}

.article-list {
  max-width: 940px;
  margin: 26px auto 0;
}

.article-stream {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.article-card {
  background: #fffdf9;
  border: 1px solid rgba(224, 216, 204, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-link {
  display: grid;
  min-height: 198px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card .article-link {
  grid-template-columns: 260px 1fr;
}

.sermon-card .article-link {
  grid-template-columns: 1fr 260px;
}

.sermon-card .article-thumb {
  order: 2;
}

.article-link:hover,
.article-link:focus-visible {
  transform: translateY(-3px);
}

.article-thumb {
  width: 100%;
  height: 100%;
  min-height: 198px;
  object-fit: cover;
  background: #d8d0c4;
}

.article-content {
  padding: 22px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-type {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #af8e57;
}

.article-content h2 {
  margin: 0 0 7px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.55rem, 2.35vw, 2.05rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--navy-deep);
}

.article-meta {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86724f;
}

.article-content p:not(.article-type):not(.article-meta) {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.4;
  color: #3f4954;
}

.article-content span {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.article-link:hover .article-content span,
.article-link:focus-visible .article-content span {
  color: var(--accent);
}

.life-photo-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;   /* 🔴 THIS is the key */
  overflow: hidden;
  background: #d8d0c4;
}

.life-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 🔴 crop, not stretch */
}

.article-image {
  width: 150px;
  aspect-ratio: 3 / 4;
}

@media (max-width: 820px) {
  .articles-page {
    padding: 0 18px 60px;
  }

  .articles-hero {
    padding: 30px 24px 28px;
  }

  .news-card .article-link,
  .sermon-card .article-link {
    grid-template-columns: 1fr;
  }

  .sermon-card .article-thumb {
    order: 0;
  }

  .article-thumb {
    height: 220px;
    min-height: 220px;
  }

  .article-content {
    padding: 22px 24px 24px;
  }
}
