.changelog-hero {
  padding-bottom: 72px;
}

.changelog-body {
  background: var(--paper);
  padding: 76px 0 120px;
}

.changelog-container {
  max-width: 1120px;
}

.release-status {
  padding: 28px 0;
  color: var(--ink-600);
  font-family: var(--font-mono);
  font-size: 13px;
}

.release-status-error {
  color: var(--red);
}

.release {
  padding-bottom: 72px;
}

.release-heading {
  max-width: 850px;
}

.release-kicker,
.release-version {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.release-kicker {
  color: var(--orange-700);
  margin-right: 10px;
}

.release-version {
  color: var(--ink-600);
  padding-left: 12px;
  border-left: 1px solid var(--ink-300);
}

.release-title {
  margin: 18px 0 8px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
}

.release-date {
  display: block;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 24px;
}

.release-summary {
  color: var(--ink-700);
  font-size: 20px;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

.release-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid var(--ink-200);
}

.release-section h3,
.gallery-title {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 18px;
}

.release-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.release-section li {
  position: relative;
  color: var(--ink-700);
  line-height: 1.55;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--ink-200);
}

.release-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 12px;
  height: 2px;
  background: var(--orange-500);
}

.release-gallery {
  margin-top: 58px;
  position: relative;
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.release-shot {
  margin: 0;
}

.release-shot img {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: block;
  height: auto;
  object-fit: contain;
}

.release-shot-phone img {
  aspect-ratio: auto;
}

.release-shot-wide {
  grid-column: span 2;
}

.release-shot-wide img {
  aspect-ratio: auto;
}

.screenshot-scroll-hint {
  display: none;
}

.release-shot figcaption {
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 12px;
}

.previous-releases {
  padding-top: 64px;
  border-top: 2px solid var(--ink-900);
}

.previous-heading h2 {
  font-family: var(--font-display);
  font-size: 34px;
  margin: 8px 0 40px;
}

.release-previous {
  padding: 42px 0 64px;
  border-top: 1px solid var(--ink-200);
}

.release-previous .release-title {
  font-size: clamp(30px, 4vw, 46px);
}

@media (max-width: 900px) {
  .release-sections {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .screenshot-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 4px 22px;
    scroll-snap-type: x mandatory;
  }

  .release-shot {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: start;
  }

  .release-shot-wide {
    flex-basis: min(88vw, 620px);
  }

  .release-gallery::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 52px;
    right: 0;
    bottom: 22px;
    width: 44px;
    background: linear-gradient(90deg, transparent, var(--paper));
    pointer-events: none;
  }

  .screenshot-scroll-hint {
    position: absolute;
    z-index: 3;
    top: 56px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
  }
}

@media (max-width: 600px) {
  .changelog-body {
    padding: 56px 0 88px;
  }

  .release-title {
    font-size: 38px;
  }

  .release-summary {
    font-size: 18px;
  }
}
