/* Changelog pages share the development journal's fonts, colors and header. */
.changelog-page {
  --changelog-gutter: clamp(18px, 4vw, 48px);
  --changelog-line: #343036;
  --changelog-accent: #c14b3a;
  background: #0a0b0f;
  color: #b7b3bd;
}

.changelog-page .journal-header {
  flex-wrap: wrap;
  gap: 12px 28px;
}

.changelog-page .journal-header nav {
  flex-wrap: wrap;
  gap: 4px clamp(18px, 2.5vw, 35px);
}

.changelog-page .journal-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.changelog-page a:focus-visible,
.changelog-page summary:focus-visible,
.changelog-page button:focus-visible {
  outline: 2px solid #e16d57;
  outline-offset: 4px;
}

.changelog-shell {
  width: calc(100% - 2 * var(--changelog-gutter));
  max-width: 1120px;
  margin-inline: auto;
  padding-block: clamp(42px, 6vw, 80px) clamp(64px, 8vw, 112px);
  min-width: 0;
}

.changelog-heading {
  max-width: 850px;
  margin-bottom: 36px;
}

.changelog-heading h1 {
  margin: 14px 0 24px;
  color: #dfd6db;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.018em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.changelog-heading .eyebrow {
  color: #be7468;
}

.changelog-heading p,
.release-intro {
  max-width: 74ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
}

.changelog-heading p + p,
.release-intro p + p {
  margin-top: 14px;
}

.changelog-shell strong {
  color: #e0d7dc;
  font-weight: 600;
}

.changelog-shell p a,
.change-section li a,
.testing-note a {
  color: #dfaaa0;
  text-decoration: underline;
  text-decoration-color: #75473f;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.changelog-shell p a:hover,
.change-section li a:hover,
.testing-note a:hover {
  color: #f1cec6;
  text-decoration-color: currentColor;
}

.changelog-banner {
  margin: 36px 0 46px;
  overflow: hidden;
  border: 1px solid var(--changelog-line);
  background: #101115;
}

.changelog-banner img {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.changelog-banner figcaption {
  padding: 12px 16px;
  color: #9c939e;
  font-size: 13px;
  line-height: 1.5;
}

.release-list {
  display: grid;
  gap: 22px;
}

.release-card {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 38px);
  border: 1px solid var(--changelog-line);
  border-left: 3px solid #8e2c24;
  background: #101014;
}

.release-card time,
.release-meta time {
  color: #a69ba8;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.release-state {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 0 12px;
  padding: 4px 9px;
  border: 1px solid #6d3935;
  background: #351817;
  color: #e3b1a8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .075em;
  text-transform: uppercase;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.release-title,
.release-title h2,
.release-card > h2 {
  margin: 18px 0 12px;
  color: #d8cfd5;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(29px, 3.7vw, 42px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.release-title a:hover {
  color: #f0d9d5;
}

.release-description,
.release-card p {
  max-width: 80ch;
  font-size: 16px;
  line-height: 1.7;
}

.release-card p + p {
  margin-top: 12px;
}

.release-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #d6a096;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.release-link {
  margin-top: 18px;
}

.back-link {
  margin-bottom: 24px;
}

.release-link:hover,
.back-link:hover {
  color: #efd0c8;
  text-decoration: underline;
}

.changelog-article {
  max-width: 850px;
  min-width: 0;
  margin-inline: auto;
}

.changelog-article .changelog-heading h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.release-meta .release-state {
  margin: 0;
}

.changelog-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 24px;
  margin: 36px 0 12px;
  padding-block: 24px;
  border-top: 1px solid var(--changelog-line);
  border-bottom: 1px solid var(--changelog-line);
}

.changelog-toc h2,
.changelog-toc > p {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  color: #ad9ea9;
  font-family: Barlow, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.changelog-toc a {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  color: #b9adb9;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.changelog-toc a:hover,
.changelog-toc a:focus-visible {
  border-left-color: var(--changelog-accent);
  background: #231515;
  color: #e7d3d1;
}

.change-section {
  padding-top: 38px;
  margin-top: 34px;
  border-top: 1px solid var(--changelog-line);
  scroll-margin-top: 28px;
}

.changelog-toc + .change-section {
  margin-top: 0;
  border-top: 0;
}

.change-section h2 {
  margin: 0 0 20px;
  color: #d1c3cd;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.12;
  letter-spacing: .005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.change-section ul,
.change-section ol {
  margin: 0;
  padding-left: 1.25em;
}

.change-section li {
  padding-left: .3em;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.change-section li:last-child {
  margin-bottom: 0;
}

.change-section li::marker {
  color: #bb5548;
}

.change-section p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
}

.testing-note {
  margin-top: 48px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #52302d;
  border-left: 3px solid #b05243;
  background: #1b1113;
  scroll-margin-top: 28px;
}

.testing-note h2 {
  margin: 0 0 14px;
  color: #deb9b0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.testing-note p,
.testing-note li {
  font-size: 15px;
  line-height: 1.7;
}

.testing-note p + p {
  margin-top: 12px;
}

.testing-note ul {
  margin: 16px 0 0;
  padding-left: 1.2em;
}

.testing-note li + li {
  margin-top: 10px;
}

.changelog-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 28px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--changelog-line);
  color: #9a8f9b;
  font-size: 14px;
  line-height: 1.6;
}

.changelog-footer a {
  display: inline-block;
  padding-block: 12px;
  color: #c7aaa6;
}

.changelog-footer a:hover {
  color: #ecd5ce;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .changelog-page .journal-header {
    padding: 12px var(--changelog-gutter) 14px;
    align-items: flex-start;
    gap: 8px;
  }

  .changelog-page .journal-header nav {
    width: 100%;
    gap: 0 18px;
    font-size: 13px;
  }

  .changelog-page .journal-header nav a {
    display: inline-flex;
  }

  .changelog-heading {
    margin-bottom: 28px;
  }

  .changelog-banner {
    margin-block: 28px 32px;
  }

  .changelog-banner img {
    aspect-ratio: 16 / 10;
  }

  .changelog-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 18px;
  }

  .changelog-toc a {
    padding-block: 11px;
  }

  .change-section {
    margin-top: 28px;
    padding-top: 30px;
  }

  .change-section li {
    padding-left: .15em;
    line-height: 1.7;
  }

  .release-card .release-state {
    margin: 8px 0 0;
  }

  .release-card > time {
    display: block;
  }

  .release-card .release-meta .release-state {
    margin: 0;
  }

  .testing-note {
    padding: 22px 18px;
  }

  .changelog-footer {
    margin-top: 38px;
  }
}

@media print {
  .changelog-page,
  .changelog-shell,
  .release-card,
  .testing-note {
    background: #fff;
    color: #222;
  }

  .changelog-page .journal-header,
  .changelog-toc,
  .back-link,
  .changelog-footer {
    display: none;
  }

  .changelog-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .changelog-shell h1,
  .changelog-shell h2,
  .changelog-shell strong,
  .changelog-shell a {
    color: #111;
  }

  .change-section {
    break-inside: auto;
  }

  .change-section h2 {
    break-after: avoid;
  }
}

/* Banner slideshow (2026-10-30); see photo-cycle.js. */
.changelog-banner {
  position: relative;
}

.changelog-banner > .cycle-controls {
  right: 12px;
  bottom: 12px;
}
