:root {
  --ink: #142418;
  --foam: #f3f7f1;
  --leaf: #2f6b3a;
  --leaf-deep: #1c4024;
  --mist: rgba(244, 249, 241, 0.88);
  --shadow: rgba(12, 28, 16, 0.45);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

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

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

body {
  color: var(--foam);
  font-family: var(--font-body);
  background: var(--leaf-deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: drift 20s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(12, 28, 16, 0.12) 0%,
      rgba(12, 28, 16, 0.22) 48%,
      rgba(12, 28, 16, 0.72) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 0 0 clamp(1.25rem, 5vw, 4.5rem);
  padding: 0 0 clamp(2.5rem, 8vh, 5rem);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--foam);
  text-shadow: 0 10px 40px var(--shadow);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foam);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero__img {
    transform: none;
  }

}

@media (max-width: 640px) {
  .hero {
    align-items: end;
  }

  .hero__img {
    object-position: center 40%;
  }

  .hero__content {
    margin-left: 1.15rem;
    margin-right: 1.15rem;
    width: auto;
  }
}
