:root {
  color-scheme: dark;
  --deep-green: #414833;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--deep-green);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.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;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--deep-green);
}

.landing__background,
.landing__veil {
  position: absolute;
  inset: 0;
}

.landing__background {
  z-index: -2;
  background-image: url("./arambare-lagoa.png");
  background-position: center;
  background-size: cover;
  animation: landscape-drift 16s ease-in-out infinite alternate;
  transform: scale(1.06);
  will-change: transform;
}

.landing__veil {
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(65, 72, 51, 0.16), rgba(65, 72, 51, 0.46) 72%),
    linear-gradient(180deg, rgba(65, 72, 51, 0.25), rgba(35, 41, 27, 0.4));
}

.landing__brand {
  width: min(62vw, 29rem);
  filter: drop-shadow(0 0.7rem 1.6rem rgba(0, 0, 0, 0.28));
  animation: brand-arrival 1.2s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

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

@keyframes landscape-drift {
  0% {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }

  100% {
    transform: scale(1.16) translate3d(2%, 1.3%, 0);
  }
}

@keyframes brand-arrival {
  from {
    opacity: 0;
    transform: translateY(0.7rem) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .landing__background {
    background-position: 62% center;
  }

  .landing__brand {
    width: min(78vw, 22rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__background,
  .landing__brand {
    animation: none;
  }
}
