:root {
  --ink: #f8f1e7;
  --muted: rgba(248, 241, 231, 0.74);
  --paper: #f6eee1;
  --night: #10100e;
  --charcoal: #171613;
  --line: rgba(248, 241, 231, 0.22);
  --accent: #efc36a;
  --accent-dark: #7d5119;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  z-index: -3;
  background-image: url("./assets/hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: breathe 12s ease-in-out infinite alternate;
}

.hero__shade {
  z-index: -2;
  background:
    radial-gradient(circle at 78% 34%, rgba(239, 195, 106, 0.2), transparent 28rem),
    linear-gradient(90deg, rgba(8, 8, 7, 0.92) 0%, rgba(8, 8, 7, 0.68) 38%, rgba(8, 8, 7, 0.28) 72%),
    linear-gradient(0deg, rgba(16, 16, 14, 0.95), transparent 34%);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(22px, 5vw, 72px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  color: var(--accent);
}

.topbar__link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.hero__content {
  width: min(760px, calc(100% - 44px));
  align-self: center;
  padding: 110px 0 96px clamp(22px, 7vw, 96px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: 0;
  line-height: 1.15;
}

.hero .eyebrow::before {
  content: "SAVE THE DATE\Apero sin ponernos intensos";
  white-space: pre-line;
  font-size: 0.8rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(4.1rem, 12vw, 9.4rem);
  line-height: 0.83;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.72em;
  font-style: italic;
  text-transform: none;
}

.hero__copy {
  max-width: 560px;
  margin-bottom: 34px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.button,
.form button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #19130a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 24px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover,
.form button:hover {
  background: #ffd582;
  transform: translateY(-2px);
}

.ticker {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 26px;
  display: flex;
  max-width: min(780px, calc(100% - 44px));
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ticker span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 12, 10, 0.32);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
  text-transform: uppercase;
}

.intro,
.details,
.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(76px, 10vw, 130px) clamp(22px, 7vw, 96px);
}

.intro {
  background: var(--charcoal);
}

.intro h2,
.details h2,
.signup h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro p,
.details p,
.signup p {
  color: rgba(248, 241, 231, 0.78);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.intro > p {
  align-self: end;
  max-width: 620px;
}

.plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  color: #171613;
}

.plan article {
  min-height: 340px;
  padding: clamp(28px, 5vw, 64px);
  border-right: 1px solid rgba(23, 22, 19, 0.16);
}

.plan article:last-child {
  border-right: 0;
}

.plan span {
  display: block;
  margin-bottom: 86px;
  color: var(--accent-dark);
  font-weight: 900;
}

.plan h3 {
  max-width: 330px;
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3vw, 3.15rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.plan p {
  max-width: 310px;
  color: rgba(23, 22, 19, 0.72);
  font-size: 1rem;
  line-height: 1.45;
}

.details {
  min-height: 70svh;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(16, 16, 14, 0.7), var(--night)),
    url("./assets/hero.jpg") center 58% / cover fixed;
}

.details p:last-child {
  max-width: 520px;
}

.signup {
  align-items: start;
  background: #0d0d0b;
  border-top: 1px solid var(--line);
}

.form {
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  justify-self: end;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form input,
.form select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  padding: 0 15px;
}

.form select option {
  color: #171613;
}

.form input::placeholder {
  color: rgba(248, 241, 231, 0.44);
}

.form input:focus,
.form select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(239, 195, 106, 0.22);
}

.form button {
  margin-top: 8px;
  width: fit-content;
}

.form__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 800;
}

.hero__content,
.intro,
.plan article,
.details,
.signup {
  animation: rise 720ms ease both;
}

@keyframes breathe {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

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

@media (max-width: 860px) {
  .hero {
    min-height: 92svh;
  }

  .hero__image {
    background-position: 72% center;
    transform: scale(1.02);
    animation: none;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(8, 8, 7, 0.92), rgba(8, 8, 7, 0.5) 58%, rgba(8, 8, 7, 0.22)),
      linear-gradient(0deg, rgba(16, 16, 14, 0.96), transparent 44%);
  }

  .topbar {
    padding: 22px;
  }

  .hero__content {
    width: calc(100% - 32px);
    padding: 100px 0 128px 22px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 4.9rem);
    line-height: 0.9;
  }

  .ticker {
    left: 22px;
    right: 22px;
    justify-content: flex-start;
  }

  .intro,
  .details,
  .signup {
    grid-template-columns: 1fr;
  }

  .plan {
    grid-template-columns: 1fr;
  }

  .plan article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 22, 19, 0.16);
  }

  .plan span {
    margin-bottom: 52px;
  }

  .details {
    background-attachment: scroll;
  }

  .form {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .topbar__link {
    display: none;
  }

  .hero__copy {
    font-size: 1.3rem;
  }

  .ticker span {
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .intro h2,
  .details h2,
  .signup h2 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  .button {
    min-height: 44px;
    width: fit-content;
    max-width: 100%;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .form button {
    width: 100%;
  }
}