.blog-page {
  --blog-ink: #193a31;
  --blog-muted: #64746e;
  --blog-green: #24674f;
  --blog-gold: #e7c56e;
  background: #fffdf7;
}

.blog-hero .temples-hero-image {
  object-position: center 42%;
}

.blog-featured {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.blog-featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.34fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.blog-category {
  margin: 0 0 0.7rem;
  color: var(--blog-green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-featured-copy h2,
.blog-section-heading h2,
.blog-endnote h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--blog-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.blog-featured-deck {
  max-width: 54rem;
  margin: 1.1rem 0 1.5rem;
  color: #53645b;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
}

.blog-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  color: var(--blog-muted);
  font-size: 0.86rem;
}

.blog-featured-meta time {
  color: var(--blog-ink);
  font-weight: 700;
}

.blog-article-body {
  max-width: 52rem;
  color: #3e5047;
}

.blog-article-body h3 {
  margin: 1.5rem 0 0.4rem;
  color: var(--blog-ink);
  font-size: 1rem;
  font-weight: 800;
}

.blog-article-body p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.8;
}

.blog-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.8rem;
}

.blog-text-link {
  color: var(--blog-green);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.blog-featured-note {
  position: sticky;
  top: 6rem;
  padding: 1.4rem;
  border: 1px solid #e8dfc7;
  border-radius: 0.8rem;
  background: #f9f4e7;
}

.blog-featured-note > span {
  color: #a78632;
  font-size: 1.25rem;
}

.blog-featured-note p {
  margin: 0.65rem 0 0;
  color: #4b5c54;
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-featured-note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blog-ink);
}

.blog-stories {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: #f5f5ee;
  scroll-margin-top: 5.5rem;
}

.blog-section-heading {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.blog-section-heading > p:last-child {
  max-width: 47rem;
  margin: 1rem 0 0;
  color: #53645b;
  font-size: 0.96rem;
  line-height: 1.7;
}

.blog-card-grid {
  column-count: 3;
  column-gap: 1.15rem;
  column-fill: balance;
}

.blog-card {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border: 1px solid #e7e9df;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.7rem rgb(26 53 40 / 5%);
  break-inside: avoid;
  vertical-align: top;
}

.blog-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7eee8;
}

.blog-card:nth-child(3n + 1) .blog-card-image {
  aspect-ratio: 4 / 3;
}

.blog-card:nth-child(3n) .blog-card-image {
  aspect-ratio: 1 / 1;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.035);
}

.blog-card-image span {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  color: #40564c;
  background: rgb(255 255 255 / 92%);
  font-size: 0.62rem;
  font-weight: 700;
}

.blog-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
}

.blog-card-category {
  margin: 0 0 0.55rem;
  color: var(--blog-green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0;
  color: var(--blog-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h3 a:hover,
.blog-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.blog-card-copy > p:not(.blog-card-category) {
  margin: 0.75rem 0 1rem;
  color: #53645b;
  font-size: 0.88rem;
  line-height: 1.65;
}

.blog-card-link {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #edf0e9;
  color: var(--blog-green);
  font-size: 0.83rem;
  font-weight: 750;
  text-decoration: none;
}

.blog-endnote {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(ellipse at 86% 20%, rgb(231 197 110 / 18%), transparent 34%),
    #173d33;
}

.blog-endnote-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: 2rem;
}

.blog-endnote .blog-category {
  color: #f0d98f;
}

.blog-endnote h2 {
  color: #fff;
}

.blog-endnote-inner > div:first-child > p:last-child {
  max-width: 45rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.96rem;
  line-height: 1.7;
}

.blog-endnote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.blog-endnote-actions .temples-button--light {
  color: #173d33;
  background: #f0d271;
}

.blog-endnote-actions .temples-button--light:hover {
  background: #f7df9d;
}

.blog-endnote-actions .temples-button--outline {
  border-color: rgb(255 255 255 / 55%);
  color: #fff;
}

.blog-endnote-actions .temples-button--outline:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

.blog-featured-actions a:focus-visible,
.blog-card a:focus-visible,
.blog-endnote-actions a:focus-visible {
  outline: 3px solid #c79d3c;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .blog-card-grid {
    column-count: 2;
  }
}

@media (max-width: 760px) {
  .blog-featured-story,
  .blog-endnote-inner {
    grid-template-columns: 1fr;
  }

  .blog-featured-note {
    position: static;
  }
}

@media (max-width: 520px) {
  .blog-card-grid {
    column-count: 1;
  }

  .blog-featured-actions,
  .blog-endnote-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card-image img {
    transition: none;
  }
}
