:root {
  --paper: #f4f0e7;
  --paper-deep: #e9e2d5;
  --ink: #292b25;
  --muted: #777366;
  --olive: #73745f;
  --gold: #a18d68;
  --rule: rgba(73, 70, 57, .28);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.paper-grain {
  position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.topline {
  position: absolute; z-index: 3; top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 22px; color: rgba(255,255,255,.9);
}
.topline__monogram { font: 500 1.05rem var(--serif); letter-spacing: .06em; }
.topline__monogram i, .footer__monogram i { color: #d8c9a8; font-style: italic; }
.topline__label { font-size: .53rem; text-transform: uppercase; letter-spacing: .2em; }

.hero { min-height: 100svh; position: relative; background: #535747; overflow: hidden; }
.hero__frame { min-height: 100svh; position: relative; display: grid; place-items: center; }
.hero__image-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero__image {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: slow-drift 24s ease-in-out infinite alternate;
}
.hero__image-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,27,21,.37), rgba(22,27,21,.28) 38%, rgba(22,27,21,.62));
}
.hero__copy {
  position: relative; z-index: 2; width: min(100%, 560px);
  padding: 100px 24px 76px; text-align: center; color: #fffdf7;
}
.eyebrow {
  margin: 0; text-transform: uppercase; letter-spacing: .23em;
  font: 400 .58rem/1.6 var(--sans);
}
.hero__names {
  margin: 25px 0 20px; font: 400 clamp(3.8rem, 15vw, 6.5rem)/.76 var(--serif);
  letter-spacing: -.045em;
}
.hero__names span { display: inline-block; margin: 12px 0; color: #dfcfad; font-style: italic; font-size: .58em; }
.ornament { display: flex; justify-content: center; align-items: center; gap: 13px; color: #dfcfad; font-size: .9rem; margin: 28px 0 22px; }
.ornament span { width: 43px; height: 1px; background: rgba(231,219,193,.65); }
.hero__save { margin: 0 0 8px; font: italic 1.15rem var(--serif); letter-spacing: .02em; }
.hero__date { margin: 0; font: 500 1.55rem var(--serif); letter-spacing: .035em; }
.hero__place { margin: 14px 0 0; font-size: .61rem; line-height: 1.8; text-transform: uppercase; letter-spacing: .2em; }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  margin-top: 48px; text-decoration: none; color: rgba(255,255,255,.8);
  text-transform: uppercase; letter-spacing: .17em; font-size: .51rem;
}
.scroll-cue i { font-style: normal; font-size: 1rem; animation: bob 2.2s ease-in-out infinite; }
.side-note {
  display: none; position: absolute; right: 18px; bottom: 30px; z-index: 2;
  color: rgba(255,255,255,.7); writing-mode: vertical-rl; font-size: .5rem;
  letter-spacing: .2em; text-transform: uppercase;
}

.details {
  position: relative; min-height: 100svh; padding: 92px 25px 75px;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 15%, rgba(255,255,255,.62), transparent 54%), var(--paper);
}
.details__flourish { width: 116px; margin: 0 auto 27px; opacity: .78; }
.details__flourish img { display: block; width: 100%; height: auto; }
.details__heading { margin: 19px 0 17px; font: 400 clamp(3rem, 12vw, 4.7rem)/.83 var(--serif); letter-spacing: -.035em; }
.details__heading em { color: var(--olive); font-weight: 400; }
.details__intro { max-width: 300px; margin: 0 auto; color: var(--muted); font: italic 1.12rem/1.45 var(--serif); }
.detail-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 35px auto 30px; color: var(--gold); }
.detail-rule::before, .detail-rule::after { content: ""; width: 55px; height: 1px; background: var(--rule); }
.date-block__date { margin: 9px 0 2px; font: 500 2.05rem var(--serif); }
.date-block__day { margin: 0; color: var(--muted); font-size: .61rem; letter-spacing: .17em; text-transform: uppercase; }
.venue-block { margin-top: 29px; }
.venue-block__name { margin: 7px 0 3px; font: 500 1.55rem var(--serif); }
.venue-block__address { margin: 0; color: var(--muted); font-size: .65rem; line-height: 1.8; letter-spacing: .1em; }
.countdown { display: flex; justify-content: center; gap: clamp(17px, 6vw, 30px); margin: 37px auto 25px; }
.countdown div { display: flex; flex-direction: column; gap: 4px; min-width: 43px; }
.countdown strong { font: 500 1.65rem var(--serif); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font-size: .48rem; letter-spacing: .16em; text-transform: uppercase; }
.calendar-link {
  display: inline-block; padding: 11px 0 5px; border-bottom: 1px solid var(--gold);
  text-decoration: none; font-size: .59rem; letter-spacing: .13em; text-transform: uppercase;
}
.formal-note { margin: 26px 0 0; color: var(--muted); font: italic 1rem var(--serif); }
.footer { padding: 28px 20px 38px; text-align: center; background: var(--paper-deep); }
.footer__rule { display: block; width: 55px; height: 1px; margin: 0 auto 14px; background: var(--gold); }
.footer p { margin: 0; font: italic 1.15rem var(--serif); }
.footer__monogram { display: block; margin-top: 7px; font: 500 .9rem var(--serif); letter-spacing: .08em; }

/* Ambient motion: slow, low-amplitude movement rather than attention-grabbing effects. */
@keyframes slow-drift { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(0,-1.2%,0); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.fade-in { opacity: 0; transform: translateY(9px); animation: soft-arrive 1.3s ease forwards; }
.fade-in:nth-child(1) { animation-delay: .25s; }
.fade-in:nth-child(2) { animation-delay: .55s; }
.fade-in:nth-child(3) { animation-delay: .9s; }
.fade-in:nth-child(4) { animation-delay: 1.1s; }
.fade-in:nth-child(5) { animation-delay: 1.3s; }
.fade-in:nth-child(6) { animation-delay: 1.5s; }
@keyframes soft-arrive { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  .topline { padding: 30px 42px; }
  .hero__copy { padding-top: 110px; }
  .side-note { display: block; }
  .details { padding-top: 110px; }
}
@media (max-width: 360px) {
  .topline__label { font-size: .46rem; }
  .hero__names { font-size: 3.55rem; }
  .countdown { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* for the opening gate */
.estate-entry {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #17251d;
  overflow: hidden;
}

.estate-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.estate-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 4s ease;
}

.gate {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 50%;
  height: 100%;
  transition: transform 2.2s cubic-bezier(.65, 0, .35, 1);
  transform-style: preserve-3d;
}

.gate img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.gate-left {
  left: 0;
  transform-origin: left center;
}

.gate-right {
  right: 0;
  transform-origin: right center;
}

.entry-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 90%;
  text-align: center;
  color: #fffaf0;
  transform: translate(-50%, -50%);
  transition: opacity .6s ease;
}

.entry-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  margin: 12px 0;
}

.eyebrow {
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .72rem;
}

.enter-button {
  margin-top: 28px;
  padding: 14px 30px;
  border: 1px solid #e7d9b7;
  background: transparent;
  color: #fffaf0;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
}

.enter-button:hover {
  background: #e7d9b7;
  color: #243329;
}

/* Opening sequence */
.estate-entry.opening .gate-left {
  transform: perspective(1200px) rotateY(-105deg);
}

.estate-entry.opening .gate-right {
  transform: perspective(1200px) rotateY(105deg);
}

.estate-entry.opening .entry-content {
  opacity: 0;
  pointer-events: none;
}

.estate-entry.opening .estate-background {
  transform: scale(1.15);
}

.invitation {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {

  .gate,
  .entry-content,
  .estate-background {
    transition-duration: .01ms;
  }
}