:root {
  --cream: #f6efe3;
  --paper: #fffaf0;
  --ink: #29241f;
  --wine: #702b27;
  --terracotta: #b85e3b;
  --rust: #914127;
  --gold: #bd914f;
  --sage: #687057;
  --line: rgba(41, 36, 31, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 72px); position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.22); color: var(--paper); }
.monogram, .footer-monogram { font-family: Georgia, serif; font-size: 27px; letter-spacing: -.06em; font-weight: 600; }
.monogram span, .footer-monogram span { color: var(--gold); font-style: italic; padding: 0 2px; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 42px); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; }
nav a { position: relative; }
nav a:not(.nav-rsvp)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .25s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.nav-rsvp { border: 1px solid rgba(255,255,255,.65); padding: 11px 16px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 8px 0 8px 8px; background: none; color: inherit; border: 0; }

.hero { min-height: 840px; height: 100svh; max-height: 980px; background: var(--wine); color: var(--paper); display: grid; place-items: center; position: relative; overflow: hidden; padding: 110px 24px 70px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; opacity: .22; background-image: radial-gradient(rgba(255,255,255,.55) .6px, transparent .6px); background-size: 8px 8px; mix-blend-mode: soft-light; }
.hero::after { content: ""; position: absolute; width: min(68vw, 930px); aspect-ratio: 1; border: 1px solid rgba(240,211,169,.34); border-radius: 50%; z-index: -2; }
.hero-orbit { position: absolute; border-radius: 50%; z-index: -2; }
.orbit-one { width: min(48vw, 650px); aspect-ratio: 1; border: 1px solid rgba(240,211,169,.22); }
.orbit-two { width: min(29vw, 400px); aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, rgba(212,151,89,.44), rgba(122,45,39,.12) 62%); box-shadow: inset 0 0 90px rgba(255,210,149,.1); }
.hero-copy { text-align: center; position: relative; z-index: 2; }
.eyebrow, .section-kicker { margin: 0 0 20px; font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .34em; font-weight: 750; color: var(--rust); }
.eyebrow { color: #e5c594; }
.hero h1 { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 34px); margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(72px, 12vw, 174px); line-height: .78; letter-spacing: -.07em; }
.hero h1 i { color: var(--gold); font-size: .62em; font-weight: 400; transform: translateY(-.05em); }
.hero-date { display: flex; justify-content: center; align-items: center; gap: 19px; margin: clamp(36px, 6vh, 64px) auto 16px; font-family: Georgia, serif; text-transform: uppercase; letter-spacing: .2em; }
.hero-date span { font-size: 13px; }
.hero-date b { font-size: 22px; font-weight: 400; font-style: italic; letter-spacing: .12em; color: #ead1a9; }
.hero-date span:first-child { border-right: 1px solid rgba(255,255,255,.35); padding-right: 19px; }
.hero-date span:last-child { border-left: 1px solid rgba(255,255,255,.35); padding-left: 19px; }
.hero-place { margin: 0 0 38px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.hero-place em { color: var(--gold); padding: 0 7px; }
.primary-button, .light-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 26px; padding: 0 23px; background: #a64b30; color: white; border: 0; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.primary-button:hover, .light-button:hover { transform: translateY(-2px); background: #914127; }
.primary-button span { font-size: 18px; font-weight: 400; }
.primary-button:disabled, .light-button:disabled { opacity: .6; cursor: wait; transform: none; }
.hero-note { position: absolute; right: clamp(25px, 6vw, 92px); bottom: 13%; font-family: Georgia, serif; font-size: 14px; font-style: italic; line-height: 1.5; color: #dab983; transform: rotate(-8deg); }
.scroll-cue { position: absolute; left: clamp(24px, 5vw, 74px); bottom: 42px; display: flex; gap: 14px; align-items: center; font-size: 9px; text-transform: uppercase; letter-spacing: .23em; opacity: .75; }
.scroll-cue span { width: 42px; height: 1px; background: currentColor; }

.countdown-section { background: var(--ink); color: var(--paper); text-align: center; padding: 54px 20px 48px; }
.section-kicker.light { color: #d4aa6c; }
.countdown-section .section-kicker { margin-bottom: 18px; }
.countdown { display: flex; justify-content: center; width: min(100%, 640px); margin-inline: auto; }
.countdown-item { width: 25%; max-width: 160px; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.14); }
.countdown-item:last-child { border-right: 0; }
.countdown-item strong { display: block; font: 400 clamp(32px, 5vw, 62px)/1 Georgia, serif; }
.countdown-item span { display: block; margin-top: 9px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #baa993; }
.countdown-section > p { font: italic 15px Georgia, serif; color: #baa993; margin: 22px 0 0; }

.section { padding: clamp(90px, 12vw, 160px) max(24px, calc((100vw - 1120px) / 2)); }
.section-heading { position: relative; }
.section-heading.centered { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid currentColor; border-radius: 50%; margin-bottom: 24px; font-size: 9px; letter-spacing: .08em; }
.section-heading h2, .detail-panel h2, .rsvp-copy h2 { font: 400 clamp(43px, 6vw, 80px)/.98 Georgia, serif; letter-spacing: -.045em; margin: 0; }
.section-intro { max-width: 560px; margin: 22px auto 0; font: italic 17px/1.7 Georgia, serif; color: #655c52; }
.program-section { background: var(--paper); }
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 180px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 140px 80px 1fr; min-height: 138px; align-items: start; }
.timeline-time { font: italic 28px Georgia, serif; text-align: right; padding-top: 5px; color: var(--wine); }
.timeline-mark { position: relative; display: grid; place-items: start center; padding-top: 2px; z-index: 1; }
.timeline-mark span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); color: white; font-size: 10px; }
.timeline-content { padding: 2px 0 42px 18px; border-bottom: 1px solid var(--line); }
.timeline-item:last-child .timeline-content { border-bottom: 0; }
.timeline-content h3, .info-card h3 { margin: 0 0 10px; font: 400 27px Georgia, serif; }
.timeline-content p, .info-card p, .detail-panel > p, .photo-intro p, .rsvp-copy > p { margin: 0; color: #71675c; font-size: 14px; line-height: 1.75; }
.info-card p + p { margin-top: 18px; }

.story-section { background: #c56e48; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 720px; position: relative; overflow: hidden; }
.story-section::after { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; right: -110px; bottom: -170px; }
.story-paper { background: var(--cream); margin: clamp(40px, 6vw, 90px) 0 clamp(40px, 6vw, 90px) clamp(24px, 7vw, 120px); padding: clamp(54px, 7vw, 100px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; position: relative; z-index: 2; }
.story-copy { align-self: end; }
.story-copy p { font: 16px/1.85 Georgia, serif; color: #5e554c; }
.story-copy .dropcap::first-letter { float: left; font-size: 64px; line-height: .72; padding: 10px 9px 0 0; color: var(--terracotta); }
.signature { margin-top: 30px; font: italic 25px Georgia, serif; color: var(--wine); }
.story-quote { display: grid; place-content: center; text-align: center; color: white; z-index: 1; padding: 50px; }
.story-quote span { color: #ebc28d; font: 90px/0.5 Georgia, serif; }
.story-quote p { font: italic 29px/1.45 Georgia, serif; }

.info-section { background: var(--cream); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.info-card { padding: 48px 38px; min-height: 330px; border-right: 1px solid var(--line); position: relative; }
.info-card:last-child { border-right: 0; }
.info-card.featured { background: var(--wine); color: white; transform: translateY(-18px); box-shadow: 0 18px 45px rgba(85,42,31,.18); border: 0; }
.info-card.featured p { color: #dfc8ba; }
.info-icon { width: 47px; height: 47px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; margin-bottom: 44px; font: italic 19px Georgia, serif; color: var(--terracotta); }
.featured .info-icon { color: #ddb578; }
.card-label { text-transform: uppercase; letter-spacing: .23em; font-size: 9px !important; font-weight: 750; color: var(--rust) !important; margin-bottom: 12px !important; }
.featured .card-label { color: #ddb578 !important; }
.text-link { display: inline-block; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.text-link.muted { opacity: .7; }

.details-split { display: grid; grid-template-columns: 1fr 1fr; }
.detail-panel { min-height: 600px; padding: clamp(70px, 9vw, 130px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dress-panel { background: var(--sage); color: var(--paper); }
.gift-panel { background: #e4c39c; }
.detail-panel > p { margin-top: 28px; max-width: 510px; }
.dress-panel .section-kicker.light, .dress-panel > p { color: var(--paper); }
.gift-panel .section-kicker { color: #5b392c; }
.gift-panel > p { color: #5a4635; }
.swatches { display: flex; gap: 12px; margin-top: 35px; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.envelope { width: 155px; height: 96px; border: 1px solid rgba(41,36,31,.42); margin-top: 40px; position: relative; display: grid; place-items: center; color: var(--wine); font: italic 18px Georgia, serif; }
.envelope::before, .envelope::after { content: ""; position: absolute; top: 0; width: 1px; height: 95px; background: rgba(41,36,31,.42); transform-origin: top; }
.envelope::before { left: 0; transform: rotate(-58deg); }
.envelope::after { right: 0; transform: rotate(58deg); }

.photo-section { background: var(--ink); color: var(--paper); padding: clamp(90px, 11vw, 150px) max(24px, calc((100vw - 1120px) / 2)); }
.photo-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; margin-bottom: 60px; }
.photo-head h2 { color: var(--paper); }
.photo-intro p { color: #c5b9aa; max-width: 450px; }
.upload-card { border: 1px solid rgba(255,255,255,.18); padding: 22px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-bottom: 55px; background: rgba(255,255,255,.025); }
.upload-drop { min-height: 178px; border: 1px dashed rgba(255,255,255,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; transition: background .2s ease; }
.upload-drop:hover, .upload-drop:focus-within { background: rgba(255,255,255,.04); }
.upload-drop input { position: absolute; opacity: 0; pointer-events: none; }
.upload-drop strong { font: 400 20px Georgia, serif; }
.upload-drop small { color: #a89d90; margin-top: 8px; font-size: 11px; }
.upload-plus { width: 36px; height: 36px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 24px; margin-bottom: 15px; }
.upload-fields { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 12px; }
.upload-fields label, .rsvp-form > label { display: grid; gap: 9px; }
.upload-fields label span, .rsvp-form label > span, .rsvp-form legend { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; font-weight: 750; }
.upload-fields input { color: white; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); padding: 10px 0; outline: none; }
.upload-fields input:focus { border-color: var(--gold); }
.light-button { background: var(--paper); color: var(--ink); }
.light-button:hover { background: #eddfc9; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { margin: 0; background: #161412; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #211e1a; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item figcaption { display: flex; justify-content: space-between; padding: 13px 15px 15px; font-size: 9px; text-transform: uppercase; letter-spacing: .13em; color: #a89d90; }
.gallery-item figcaption a { color: #e3bd83; }
.gallery-empty { grid-column: 1 / -1; min-height: 270px; border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px; color: #a89d90; }
.gallery-empty span { color: var(--gold); font-size: 10px; letter-spacing: .3em; }
.gallery-empty h3 { font: 400 clamp(25px, 4vw, 38px) Georgia, serif; color: var(--paper); margin: 18px 0 10px; }
.gallery-empty p { margin: 0; font: italic 15px Georgia, serif; }

.rsvp-section { background: var(--paper); display: grid; grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr); gap: clamp(60px, 9vw, 140px); padding: clamp(90px, 12vw, 160px) max(24px, calc((100vw - 1120px) / 2)); }
.rsvp-copy { position: sticky; top: 50px; align-self: start; }
.rsvp-copy > p { margin-top: 32px; max-width: 430px; }
.rsvp-contact { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.rsvp-contact span { color: #984229; margin-left: 9px; }
.rsvp-form { display: grid; gap: 28px; background: var(--cream); padding: clamp(28px, 5vw, 60px); border: 1px solid var(--line); }
.rsvp-form input:not([type="radio"]), .rsvp-form textarea { width: 100%; border: 0; border-bottom: 1px solid #bcb1a3; background: transparent; padding: 12px 0; outline: none; border-radius: 0; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--terracotta); }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsvp-form legend { margin-bottom: 12px; }
.radio-card { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid #cfc4b5; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--terracotta); background: #fff8ed; }
.radio-card input { accent-color: var(--terracotta); }
.radio-card span { display: grid; gap: 4px; }
.radio-card b { font: 400 15px Georgia, serif; }
.radio-card small { font-size: 10px; color: #675d54; }
.primary-button.full { width: 100%; }
.form-message { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; line-height: 1.6; }
.form-message.success { color: #7faa68; }
.rsvp-form .form-message.success { color: #3d7142; }
.form-message.error { color: #e88a73; }

footer { min-height: 330px; background: var(--wine); color: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; padding: 60px 25px; }
footer::before, footer::after { content: ""; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
footer::before { left: -190px; top: -200px; } footer::after { right: -180px; bottom: -230px; }
.footer-monogram { font-size: 48px; }
footer > p { font: italic 18px Georgia, serif; color: #dec7b6; margin: 25px 0 32px; }
.footer-date { font-size: 10px; text-transform: uppercase; letter-spacing: .25em; }
.footer-date i { color: var(--gold); padding: 0 8px; }

@media (max-width: 1024px) {
  .menu-toggle { display: grid; grid-template-columns: 23px auto; column-gap: 10px; row-gap: 5px; align-items: center; cursor: pointer; }
  .menu-toggle span { width: 23px; height: 1px; background: currentColor; grid-column: 1; }
  .menu-toggle b { grid-column: 2; grid-row: 1 / 3; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; }
  nav { position: absolute; top: 82px; left: 0; right: 0; max-height: calc(100svh - 82px); overflow-y: auto; background: var(--wine); padding: 20px max(24px, 5vw) 28px; display: none; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.2); box-shadow: 0 18px 35px rgba(31,18,14,.2); }
  nav.nav-open { display: flex; }
  nav a { display: flex; min-height: 48px; align-items: center; justify-content: center; }
  .nav-rsvp { margin-top: 6px; }
  .hero { min-height: 720px; }
  .hero h1 { font-size: clamp(62px, 16vw, 105px); }
  .story-section { grid-template-columns: 1fr; }
  .story-paper { margin: 45px 24px 0; grid-template-columns: 1fr; }
  .story-quote { min-height: 340px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .info-card:last-child { border-bottom: 0; }
  .info-card.featured { transform: none; }
  .details-split { grid-template-columns: 1fr; }
  .detail-panel { min-height: 500px; }
  .rsvp-section { grid-template-columns: 1fr; }
  .rsvp-copy { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { height: 70px; padding-inline: 20px; }
  nav { top: 70px; }
  .hero { min-height: 690px; padding: 90px 18px 54px; }
  .hero h1 { flex-direction: column; gap: 1px; font-size: clamp(60px, 23vw, 92px); line-height: .68; }
  .hero h1 i { line-height: .8; }
  .hero::after { width: 125vw; }
  .orbit-one { width: 92vw; }
  .orbit-two { width: 57vw; }
  .hero-date { margin-top: 40px; gap: 9px; letter-spacing: .12em; }
  .hero-date span { font-size: 11px; }
  .hero-date b { font-size: 19px; }
  .hero-date span:first-child { padding-right: 10px; }
  .hero-date span:last-child { padding-left: 10px; }
  .hero-place { max-width: 290px; margin-inline: auto; line-height: 1.7; }
  .primary-button, .light-button { min-height: 52px; }
  .hero-note { display: none; }
  .scroll-cue { display: none; }
  .countdown-section { padding: 46px 10px 42px; }
  .countdown-item { min-width: 0; padding: 0 5px; }
  .countdown-item strong { font-size: clamp(25px, 9vw, 34px); }
  .countdown-item span { font-size: 8px; letter-spacing: .11em; }
  .section { padding: 76px 20px; }
  .section-heading h2, .detail-panel h2, .rsvp-copy h2 { font-size: clamp(38px, 13vw, 56px); }
  .section-heading.centered { margin-bottom: 50px; }
  .timeline::before { left: 17px; }
  .timeline-item { grid-template-columns: 36px 1fr; min-height: 0; padding-bottom: 34px; }
  .timeline-time { grid-column: 2; text-align: left; font-size: 22px; margin-bottom: 12px; }
  .timeline-mark { grid-column: 1; grid-row: 1 / 3; }
  .timeline-mark span { width: 34px; height: 34px; }
  .timeline-content { grid-column: 2; padding: 0 0 28px 16px; }
  .story-paper { margin-inline: 18px; padding: 48px 25px; }
  .story-quote { min-height: 300px; padding: 42px 25px; }
  .story-quote p { font-size: 24px; }
  .info-card { padding: 38px 30px; }
  .info-icon { margin-bottom: 28px; }
  .detail-panel { padding: 75px 28px; min-height: 470px; }
  .photo-section { padding: 76px 20px; }
  .photo-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 42px; }
  .upload-card { grid-template-columns: 1fr; padding: 14px; }
  .upload-drop { min-height: 165px; }
  .upload-fields { padding: 8px 4px 4px; }
  .upload-fields input, .rsvp-form input, .rsvp-form textarea { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item figcaption { gap: 14px; }
  .gallery-item figcaption a { min-height: 44px; display: inline-flex; align-items: center; margin-block: -12px; }
  .rsvp-section { padding: 76px 20px; gap: 48px; }
  .rsvp-form { padding: 32px 20px; }
  .rsvp-form fieldset { grid-template-columns: 1fr; }
  .radio-card { min-height: 58px; }
  footer { min-height: 290px; }
}

@media (max-width: 380px) {
  .hero-date { gap: 6px; }
  .hero-date span:first-child { padding-right: 6px; }
  .hero-date span:last-child { padding-left: 6px; }
  .countdown-item span { letter-spacing: .06em; }
  .story-paper, .info-card, .detail-panel { padding-inline: 22px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 560px; height: auto; padding-block: 100px 60px; }
  .hero h1 { flex-direction: row; font-size: clamp(58px, 13vw, 100px); line-height: .8; }
  .hero-date { margin-top: 28px; }
}

@media (pointer: coarse) {
  .primary-button:hover, .light-button:hover { transform: none; }
  .gallery-item:hover img { transform: none; }
}

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

.noscript { position: fixed; inset: auto 20px 20px; z-index: 100; padding: 14px 18px; background: #fffaf0; color: #702b27; box-shadow: 0 8px 30px rgba(0,0,0,.2); text-align: center; }
