* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #2f5206;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #2f5206 url("assets/grass.png") no-repeat
    calc(50% + 849.5px) top / 3386px 2258px;
}

.landing::after {
  position: absolute;
  inset: 859px 0 2px;
  z-index: 1;
  background: linear-gradient(rgb(148 187 69 / 0), #2f5206);
  pointer-events: none;
  content: "";
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 2264px;
  padding-block-start: 162px;
}

.brand {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0;
  padding-block-start: 152px;
}

.brand-mark {
  position: absolute;
  top: -41px;
  left: 50%;
  translate: -50%;
}

.brand-wordmark {
  display: block;
  height: auto;
}

.tagline {
  margin: 16px 16px 0;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
}

.preview {
  /* Let the transparent shadow extend past the viewport on narrow screens. */
  width: min(960px, 132%);
  /* The artwork includes 96px of shadow above the phone. */
  margin-block-start: 24px;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .landing {
    background-position: 26% top;
    background-size: cover;
  }

  .landing::after {
    inset-block-start: 42%;
  }

  .scene {
    min-height: 100svh;
    padding-block: clamp(56px, 12vw, 112px) clamp(56px, 10vw, 96px);
  }

  .brand {
    padding-block-start: 0;
  }

  .brand-mark {
    position: static;
    width: clamp(140px, 28vw, 220px);
    height: auto;
    margin-block-end: -20px;
    translate: none;
  }

  .brand-wordmark {
    width: clamp(126px, 25vw, 198px);
  }

  .tagline {
    max-width: 32ch;
    margin: 12px 24px 0;
    font-size: clamp(19px, 4.5vw, 24px);
    line-height: 1.35;
    text-wrap: balance;
    text-shadow: 0 1px 4px rgb(28 51 8 / 65%);
  }

  .preview {
    margin-block-start: clamp(12px, 4vw, 24px);
  }
}
