:root {
  --ink-navy: #1a2436;
  --ivory: #fbf9f4;
  --champagne: #f4e6c2;
  --soft-mist: rgba(251, 249, 244, 0.86);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html,
body {
  height: 100%;
  background-color: var(--ink-navy);
  color: var(--ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the couple slightly right of center and opens the upper-left sky/sea for typography */
  object-position: 62% 38%;
  display: block;
  transform: scale(1.03);
  animation: heroSettle 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Concentrated soft twilight scrim on the upper-left so text has crisp contrast without dimming the couple */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 56% 68% at 14% 26%,
      rgba(20, 30, 48, 0.56) 0%,
      rgba(20, 30, 48, 0.30) 48%,
      rgba(20, 30, 48, 0) 82%
    ),
    linear-gradient(
      105deg,
      rgba(20, 30, 48, 0.44) 0%,
      rgba(20, 30, 48, 0.16) 36%,
      rgba(20, 30, 48, 0) 56%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(440px, 38vw);
  padding-top: clamp(3rem, 11vh, 7.25rem);
  padding-left: clamp(2.25rem, 6.5vw, 6.25rem);
  text-shadow: 0 2px 24px rgba(16, 24, 38, 0.35);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.15rem, 5.6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0.015em;
  color: var(--ivory);
  opacity: 0;
  animation: fadeRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero__line {
  display: block;
}

.hero__line--second {
  padding-left: 0.08em;
}

.hero__amp {
  font-style: italic;
  font-weight: 300;
  color: var(--champagne);
  font-size: 0.94em;
  margin-right: 0.06em;
}

.hero__rule {
  width: clamp(3.25rem, 5.5vw, 4.75rem);
  height: 1px;
  margin: clamp(1.35rem, 2.8vh, 2.1rem) 0 clamp(1.15rem, 2.3vh, 1.7rem);
  background: linear-gradient(
    90deg,
    rgba(244, 230, 194, 0.88) 0%,
    rgba(244, 230, 194, 0.18) 100%
  );
  opacity: 0;
  animation: fadeRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.58s forwards;
}

.hero__status {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 0.95vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0;
  animation: fadeRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.72s forwards;
}

/* Portrait & mobile layout: frame the couple below and place centered typography in the open sky above */
@media (max-width: 820px), (orientation: portrait) and (max-aspect-ratio: 4/5) {
  .hero__image {
    object-position: 60% 36%;
  }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 30, 48, 0.64) 0%,
      rgba(20, 30, 48, 0.34) 22%,
      rgba(20, 30, 48, 0.08) 34%,
      rgba(20, 30, 48, 0) 46%
    );
  }

  .hero__content {
    max-width: 100%;
    padding: clamp(1.75rem, 4.5vh, 3rem) 1.5rem 0;
    text-align: center;
    margin: 0 auto;
  }

  .hero__title {
    font-size: clamp(2.35rem, 9.8vw, 3.5rem);
    line-height: 1;
  }

  .hero__line {
    display: inline;
  }

  .hero__line--second {
    padding-left: 0;
  }

  .hero__amp {
    margin: 0 0.08em;
  }

  .hero__rule {
    width: 3rem;
    margin: 0.65rem auto 0.55rem;
    background: linear-gradient(
      90deg,
      rgba(244, 230, 194, 0) 0%,
      rgba(244, 230, 194, 0.85) 50%,
      rgba(244, 230, 194, 0) 100%
    );
  }

  .hero__status {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
  }
}

/* Short landscape screens */
@media (max-height: 580px) and (orientation: landscape) {
  .hero__content {
    padding-top: 2rem;
  }

  .hero__title {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
  }
}

@keyframes heroSettle {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__image {
    transform: none;
    animation: none;
  }

  .hero__title,
  .hero__rule,
  .hero__status {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
