:root {
  --accent: #afff3c;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  padding: clamp(2rem, 10vw, 9rem) clamp(1.25rem, 4vw, 4rem);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(72, 68, 60, 0.6), rgba(72, 68, 60, 0.6)),
    url("../img/ggb.jpg") center / cover no-repeat;
  background-blend-mode: hard-light;
  pointer-events: none;
}

main {
  max-width: 60vw;
  color: #fff;
  font-weight: 300;
  font-size: clamp(1.7rem, 1.27rem + 1.78vw, 3.2rem);
  line-height: 1.18;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.3em;
  font-weight: 700;
}

p {
  margin: 0 0 1.25rem;
  font-size: 0.7em;
}

.tagline {
  margin-bottom: clamp(2.5rem, 8vh, 6rem);
  font-size: 1.2em;
}

b {
  padding: 0 0.15em;
  border-radius: 0.2em;
  color: var(--accent);
  background: rgba(40, 38, 34, 0.45);
}

footer {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 3rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
}

footer a {
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: color 250ms ease;
}

footer a::before {
  top: 0.3em;
  content: "\2756";
  position: absolute;
  right: 100%;
  margin-right: 0.35em;
  font-size: 0.75em;
  line-height: inherit;
  opacity: 0;
  transform: translateX(0.4em);
  transition: opacity 250ms ease, transform 250ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

footer a:hover::before,
footer a:focus-visible::before {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  main {
    --fade-duration: 1s;
  }

  .has-words .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.08em);
  }

  .fade-in .word {
    animation: word-in 700ms ease forwards;
    animation-delay: calc(var(--i) / var(--word-count) * var(--fade-duration));
  }

  @keyframes word-in {
    to {
      opacity: 1;
      transform: none;
    }
  }

  footer {
    opacity: 0;
    animation: word-in 700ms ease 1.4s forwards;
  }
}

@media (max-width: 600px) {
  body::before {
    background-position: 35% center;
  }

  main {
    max-width: none;
    font-weight: 400;
    line-height: 1.3;
  }

  footer {
    font-size: 0.95rem;
  }
}
