/* ===================================================
   Wedding Landing — full-width mobile-first
   Font: Martian Mono
   =================================================== */

:root {
  --font: "Martian Mono", monospace;

  --green-dark: #2f4a3d;
  --green-btn: #3a5244;
  --pink-text: #a05565;
  --maroon-body: #7a5060;
  --cream: #f3efe6;
  --white: #ffffff;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --fade-y: 24px;
  --fade-dur: 0.65s;

  --space-inline: clamp(14px, 4.44vw, 20px);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font);
  background: var(--white);
  color: var(--green-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- Page ---- */

.page {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
}

/* ---- Sections — seamless stack ---- */

.section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  overflow: hidden;
}

/* ---- Fade-up ---- */

.fade-section {
  opacity: 0;
  transform: translateY(var(--fade-y));
  transition:
    opacity var(--fade-dur) var(--ease),
    transform var(--fade-dur) var(--ease);
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section--hero {
  opacity: 1;
  transform: none;
}

.section--hero .hero-subtitle,
.section--hero .btn-rsvp--hero {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--fade-dur) var(--ease),
    transform var(--fade-dur) var(--ease);
}

.section--hero.is-ready .hero-subtitle,
.section--hero.is-ready .btn-rsvp--hero {
  opacity: 1;
  transform: translateY(0);
}

.section--hero.is-ready .hero-subtitle  { transition-delay: 0.08s; }
.section--hero.is-ready .btn-rsvp--hero { transition-delay: 0.25s; }

/* ---- RSVP button ---- */

.btn-rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-btn);
  color: var(--white);
  font-family: var(--font);
  font-size: clamp(11px, 3.33vw, 13px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: clamp(13px, 4.17vw, 15px) clamp(24px, 8.89vw, 32px);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  animation: btn-pulse 2.5s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(47, 74, 61, 0.28);
  transition: background 0.2s ease;
  z-index: 2;
}

.btn-rsvp:hover,
.btn-rsvp:focus-visible {
  background: var(--green-dark);
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.025); }
}

@keyframes btn-pulse-centered {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-section,
  .section--hero .hero-subtitle,
  .section--hero .btn-rsvp--hero {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-rsvp { animation: none; }
  .typing-cursor { display: none; }
}

/* ===================================================
   §1 HERO
   =================================================== */

.section--hero {
  aspect-ratio: 361 / 772;
  padding: 10.1% var(--space-inline) 4.1%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #d8ebe2;
  background-image: url("../assets/screen_1.png");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.375rem, 7.22vw, 1.625rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.045em;
  line-height: 1.22;
  min-height: 2.5em;
  margin-bottom: 0.75rem;
}

.typing-cursor {
  font-weight: 300;
  animation: blink 0.75s step-end infinite;
}

.typing-cursor.is-done { display: none; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(0.625rem, 3.05vw, 0.75rem);
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: -0.035em;
  line-height: 1.55;
  max-width: 92%;
}

.btn-rsvp--hero {
  position: relative;
  align-self: center;
  width: min(63vw, 100%);
  max-width: 17.5rem;
  margin-top: auto;
}

/* ===================================================
   §2 COUPLE
   =================================================== */

.section--couple {
  aspect-ratio: 361 / 862;
  background-color: #f5e4e4;
  background-image: url("../assets/screen_2.png");
}

.couple-names {
  position: absolute;
  z-index: 1;
  top: 7.8%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(1.5rem, 7.78vw, 1.75rem);
  font-weight: 500;
  color: var(--pink-text);
  letter-spacing: 0.01em;
  line-height: 1.1;
  pointer-events: none;
}

/* ===================================================
   §3 CALENDAR
   =================================================== */

.section--calendar {
  aspect-ratio: 360 / 561;
  background-color: var(--cream);
  background-image: url("../assets/screen_3.png");
}

.calendar-intro {
  position: absolute;
  z-index: 1;
  top: 17.1%;
  left: 0;
  right: 0;
  padding: 0 var(--space-inline);
  text-align: center;
  pointer-events: none;
}

.calendar-title {
  font-size: clamp(1.25rem, 6.67vw, 1.5rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.calendar-subtitle {
  font-size: clamp(0.625rem, 3.05vw, 0.75rem);
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  line-height: 1.55;
  max-width: 78%;
  margin: 0 auto;
}

.btn-rsvp--calendar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5%;
  width: min(68vw, 100%);
  max-width: 18rem;
  animation: btn-pulse-centered 2.5s ease-in-out infinite;
}

/* ===================================================
   §4 PROGRAM + MAP
   =================================================== */

.section--program {
  aspect-ratio: 360 / 946;
  background-color: #f0d8d8;
  background-image: url("../assets/screen_4.png");
}

.program-title {
  position: absolute;
  z-index: 1;
  top: 26.8%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(1.375rem, 7.22vw, 1.625rem);
  font-weight: 500;
  color: var(--pink-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  pointer-events: none;
}

/* ===================================================
   §5 DRESS CODE
   =================================================== */

.section--dress {
  aspect-ratio: 360 / 704;
  background-color: #eef2ea;
  background-image: url("../assets/screen_5.png");
}

.dress-title {
  position: absolute;
  z-index: 1;
  top: 14.15%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(1.25rem, 6.67vw, 1.5rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.04em;
  line-height: 1.2;
  pointer-events: none;
}

.dress-caption {
  position: absolute;
  z-index: 1;
  bottom: 4%;
  left: 0;
  right: 0;
  font-size: clamp(0.6875rem, 3.33vw, 0.75rem);
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  text-align: center;
  padding: 0 var(--space-inline);
  pointer-events: none;
}

.btn-rsvp--dress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(6.84% + 1.4em);
  width: min(63vw, 100%);
  max-width: 17.5rem;
  animation: btn-pulse-centered 2.5s ease-in-out infinite;
}

/* ===================================================
   §6 WISHES + FOOTER (screen_6)
   =================================================== */

.section--wishes {
  aspect-ratio: 360 / 967;
  background-color: #faf5f5;
  background-image: url("../assets/screen_6.png");
}

.wishes-title {
  position: absolute;
  z-index: 1;
  top: 23.86%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(1.375rem, 7.22vw, 1.625rem);
  font-weight: 500;
  color: var(--pink-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  pointer-events: none;
}

.wishes-body {
  position: absolute;
  z-index: 1;
  top: 29.86%;
  left: var(--space-inline);
  right: var(--space-inline);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: center;
}

.wishes-body p {
  font-size: clamp(0.625rem, 3.05vw, 0.75rem);
  font-weight: 400;
  color: var(--maroon-body);
  letter-spacing: -0.035em;
  line-height: 1.65;
}

.btn-rsvp--footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3.7%;
  width: min(68vw, 100%);
  max-width: 18rem;
  animation: btn-pulse-centered 2.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .btn-rsvp--calendar,
  .btn-rsvp--dress,
  .btn-rsvp--footer {
    animation: none;
    transform: translateX(-50%);
  }
}
