*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
  background: #2f4a38;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Full-viewport background as a fixed layer (avoids iOS
   background-attachment: fixed bugs). */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Uniform 15% black overlay over the full background image. */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.shell {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 0;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

h1 {
  margin: 0 0 2.75rem;
  font-size: 0;
  line-height: 0;
}

/* Crop the source PNG's transparent padding so the wordmark
   lines up with the left edge of the text. */
.logo-frame {
  display: block;
  position: relative;
  width: min(13rem, 80vw);
  aspect-ratio: 261 / 38;
  overflow: hidden;
}

.logo {
  position: absolute;
  width: calc(300 / 261 * 100%);
  height: auto;
  left: calc(-19 / 261 * 100%);
  top: calc(-55 / 38 * 100%);
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.copy {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.copy p {
  margin: 0;
}

.copy p + p {
  margin-top: 1.5rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

footer {
  padding: 1.25rem 0 1.5rem;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

@media (min-width: 700px) {
  .shell {
    padding: 2rem 2.5rem 0;
  }
}

@media (max-height: 500px) {
  main {
    padding: 1.25rem 0 1.5rem;
  }

  h1 {
    margin-bottom: 1.5rem;
  }
}
