/* Release notes and the homepage's latest-update section. */
.cw-release-eyebrow {
  color: #f3c969;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  line-height: 1.8;
}

.cw-changelog {
  position: relative;
  z-index: 1;
  padding: 0 5vw 80px;
}

.cw-changelog-hero {
  max-width: 940px;
  margin: 120px auto 0;
  padding: clamp(40px, 6vh, 70px) 0 36px;
  text-align: center;
}

.cw-changelog h1,
.cw-release h2,
.cw-update-card h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  color: #f6eddc;
}

.cw-changelog h1 {
  margin: 18px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.cw-changelog-hero p,
.cw-release-heading p,
.cw-update-card p {
  color: #b9ac98;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.cw-release {
  max-width: 940px;
  margin: 0 auto;
  background: linear-gradient(160deg, #20170f, #100c08 36%);
  border: 1px solid #5e4629;
  border-top: 3px solid #f3c969;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.cw-release-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) 24px;
}

.cw-release-badge {
  display: inline-block;
  padding: 6px 9px;
  background: #2c2412;
  border: 1px solid #766031;
  color: #f3d58e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.cw-release h2 {
  margin: 16px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.cw-release h2 span { color: #f3c969; }
.cw-release-permalink { flex-shrink: 0; font-size: 13px; color: #b9ac98; padding: 7px 0; }

.cw-pack-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin: 0;
  padding: 20px clamp(20px, 4vw, 44px);
  background: rgba(0, 0, 0, .22);
  border-block: 1px solid rgba(243, 201, 105, .12);
}

.cw-pack-versions dt { color: #b9ac98; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.cw-pack-versions dd { margin: 6px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.cw-pack-versions dd span { padding: 0 10px; color: #9c8d78; }
.cw-pack-versions strong { color: #9aeaab; }

.cw-release-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px clamp(20px, 4vw, 44px) 0;
}

.cw-release-topics a {
  padding: 9px 12px;
  color: #e6d5b7;
  border: 1px solid #4b3824;
  background: #20170f;
  font-size: 13px;
  text-decoration: none;
}

.cw-release-topics a:hover { border-color: #f3c969; background: #302414; }
.cw-release a:focus-visible,
.cw-update-link:focus-visible { outline: 2px solid #f3c969; outline-offset: 4px; }

.cw-release-notes { padding: 0 clamp(20px, 4vw, 44px); }
.cw-release-notes section { padding: 32px 0; }
.cw-release-notes section + section { border-top: 1px solid rgba(243, 201, 105, .15); }
.cw-release,
.cw-release-notes section,
#changelog-title { scroll-margin-top: 130px; }

.cw-release-notes h3 {
  margin: 0 0 16px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: #f3d58e;
}

.cw-release-notes ul { margin: 0; padding-left: 21px; }
.cw-release-notes li { padding-left: 5px; color: #d7cbb9; font-size: 16px; line-height: 1.75; }
.cw-release-notes li + li { margin-top: 10px; }
.cw-release-notes li::marker { color: #b98b44; }
.cw-release-notes strong { color: #f6eddc; }

.cw-release-tip {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid #6fc4ff;
  background: rgba(111, 196, 255, .06);
  color: #c4d3dd;
  font-size: 14px;
  line-height: 1.7;
}

.cw-release-tip > strong { color: #a9dcff; }
.cw-release-tip p { margin: 6px 0 0; }
.cw-release-end { padding: 20px clamp(20px, 4vw, 44px); border-top: 1px solid #4b3824; text-align: right; }
.cw-release-end a { color: #f3d58e; font-size: 14px; text-underline-offset: 4px; }

.cw-update-section { position: relative; z-index: 4; padding: 0 5vw 64px; }
.cw-update-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px);
  background: linear-gradient(120deg, #302214, #171009);
  border: 1px solid #69502e;
  border-left: 3px solid #f3c969;
}

.cw-update-card > div { flex: 1 1 440px; }
.cw-update-card h2 { margin: 12px 0 10px; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.15; }
.cw-update-card p { max-width: 640px; font-size: 15px; }
.cw-update-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #f3d58e;
  border: 1px solid #a28248;
  background: #251b0e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cw-update-link:hover { background: #3a2a14; }

@media (max-width: 1080px) {
  .cw-release,
  .cw-release-notes section,
  #changelog-title { scroll-margin-top: 24px; }
}

@media (max-width: 480px) {
  .cw-release-heading { flex-wrap: wrap; }
  .cw-release-permalink { padding: 0; }
  .cw-update-link { justify-content: center; width: 100%; }
}
