.blog-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 90, 58, 0.08), transparent 28rem),
    var(--bg);
}

.blog-page .site-header {
  background: rgba(14, 15, 18, 0.82);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.blog-page .nav-links > a.active {
  color: var(--text);
}

.blog-main {
  min-height: 100vh;
  padding-top: 80px;
}

.blog-index-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.blog-index-hero::after,
.article-hero::after {
  position: absolute;
  right: 10%;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(110, 155, 255, 0.1);
  content: "";
  filter: blur(70px);
  pointer-events: none;
}

.blog-index-hero {
  padding: 116px 0 92px;
  background:
    radial-gradient(circle at 75% 10%, rgba(255, 90, 58, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(23, 25, 31, 0.82), rgba(14, 15, 18, 0.28));
}

.blog-index-hero .shell {
  position: relative;
  z-index: 1;
}

.blog-index-hero h1 {
  max-width: 760px;
  margin: 24px 0 26px;
  font-size: clamp(56px, 8vw, 112px);
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.blog-index-hero h1 em,
.article-hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.blog-index-lede {
  max-width: 650px;
  margin: 0;
  color: var(--muted-light);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.blog-index-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.blog-index-proof span,
.post-card-top > span:first-child {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-index-content {
  padding: 82px 0 124px;
}

.featured-post-label,
.post-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.featured-post-label {
  margin-bottom: 18px;
}

.featured-post-label .section-index,
.post-list-heading .section-index {
  margin: 0;
}

.featured-post-label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.post-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(30, 33, 40, 0.92), rgba(23, 25, 31, 0.74));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

.post-card-featured {
  min-height: 360px;
  padding: clamp(30px, 6vw, 72px);
  border-color: rgba(255, 90, 58, 0.26);
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 90, 58, 0.2), transparent 24rem),
    linear-gradient(145deg, rgba(35, 38, 47, 0.96), rgba(23, 25, 31, 0.82));
}

.post-card-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-card-top .post-state {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 122, 0.12);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card-top .post-state-staged {
  background: rgba(229, 176, 77, 0.12);
  color: var(--yellow);
}

.post-card h2 {
  max-width: 780px;
  margin: 28px 0 16px;
  color: var(--text);
  font-size: clamp(27px, 4vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.post-card:not(.post-card-featured) h2 {
  font-size: clamp(24px, 2.5vw, 34px);
}

.post-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.58;
}

.post-card .text-link {
  margin-top: auto;
  padding-top: 28px;
}

.post-list-heading {
  align-items: end;
  margin: 112px 0 36px;
}

.post-list-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.post-list-heading h2 em {
  color: var(--orange);
  font-style: normal;
}

.post-list-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-boundary {
  max-width: 820px;
  margin: 112px auto 0;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(110, 155, 255, 0.14), transparent 22rem),
    var(--card);
}

.blog-boundary h2 {
  max-width: 630px;
  margin: 18px 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.blog-boundary p:not(.section-index) {
  max-width: 680px;
  margin: 0 0 28px;
  color: var(--muted-light);
  font-size: 17px;
}

.article-hero {
  padding: 72px 0 78px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 90, 58, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(23, 25, 31, 0.82), rgba(14, 15, 18, 0.28));
}

.article-hero-shell {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 800;
  transition: color 160ms ease;
}

.back-link:hover {
  color: var(--text);
}

.article-kicker {
  margin: 70px 0 22px;
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.075em;
  line-height: 0.96;
}

.article-dek {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted-light);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.article-meta time {
  color: var(--muted-light);
}

.article-status {
  display: inline-flex;
  margin: 20px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 122, 0.12);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-status-staged {
  background: rgba(229, 176, 77, 0.12);
  color: var(--yellow);
}

.article-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
  gap: clamp(44px, 8vw, 92px);
  padding-top: 74px;
  padding-bottom: 124px;
}

.article-content {
  min-width: 0;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.75;
}

.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote {
  max-width: 720px;
}

.article-content > p:first-of-type {
  color: var(--text);
  font-size: 21px;
  line-height: 1.6;
}

.article-content h2 {
  margin: 70px 0 18px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.article-content h3 {
  margin: 38px 0 10px;
  color: var(--text);
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 170, 150, 0.42);
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.article-content a.button,
.article-content a.button:hover,
.article-content a.button:focus-visible {
  color: white;
  text-decoration: none;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 28px;
  padding-left: 26px;
}

.article-content li {
  margin: 9px 0;
  padding-left: 6px;
}

.article-note {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 90, 58, 0.09);
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.55;
}

.article-cta {
  margin-top: 78px;
  padding: 34px;
  border: 1px solid rgba(255, 90, 58, 0.25);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 58, 0.15), transparent 18rem),
    var(--card);
}

.article-cta h2 {
  margin-top: 15px;
  font-size: clamp(30px, 4vw, 44px);
}

.article-cta p:not(.section-index) {
  max-width: 600px;
  margin-bottom: 24px;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.6;
}

.article-cta .button svg,
.blog-boundary .button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.article-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 25, 31, 0.84);
}

.sidebar-card h2 {
  margin: 16px 0 12px;
  color: var(--text);
  font-size: 25px;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.sidebar-card p:not(.section-index) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.related-posts {
  margin-top: 88px;
}

.related-posts h2 {
  margin: 15px 0 24px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1;
}

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

.related-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(23, 25, 31, 0.7);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.related-card:hover {
  border-color: var(--line-strong);
  background: var(--card-high);
}

.related-card > span {
  color: var(--orange-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card strong {
  margin-top: 12px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.related-card em {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 900px) {
  .post-list-heading {
    display: block;
  }

  .post-list-heading > p {
    max-width: 620px;
    margin-top: 26px;
  }

  .article-layout {
    display: block;
  }

  .article-sidebar {
    position: static;
    max-width: 620px;
    margin-top: 58px;
  }
}

@media (max-width: 620px) {
  .blog-main {
    padding-top: 68px;
  }

  .blog-index-hero,
  .article-hero {
    padding: 78px 0 62px;
  }

  .blog-index-hero h1 {
    font-size: clamp(52px, 16vw, 82px);
  }

  .blog-index-proof {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-index-content,
  .article-layout {
    padding-bottom: 82px;
  }

  .post-card,
  .post-card-featured {
    min-height: 0;
    padding: 24px;
  }

  .post-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .post-list-heading,
  .blog-boundary {
    margin-top: 76px;
  }

  .article-kicker {
    margin-top: 54px;
  }

  .article-hero h1 {
    font-size: clamp(46px, 14vw, 72px);
  }

  .article-layout {
    padding-top: 54px;
  }

  .article-content {
    font-size: 17px;
  }

  .article-content > p:first-of-type {
    font-size: 19px;
  }

  .article-content h2 {
    margin-top: 54px;
  }

  .article-cta {
    padding: 24px;
  }
}
