/* The changelog page (docs/RELEASE-NOTES.md). It uses the homepage's colours, masthead and footer from /style.css;
   only its own layout is here, so a weekly release never changes /style.css. */

.changelog .masthead nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; }

.changelog-hero { min-height: clamp(340px, 46vh, 430px); }
.changelog-hero .hero-inner { padding: 120px 0 52px; }
.changelog .changelog-lede { margin-top: 14px; max-width: 45ch; color: #f0f1ee; font-size: 18px; }
.changelog .changelog-status { margin-top: 6px; color: #d7dce0; font-size: 14px; }

.changelog-list { display: flex; flex-direction: column; gap: 56px; padding: 48px 0 64px; }

.changelog-next {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.changelog-next-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.changelog .changelog-next h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.changelog-next-head p { color: var(--muted); font-size: 13px; }
.changelog-next ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-release {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.changelog-when { flex: 0 1 200px; }
.changelog-when p:first-child { font-weight: 600; }
.changelog-when p + p { color: var(--muted); font-size: 14px; }
.changelog-body { display: flex; flex: 999 1 560px; flex-direction: column; gap: 24px; min-width: 0; max-width: 760px; }
.changelog .changelog-body h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.changelog-body h2 a { color: inherit; text-decoration: none; }
.changelog-body h2 a:hover { text-decoration: underline; }
.changelog .changelog-earlier h2 { font-size: 22px; line-height: 1.3; }
.changelog-earlier .changelog-body p { color: var(--muted); }
.changelog-body img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.changelog-note { padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 14px; }

.changelog-section { display: flex; flex-direction: column; gap: 10px; }
.changelog-section h3 {
  margin: 0;
  color: var(--muted);
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.changelog-section ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 18px; }
.changelog li strong { font-weight: 650; }

.changelog footer nav a[aria-current="page"] { font-weight: 600; }

@media (max-width: 740px) {
  .changelog-hero { min-height: 330px; }
  .changelog-hero .hero-inner { padding: 104px 0 40px; }
  .changelog-next ul { grid-template-columns: 1fr; }
  .changelog-list { gap: 44px; padding-top: 32px; }
  .changelog-release { gap: 10px; padding-top: 28px; }
}
.changelog .changelog-follow { margin-top: 14px; font-size: 14px; }
.changelog .changelog-follow a { color: #f0f1ee; font-weight: 500; }
.changelog footer .x-link { display: inline-flex; align-items: center; gap: 6px; }
.changelog .x-logo { width: 13px; height: 13px; fill: currentColor; flex: none; }
