/* Current product features and changelog */
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links .nav-download {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 0 21px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
  box-shadow: 0 7px 18px #1616141f;
  transition: transform 0.16s, background 0.16s, box-shadow 0.16s;
}

.nav-download-icon {
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-links .nav-download:hover {
  color: #fff;
  background: #30302d;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px #16161429;
}

.nav-links .nav-download:focus-visible {
  outline: 3px solid #315fc459;
  outline-offset: 4px;
}

.features {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 128px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 80px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 480px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 245px;
  padding: 31px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-number {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.feature-grid h3 {
  margin: 44px 0 10px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.section-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
}

.section-link:hover {
  border-color: var(--blue);
}

.section-link:focus-visible {
  outline: 3px solid #315fc459;
  outline-offset: 5px;
}

.latest-release {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: end;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 58px 60px;
  border-radius: 28px;
  color: #fff;
  background: var(--blue);
}

.latest-release .eyebrow {
  color: #ffffffb8;
}

.latest-release h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.latest-release p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: #ffffffc9;
  font-size: 16px;
  line-height: 1.7;
}

.release-actions {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.latest-release .button.primary {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.latest-release .button.primary:hover {
  background: var(--paper);
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid #ffffff6b;
  font-size: 13px;
  font-weight: 750;
}

.text-link span {
  margin-left: 6px;
}

.text-link:focus-visible {
  outline: 3px solid #ffffff8c;
  outline-offset: 6px;
}

.opening-help {
  max-width: 550px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: #ffffff70;
  font-size: 12px;
  line-height: 1.55;
}

.opening-help strong {
  color: var(--ink);
}

.opening-help a,
.source-note a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #315fc459;
  text-underline-offset: 3px;
}

.opening-help a:focus-visible,
.source-note a:focus-visible {
  outline: 3px solid #315fc459;
  outline-offset: 4px;
}

.opening-guide {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  width: min(1180px, 100% - 40px);
  margin: 110px auto 0;
  padding: 70px 68px 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fffdf8b8;
  box-shadow: 0 22px 60px #312b230d;
  scroll-margin-top: 28px;
}

.opening-guide-intro h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 4.7rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.opening-guide-intro > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.opening-guide-intro .source-note {
  font-size: 13px;
}

.opening-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opening-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.opening-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.opening-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.opening-steps strong {
  font-size: 15px;
}

.opening-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.opening-safety {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding: 15px 18px;
  border-radius: 12px;
  color: #5a4a30;
  background: #eecf8c45;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.55;
}

.content-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  align-items: end;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 112px 0 116px;
  border-bottom: 1px solid var(--line);
}

.content-hero h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 8.4vw, 8rem);
}

.content-hero-copy > p:first-child {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.content-hero-copy .compatibility {
  margin-top: 16px;
}

.feature-family {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.feature-family.alt {
  padding-right: 48px;
  padding-left: 48px;
  background: #ffffff52;
}

.family-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 65px;
  align-items: start;
  margin-bottom: 56px;
}

.family-heading .eyebrow {
  margin-top: 7px;
}

.family-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-grid article {
  min-height: 260px;
  padding: 34px 35px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid h3 {
  margin: 42px 0 12px;
  font-size: 23px;
  font-weight: 770;
  letter-spacing: -0.03em;
}

.detail-grid p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-grid code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #1616140d;
}

.next-page {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 82px 0;
}

.next-page h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
}

.install-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: min(1180px, 100% - 40px);
  margin: 90px auto 0;
  padding: 58px 60px;
  border-radius: 26px;
  color: #fff;
  background: var(--blue);
}

.install-panel h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.install-panel .eyebrow {
  color: #ffffffb8;
}

.install-panel > div > p:not(.eyebrow),
.install-note p {
  margin: 22px 0 0;
  color: #ffffffc9;
  font-size: 14px;
  line-height: 1.7;
}

.install-note {
  align-self: center;
  padding: 28px;
  border: 1px solid #ffffff40;
  border-radius: 18px;
  background: #ffffff12;
}

.install-note strong {
  font-size: 17px;
}

.install-note a {
  display: inline-flex;
  gap: 7px;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ffffff80;
  font-size: 13px;
  font-weight: 760;
}

.workflow {
  width: min(1180px, 100% - 40px);
  margin: 110px auto;
  border-top: 1px solid var(--line);
}

.workflow article {
  display: grid;
  grid-template-columns: 80px 1fr 0.65fr;
  gap: 50px;
  align-items: center;
  min-height: 310px;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-number {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.workflow-copy .eyebrow {
  margin-bottom: 17px;
}

.workflow-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
}

.workflow-copy > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.workflow-example {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 155px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff8c;
  box-shadow: 0 16px 42px #312b230d;
}

.workflow-example span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workflow-example strong {
  margin-top: 16px;
  font-size: 17px;
}

.workflow-example small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.workflow-example.complete span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: #54a26c;
  font-size: 14px;
}

.output-explainer {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: 70px 65px;
  border-radius: 26px;
  background: #e9553f12;
}

.output-explainer h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.output-explainer > div:last-child p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.output-explainer > div:last-child p + p {
  margin-top: 22px;
}

footer div {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.changelog-hero {
  width: min(980px, 100% - 40px);
  margin: 0 auto;
  padding: 110px 0 96px;
}

.changelog-hero h1 {
  font-size: clamp(4.3rem, 10vw, 8.8rem);
}

.changelog-hero > p:not(.eyebrow) {
  max-width: 630px;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.release-list {
  width: min(980px, 100% - 40px);
  margin: 0 auto 130px;
  border-top: 1px solid var(--line);
}

.release-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding: 52px 0 58px;
  border-bottom: 1px solid var(--line);
}

.release-entry.latest {
  background: linear-gradient(90deg, #e9553f0d, transparent 75%);
}

.release-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.version {
  font-size: 30px;
  font-weight: 790;
  letter-spacing: -0.045em;
}

.release-meta time {
  color: var(--muted);
  font-size: 12px;
}

.latest-label {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.release-copy h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 770;
  letter-spacing: -0.035em;
}

.release-copy > p {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.release-copy ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.release-copy li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--line);
  color: #4e4b45;
  font-size: 14px;
  line-height: 1.55;
}

.release-copy li::before {
  position: absolute;
  top: 19px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.release-copy code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #1616140d;
  font-size: 0.9em;
}

.changelog-closing {
  margin-top: 0;
}

@media (width <= 900px) {
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading .eyebrow {
    grid-column: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-release {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .opening-guide {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .content-hero,
  .family-heading,
  .install-panel,
  .output-explainer {
    grid-template-columns: 1fr;
  }

  .content-hero {
    gap: 45px;
    align-items: start;
  }

  .family-heading,
  .install-panel,
  .output-explainer {
    gap: 38px;
  }

  .workflow article {
    grid-template-columns: 55px 1fr;
  }

  .workflow-example {
    grid-column: 2;
  }
}

@media (width <= 700px) {
  .nav-links {
    gap: 18px;
  }

  .features {
    width: min(100% - 28px, 1180px);
    padding: 84px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 210px;
  }

  .latest-release {
    width: min(100% - 28px, 1180px);
    padding: 42px 28px;
    border-radius: 22px;
  }

  .opening-guide {
    width: min(100% - 28px, 1180px);
    margin-top: 74px;
    padding: 44px 28px 28px;
    border-radius: 22px;
  }

  .content-hero,
  .feature-family,
  .next-page,
  .install-panel,
  .workflow,
  .output-explainer {
    width: min(100% - 28px, 1180px);
  }

  .content-hero {
    padding: 74px 0 80px;
  }

  .feature-family {
    padding: 78px 0;
  }

  .feature-family.alt {
    padding-right: 24px;
    padding-left: 24px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid article {
    min-height: 230px;
  }

  .next-page {
    flex-direction: column;
    align-items: flex-start;
    padding: 65px 0;
  }

  .install-panel,
  .output-explainer {
    padding: 42px 28px;
    border-radius: 22px;
  }

  .workflow {
    margin-top: 75px;
    margin-bottom: 75px;
  }

  .workflow article {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding: 44px 0;
  }

  .workflow-example {
    grid-column: auto;
  }

  .changelog-hero,
  .release-list {
    width: min(100% - 28px, 980px);
  }

  .changelog-hero {
    padding: 74px 0 64px;
  }

  .release-entry {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 48px;
  }

  .release-meta {
    flex-flow: row wrap;
    align-items: center;
  }
}

@media (width <= 600px) {
  .nav-links a {
    display: none;
  }

  .nav-links a:last-child,
  .nav-links a[aria-current="page"] {
    display: inline;
  }

  .section-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .latest-release {
    gap: 38px;
  }

  .opening-help a {
    display: block;
    margin-top: 4px;
  }

  .nav-links .nav-download {
    display: inline-flex;
    gap: 7px;
    min-height: 42px;
    padding: 0 11px;
    font-size: 11px;
  }

  .nav-links a[aria-current="page"]:not(.nav-download) {
    display: none;
  }

  .nav-download-icon {
    font-size: 17px;
  }

  .content-hero h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .family-heading h2,
  .next-page h2 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  footer div {
    justify-content: flex-start;
  }
}
