:root {
  color-scheme: light dark;
  --accent: #4492EA;
  --muted: color-mix(in srgb, CanvasText 54%, Canvas);
  --font-display: "Raleway", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-family: var(--font-body);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: Canvas;
  color: CanvasText;
  font-family: var(--font-body);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

main {
  grid-row: 2;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  position: relative;
  display: inline-block;
  margin: 0;
}

.logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(440px, 80vw);
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .logo::before {
    content: "";
    position: absolute;
    inset: -55% -28%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
      ellipse 52% 48% at 54% 52%,
      rgba(255, 255, 255, 0.11) 0%,
      rgba(255, 255, 255, 0.095) 14%,
      rgba(255, 255, 255, 0.072) 28%,
      rgba(255, 255, 255, 0.048) 42%,
      rgba(255, 255, 255, 0.028) 56%,
      rgba(255, 255, 255, 0.014) 70%,
      rgba(255, 255, 255, 0.005) 84%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .logo::after {
    content: "";
    position: absolute;
    inset: -55% -28%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse 52% 48% at 54% 52%, #000 0%, transparent 92%);
    mask-image: radial-gradient(ellipse 52% 48% at 54% 52%, #000 0%, transparent 92%);
  }
}

.download {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: CanvasText;
}

.app-icon {
  display: block;
  flex-shrink: 0;
}

.app-icon img {
  display: block;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
}

@media (prefers-color-scheme: dark) {
  .app-icon img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  }
}

.download span {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.download:hover span,
.download:focus-visible span {
  color: var(--accent);
}

.download:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

footer {
  grid-row: 3;
  align-self: end;
  padding: 16px 16px 24px;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.015em;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .download span,
  footer a {
    transition: none;
  }
}
