:root {
  --blush: #c9828a;
  --champagne: #f4d7b8;
  --cream: #fff8f1;
  --paper: #ffffff;
  --ink: #3d3033;
  --muted: #806f72;
  --line: rgba(201, 130, 138, 0.25);
  --shadow: 0 26px 76px rgba(116, 76, 80, 0.16);
  --heading: "Prata", "Times New Roman", serif;
  --body: "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(244, 215, 184, 0.42), transparent 22rem),
    radial-gradient(circle at 88% 38%, rgba(201, 130, 138, 0.15), transparent 20rem),
    linear-gradient(180deg, #fffaf5, #fff4ee 48%, #fffdf9);
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(201,130,138,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.45), transparent);
  background-size: 4.5rem 100%, auto;
}

.gate-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1rem;
  transition: opacity 700ms ease, transform 700ms ease;
}
body.opened .gate-screen {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  position: absolute;
  inset: 0;
}
.gate {
  width: min(480px, calc(100vw - 2rem));
  aspect-ratio: 0.78;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.panel {
  position: absolute;
  inset-block: 0;
  width: 51%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,246,239,.78)),
    radial-gradient(circle at 50% 30%, rgba(244,215,184,.35), transparent 14rem);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  transition: transform 950ms ease;
  z-index: 3;
}
.panel-right {
  right: 0;
  border-radius: 42px 0 0 42px;
  transform-origin: right center;
}
.panel-left {
  left: 0;
  border-radius: 0 42px 42px 0;
  transform-origin: left center;
}
body.opened .panel-right { transform: rotateY(-74deg) translateX(1.5rem); }
body.opened .panel-left { transform: rotateY(74deg) translateX(-1.5rem); }
.seal {
  position: relative;
  z-index: 5;
  width: min(320px, 78%);
  min-height: 18rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 20px 58px rgba(116, 76, 80, 0.13);
  backdrop-filter: blur(18px);
}
.seal p, .kicker, .eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blush);
  font-weight: 800;
}
.seal h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(3rem, 13vw, 5.2rem);
  line-height: 1;
  white-space: nowrap;
}
.seal small {
  color: var(--blush);
  font-family: var(--body);
  font-size: 0.25em;
  font-weight: 800;
}
.seal button, .btn {
  min-height: 3.1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blush), #dca1a6);
  color: #fff;
  box-shadow: 0 14px 34px rgba(201, 130, 138, 0.22);
  cursor: pointer;
  font-weight: 800;
}

.site {
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 700ms ease 280ms, transform 700ms ease 280ms;
}
body.opened .site {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hero {
  min-height: 100svh;
  padding: 1rem clamp(0.9rem, 4vw, 4rem) 3rem;
}
.nav {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  gap: 0.35rem;
  padding: 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 34px rgba(116, 76, 80, 0.1);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 1rem;
  z-index: 10;
}
.nav a {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.nav a:hover { background: #fff2f0; color: var(--blush); }

.hero-grid {
  width: min(1180px, 100%);
  min-height: calc(100svh - 12rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(19rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: 2rem;
}
.hero-copy h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: clamp(3.3rem, 9vw, 6.4rem);
  line-height: 1;
  white-space: nowrap;
}
.hero-copy em {
  color: var(--blush);
  font-family: var(--body);
  font-size: 0.25em;
  font-style: normal;
  font-weight: 800;
}
.welcome {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.photo-stack {
  position: relative;
  min-height: clamp(31rem, 56vw, 44rem);
  padding: 0.8rem;
  border-radius: 46px;
  background: #fff;
  box-shadow: var(--shadow);
}
.photo-stack img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  border-radius: 36px;
}
.date-card {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: grid;
  min-width: 13rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(116, 76, 80, 0.12);
}
.date-card em { color: var(--blush); font-style: normal; font-weight: 800; }
.countdown {
  width: min(880px, 100%);
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.countdown div {
  min-height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 30px rgba(116, 76, 80, 0.09);
}
.countdown strong {
  display: block;
  color: var(--blush);
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
}
.countdown span { color: var(--muted); font-weight: 800; }

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.2rem, 8vw, 6rem) 0;
}
.verse p {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  text-align: center;
  border-radius: 34px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  font-family: var(--heading);
  font-size: clamp(1.45rem, 4vw, 3.2rem);
}
.details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.9rem, 2vw, 1.3rem);
}
.details article, .notes article, .story, .rsvp, .map {
  border-radius: 30px;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.9);
}
.details article, .notes article {
  padding: 1.25rem;
}
.details span { color: var(--blush); font-weight: 800; }
.details h3, .notes h3 {
  margin: 0.35rem 0;
  color: var(--ink);
  font-size: 1.15rem;
}
.details p, .notes p, .story > p, .map p { color: var(--muted); margin: 0.25rem 0; }
.story, .rsvp, .map {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
  padding: clamp(1.3rem, 4vw, 2.5rem);
}
.story h2, .rsvp h2, .map h2 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 3.6rem);
}
.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 2vw, 1.3rem);
}
.gallery-tile {
  min-height: clamp(18rem, 34vw, 28rem);
  border: 0.65rem solid #fff;
  border-radius: 34px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.gallery-tile:nth-child(3) { grid-row: span 2; }
.timeline-list, .notes {
  display: grid;
  gap: 0.85rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 24px;
  background: #fff;
}
.timeline-item time {
  direction: ltr;
  text-align: right;
  color: var(--blush);
  font-weight: 800;
}
.notes { grid-template-columns: repeat(3, 1fr); }
.rsvp-form {
  display: grid;
  gap: 1rem;
}
label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 800;
}
input {
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 1rem;
}
input:focus, .btn:focus-visible, .seal button:focus-visible, .footer-actions button:focus-visible {
  outline: 3px solid rgba(201,130,138,.24);
  outline-offset: 3px;
}
.map { grid-template-columns: 1fr auto; margin-top: clamp(1.5rem, 4vw, 3rem); }
.footer {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
  text-align: center;
  color: var(--muted);
}
.footer-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
.footer-actions button {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blush);
  cursor: pointer;
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 760ms ease, transform 760ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .hero-grid, .story, .rsvp, .map { grid-template-columns: 1fr; }
  .photo-stack { order: -1; min-height: 30rem; }
  .details, .notes, .gallery-strip { grid-template-columns: 1fr; }
  .gallery-tile:nth-child(3) { grid-row: auto; }
}
@media (max-width: 560px) {
  .hero { padding-inline: 0.75rem; }
  .nav { width: calc(100% - 1rem); justify-content: center; }
  .nav a { padding-inline: 0.55rem; font-size: 0.82rem; }
  .seal h1, .hero-copy h2 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.2rem; }
}
