/* Blog listing + post */

.blog-hero,
.blog-post__hero {
  position: relative;
  min-height: 260px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.blog-hero__bg,
.blog-post__hero-bg {
  position: absolute;
  inset: 0;
}

.blog-hero__bg img,
.blog-post__hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hero__shade,
.blog-post__hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 12, 11, 0.8) 0%, rgba(12, 12, 11, 0.45) 50%, rgba(12, 12, 11, 0.3) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 55%);
}

.blog-hero__inner,
.blog-post__hero-inner {
  position: relative;
  z-index: 1;
  padding: 28px 0 40px;
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
}

.blog-hero h1,
.blog-post__hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  color: #fff;
}

.blog-hero p,
.blog-post__lead {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.blog-post__date,
.blog-card__date {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.blog-card__date {
  color: var(--muted);
}

.blog-list {
  padding-top: 36px;
}

.blog-empty {
  margin: 0;
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.blog-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: blogRise 0.65s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

.blog-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--light);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__body {
  display: grid;
  gap: 8px;
}

.blog-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.blog-card__title a:hover {
  color: var(--graphite);
}

.blog-card__excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.blog-post__body {
  padding-top: 40px;
}

.blog-post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.blog-post__content.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
}

.blog-post__content.prose h2 {
  margin: 1.6em 0 0.55em;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.15;
}

.blog-post__content.prose h3 {
  margin: 1.3em 0 0.45em;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.blog-post__content.prose p {
  margin: 0 0 1em;
}

.blog-post__content.prose ul,
.blog-post__content.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.blog-post__content.prose li {
  margin: 0.35em 0;
}

.blog-post__content.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post__content.prose a:hover {
  color: var(--graphite);
}

.blog-post__aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.blog-post__cta {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: var(--dark);
  color: #fff;
}

.blog-post__cta-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.blog-post__cta strong {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.blog-post__cta p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.blog-post__cta .btn {
  margin-top: 6px;
  justify-self: start;
}

.blog-post__cta .text-link {
  color: rgba(255, 255, 255, 0.85);
}

.blog-related {
  background: var(--white);
  border-top: 1px solid var(--border);
}

@keyframes blogRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-post__layout {
    grid-template-columns: 1fr;
  }

  .blog-post__aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: 1fr;
  }
}
