.app-page {
  --app-wine: #8f3e4a;
  --app-wine-dark: #642c36;
  --app-green: #47735d;
  --app-ice: #e7efec;
  --app-yellow: #f0bd5d;
  background: #fbfcfa;
}

.app-header {
  color: var(--white);
  left: 0;
  padding: 1.25rem var(--page-gutter);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
}

.app-header-inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.app-nav {
  align-items: center;
  display: flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 1.25rem;
}

.app-nav a {
  border-bottom: 1px solid transparent;
  padding: 0.2rem 0;
}

.app-nav a:focus-visible,
.app-nav a:hover {
  border-color: currentColor;
}

.app-hero {
  align-items: center;
  background-color: var(--green-dark);
  color: var(--white);
  display: flex;
  min-height: 700px;
  overflow: hidden;
  padding: 8rem var(--page-gutter) 5rem;
  position: relative;
}

.app-hero::before {
  background-image: url("/assets/vocab-arcade/home.png");
  background-position: calc(50% + 25rem) 12%;
  background-repeat: no-repeat;
  background-size: 58rem auto;
  content: "";
  inset: 0;
  opacity: 0.78;
  position: absolute;
}

.app-hero::after {
  background: rgba(8, 25, 21, 0.7);
  content: "";
  inset: 0;
  position: absolute;
}

.app-hero-inner {
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.app-kicker {
  color: var(--app-yellow);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.app-hero h1 {
  font-size: 5rem;
  margin-bottom: 1.35rem;
}

.app-hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  max-width: 610px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.app-button-store {
  background: var(--app-yellow);
  color: #251708;
}

.app-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.app-button-store:focus-visible,
.app-button-store:hover,
.app-button-secondary:focus-visible,
.app-button-secondary:hover {
  outline-color: rgba(240, 189, 93, 0.55);
}

.app-intro {
  margin: 0 auto;
  max-width: 1180px;
  padding: 6.5rem var(--page-gutter);
}

.app-section-heading {
  max-width: 720px;
}

.app-section-heading h2 {
  font-size: 3rem;
}

.app-section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

.app-game-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4rem;
}

.app-game-list article {
  min-width: 0;
  padding: 2.25rem 2rem 2.25rem 0;
}

.app-game-list article + article {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.app-game-list h3 {
  color: var(--app-wine);
  font-size: 1.35rem;
}

.app-game-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.app-screens {
  background: #132721;
  color: var(--white);
  padding: 6.5rem var(--page-gutter);
}

.app-screens-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.app-section-heading-light > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.app-screen-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4rem;
}

.app-screen-grid figure {
  margin: 0;
  min-width: 0;
}

.app-screen-grid img {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: block;
  height: auto;
  width: 100%;
}

.app-screen-grid figcaption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  margin-top: 1rem;
}

.app-contact {
  background: var(--app-wine-dark);
  color: var(--white);
  scroll-margin-top: 2rem;
}

.app-contact-inner {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 5.5rem var(--page-gutter);
}

.app-contact h2 {
  font-size: 2.6rem;
}

.app-contact-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.app-contact-copy a {
  color: var(--white);
  font-weight: 750;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.app-text-link {
  display: inline-block;
  margin-top: 1.25rem;
}

.app-footer {
  max-width: 1180px;
}

#games,
#screens {
  scroll-margin-top: 1.5rem;
}

@media (max-width: 780px) {
  .app-header {
    padding: 1.1rem;
  }

  .app-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .app-nav {
    font-size: 0.84rem;
    gap: 1rem;
    max-width: 100%;
  }

  .app-hero {
    align-items: flex-end;
    min-height: 680px;
    padding: 10rem 1.1rem 4rem;
  }

  .app-hero::before {
    background-position: center -14rem;
    background-size: 31rem auto;
    opacity: 0.58;
  }

  .app-hero::after {
    background: rgba(8, 25, 21, 0.78);
  }

  .app-hero h1 {
    font-size: 3.5rem;
  }

  .app-hero-copy {
    font-size: 1.08rem;
  }

  .app-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-actions .button {
    width: 100%;
  }

  .app-intro,
  .app-screens {
    padding: 4.5rem var(--page-gutter);
  }

  .app-section-heading h2 {
    font-size: 2.15rem;
  }

  .app-game-list {
    display: block;
    margin-top: 2.75rem;
  }

  .app-game-list article {
    padding: 1.6rem 0;
  }

  .app-game-list article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .app-screen-grid {
    gap: 1rem;
    grid-auto-columns: minmax(15rem, 78vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-right: calc(var(--page-gutter) * -1);
    overflow-x: auto;
    padding-bottom: 1rem;
    padding-right: var(--page-gutter);
    scroll-snap-type: x mandatory;
  }

  .app-screen-grid figure {
    scroll-snap-align: start;
  }

  .app-contact-inner {
    display: block;
    padding: 4.5rem var(--page-gutter);
  }

  .app-contact h2 {
    font-size: 2.15rem;
  }

  .app-contact-copy {
    margin-top: 2rem;
  }
}

@media (max-width: 430px) {
  .app-nav {
    gap: 0.75rem;
  }

  .app-hero h1 {
    font-size: 3rem;
  }
}
