:root {
  --teal: #70755b;
  --teal-deep: #444b39;
  --emerald: #59634d;
  --blue: #575b61;
  --indigo: #3d3740;
  --gold: #c6a15b;
  --gold-bright: #e6c784;
  --bronze: #a8763e;
  --ink: #171713;
  --ink-2: #29261f;
  --ivory: #f5efe3;
  --parchment: #d8d0c3;
  --muted: #a59b8b;
  --hairline: rgba(165, 155, 139, .18);
  --hairline-gold: rgba(198, 161, 91, .3);
  --paper: #f5f1e7;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--parchment);
  background:
    radial-gradient(60% 48% at 8% 15%, rgba(112, 117, 91, .2), transparent 65%),
    radial-gradient(48% 56% at 92% 34%, rgba(168, 118, 62, .14), transparent 68%),
    var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 clamp(24px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled { background: rgba(23, 23, 19, .9); backdrop-filter: blur(16px); border-color: var(--hairline-gold); }
.wordmark, .footer-mark { display: inline-flex; flex-direction: column; line-height: .8; }
.signature-word { position: relative; display: block; width: 108px; height: 52px; overflow: hidden; }
.signature-layer { position: absolute; top: 0; left: -60.33%; width: 158.28%; max-width: none; height: auto; display: block; }
.signature-top { clip-path: inset(0 0 40.39% 40.54%); }
.signature-middle { clip-path: inset(59.61% 0 17.29% 51.2%); }
.signature-bottom { clip-path: inset(82.71% 0 0 0); }
.wordmark small, .footer-mark small { margin: 1px 0 0 3px; color: var(--gold); font: 700 .58rem/1 var(--font-body); letter-spacing: .27em; text-transform: uppercase; }
.footer-mark .signature-word { width: 122px; height: 58px; }
.header-link { padding: 11px 22px; border: 1px solid var(--hairline-gold); border-radius: 999px; color: var(--gold-bright); font-size: .8rem; font-weight: 700; transition: .3s var(--ease); }
.header-link:hover { background: rgba(198, 161, 91, .1); border-color: var(--gold); }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, var(--ink)); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 38%; filter: saturate(.68) sepia(.08) contrast(1.03); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 23, 19, .94) 0%, rgba(23, 23, 19, .72) 48%, rgba(23, 23, 19, .35) 100%), linear-gradient(180deg, rgba(23, 23, 19, .16), rgba(23, 23, 19, .94) 94%); }
.hero-inner { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
h1, h2, h3 { color: var(--ivory); font-family: var(--font-display); font-weight: 400; }
h1 { max-width: 10ch; font-size: clamp(4.4rem, 10.5vw, 9rem); line-height: .82; letter-spacing: -.045em; }
h1 em, h2 em { color: var(--gold-bright); font-weight: 300; }
.hero-copy { max-width: 34ch; margin-top: 2.3rem; font-size: clamp(1.08rem, 1.8vw, 1.38rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 14px 28px; border: 1px solid transparent; border-radius: 999px; font-size: .87rem; font-weight: 700; cursor: pointer; transition: .32s var(--ease); }
.button-gold { color: #1a1207; background: linear-gradient(135deg, var(--gold), var(--bronze)); box-shadow: 0 15px 38px -16px rgba(198, 161, 91, .75); }
.button-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button-gold:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .65; transform: none; }
.button-quiet { color: var(--gold-bright); border-color: var(--hairline-gold); }
.button-quiet:hover { background: rgba(198, 161, 91, .08); border-color: var(--gold); }
.scroll-mark { position: absolute; z-index: 3; bottom: 26px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-mark i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); }

.invitation { padding: clamp(90px, 12vw, 160px) 0; }
.invitation-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .72fr); gap: clamp(55px, 10vw, 140px); align-items: center; }
.invitation-copy h2, .rsvp-intro h2, .details-heading h2, .closing h2 { margin-bottom: .55em; font-size: clamp(2.9rem, 5.8vw, 5.5rem); line-height: .94; letter-spacing: -.025em; }
.invitation-copy > p:not(.eyebrow) { max-width: 57ch; color: var(--parchment); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.invitation-copy > p + p { margin-top: 1.2em; }
.event-card { position: relative; padding: clamp(30px, 4vw, 48px); overflow: hidden; border: 1px solid var(--hairline-gold); border-radius: 24px; background: linear-gradient(145deg, rgba(57, 55, 43, .92), rgba(23, 23, 19, .86)); box-shadow: 0 36px 80px -48px #000; }
.event-kicker { display: block; margin-bottom: 1.3rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.event-detail { display: grid; gap: 3px; padding: 19px 0; border-top: 1px solid var(--hairline); }
.event-detail span { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.event-detail strong { color: var(--ivory); font: 400 clamp(1.35rem, 2.3vw, 1.8rem)/1.2 var(--font-display); }
.event-card > a { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 1.35rem; color: var(--gold-bright); font-size: .83rem; font-weight: 700; }

.photo-story { padding: clamp(65px, 9vw, 120px) 0; background: linear-gradient(180deg, transparent, rgba(41, 38, 31, .82), transparent); }
.photo-grid { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto auto; gap: clamp(20px, 3vw, 36px); align-items: start; }
.photo { margin: 0; }
.photo-tall { grid-row: 1 / 3; }
.photo > img { width: 100%; display: block; object-fit: cover; border: 1px solid var(--hairline-gold); border-radius: 22px; box-shadow: 0 34px 80px -48px #000; }
.photo-tall > img { aspect-ratio: 4 / 5; }
.photo-wide > img { aspect-ratio: 16 / 9; }
.photo-placeholder { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--hairline-gold); border-radius: 22px; background: linear-gradient(145deg, rgba(14, 124, 134, .4), rgba(36, 75, 120, .25) 55%, rgba(8, 23, 27, .9)); box-shadow: 0 34px 80px -48px #000; }
.photo-tall .photo-placeholder { aspect-ratio: 4 / 5; }
.photo-wide .photo-placeholder { aspect-ratio: 16 / 9; }
.photo-placeholder span { color: rgba(245, 239, 227, .47); font: italic 400 clamp(1.5rem, 3vw, 2.6rem)/1.06 var(--font-display); text-align: center; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .76rem; letter-spacing: .03em; }
.photo-statement { padding: clamp(10px, 2vw, 26px) clamp(5px, 3vw, 40px); align-self: center; border-left: 1px solid var(--gold); }
.photo-statement p { color: var(--ivory); font: 300 clamp(1.7rem, 3.2vw, 2.9rem)/1.15 var(--font-display); }
.photo-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.2vw, 26px); margin-top: clamp(18px, 3vw, 34px); }
.photo-strip .photo:nth-child(1) img { object-position: center; }
.photo-strip .photo:nth-child(2) img { object-position: center; }
.photo-strip img { aspect-ratio: 4 / 3; }

.rsvp-section { padding: clamp(85px, 12vw, 150px) 0; }
.rsvp-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.rsvp-intro p:not(.eyebrow) { max-width: 53ch; }
.privacy-note { margin-top: 1.4rem; padding: 16px 18px; border-left: 1px solid var(--gold); color: var(--ivory); background: rgba(198, 161, 91, .06); font-size: .87rem; }
.small-note { margin-top: 1.6rem; color: var(--muted); font-size: .75rem; }
.form-shell { min-height: 430px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--hairline-gold); border-radius: 22px; background: var(--paper); box-shadow: 0 38px 80px -40px #000; }
.form-fallback { max-width: 410px; padding: 50px 35px; color: #33474b; text-align: center; }
.form-fallback[hidden] { display: none; }
.form-status-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid rgba(168, 118, 62, .35); border-radius: 50%; color: var(--bronze); font: 400 2.2rem/1 var(--font-display); }
.form-fallback h3 { margin-bottom: .45rem; color: #10262c; font-size: 2rem; }
.form-fallback p { margin-bottom: 1.5rem; font-size: .92rem; }
.ghl-frame, .ghl-frame iframe { width: 100%; display: block; border-radius: 14px; }
.ghl-frame[hidden] { display: none; }

.details { padding: clamp(65px, 9vw, 115px) 0; background: rgba(41, 38, 31, .58); }
.details-heading { max-width: 720px; margin-bottom: 2.5rem; }
.faq-list { border-top: 1px solid var(--hairline-gold); }
details { border-bottom: 1px solid var(--hairline); }
summary { display: flex; justify-content: space-between; gap: 30px; padding: 26px 0; color: var(--ivory); font: 400 clamp(1.35rem, 2.3vw, 1.8rem)/1.25 var(--font-display); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { flex: 0 0 auto; color: var(--gold); font-family: var(--font-body); font-size: 1.1rem; }
details p { max-width: 67ch; padding: 0 50px 26px 0; color: var(--muted); font-size: .95rem; }

.closing { position: relative; padding: clamp(110px, 15vw, 200px) 0; overflow: hidden; text-align: center; }
.closing-inner { position: relative; }
.closing h2 { max-width: 12ch; margin-left: auto; margin-right: auto; }
.closing .button { margin-top: 1.25rem; }

footer { padding: 58px 0 35px; border-top: 1px solid var(--hairline-gold); background: rgba(19, 18, 15, .88); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px; align-items: end; }
.footer-inner > p { color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; gap: 22px; justify-content: flex-end; color: var(--muted); font-size: .78rem; }
.footer-links a:hover { color: var(--gold-bright); }
.copyright { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--hairline); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 820px) {
  .invitation-grid, .rsvp-grid { grid-template-columns: 1fr; }
  .event-card { max-width: 560px; }
  .photo-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-tall { grid-row: auto; }
  .photo-tall .photo-placeholder, .photo-tall > img { aspect-ratio: 4 / 3; }
  .photo-strip { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .photo-statement { padding: 20px 4px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > p:not(.copyright) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 34px, var(--container)); }
  .site-header { height: 72px; padding: 0 17px; }
  .header-link { padding: 9px 14px; font-size: .7rem; }
  .wordmark small { font-size: .5rem; }
  .signature-word { width: 96px; height: 46px; }
  .hero { min-height: 92svh; padding-top: 105px; }
  h1 { font-size: clamp(3.7rem, 19vw, 5.3rem); }
  .hero-copy { max-width: 28ch; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .scroll-mark { display: none; }
  .invitation-copy h2, .rsvp-intro h2, .details-heading h2, .closing h2 { font-size: clamp(2.65rem, 13vw, 3.8rem); }
  .photo-tall .photo-placeholder, .photo-wide .photo-placeholder { aspect-ratio: 4 / 3; }
  .photo-wide > img { aspect-ratio: 4 / 3; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { aspect-ratio: 4 / 3; }
  .form-shell { min-height: 390px; }
  .form-fallback { padding: 40px 20px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .copyright { grid-column: auto; }
}
