:root {
  --article-measure: 1088px;
}

.dispatch-hero {
  padding: 72px 0 56px;
}

.dispatch-hero .eyebrow,
.article-hero .eyebrow {
  margin: 0 0 20px;
}

.dispatch-hero h1 {
  max-width: 760px;
}

.dispatch-hero .section-intro {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
}

.dispatch-count {
  width: max-content;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 7px 12px;
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--paper-deep);
  font-size: 13px;
  font-weight: 700;
}

.dispatch-list-section {
  padding: 0 0 96px;
}

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

.post-card {
  min-width: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--paper-deep);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  background: var(--paper-warm);
}

.post-card.is-latest {
  color: var(--paper);
  background: var(--night);
}

.post-card.is-latest:hover {
  background: var(--night-raised);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-size: 13px;
}

.post-card-tag {
  padding: 6px 10px;
  border-radius: var(--radius-control);
  color: var(--brand-deep);
  background: var(--brand-wash);
  font-weight: 700;
}

.post-card.is-latest .post-card-tag {
  color: var(--night);
}

.post-card time {
  color: var(--muted);
}

.post-card.is-latest time,
.post-card.is-latest p {
  color: var(--night-muted);
}

.post-card h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.post-card p {
  max-width: 600px;
  margin: 20px 0 32px;
  color: var(--muted);
}

.post-card-read {
  margin-top: auto;
  color: var(--brand);
  font-weight: 700;
}

.post-card.is-latest .post-card-read {
  color: var(--paper);
}

.article-hero {
  padding: 96px 0 64px;
}

.article-shell {
  width: min(calc(100% - 48px), var(--article-measure));
  margin-inline: auto;
}

.article-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
}

.article-crumb a {
  color: var(--brand-deep);
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.article-deck {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.article-meta span,
.article-meta time {
  padding: 7px 12px;
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  background: var(--paper-deep);
  font-size: 13px;
  font-weight: 700;
}

.article-reading {
  padding: 0 0 104px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 64px;
  align-items: start;
}

.article-body {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.82;
}

.article-body > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.82;
}

.article-body h2 {
  margin: 46px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.article-body ol,
.article-body ul {
  margin: 20px 0 28px;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.article-body li {
  margin: 0 0 8px;
}

.article-body a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-note {
  margin: 32px 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--paper-deep);
}

.article-note strong {
  display: block;
  margin-bottom: 8px;
}

.article-body table {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: collapse;
  font-size: 15px;
}

.article-body th,
.article-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--paper-deep);
}

.article-toc {
  position: sticky;
  top: 112px;
  z-index: 3;
  padding: 24px;
  border-radius: 24px;
  background: var(--paper-deep);
}

.article-toc h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.article-toc ol {
  margin: 0;
  padding-left: 22px;
}

.article-toc li {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.toc-count {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.article-cta {
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius-card);
  color: var(--paper);
  background: var(--night);
}

.article-cta-icon,
.recommend-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--night);
  background: var(--brand);
}

.article-cta h2 {
  margin: 24px 0 12px;
  color: var(--paper);
}

.article-cta p {
  color: var(--night-muted);
}

.article-cta .guide-actions {
  margin-top: 28px;
}

.article-cta .button:not(.button-primary) {
  color: var(--paper);
  border-color: var(--line-dark);
}

.recommend-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(340px, calc(100vw - 32px));
  padding: 20px 56px 20px 20px;
  border-radius: 24px;
  color: var(--paper);
  background: var(--night);
}

.recommend-float a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.recommend-float strong,
.recommend-float span {
  display: block;
}

.recommend-float span {
  margin-top: 4px;
  color: var(--night-muted);
  font-size: 13px;
}

.recommend-float-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  background: var(--night-raised);
  cursor: pointer;
}

@media (max-width: 860px) {
  .dispatch-grid,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-toc {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .dispatch-hero,
  .article-hero {
    padding-top: 48px;
  }

  .dispatch-grid {
    gap: 16px;
  }

  .post-card {
    min-height: 320px;
    padding: 24px;
  }

  .post-card-meta {
    margin-bottom: 32px;
  }

  .article-shell {
    width: min(calc(100% - 32px), var(--article-measure));
  }

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

  .article-body {
    font-size: 16px;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
  }

  .article-cta {
    padding: 24px;
  }

  .recommend-float {
    right: 16px;
    bottom: 16px;
  }
}
