:root {
  color-scheme: dark;
  background: #202027;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  background: #202027;
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    url("assets/campfire-background.jpg") center 55% / cover no-repeat,
    #202027;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.hero::before {
  background:
    linear-gradient(
      180deg,
      rgb(15 15 21 / 58%) 0%,
      rgb(17 17 23 / 26%) 32%,
      transparent 58%
    );
}

.hero::after {
  box-shadow: inset 0 0 12vw 2vw rgb(0 0 0 / 30%);
}

.promo {
  width: min(92vw, 760px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(36px, 7svh, 78px);
  text-align: center;
}

.promo__logo {
  display: block;
  width: min(55vw, 650px);
  height: auto;
  filter: drop-shadow(0 7px 14px rgb(0 0 0 / 45%));
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.promo__message {
  margin: clamp(15px, 2.2svh, 24px) 0 clamp(16px, 2.5svh, 27px);
  color: #fff;
  font-size: clamp(24px, 2.15vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 3px 10px rgb(0 0 0 / 85%);
}

.promo__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.store-links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
}

.store-badge {
  height: clamp(58px, 5.5vw, 72px);
  aspect-ratio: 2.88 / 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 13px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #050505;
  color: #fff;
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.store-badge:hover,
.store-badge:focus-visible {
  filter: drop-shadow(0 8px 14px rgb(0 0 0 / 52%)) brightness(1.08);
  transform: translateY(-2px);
}

.store-badge:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.google-play-mark,
.apple-mark {
  width: 32px;
  max-height: 43px;
  flex: 0 0 auto;
}

.apple-mark {
  width: 30px;
  margin-left: 1px;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  white-space: nowrap;
}

.store-badge__copy small {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.store-badge__copy strong {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .hero {
    background-position: 35% center;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgb(12 12 18 / 68%) 0%,
        rgb(15 15 21 / 38%) 39%,
        transparent 61%
      );
  }

  .hero::after {
    box-shadow: inset 0 0 20vw 5vw rgb(0 0 0 / 34%);
  }

  .promo {
    width: 100%;
    padding:
      max(30px, calc(env(safe-area-inset-top) + 20px))
      18px
      20px;
  }

  .promo__logo {
    width: min(91vw, 430px);
  }

  .promo__message {
    margin: 18px 0 20px;
    font-size: clamp(23px, 7vw, 30px);
  }

  .store-links {
    flex-direction: column;
    gap: 11px;
  }

  .store-badge {
    width: 196px;
    height: 68px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .promo {
    width: min(62vw, 620px);
    margin-left: 28vw;
    padding-top: 24px;
  }

  .promo__logo {
    width: min(38vw, 480px);
  }

  .promo__message {
    margin: 10px 0 13px;
    font-size: 23px;
  }

  .store-badge {
    height: 55px;
  }
}

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