:root {
  --green: #006b35;
  --ink: #202020;
  --paper: #fbfef8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hero {
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: start center;
  background:
    var(--paper) url("keyssim-background-v4.png") center bottom / cover
      no-repeat;
}

.hero__content {
  display: flex;
  width: min(100%, 54rem);
  padding: clamp(3rem, 8vh, 5rem) 1.5rem 2rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  position: relative;
  width: min(74vw, 37rem);
  height: clamp(9.25rem, 23vh, 12rem);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand img {
  position: absolute;
  top: -43%;
  left: -5%;
  display: block;
  width: 110%;
  height: auto;
  mix-blend-mode: multiply;
}

h1 {
  margin: clamp(1.3rem, 4vh, 2.6rem) 0 0;
  color: var(--green);
  font-size: clamp(1.8rem, 4.1vw, 3rem);
  font-weight: 400;
  letter-spacing: clamp(0.15em, 0.8vw, 0.26em);
  line-height: 1.1;
  text-transform: uppercase;
}

.tagline {
  margin: clamp(2rem, 4.5vh, 3rem) 0 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .hero {
    background-position: center bottom;
  }

  .hero__content {
    padding: clamp(2rem, 6vh, 3.25rem) 1rem 2rem;
  }

  .brand {
    width: min(94vw, 31rem);
    height: clamp(7.5rem, 19vh, 9.25rem);
  }

  .brand img {
    top: -30%;
  }

  h1 {
    margin-top: clamp(0.8rem, 2.5vh, 1.4rem);
    font-size: clamp(1.55rem, 7.1vw, 2rem);
    letter-spacing: 0.12em;
  }

  .tagline {
    max-width: 28rem;
    margin-top: clamp(1.6rem, 4vh, 2.35rem);
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
  }
}

@media (max-height: 650px) and (min-width: 641px) {
  .hero__content {
    padding-top: 1.5rem;
  }

  .brand {
    width: 29rem;
    height: 8.4rem;
  }

  h1 {
    margin-top: 0.7rem;
  }

  .tagline {
    margin-top: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
