:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7ff;
  background: #090e1b;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

body::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: clamp(760px, 108vh, 980px);
  content: "";
  background:
    linear-gradient(180deg, rgb(9 14 27 / 42%) 0%, rgb(9 14 27 / 16%) 48%, #090e1b 100%),
    url("./assets/aurora.jpg") center 64% / cover no-repeat,
    radial-gradient(ellipse at 68% 74%, #263f76 0%, #172645 40%, #090e1b 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, summary):focus-visible {
  outline: 2px solid #bfcfff;
  outline-offset: 5px;
}

.page-width {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 77px;
  border-bottom: 1px solid rgb(219 227 255 / 14%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.release,
.requirements,
.site-footer {
  color: #c0cbe5;
  font-size: 13px;
}

.release {
  font-variant-numeric: tabular-nums;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(36px, 7vh, 88px) 24px clamp(42px, 7vh, 72px);
  text-align: center;
}

.app-icon {
  width: clamp(108px, 14vh, 132px);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 15px 32px rgb(0 0 0 / 46%));
}

h1 {
  margin: 0;
  font-size: clamp(64px, 9.6vw, 108px);
  font-weight: 670;
  line-height: 0.97;
  letter-spacing: -0.065em;
  text-indent: -0.065em;
}

.tagline {
  margin: 22px 0 0;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 520;
  line-height: 1.3;
  letter-spacing: -0.032em;
}

.description {
  max-width: 50ch;
  margin: 11px 0 0;
  color: #cbd4ec;
  font-size: 16px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 33px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: #12182a;
  background: #f3f6ff;
  box-shadow: 0 5px 26px rgb(6 9 24 / 26%);
}

.button-primary:hover {
  background: #fff;
  box-shadow: 0 6px 28px rgb(198 215 255 / 26%);
}

.button-secondary {
  background: rgb(25 33 56 / 72%);
  border-color: rgb(220 230 255 / 26%);
}

.button-secondary:hover {
  background: #303d60;
  border-color: #8999c0;
}

.download-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  background: linear-gradient(currentColor, currentColor) center top / 1.5px 9px no-repeat;
  border-bottom: 1.5px solid currentColor;
}

.download-icon::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.external-link-icon {
  color: #bdc9e7;
  font-size: 16px;
  line-height: 1;
}

.requirements {
  margin: 17px 0 0;
  line-height: 1.5;
}

.requirements span {
  margin-inline: 4px;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

.screenshot {
  min-width: 0;
  margin: 0;
}

.screenshot-featured {
  grid-column: 1 / -1;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(219 227 255 / 19%);
  border-radius: 16px;
  background: #12182a;
  box-shadow: 0 18px 50px rgb(4 8 18 / 32%);
}

.screenshot figcaption {
  margin-top: 10px;
  color: #c0cbe5;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer {
  align-items: start;
  min-height: 65px;
  margin-top: 52px;
  padding-block: 15px;
  border-top: 1px solid rgb(219 227 255 / 14%);
}

.installation summary {
  display: list-item;
  width: fit-content;
  padding-block: 8px;
  color: #e2e9fc;
  cursor: pointer;
}

.installation summary:hover {
  color: #fff;
}

.installation p {
  max-width: 440px;
  margin: 2px 0 8px;
  color: #e2e9fc;
  line-height: 1.55;
  text-align: left;
}

.license {
  padding-block: 8px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 62px;
  }

  .site-footer {
    min-height: 59px;
    margin-top: 34px;
  }

  .hero {
    padding-inline: 20px;
  }

  .screenshots {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .screenshot img {
    border-radius: 12px;
  }

  body::before {
    background-position: center, 59% center, center;
  }
}

@media (max-width: 420px) {
  .actions {
    width: min(100%, 290px);
  }

  .button {
    width: 100%;
  }
}

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