:root {
  color-scheme: dark;
  --background: #111318;
  --text: #f7f8fa;
  --muted: #bfc0ca;
  --line: #333540;
  --lime: #b7ff4a;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.5 Inter, system-ui, sans-serif;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }

.wrap {
  width: min(100% - 6rem, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--lime);
  color: var(--background);
}

.skip-link:focus { transform: none; color: var(--background); }

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

.site-header {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; border-radius: .25rem; }

.download {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.download h1 {
  margin: 0;
  font-size: clamp(3.25rem, 6.7vw, 6.25rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.077em;
}

.download h1 span { display: block; color: var(--lime); }

.download-copy p {
  max-width: 31ch;
  margin: 1.375rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .75rem;
  margin-top: 1.75rem;
}

.app-store { display: block; border-radius: .5rem; }
.app-store:hover, .play-store:hover { box-shadow: 0 0 0 1px var(--lime); }

.play-store {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 3.25rem;
  padding: .25rem .75rem;
  border: 1px solid #646570;
  border-radius: .5rem;
  background: #050808;
  color: var(--muted);
  line-height: 1.25;
}

.play-store strong { color: var(--text); font-size: .9375rem; font-weight: 650; }
.play-store span { display: block; margin-bottom: .125rem; font-size: .875rem; }

.screens {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 1.25rem);
  padding: clamp(.875rem, 2.8vw, 2.5rem);
  border: 1px solid #343044;
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse at 50% 42%, #352258 0%, transparent 75%),
    linear-gradient(145deg, #201a2b, #17171e 72%);
}

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

.screen img {
  width: 100%;
  border: 1px solid #605671;
  border-radius: clamp(.625rem, 1.5vw, 1.25rem);
  background: #191625;
  box-shadow: 0 .75rem 1.75rem #0b081780;
}

.screen-featured img { border-color: #8a739b; }

.screen figcaption {
  margin-top: .65rem;
  color: #d9d5e1;
  font-size: .875rem;
  font-weight: 650;
  text-align: center;
}

.site-footer {
  flex-wrap: wrap;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.site-footer small { font-size: inherit; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (max-width: 60rem) {
  .wrap { width: min(100% - 3rem, 78rem); }
  .download { gap: 1.75rem; }
  .download h1 { font-size: clamp(3rem, 7.25vw, 4.75rem); }
}

@media (max-width: 47.5rem) {
  .download {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;
    padding-block: 2.75rem;
  }

  .download-copy { text-align: center; }
  .download-copy p { margin-inline: auto; }
  .stores { justify-content: center; }
  .screens { width: min(100%, 34rem); }
}

@media (max-width: 26rem) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { padding-block: .875rem; }
  .brand img { width: 8.75rem; }
  .download { padding-block: 2.125rem; }
  .stores { gap: .5rem; }
  .app-store img { width: 8.75rem; height: auto; }
  .play-store { min-height: 2.9rem; }
  .screen figcaption { font-size: .8125rem; }
}
