:root {
  color-scheme: dark;
  --ivory: #f4f0e8;
  --sand: #d5c4a7;
  --ink: #171614;
  --line: rgba(244, 240, 232, 0.38);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.35rem, 5vw, 5.5rem)
    clamp(1.35rem, 3vw, 2.6rem);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  background: url("assets/ibiza-sunset.png") 67% center / cover no-repeat;
  transform: scale(1.015);
  animation: settle 2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 14, 15, 0.76) 0%, rgba(16, 17, 18, 0.46) 42%, rgba(16, 14, 12, 0.12) 77%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.24) 0%, transparent 35%, rgba(8, 9, 10, 0.48) 100%);
}

.masthead,
.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  line-height: 1.35;
}

.wordmark__place {
  color: var(--sand);
  font-size: 0.74em;
  letter-spacing: 0.64em;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.status span {
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid var(--sand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(213, 196, 167, 0.36);
  animation: pulse 2.6s ease-out infinite;
}

.intro {
  align-self: center;
  width: min(47rem, 74vw);
  padding: 7vh 0 5vh;
  animation: reveal 1.1s 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 clamp(1.4rem, 3vh, 2.6rem);
  color: var(--sand);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(3.3rem, 7.2vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

.rule {
  width: min(23rem, 55vw);
  height: 1px;
  margin: clamp(2rem, 5vh, 3.8rem) 0 1.35rem;
  overflow: hidden;
  background: var(--line);
}

.rule span {
  display: block;
  width: 28%;
  height: 100%;
  background: var(--ivory);
  transform-origin: left;
  animation: draw 1.4s 0.6s ease both;
}

.intro__copy {
  margin: 0;
  color: rgba(244, 240, 232, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.7;
}

.footer {
  align-items: flex-end;
  color: rgba(244, 240, 232, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

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

@keyframes settle {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(213, 196, 167, 0.35); }
  55%, 100% { box-shadow: 0 0 0 0.55rem rgba(213, 196, 167, 0); }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.4rem 1.25rem 1.2rem;
  }

  .hero__image {
    background-position: 74% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(11, 12, 13, 0.62), rgba(12, 12, 12, 0.16)),
      linear-gradient(180deg, rgba(10, 10, 10, 0.3), rgba(10, 11, 12, 0.04) 38%, rgba(8, 9, 10, 0.62));
  }

  .status {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .intro {
    width: 100%;
    padding-top: 12vh;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15vw, 5rem);
    line-height: 0.94;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
