/* Hallmark · shape: Index-First · genre: modern-minimal · theme: brand (locked docs/design.md) · redesign: full
 * hero: Index · nav: existing MCPMate mega-menu · footer: existing sitemap · signature: the version aligned beside its Free and Pro notes
 * axes: light/grotesk-sans/warm · posture: restrained · job: read releases · imagery: none · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H5 E4 S4 R5 V4 · weakest: S, a version beside an empty layout; the plugin's notes supply the structure. */
/* Hallmark · hero-review: fix · tighter mobile spacing · finish-review: in-thread · ship · compact header fixed at 320px. */
/* Hallmark · waive 59 · release rows separated by rules · the short introduction leads directly into the version history. */
/* Hallmark · dropped "Next version" · the actual 1.0.0 notes replace the layout sample. */
/* Hallmark · dropped "No releases published yet" · the empty state appears only when no public version is available. */

:root {
  --changelog-display: clamp(2.875rem, 1.65rem + 3.7vw, 5rem);
  --changelog-version: clamp(2.625rem, 1.9rem + 2.5vw, 4.5rem);
  --changelog-column-gap: var(--space-9);
}

html, body { overflow-x: clip; }

.changelog-hero { padding-block: var(--space-5) var(--space-7); }
.changelog-hero .breadcrumb { margin-bottom: var(--space-6); }

.changelog-intro,
.changelog-history .tl-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--changelog-column-gap);
}

.changelog-intro h1 {
  min-width: 0;
  font-size: var(--changelog-display);
  font-weight: var(--weight-bold);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.changelog-intro-copy {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: var(--space-4);
}

.changelog-intro-copy .lead {
  max-width: 45ch;
  margin: 0;
  font-size: var(--step-md);
  text-wrap: balance;
}

.changelog-intro-copy .btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.changelog-history { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.changelog-history .timeline { margin: 0; padding: 0; list-style: none; }

.changelog-history .tl-item {
  align-items: start;
  padding-block: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.release-meta h3 {
  min-width: 0;
  font-size: var(--changelog-version);
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.release-meta :is(p, time) {
  display: block;
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--step-sm);
}

.release-edition + .release-edition {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.release-edition-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.release-edition-title h4 {
  color: var(--text-primary);
  font-size: var(--step-xl);
}
.release-edition-title .badge { font-weight: var(--weight-medium); }

.release-notes {
  display: grid;
  gap: var(--space-2);
  max-width: 64ch;
  margin: var(--space-3) 0 0;
  padding-inline-start: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--step-base);
  line-height: 1.6;
}

.release-notes li::marker { color: var(--text-muted); }

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.changelog-history .changelog-empty {
  max-width: none;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 21em) {
  .header-inner { gap: var(--space-2); }
  .header-cta { padding-inline: var(--space-2); }
  .header-cta::after { display: none; }
}

@media (min-width: 56em) {
  .changelog-hero { padding-block: var(--space-7) var(--space-8); }
  .changelog-hero .breadcrumb { margin-bottom: var(--space-7); }
  .changelog-intro,
  .changelog-history .tl-item { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .changelog-intro h1 { max-width: 12ch; }
  .changelog-history .tl-item { padding-block: var(--space-7); }
}
