:root {
  color-scheme: light;
  --ink: #241719;
  --muted: #806d68;
  --paper: #fff8f4;
  --shell: #f8e9e4;
  --blush: #e8beb8;
  --rose: #b86575;
  --wine: #762c42;
  --charcoal: #2a2022;
  --gold: #d0a85d;
  --line: rgba(118, 44, 66, 0.13);
  --shadow: 0 28px 80px rgba(92, 36, 50, 0.24);
  --soft-shadow: 0 20px 55px rgba(92, 36, 50, 0.11);
  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #fff8f4;
  background:
    radial-gradient(circle at top, rgba(232, 190, 184, 0.32), transparent 28rem),
    linear-gradient(180deg, #fff8f4 0%, #f7e8e4 48%, #fffaf6 100%);
  font-family: var(--serif);
  font-size: 1.08rem;
}

body.locked {
  overflow: hidden;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 25;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

button {
  font: inherit;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.28), rgba(14, 12, 11, 0.74)),
    url("assets/reception-hero.png") center / cover;
  transition: opacity 800ms ease, visibility 800ms ease;
}

.opening.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.letter {
  position: relative;
  width: min(28rem, 88vw);
 height: calc(min(28rem, 90vw) * 0.6);
  perspective: 1000px;
  max-width: 500px;
  animation: letterFloat 900ms ease both;
}

@media (max-width: 480px) {
  .letter {
    width: 92vw;
    height: calc(92vw * 0.6); /* 👈 keeps same ratio */
  }
}
.letter__paper,
.letter__flap {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-color: #fff8f4;
}

.letter__paper {
  z-index: 1;
  margin-top: -4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 240, 237, 0.98)),
    var(--paper);
  box-shadow: var(--shadow);
}

.letter__paper::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(208, 168, 93, 0.3);
  border-radius: 7px;
}

.letter__paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(184, 101, 117, 0.1) 50%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, rgba(184, 101, 117, 0.08) 50%, transparent 50.4%);
}

.letter__flap {
  z-index: 3;
  background:
    linear-gradient(145deg, #f2dcd6, #fff8f3 50%, #e6c4bd),
    var(--shell);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top;
  transition: transform 850ms cubic-bezier(0.18, 0.9, 0.22, 1);
  box-shadow: 0 18px 40px rgba(29, 20, 16, 0.16);
}

.seal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(4.6rem, 16vw, 6rem);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff9f1;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.32), transparent 22%),
    radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(145deg, #b86575, #762c42);
  border: 1px solid rgba(255, 232, 184, 0.28);
  box-shadow: 0 15px 34px rgba(75, 19, 30, 0.38);
  cursor: pointer;
  font-family: var(--script);
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 0;
  transform: translate(-50%, -50%);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.seal:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 18px 42px rgba(75, 19, 30, 0.46);
}

.opening.opening--open .letter__flap {
  transform: rotateX(165deg);
}

.opening.opening--open .seal {
  transform: translate(-50%, 22%) scale(0.6);
  opacity: 0;
}

.opening__hint {
  position: absolute;
  bottom: clamp(2rem, 6vh, 4rem);
  margin: 0;
  color: rgba(255, 250, 244, 0.8);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 800;
  white-space: nowrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.86rem 1.18rem;
}

.primary-button {
  color: #fffaf4;
  background: var(--wine);
  box-shadow: 0 14px 34px rgba(122, 36, 53, 0.28);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh; /* 👈 change this */
  place-items: center; /* 👈 add this */
  overflow: hidden;
  color: #fffaf4;
  background: var(--charcoal);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 20, 24, 0.36), rgba(68, 27, 40, 0.58) 50%, rgba(38, 20, 24, 0.36)),
    linear-gradient(180deg, rgba(38, 20, 24, 0.05), rgba(38, 20, 24, 0.76)),
    url("assets/reception-hero.png") center / cover;
  transform: scale(1.02);
  animation: slowBloom 18s ease-in-out infinite alternate;
}

.hero-music {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.7rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 244, 0.32);
  border-radius: 50%;
  color: #fffaf4;
  background: rgba(42, 32, 34, 0.34);
  backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(24, 18, 14, 0.2);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
}

.hero-music:hover {
  transform: translateY(-1px);
  background: rgba(118, 44, 66, 0.45);
}

.hero-music svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-music .sound-wave {
  fill: none;
  opacity: 0.95;
}

.hero-music:not(.is-playing) .sound-wave {
  opacity: 0;
}

.hero__content {
  transform: translateY(-50px);
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(70rem, 100%);
 padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 6vw, 6rem);
  text-align: center;
  animation: riseIn 900ms ease 220ms both;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #f1c982;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.hero h3,
.save-date h2,
.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: 0;
}

.save-date .primary-button {
  margin-top: 1.2rem;
}
.hero h1 {
  display: grid;
  gap: clamp(0.1rem, 1vw, 0.35rem);
  max-width: 68rem;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9.6vw, 8.4rem);
  font-weight: 600;
}

.hero h1 span:nth-child(2) {
  color: #f1c982;
  font-family: var(--serif);
  font-size: 0.24em;
  font-style: normal;
  line-height: 0.6;
}

.hero h3 {
  margin-top: 1.1rem;
  color: rgba(255, 250, 244, 0.92);
  font-family: var(--sans);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1.2rem 0 1.6rem;
  color: rgba(255, 250, 244, 0.82);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.75;
  margin-inline: auto;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(1.5rem, 5vh, 3rem);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: rgba(255, 250, 244, 0.82);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue b {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: arrowDrop 1.4s ease-in-out infinite;
}

main > section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem);
}

.save-date {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
}

.save-date h2 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 600;
}

.save-date p:last-child {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(34rem, 100%);
  border-block: 1px solid rgba(122, 36, 53, 0.18);
}

.date-lockup span {
  padding: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

.date-lockup strong {
  padding: 0.8rem 1.2rem;
  border-inline: 1px solid var(--line);
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.95;
}

.countdown-section {
  background:
    linear-gradient(135deg, rgba(118, 44, 66, 0.92), rgba(42, 32, 34, 0.98)),
    #201e1b;
  color: #fffaf4;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 6vw, 4.7rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.countdown-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 250, 244, 0.68);
}

.celebration {
  background: #fff5f2;
}

.celebration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.celebration-grid article {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(208, 168, 93, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 241, 0.76)),
    rgba(255, 255, 255, 0.76);
  box-shadow: var(--soft-shadow);
}

.celebration-grid span {
  color: var(--rose);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.celebration-grid strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.celebration-note {
  max-width: 52rem;
  margin: 2rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.countdown div {
  min-width: 0;
  padding: clamp(1.1rem, 4vw, 2rem) 0.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.countdown div:last-child {
  border-right: 0;
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 1;
}

.countdown span {
  color: rgba(255, 250, 244, 0.66);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.couple-grid,
.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.couple-grid article,
.travel-grid article {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(208, 168, 93, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 241, 0.78)),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.couple-grid span,
.travel-grid span {
  color: var(--rose);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.couple-grid h3 {
  margin: 0.5rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
}

.couple-grid p,
.travel-grid p,
.venue .section-heading p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.venue {
  background: #f8ebe7;
}

.map-frame {
  position: relative;
  display: block;
  height: clamp(19rem, 48vw, 32rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ddd;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map-frame span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: #fffaf4;
  background: var(--wine);
  font-family: var(--sans);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(122, 36, 53, 0.28);
}

.travel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.await-presence {
  display: grid;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.92), rgba(248, 232, 228, 0.98)),
    var(--paper);
}

.await-presence h2 {
  max-width: 58rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.6vw, 5.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.await-presence p:last-child {
  max-width: 47rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.closing-footer {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(255, 250, 244, 0.82);
  background:
    linear-gradient(135deg, #762c42, #2a2022),
    var(--charcoal);
}

.closing-footer span {
  color: #f1c982;
  font-size: 1.5rem;
  line-height: 1;
}

.closing-footer p {
  margin: 0;
}

.closing-footer strong {
  color: #fffaf4;
  font-family: var(--script);
  font-size: 2rem;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes letterFloat {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowBloom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.07);
  }
}

@keyframes arrowDrop {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(0.35rem) rotate(45deg);
  }
}

@media (max-width: 820px) {
  .celebration-grid,
  .couple-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown div:nth-child(2) {
    border-right: 0;
  }

  .countdown div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 540px) {
  .letter {
    height: 18rem;
  }

  .date-lockup span {
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
