:root {
  --forest: #102a22;
  --forest-deep: #091c17;
  --forest-soft: #183a30;
  --gold: #c6a76b;
  --gold-soft: #dbc28e;
  --cream: #f4efe5;
  --cream-deep: #e7dcc8;
  --ink: #183028;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Noto Sans Thai", "Leelawadee UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 99;
  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='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--cream);
  color: var(--forest);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(9, 28, 23, .92);
  backdrop-filter: blur(14px);
  border-color: rgba(198, 167, 107, .2);
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font: 500 .75rem/1 var(--serif);
  letter-spacing: .08em;
}
.brand-name { text-transform: uppercase; font-size: .68rem; letter-spacing: .2em; }
.site-nav { display: flex; gap: clamp(1.2rem, 2.7vw, 2.5rem); }
.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .66rem;
  letter-spacing: .16em;
  color: rgba(244, 239, 229, .76);
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-soft); }
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(198, 167, 107, .09) 0 18%, transparent 46%),
    linear-gradient(145deg, var(--forest-deep), var(--forest) 45%, #123127);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 350px;
  min-height: 350px;
  border: 1px solid rgba(198, 167, 107, .14);
  border-radius: 50%;
}
.hero::before { top: -24vw; left: -20vw; }
.hero::after { bottom: -30vw; right: -18vw; }
.hero-halo {
  position: absolute;
  width: min(64vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(198, 167, 107, .16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 54px rgba(198, 167, 107, .018), inset 0 0 0 56px rgba(198, 167, 107, .09);
}
.eyebrow, .section-kicker {
  margin: 0 0 1.75rem;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: .68rem;
  letter-spacing: .42em;
}
.monogram { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.25rem; color: var(--gold); }
.monogram span { font: italic 1rem/1 var(--serif); }
.monogram i { width: 52px; height: 1px; background: currentColor; }
.hero h1 {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  margin: 0;
  font: 400 clamp(3.5rem, 11vw, 9rem)/.86 var(--serif);
  letter-spacing: .02em;
}
.hero h1 em { color: var(--gold); font-weight: 400; font-size: .52em; }
.date-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0 1.8rem;
  color: rgba(244, 239, 229, .72);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.date-lockup span:first-child { text-align: right; }
.date-lockup span:last-child { text-align: left; }
.date-lockup strong {
  padding: .7rem 1.4rem;
  border-left: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  color: var(--cream);
  font: 400 1rem/1 var(--serif);
  letter-spacing: .24em;
}
.hero-copy { margin: 0; color: rgba(244,239,229,.65); font-size: .9rem; line-height: 1.9; }
.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--gold-soft);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.scroll-line { height: 28px; width: 1px; background: linear-gradient(var(--gold), transparent); }

.section-dark { background: var(--forest-deep); }
.section-cream { background: var(--cream); color: var(--ink); }
.countdown-section { padding: clamp(5rem, 10vw, 9rem) 1.5rem; text-align: center; }
.countdown-section h2, .section-heading h2, .story-copy h2, .location-card h2, .dress-section h2, .rsvp-section h2 {
  margin: 0;
  font: 400 clamp(2.3rem, 6vw, 5rem)/1.05 var(--serif);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 150px));
  justify-content: center;
  margin-top: 4rem;
}
.countdown div { padding: 0 1.4rem; border-right: 1px solid rgba(198,167,107,.22); }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; font: 400 clamp(2.4rem, 6vw, 4.5rem)/1 var(--serif); color: var(--gold-soft); }
.countdown span { display: block; margin-top: .8rem; color: rgba(244,239,229,.48); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }

.story-section {
  min-height: 760px;
  display: grid;
  grid-template-columns: .35fr 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 8vw, 8rem);
  overflow: hidden;
}
.section-number { align-self: start; color: var(--gold); font: 400 1rem/1 var(--serif); }
.story-copy { max-width: 560px; }
.story-copy .section-kicker, .location-card .section-kicker, .dress-section .section-kicker { color: #8b6a31; }
.story-copy p:not(.section-kicker), .location-card p, .dress-section p, .section-heading > p:last-child, .rsvp-section > p:not(.section-kicker) {
  max-width: 580px;
  margin: 2rem 0 0;
  font-size: .95rem;
  line-height: 1.9;
  opacity: .66;
}
.status-pill {
  display: inline-block;
  margin-top: 2rem;
  padding: .6rem 1rem;
  border: 1px solid rgba(24,48,40,.2);
  border-radius: 999px;
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.botanical-frame {
  position: relative;
  width: min(38vw, 440px);
  aspect-ratio: .78;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,106,49,.35);
  border-radius: 50% 50% 8% 8%;
}
.botanical-frame::before, .botanical-frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(139,106,49,.13);
  border-radius: inherit;
}
.botanical-frame::after { inset: 36px; }
.frame-monogram { z-index: 2; font: 400 clamp(3rem, 7vw, 5.8rem)/1 var(--serif); color: var(--forest); }
.frame-monogram span { font-size: .5em; color: #9a7536; }
.leaf { position: absolute; z-index: 3; width: 80px; height: 32px; border-radius: 100% 0 100% 0; border: 1px solid #b39761; transform-origin: bottom left; }
.leaf-a { top: 4%; left: -9%; transform: rotate(-28deg); }
.leaf-b { right: -10%; top: 42%; transform: rotate(148deg) scale(.8); }
.leaf-c { bottom: -3%; left: 18%; transform: rotate(28deg) scale(.62); }

.details-section { padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 8rem); }
.section-heading { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 4rem; align-items: end; }
.section-heading .section-kicker { grid-column: 1/-1; }
.section-heading > p:last-child { margin: 0; }
.timeline { max-width: 980px; margin: 5rem auto 0; padding: 0; list-style: none; border-top: 1px solid rgba(198,167,107,.28); }
.timeline li { display: grid; grid-template-columns: .55fr 1.45fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid rgba(198,167,107,.18); }
.timeline time { color: var(--gold-soft); font: italic .9rem/1.4 var(--serif); }
.timeline li > div { display: grid; grid-template-columns: 46px 1fr 1.5fr; gap: 1.5rem; align-items: baseline; }
.timeline li > div > span { color: rgba(198,167,107,.42); font: 400 .8rem/1 var(--serif); }
.timeline h3 { margin: 0; font: 400 1.6rem/1 var(--serif); }
.timeline p { margin: 0; color: rgba(244,239,229,.5); font-size: .84rem; line-height: 1.7; }

.location-section { min-height: 660px; display: grid; grid-template-columns: .9fr 1.1fr; }
.location-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(5rem, 9vw, 8rem); }
.text-link { align-self: flex-start; margin-top: 2.5rem; padding: 0 0 .45rem; border: 0; border-bottom: 1px solid #9a7536; background: transparent; color: #8b6a31; font: 600 .65rem/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.text-link:disabled { opacity: .6; }
.map-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  background: var(--cream-deep);
}
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16,42,34,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(16,42,34,.08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotate(12deg) scale(1.2);
}
.map-route { position: absolute; border: 2px solid rgba(154,117,54,.48); border-radius: 50%; }
.route-one { width: 90%; height: 60%; left: -20%; top: 20%; transform: rotate(-18deg); }
.route-two { width: 62%; height: 90%; right: -15%; top: -18%; transform: rotate(24deg); }
.map-pin { position: absolute; left: 54%; top: 47%; width: 44px; height: 44px; border: 1px solid var(--forest); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--cream); display: grid; place-items: center; }
.map-pin i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.map-placeholder strong { position: absolute; bottom: 2.5rem; right: 3rem; font: 400 1.2rem/1 var(--serif); color: var(--forest); letter-spacing: .22em; }

.dress-section { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 8rem); background: #e9dfce; color: var(--ink); }
.palette { display: flex; justify-content: center; }
.palette span { width: clamp(80px, 11vw, 150px); aspect-ratio: .75; position: relative; background: var(--swatch); border: 6px solid #f3ecdf; box-shadow: 0 16px 40px rgba(16,42,34,.14); margin-left: -1.5rem; transform: rotate(-3deg); }
.palette span:nth-child(2) { transform: rotate(4deg) translateY(12px); }
.palette span:nth-child(3) { transform: rotate(-1deg) translateY(-4px); }
.palette span:nth-child(4) { transform: rotate(6deg) translateY(15px); }
.palette i { position: absolute; bottom: .8rem; left: .8rem; color: rgba(255,255,255,.74); font: normal .55rem/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; mix-blend-mode: difference; }

.rsvp-section { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5rem 1.5rem; }
.rsvp-ornament { color: var(--gold); margin-bottom: 2rem; }
.rsvp-section h2 { max-width: 800px; }
.rsvp-section > p:not(.section-kicker) { text-align: center; }
.button-gold { margin-top: 2.5rem; padding: 1rem 1.6rem; border: 1px solid var(--gold); background: transparent; color: var(--gold-soft); font: 600 .65rem/1 var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.button-gold:disabled { opacity: .65; }

footer { padding: 4rem 1.5rem; text-align: center; background: #071611; border-top: 1px solid rgba(198,167,107,.16); }
.footer-mark { width: 52px; height: 52px; margin: 0 auto 1.5rem; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-soft); font: 400 1rem/1 var(--serif); }
footer p { margin: .5rem 0; color: rgba(244,239,229,.58); font-size: .6rem; letter-spacing: .18em; }
.footer-note { opacity: .55; text-transform: none; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.65,.25,1) forwards; }
.reveal:nth-of-type(2) { animation-delay: .12s; }
.hero h1.reveal { animation-delay: .22s; }
.date-lockup.reveal { animation-delay: .32s; }
.hero-copy.reveal { animation-delay: .42s; }
.scroll-cue.reveal { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 840px) {
  .site-header { height: 68px; }
  .brand-name { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: var(--cream); }
  .menu-toggle span:not(.sr-only) { display: block; height: 1px; width: 24px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; background: rgba(9,28,23,.98); border-top: 1px solid rgba(198,167,107,.2); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(198,167,107,.12); }
  .hero { padding-top: 7rem; }
  .hero h1 { flex-direction: column; gap: .25rem; }
  .hero h1 em { line-height: .65; }
  .date-lockup { grid-template-columns: 1fr; gap: .7rem; margin: 1.8rem 0 1.25rem; }
  .date-lockup span, .date-lockup span:first-child, .date-lockup span:last-child { text-align: center; }
  .date-lockup strong { padding: .7rem 1rem; border-left: 0; border-right: 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
  .countdown { grid-template-columns: repeat(2, minmax(100px, 150px)); gap: 2rem 0; }
  .countdown div:nth-child(2) { border-right: 0; }
  .story-section { grid-template-columns: 1fr; min-height: auto; }
  .section-number { display: none; }
  .botanical-frame { width: min(78vw, 420px); grid-row: 1; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 1.5rem; }
  .timeline li { grid-template-columns: 1fr; gap: 1rem; }
  .timeline li > div { grid-template-columns: 36px 1fr; }
  .timeline p { grid-column: 2; }
  .location-section, .dress-section { grid-template-columns: 1fr; }
  .map-placeholder { min-height: 430px; }
  .dress-section { gap: 4rem; }
  .palette { padding-left: 1rem; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 3.65rem; }
  .hero-halo { width: 116vw; }
  .countdown-section h2 { font-size: 2rem; }
  .countdown div { padding: 0 .75rem; }
  .story-section, .details-section, .dress-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .location-card { padding: 5rem 1.25rem; }
  .palette span { width: 28vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
