/* ==========================================================================
   Component · Release notes
   ========================================================================== */

.release-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.release {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  border-top: 1px solid var(--color-hairline);
}

.release-list--single .release {
  border-top: 0;
  padding-top: 0;
}

/* The version column pins itself while its notes scroll past — the same
   shape as a changelog you would read on a desktop, and harmless on a phone
   where the grid has already collapsed to one column. */
.release__header {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}

.release__version {
  font-size: var(--text-card-title);
  line-height: 1.15;
  letter-spacing: var(--tracking-heading);
}

.release__version a:hover {
  color: var(--color-accent);
}

.release__date {
  margin-top: 0.4rem;
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}

.release__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.release__platforms li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.release__body {
  margin-top: 0;
  max-width: 68ch;
}

.release__headline {
  color: var(--color-text-primary);
  font-size: var(--text-sub);
  font-weight: 600;
  line-height: 1.35;
}

.release__body h2:first-child {
  margin-top: 0;
}

@media (max-width: 55em) {
  .release {
    grid-template-columns: minmax(0, 1fr);
  }

  .release__header {
    position: static;
  }
}
