:root {
  --ivory: #f4efe7;
  --ivory-deep: #e9e0d1;
  --paper: #fbf8f3;
  --ink: #24251f;
  --olive: #5f6546;
  --olive-dark: #41462f;
  --olive-soft: #8d9273;
  --gold: #b28732;
  --gold-light: #d2b46f;
  --line: rgba(95, 101, 70, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Snell Roundhand", "Segoe Script", "Bradley Hand", cursive;
  --radius: 1.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1280px, calc(100% - 56px));
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(95, 101, 70, 0.18);
  transform: translateX(-50%);
}
.topbar p {
  margin: 0;
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.monogram {
  width: max-content;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.monogram span { color: var(--gold); font-size: 0.62rem; vertical-align: middle; }
.nav-share {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border: 0;
  background: transparent;
  color: var(--olive-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  overflow: hidden;
  padding: 136px max(4vw, calc((100vw - 1280px) / 2)) 72px;
  background:
    radial-gradient(circle at 70% 34%, rgba(210, 180, 111, 0.17), transparent 31%),
    linear-gradient(135deg, #f8f4ed 0%, var(--ivory) 58%, #e9e0d2 100%);
}
.paper-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  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='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  z-index: -2;
  width: 440px;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
}
.hero-glow-one { top: -220px; left: -170px; border: 1px solid rgba(178, 135, 50, 0.42); }
.hero-glow-two { right: -260px; bottom: -250px; border: 1px solid rgba(95, 101, 70, 0.36); }
.hero-copy { z-index: 1; max-width: 710px; }
.eyebrow, .section-kicker {
  margin: 0 0 1.6rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.21em;
  line-height: 1.6;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  display: grid;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(4.6rem, 8.5vw, 8.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.73;
  text-transform: uppercase;
}
.hero h1 span:last-child { padding-left: clamp(1.4rem, 5.5vw, 5.5rem); }
.hero h1 em {
  width: 50%;
  margin: -0.05em 0 -0.12em auto;
  color: var(--gold);
  font-family: var(--script);
  font-size: 0.38em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  transform: rotate(-7deg);
}
.gold-flourish {
  width: min(360px, 72%);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.2rem 0 2.1rem;
  color: var(--gold);
}
.gold-flourish span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold)); }
.gold-flourish span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-quote {
  max-width: 610px;
  margin: 0;
  color: #555746;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  line-height: 1.75;
}
.hero-date {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 2rem;
  color: var(--olive-dark);
}
.hero-date > div { display: flex; align-items: baseline; gap: 0.7rem; }
.date-day { font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.date-month, .date-year, .date-weekday {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.date-year { font-family: var(--serif); font-size: 1.05rem; }
.date-weekday { color: var(--olive-soft); }
.date-rule { width: 1px; background: var(--gold-light); }
.hero-actions, .venue-actions, .keepsake-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button:focus-visible, .nav-share:focus-visible, .text-link:focus-visible, .footer-share:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.button-primary { background: var(--olive-dark); color: #fffdf8; }
.button-primary:hover { background: #2f3323; }
.button-secondary {
  border-color: rgba(95, 101, 70, 0.34);
  background: rgba(255, 255, 255, 0.34);
  color: var(--olive-dark);
}
.button-secondary:hover { border-color: var(--olive); background: rgba(255, 255, 255, 0.7); }

.invitation-frame-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  transform: rotate(1.4deg);
}
.invitation-frame {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(178, 135, 50, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 38px 80px rgba(54, 49, 35, 0.16), 0 4px 18px rgba(54, 49, 35, 0.08);
}
.invitation-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(178, 135, 50, 0.24);
  pointer-events: none;
}
.invitation-frame img { width: 100%; display: block; }
.invitation-frame-wrap > p {
  margin: 1.2rem 0 0;
  color: var(--olive-soft);
  font-family: var(--script);
  font-size: 1.05rem;
  text-align: center;
  transform: rotate(-1.4deg);
}

.countdown-section {
  padding: 88px 24px 100px;
  background: var(--olive-dark);
  color: #f8f4ec;
  text-align: center;
}
.countdown-section .section-kicker { margin-bottom: 1rem; color: var(--gold-light); }
.countdown-section h2, .section-heading h2, .venue-copy h2, .keepsake-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.countdown {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 3.6rem auto 0;
  background: rgba(255, 255, 255, 0.15);
}
.countdown-item { padding: 1.8rem 0.8rem 1.55rem; background: var(--olive-dark); }
.countdown-item strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown-item span {
  display: block;
  margin-top: 0.75rem;
  color: #c7c9b8;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.details-section {
  padding: 116px max(4vw, calc((100vw - 1180px) / 2));
  background: var(--paper);
}
.section-heading { max-width: 650px; margin: 0 auto 4.6rem; text-align: center; }
.section-heading .section-kicker, .venue-copy .section-kicker, .keepsake-copy .section-kicker { margin-bottom: 1rem; }
.section-heading > p:last-child, .keepsake-copy > p, .venue-copy > p {
  margin: 1.4rem 0 0;
  color: #676957;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
}
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 1.1rem; }
.detail-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 231, 0.52);
  text-align: center;
}
.featured-detail { background: var(--ivory-deep); }
.icon-ring {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 1.6rem;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--gold);
}
.icon-ring svg { width: 25px; height: 25px; stroke-width: 1.4; }
.detail-card > p {
  margin: 0 0 0.6rem;
  color: var(--olive-soft);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.detail-card h3 { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.25; }
.detail-card > span:last-child { margin-top: 0.65rem; color: #777a66; font-size: 0.78rem; }

.venue-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 640px;
  background: var(--ivory);
}
.venue-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(35deg, transparent 42%, rgba(178, 135, 50, 0.08) 42.5%, rgba(178, 135, 50, 0.08) 43.5%, transparent 44%),
    linear-gradient(120deg, #dfe1d1 0%, #ece7d9 46%, #d7dbc8 100%);
}
.venue-visual::before, .venue-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(250, 247, 239, 0.72);
}
.venue-visual::before { width: 720px; height: 88px; top: 23%; left: -9%; transform: rotate(19deg); }
.venue-visual::after { width: 670px; height: 62px; right: -18%; bottom: 22%; transform: rotate(-27deg); }
.map-line { position: absolute; z-index: 1; height: 1px; background: rgba(95, 101, 70, 0.34); transform-origin: left center; }
.line-one { width: 76%; top: 18%; left: 18%; transform: rotate(72deg); }
.line-two { width: 84%; top: 70%; left: 7%; transform: rotate(-13deg); }
.line-three { width: 60%; top: 44%; left: 28%; transform: rotate(-49deg); }
.venue-pin {
  position: absolute;
  z-index: 4;
  top: 49%;
  left: 54%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8%;
  background: var(--olive-dark);
  color: #fffdf8;
  box-shadow: 0 18px 38px rgba(65, 70, 47, 0.24);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.venue-pin svg { transform: rotate(45deg); }
.map-label {
  position: absolute;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(95, 101, 70, 0.18);
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.83);
  color: var(--olive-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.label-one { top: 26%; right: 17%; }
.label-two { left: 20%; bottom: 25%; }
.venue-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(2rem, 7vw, 7rem); }
.venue-copy h3 {
  max-width: 480px;
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
}
.venue-actions { margin-top: 2rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.4rem;
  color: var(--olive-dark);
  font-size: 0.78rem;
  font-weight: 700;
  border-bottom: 1px solid var(--gold-light);
}

.keepsake-section { display: grid; place-items: center; padding: 112px 24px; background: var(--paper); }
.keepsake-copy { max-width: 700px; text-align: center; }
.keepsake-actions { justify-content: center; }
footer { padding: 80px 24px 36px; background: #2f3324; color: #f8f4ec; text-align: center; }
.footer-heart { color: var(--gold-light); }
.footer-names {
  margin: 1rem 0 2.2rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-names span { color: var(--gold-light); font-family: var(--script); font-size: 0.68em; text-transform: lowercase; }
.families { display: flex; align-items: center; justify-content: center; gap: 2.2rem; color: #e5e2d7; }
.families > div { min-width: 200px; }
.families span { color: var(--gold-light); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.families p { margin: 0.55rem 0 0; font-family: var(--serif); font-size: 1rem; }
.families i { width: 1px; height: 45px; background: rgba(210, 180, 111, 0.35); }
.footer-share {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.4rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(210, 180, 111, 0.6);
  background: transparent;
  color: #f8f4ec;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
}
.footer-date { margin: 3.6rem 0 0; color: #9ea087; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.23em; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 320px; gap: 3rem; padding-left: 32px; padding-right: 32px; }
  .hero h1 { font-size: clamp(4.2rem, 10vw, 6.5rem); }
  .detail-grid { gap: 0.75rem; }
  .detail-card { padding: 1.5rem; }
  .venue-copy { padding-left: 3rem; padding-right: 3rem; }
}

@media (max-width: 760px) {
  .topbar { width: calc(100% - 32px); height: 68px; grid-template-columns: 1fr 1fr; }
  .topbar > p { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 4rem; padding: 112px 20px 72px; }
  .hero-copy { text-align: center; }
  .eyebrow { max-width: 320px; margin-right: auto; margin-left: auto; }
  .hero h1 { font-size: clamp(4rem, 20vw, 6.1rem); line-height: 0.78; }
  .hero h1 span:last-child { padding-left: 0; }
  .hero h1 em { width: 100%; margin: 0.04em auto -0.08em; }
  .gold-flourish { margin-right: auto; margin-left: auto; }
  .hero-date, .hero-actions { justify-content: center; }
  .invitation-frame-wrap { width: min(88%, 370px); }
  .countdown-section { padding: 72px 16px 78px; }
  .countdown { margin-top: 2.8rem; }
  .countdown-item { padding: 1.35rem 0.35rem 1.2rem; }
  .details-section { padding: 88px 20px; }
  .section-heading { margin-bottom: 3.2rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 245px; }
  .venue-section { grid-template-columns: 1fr; }
  .venue-visual { min-height: 410px; }
  .venue-copy { padding: 72px 24px 84px; text-align: center; }
  .venue-copy h3 { margin-right: auto; margin-left: auto; }
  .venue-actions { justify-content: center; }
  .keepsake-section { padding: 88px 20px; }
  .families { flex-direction: column; gap: 1.5rem; }
  .families i { width: 70px; height: 1px; }
}

@media (max-width: 430px) {
  .nav-share span { display: none; }
  .hero h1 { font-size: clamp(3.7rem, 22vw, 5.3rem); }
  .hero-quote { font-size: 1.05rem; }
  .hero-date { gap: 0.8rem; }
  .hero-date > div { gap: 0.45rem; }
  .date-day { font-size: 2.15rem; }
  .date-month, .date-year, .date-weekday { font-size: 0.61rem; }
  .hero-actions, .keepsake-actions { display: grid; grid-template-columns: 1fr; }
  .countdown-item strong { font-size: 2.15rem; }
  .countdown-item span { font-size: 0.54rem; letter-spacing: 0.1em; }
  .venue-actions { flex-direction: column; }
  .text-link { margin: 0.6rem 0 0; }
}

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