.blog-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.blog-main {
  padding-bottom: 112px;
}

.blog-hero {
  display: block;
  padding-block: 96px 68px;
  border-bottom: 1px solid var(--line);
}

.blog-kicker,
.post-meta,
.article-kicker {
  margin: 0 0 20px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(64px, 7vw, 102px);
  font-weight: 720;
  line-height: .92;
  letter-spacing: -.065em;
}

.blog-hero > p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.blog-toolbar h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.topic-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
}

.topic-list li:first-child {
  border-color: rgba(47, 125, 109, .35);
  color: var(--green-dark);
  background: rgba(47, 125, 109, .06);
}

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

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: inherit;
  background: var(--paper);
  text-decoration: none;
  transition: transform 360ms cubic-bezier(.2, .75, .2, 1), border-color 240ms ease;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: rgba(47, 125, 109, .55);
  transform: translateY(-5px);
}

.post-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f2efe6;
}

.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  transition: none;
}

.post-cover time {
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 7px 10px;
  border: 1px solid rgba(17, 24, 39, .14);
  border-radius: 999px;
  color: #173e38;
  background: rgba(250, 248, 241, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card:hover .post-cover img,
.post-card:focus-visible .post-cover img {
  transform: none;
}

.benchmark-visual {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 26px;
  overflow: hidden;
  color: #fff;
  background: #17233a;
}

.benchmark-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.visual-top,
.visual-result {
  position: relative;
  z-index: 1;
}

.visual-top {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.visual-rank {
  display: block;
  color: #89b9aa;
  font-size: clamp(62px, 6vw, 92px);
  font-weight: 730;
  line-height: .78;
  letter-spacing: -.08em;
}

.visual-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.28);
}

.visual-score span:first-child {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.visual-score strong {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -.05em;
}

.post-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 30px;
}

.post-card-copy h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(26px, 2.1vw, 33px);
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.post-card-copy > p:not(.post-meta) {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.read-link {
  display: inline-flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.blog-note span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.blog-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.article {
  max-width: 920px;
  padding-block: 82px 120px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 72px;
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 680;
  text-decoration: none;
}

.article-back:hover { color: var(--green-dark); }

.article h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.06em;
}

.article-lede {
  max-width: 760px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.58;
}

.article .benchmark-visual {
  min-height: 440px;
  margin: 64px 0;
  padding: 38px;
  border-radius: 12px;
}

.article .leaderboard-shot {
  margin: 64px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.article .leaderboard-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.article .visual-rank {
  font-size: clamp(72px, 9vw, 132px);
}

.article .visual-score {
  margin-top: 32px;
  padding-top: 22px;
}

.article .visual-score strong {
  font-size: 42px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 54px 0 64px;
  border-block: 1px solid var(--line-strong);
}

.result-grid div {
  padding: 24px 14px 25px;
  border-right: 1px solid var(--line);
}

.result-grid div:last-child { border-right: 0; }

.result-grid dt {
  margin-bottom: 10px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-grid dd {
  margin: 0;
  color: var(--green-dark);
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -.04em;
}

.article-body {
  max-width: 740px;
  margin-inline: auto;
}

.article-body h2 {
  margin: 58px 0 16px;
  font-size: 31px;
  font-weight: 680;
  letter-spacing: -.035em;
}

.article-body p {
  margin: 0 0 22px;
  color: #374151;
  font-size: 18px;
  line-height: 1.78;
}

.article-fact {
  margin: 36px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--green);
  color: var(--ink-soft);
  background: var(--paper-soft);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .blog-hero,
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero { gap: 30px; padding-block: 64px 48px; }
  .blog-toolbar { align-items: flex-start; flex-direction: column; }
  .post-card,
  .blog-note { min-height: 0; }
  .blog-note { gap: 90px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid div { border-bottom: 1px solid var(--line); }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .benchmark-visual,
  .post-card-copy,
  .blog-note { padding: 26px; }
  .topic-list { flex-wrap: wrap; }
  .article { padding-block: 52px 80px; }
  .article-back { margin-bottom: 48px; }
  .article .benchmark-visual { min-height: 340px; margin-block: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card { transition: none; }
  .post-card:hover,
  .post-card:focus-visible { transform: none; }
  .post-cover img,
  .post-card:hover .post-cover img,
  .post-card:focus-visible .post-cover img {
    transform: none;
    transition: none;
  }
}

/* Staged entrance for the Blog index. */
.blog-main .blog-hero h1 {
  animation: blog-title-enter 900ms cubic-bezier(.2, .75, .2, 1) 80ms both;
}

.blog-main .blog-toolbar {
  animation: blog-section-enter 700ms cubic-bezier(.2, .75, .2, 1) 420ms both;
}

.blog-main .post-card {
  animation: blog-card-enter 820ms cubic-bezier(.2, .75, .2, 1) 620ms both;
}

.blog-main .post-card:nth-child(2) { animation-delay: 730ms; }
.blog-main .post-card:nth-child(3) { animation-delay: 840ms; }

@keyframes blog-title-enter {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes blog-section-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blog-card-enter {
  from {
    opacity: 0;
    filter: blur(5px);
    translate: 0 24px;
    scale: .985;
  }
  to {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-main .blog-hero h1,
  .blog-main .blog-toolbar,
  .blog-main .post-card {
    animation: none !important;
    filter: none;
    opacity: 1;
    transform: none;
    translate: 0 0;
    scale: 1;
  }
}

/* Staged entrance for an individual Blog article. */
.article .article-back {
  animation: article-soft-enter 620ms cubic-bezier(.2, .75, .2, 1) 60ms both;
}

.article .article-kicker {
  animation: article-soft-enter 680ms cubic-bezier(.2, .75, .2, 1) 180ms both;
}

.article > h1 {
  animation: article-title-enter 920ms cubic-bezier(.2, .75, .2, 1) 260ms both;
}

.article > .article-lede {
  animation: article-soft-enter 720ms cubic-bezier(.2, .75, .2, 1) 520ms both;
}

.article > .leaderboard-shot {
  animation: article-panel-enter 880ms cubic-bezier(.2, .75, .2, 1) 700ms both;
}

.article > .result-grid {
  animation: article-soft-enter 720ms cubic-bezier(.2, .75, .2, 1) 880ms both;
}

.article > .article-body {
  animation: article-soft-enter 760ms cubic-bezier(.2, .75, .2, 1) 1040ms both;
}

@keyframes article-title-enter {
  from {
    opacity: 0;
    filter: blur(7px);
    translate: 0 22px;
  }
  to {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
  }
}

@keyframes article-soft-enter {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes article-panel-enter {
  from {
    opacity: 0;
    filter: blur(5px);
    translate: 0 24px;
    scale: .99;
  }
  to {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article .article-back,
  .article .article-kicker,
  .article > h1,
  .article > .article-lede,
  .article > .leaderboard-shot,
  .article > .result-grid,
  .article > .article-body {
    animation: none !important;
    filter: none;
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Phone layouts use compact cards, readable type, and full original images. */
.leaderboard-shot img {
  aspect-ratio: 1800 / 860;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 760px) {
  .blog-main {
    padding-bottom: 72px;
  }

  .blog-hero {
    padding-block: 54px 34px;
  }

  .blog-hero h1 {
    font-size: clamp(50px, 16vw, 68px);
    line-height: .94;
  }

  .blog-toolbar {
    padding-block: 22px;
  }

  .post-grid {
    gap: 16px;
  }

  .post-card {
    grid-template-rows: auto auto;
    border-radius: 10px;
  }

  .post-cover {
    aspect-ratio: 3 / 2;
  }

  .post-card-copy {
    padding: 24px;
  }

  .post-card-copy h3 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .post-card-copy > p:not(.post-meta) {
    margin-top: 18px;
    font-size: 15px;
  }

  .article {
    padding-block: 44px 76px;
  }

  .article-back {
    margin-bottom: 38px;
    font-size: 16px;
  }

  .article h1 {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 1.02;
    letter-spacing: -.05em;
    text-wrap: balance;
  }

  .article-lede {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.55;
  }

  .article .leaderboard-shot {
    margin-block: 40px;
    border-radius: 8px;
  }

  .article .leaderboard-shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 1800 / 860;
    object-fit: contain;
    object-position: center;
  }

  .result-grid {
    margin-block: 40px 50px;
  }

  .result-grid div:nth-child(even) {
    border-right: 0;
  }

  .result-grid div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .article-body h2 {
    margin-top: 46px;
    font-size: 28px;
  }

  .article-body p {
    font-size: 17px;
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .post-card-copy {
    padding: 22px;
  }

  .article {
    padding-block: 38px 68px;
  }

  .article-back {
    margin-bottom: 32px;
  }

  .article .leaderboard-shot {
    margin-block: 34px;
  }
}
