:root {
  color-scheme: light dark;
  --background: #f2f3f5;
  --surface: rgba(255, 255, 255, 0.56);
  --text: #17191b;
  --muted: #60656b;
  --line: rgba(23, 25, 27, 0.13);
  --button: #17191b;
  --button-text: #f7f8f9;
  --focus: #2868d8;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111315;
    --surface: rgba(29, 32, 35, 0.72);
    --text: #f1f2f3;
    --muted: #a8adb3;
    --line: rgba(241, 242, 243, 0.14);
    --button: #f1f2f3;
    --button-text: #17191b;
    --focus: #77a8ff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 80% 16%, rgba(94, 108, 128, 0.12), transparent 32rem),
    var(--background);
  text-rendering: optimizeLegibility;
}

main {
  display: grid;
  min-height: 100dvh;
  padding: clamp(1.25rem, 4vw, 4rem);
  place-items: center;
}

.download {
  display: grid;
  width: min(100%, 68rem);
  min-height: min(40rem, calc(100dvh - 8rem));
  padding: clamp(1.5rem, 4.5vw, 4.5rem);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.58fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(3rem, 8vw, 8rem);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.copy {
  align-self: end;
  max-width: 38rem;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.action {
  display: flex;
  align-self: end;
  align-items: stretch;
  flex-direction: column;
  gap: 1rem;
}

.download-button {
  display: flex;
  min-height: 4rem;
  padding: 1rem 1.15rem 1rem 1.3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--button-text);
  background: var(--button);
  border: 1px solid var(--button);
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.download-button:hover {
  opacity: 0.88;
}

.download-button:active {
  transform: translateY(1px);
}

.download-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.arrow {
  font-size: 1.35rem;
  line-height: 1;
}

.release {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

@media (max-width: 767px) {
  main {
    padding: 1rem;
  }

  .download {
    min-height: calc(100dvh - 2rem);
    padding: 1.5rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    row-gap: 3rem;
  }

  .copy {
    align-self: center;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5.5rem);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .download {
    background: var(--background);
    backdrop-filter: none;
  }
}

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