:root {
  color-scheme: dark;
  --canvas: #090a0c;
  --surface: #15171b;
  --line: #2d3036;
  --ink: #f5f5f7;
  --muted: #a7adb9;
  --blue: #8abaff;
  --action: #c0d9ff;
  --gutter: clamp(18px, 5vw, 64px);
  --content: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
#top, #downloads, #updates { scroll-margin-top: 72px; }

.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masthead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.masthead-content, .hero, .sections, footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--content));
  margin-inline: auto;
}

.masthead-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.brand, .masthead nav, .masthead nav a { display: flex; align-items: center; }
.brand {
  gap: 9px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 690;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { flex: none; }
.nova { color: var(--blue); }
.masthead nav { gap: clamp(12px, 2.5vw, 28px); }

.masthead nav a {
  min-height: 44px;
  font-size: .8125rem;
  font-weight: 510;
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover, .masthead .nav-download { color: var(--ink); }
.masthead .nav-download { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; }
.masthead .nav-download:hover { background: var(--surface); }

.hero {
  display: grid;
  justify-items: center;
  row-gap: clamp(12px, 2.3vw, 24px);
  padding-block: clamp(58px, 7vw, 100px) clamp(68px, 8vw, 112px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 7vw, 6.75rem);
  font-weight: 700;
  letter-spacing: -.059em;
  line-height: .96;
}

.hero-copy p {
  max-width: 34ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.4375rem);
  line-height: 1.35;
  letter-spacing: -.022em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 29px;
}

.hero-updates, .download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: .9375rem;
  text-decoration: none;
}

.hero-updates { color: var(--blue); font-weight: 550; }
.hero-updates:hover { text-decoration: underline; text-underline-offset: 4px; }

.download-link {
  gap: 9px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--action);
  color: #101a2b;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .16s ease-out;
}

.download-link:hover { background: #dceaff; }
.download-link:active { background: #a9c7f3; }
.download-link .icon { width: 16px; height: 16px; }

.hero-mark {
  display: block;
  width: clamp(124px, 15vw, 184px);
  height: auto;
}

.sections { border-block: 1px solid var(--line); }

.download-section, .updates-section {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.65fr);
  gap: 24px clamp(22px, 5vw, 80px);
  padding-block: clamp(38px, 6vw, 78px);
}

.updates-section { border-top: 1px solid var(--line); }

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: 675;
  line-height: 1.05;
  letter-spacing: -.047em;
}

.release, .release-entry time {
  color: var(--muted);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}

.release { margin: 9px 0 0; }

.downloads {
  margin: 0;
  padding: 0 clamp(12px, 2.4vw, 24px);
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.download-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(9px, 1.65vw, 20px);
  min-height: 79px;
  padding-block: 13px;
}

.download-row + .download-row { border-top: 1px solid var(--line); }
.platform-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.platform h3, .platform p { margin: 0; }
.platform h3 { font-size: 1.0625rem; font-weight: 625; }
.platform p, .availability { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.platform p { margin-top: 4px; }
.availability { text-align: end; max-width: 13ch; }
.download-row .download-link { font-size: .8125rem; }

.release-entry { min-width: 0; }
.release-entry header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.release-entry h3 { margin: 0; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.release-entry p, .release-entry ul { max-width: 65ch; line-height: 1.55; }
.release-entry p { margin: 14px 0 10px; }
.release-entry ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.release-entry li + li { margin-top: 5px; }

footer { padding-block: 18px 34px; }

summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}

summary::-webkit-details-marker { display: none; }
summary:hover, details[open] summary { color: var(--ink); }
summary .icon { width: 15px; height: 15px; transition: transform .16s ease-out; }
details[open] summary .icon { transform: rotate(45deg); }
footer p { max-width: 60ch; margin: 4px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }

@media (max-width: 720px) {
  .download-section, .updates-section { grid-template-columns: 1fr; }
}

@media (max-width: 365px) {
  .brand img { width: 24px; height: 24px; }
  .brand { gap: 5px; font-size: 1rem; }
  .masthead nav { gap: 9px; }
  .masthead nav a { font-size: .75rem; }
  .masthead .nav-download { padding-inline: 8px; }
  .download-row .download-link { padding-inline: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-mark { animation: reveal .38s ease-out both; }
  @keyframes reveal {
    from { opacity: .65; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
