.blog-page {
  background: #f6f4ee;
  color: #1a1a1a;
  overflow-x: hidden;
}

.blog-wrap {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
}

.blog-kicker {
  margin: 0 0 14px;
  color: #d6e02c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-hero,
.post-hero {
  position: relative;
  min-height: min(82svh, 780px);
  display: flex;
  align-items: flex-end;
  padding: 150px 0 72px;
  color: #fff;
  background: #0d100e;
  isolation: isolate;
}

.blog-hero__media,
.blog-hero__overlay,
.post-hero__media,
.post-hero__overlay {
  position: absolute;
  inset: 0;
}

.blog-hero__media,
.post-hero__media {
  z-index: -2;
  overflow: hidden;
}

.blog-hero__media img,
.post-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) saturate(0.9);
  transform: scale(1.04);
}

.blog-hero__overlay,
.post-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.72) 52%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.9));
}

.blog-hero h1,
.post-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.blog-hero p:not(.blog-kicker),
.post-hero p:not(.blog-kicker) {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.75;
}

.blog-section {
  padding: clamp(70px, 9vw, 116px) 0;
}

.blog-section--related {
  background: #fff;
}

.blog-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.blog-section__head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.blog-card {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.07);
  box-shadow: 0 18px 50px rgba(15, 17, 16, 0.06);
}

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: #111411;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.blog-card__media span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #d6e02c;
  color: #1a1a1a;
  font-size: 0.74rem;
  font-weight: 800;
}

.blog-card__body {
  padding: 22px;
}

.blog-card time,
.post-meta {
  color: rgba(26, 26, 26, 0.48);
  font-size: 0.82rem;
  font-weight: 800;
}

.blog-card h2 {
  margin: 10px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.blog-card h2 a,
.blog-card__link {
  color: inherit;
  text-decoration: none;
}

.blog-card p {
  margin: 12px 0 0;
  color: rgba(26, 26, 26, 0.62);
  font-size: 0.94rem;
  line-height: 1.65;
}

.blog-card__link {
  display: inline-flex;
  margin-top: 18px;
  color: #9ca711;
  font-size: 0.9rem;
  font-weight: 800;
}

.post-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  font-weight: 800;
}

.post-crumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.68);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(70px, 9vw, 110px) 0;
}

.post-content {
  max-width: 820px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: rgba(26, 26, 26, 0.75);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 0.8rem;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.post-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.post-content h3 { font-size: 1.45rem; }
.post-content p,
.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.3rem;
}

.post-content a {
  color: #697200;
  font-weight: 800;
}

.post-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.post-side__box {
  position: sticky;
  top: 110px;
  padding: 22px;
  border-radius: 22px;
  background: #111411;
  color: #fff;
}

.post-side__box + .post-side__box {
  position: static;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.post-side__box h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.post-side__box p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
}

.post-side__box + .post-side__box p {
  color: rgba(26, 26, 26, 0.58);
}

.post-side__box a {
  display: inline-flex;
  margin-top: 16px;
  padding: 11px 15px;
  border-radius: 999px;
  background: #d6e02c;
  color: #1a1a1a;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .blog-section__head,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .blog-section__head {
    display: grid;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .blog-hero,
  .post-hero {
    min-height: 720px;
  }
}
