:root {
  color-scheme: dark;
  --navy: #0b1627;
  --white: #f8fbff;
  --muted: #d7e0eb;
  --accent: #f1b660;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--white);
  background:
    radial-gradient(ellipse at 50% 48%, #091525e8 0%, #091525a6 48%, #09152530 100%),
    linear-gradient(180deg, #0b1627a0, #0b162742 42%, #0b1627e6 100%),
    var(--navy) url('/assets/reinforcement.webp') 54% center / cover no-repeat;
}

h1, p { margin: 0; }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a:focus-visible { outline: 3px solid var(--white); outline-offset: 5px; }

.skip:focus {
  position: absolute;
  z-index: 1;
  inset: 12px auto auto 12px;
  padding: 12px;
  color: var(--navy);
  background: var(--white);
}

.site-header {
  width: min(78rem, 100%);
  margin-inline: auto;
  padding: 1.2rem clamp(1.4rem, 4vw, 3.5rem) 0;
}

.brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand-glyph {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  overflow: hidden;
}

.brand-glyph img {
  position: absolute;
  width: 5rem;
  height: auto;
  top: -.62rem;
  left: -1.25rem;
}

.hero {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vh, 5rem) 1.4rem clamp(3rem, 13vh, 8rem);
  text-align: center;
}

.hero-content { width: min(100%, 59rem); }

.eyebrow {
  color: #ffd096;
  font-size: .875rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.hero h1 {
  margin-block-start: .7rem;
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 780;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero-description {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
  text-wrap: balance;
}

.download { margin-block-start: clamp(1.65rem, 4vh, 2.55rem); }

.button {
  display: inline-grid;
  min-height: 3.5rem;
  place-items: center;
  padding: .8rem 1.65rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: #172033;
  background: var(--accent);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 9px 28px #0004;
  transition: background-color .16s ease;
}

.button[href]:hover { background: #ffd08b; }

.button[aria-disabled="true"] {
  background: #dac098;
  cursor: default;
}

.hero-content > .button { margin-block-start: 1.65rem; }

.download-challenge:empty { display: none; }
.download-challenge { display: flex; justify-content: center; margin-block-start: .7rem; }

.release-status {
  margin: .7rem auto 0;
  color: var(--muted);
  font-size: .825rem;
  line-height: 1.45;
}

.download-total {
  display: grid;
  justify-items: center;
  gap: .45rem;
  width: min(100%, 24rem);
  margin: clamp(1.8rem, 5vh, 2.85rem) auto 0;
  padding: clamp(.85rem, 2.2vh, 1.4rem) clamp(.9rem, 4vw, 2.4rem);
  border: 1px solid #f0f7ffb0;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #edf5ff 10%, #a9c0e0 100%);
  box-shadow: 0 20px 55px #050e2466, inset 0 1px #fff;
}

.download-count {
  color: #0d2861;
  font-size: clamp(4.65rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.068em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@supports (background-clip: text) {
  .download-count {
    background: linear-gradient(165deg, #285798 5%, #173777 48%, #0a1b42 92%);
    background-clip: text;
    color: transparent;
  }
}

.download-label {
  color: #193455;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .06em;
}

@media (forced-colors: active) {
  .download-count { background: none; color: CanvasText; }
}

@media (max-height: 780px) {
  .hero { padding-block: 1.6rem 2rem; }
  .download-total { margin-block-start: 1.65rem; }
}

@media (max-width: 37rem) {
  body {
    background-position: center, center, 59% center;
  }

  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 4.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}