:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: #17392f;
  --forest: var(--cinnabar);
  --moss: #7b8b66;
  --cinnabar: #9f0600;
  --gold: #d0b060;
  --sage: #dce3d4;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --line: rgba(23, 57, 47, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans), sans-serif; font-size: 18px; line-height: 1.6; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.nav { height: 82px; padding: 0 clamp(24px, 5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--cream); border-bottom: 1px solid rgba(169,45,40,.32); position: absolute; inset: 0 0 auto; z-index: 10; }
.monogram { text-decoration: none; font-family: var(--font-display), serif; font-size: clamp(18px, 2vw, 25px); letter-spacing: -.01em; white-space: nowrap; }
.monogram span { color: var(--cinnabar); font-style: italic; margin: 0 3px; }
.navLinks { display: flex; gap: 38px; }
.navLinks a, .navRsvp { text-decoration: none; letter-spacing: .03em; font-size: 18px; font-weight: 600; }
.navLinks a:hover { opacity: .6; }
.navRsvp { justify-self: end; padding: 9px 18px; background: var(--cinnabar); color: var(--cream); border: 1px solid var(--cinnabar); transition: background .2s ease, color .2s ease; }
.navRsvp:hover { background: transparent; color: var(--cinnabar); }

.hero { min-height: 760px; height: 100vh; max-height: 980px; padding: 150px 24px 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.86), transparent 42%), linear-gradient(135deg, rgba(234,208,198,.2), transparent 32%), var(--cream); }
.invitationFrame { position: absolute; inset: 104px clamp(22px, 3vw, 46px) 30px; border: 2px solid var(--cinnabar); pointer-events: none; z-index: 1; }
.frameCorner { position: absolute; width: 106.5px; height: 102.5px; transform-origin: center; }
.frameCorner img { display: block; width: 100%; height: 100%; }
.frameCornerTopRight { top: -2px; right: -2px; }
.frameCornerBottomRight { right: -2px; bottom: -2px; transform: scaleY(-1); }
.frameCornerBottomLeft { left: -2px; bottom: -2px; transform: rotate(180deg); }
.frameCornerTopLeft { top: -2px; left: -2px; transform: scaleX(-1); }
.heroBranch { position: absolute; z-index: 2; pointer-events: none; background: center / contain no-repeat; }
.heroBranchTopLeft { top: 50px; left: -12px; width: min(41vw, 550px); aspect-ratio: 1413 / 1113; background-image: url("/images/plum-branches-top-left.png"); }
.heroBranchBottomRight { right: -12px; bottom: 32px; width: min(40vw, 525px); aspect-ratio: 1377 / 1142; background-image: url("/images/plum-branches-bottom-right.png"); }
.hero > :not(.invitationFrame):not(.heroBranch) { position: relative; z-index: 3; }
.eyebrow, .sectionKicker { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--cinnabar); }
.hero h1 { margin: 0; font-family: var(--font-display), serif; font-size: clamp(76px, 11.5vw, 168px); line-height: .77; font-weight: 400; letter-spacing: -.055em; }
.hero h1 i { display: block; font-weight: 400; color: var(--cinnabar); font-size: .56em; line-height: .8; margin: .12em 0 .16em; }
.doubleHappiness { margin-top: 26px; color: var(--cinnabar); font-size: 34px; line-height: 1; }
.heroDate { margin: 24px 0; letter-spacing: .04em; font-size: 19px; }
.textLink { text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.textLink span { margin-left: 8px; }

.intro { padding: 140px 24px; max-width: 840px; margin: auto; text-align: center; }
.intro h2, .sectionHeading h2, .travelCopy h2, .rsvpIntro h1 { margin: 0; font-family: var(--font-display), serif; font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -.025em; }
.intro > p:last-child { max-width: 660px; margin: 30px auto 0; color: rgba(23,57,47,.78); font-size: 21px; line-height: 1.65; }

.scheduleSection { padding: 120px clamp(24px, 6vw, 96px) 140px; background: var(--forest); color: var(--cream); }
.scheduleSection .sectionKicker { color: #dca69c; }
.sectionHeading { text-align: center; margin-bottom: 70px; }
.scheduleGrid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(246,241,231,.25); border-bottom: 1px solid rgba(246,241,231,.25); }
.scheduleCard { padding: 42px clamp(24px, 4vw, 60px) 54px; min-height: 280px; position: relative; }
.scheduleCard + .scheduleCard { border-left: 1px solid rgba(246,241,231,.25); }
.eventDay { margin: 0 0 18px; letter-spacing: .05em; font-size: 16px; color: #cbd4c1; }
.scheduleCard h3 { font-family: var(--font-display), serif; font-weight: 400; font-size: 32px; margin: 0 0 20px; }
.eventNote { color: rgba(246,241,231,.78); font-size: 18px; line-height: 1.6; margin: 0; }

.travelSection { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; }
.travelCopy { padding: 120px clamp(36px, 8vw, 130px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, var(--sage), #e9ded2); }
.travelCopy > p:last-child { font-size: 20px; line-height: 1.65; max-width: 500px; margin: 30px 0 0; }
.travelDetails { padding: 100px clamp(36px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; gap: 54px; background: var(--paper); }
.travelDetails article + article { border-top: 1px solid var(--line); padding-top: 44px; }
.travelDetails h3 { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin: 0 0 16px; }
.travelDetails p { font-size: 18px; line-height: 1.75; color: rgba(23,57,47,.78); max-width: 520px; }
.travelDetails a { display: inline-block; margin-top: 12px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 5px; font-size: 16px; }

.rsvpTeaser { padding: 120px 24px 130px; text-align: center; background: var(--cream); }
.teaserHappiness { color: var(--cinnabar); font-size: 36px; margin-bottom: 22px; }
.rsvpTeaser h2 { margin: 0; font-family: var(--font-display), serif; font-size: clamp(54px, 7vw, 92px); line-height: .95; font-weight: 400; letter-spacing: -.035em; }
.rsvpTeaser > p:not(.sectionKicker) { max-width: 580px; margin: 28px auto 34px; font-size: 20px; line-height: 1.65; color: rgba(23,57,47,.78); }
.teaserButton { display: inline-flex; align-items: center; gap: 20px; padding: 17px 28px; background: var(--forest); color: var(--cream); text-decoration: none; letter-spacing: .04em; font-size: 16px; font-weight: 600; border: 1px solid var(--forest); transition: .2s ease; }
.teaserButton:hover { background: transparent; color: var(--forest); }

.rsvpPageShell { min-height: 100vh; background: var(--cream); }
.rsvpPageNav { min-height: 82px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(169,45,40,.32); }
.backHome { text-decoration: none; letter-spacing: .04em; font-size: 15px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.rsvpPageFooter { padding: 70px 24px; }
.rsvpSection { padding: 90px clamp(24px, 7vw, 110px) 120px; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(520px, 1.28fr); gap: clamp(70px, 10vw, 160px); background: var(--cream); align-items: start; }
.rsvpIntro { position: sticky; top: 60px; }
.rsvpIntro > p:nth-of-type(2) { font-size: 19px; line-height: 1.65; margin-top: 32px; }
.deadline { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.deadline span { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--cinnabar); font-weight: 600; }
.deadline strong { font-family: var(--font-display), serif; font-size: 24px; font-weight: 500; }
.rsvpNotice { background: var(--paper); padding: 28px; border-left: 4px solid var(--cinnabar); font-size: 18px; }
.rsvpNotice.error { color: #7e211d; }
.rsvpForm { background: var(--paper); padding: clamp(28px, 5vw, 64px); box-shadow: 0 20px 70px rgba(23,57,47,.08); }
.fieldGroup { display: flex; flex-direction: column; gap: 9px; }
.fieldGroup label, .guestHeader span { font-size: 14px; letter-spacing: .04em; font-weight: 600; }
.fieldGroup label span { color: var(--moss); font-weight: 400; float: right; }
.fieldGroup input { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 0; outline: none; font-family: var(--font-display), serif; font-size: 20px; color: var(--ink); }
.fieldGroup input::placeholder { color: rgba(23,57,47,.48); opacity: 1; }
.fieldGroup input:focus::placeholder { color: transparent; }
.fieldGroup input:focus { border-bottom-color: var(--forest); }
.fieldGroup input[readonly] { color: var(--moss); }
.guestHeader { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 42px; }
.guestHeader > div { display: flex; flex-direction: column; gap: 5px; }
.guestHeader small { color: var(--moss); font-size: 16px; }
.guestList { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.guestCard { margin: 0; padding: 26px 24px 24px; border: 1px solid var(--line); background: rgba(246,241,231,.42); min-width: 0; }
.guestCard legend { max-width: 100%; padding: 0 10px 0 0; overflow-wrap: anywhere; font-family: var(--font-display), serif; font-size: 24px; line-height: 1.2; font-style: normal; font-weight: 600; color: var(--ink); }
.guestTopline { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.attendance { display: flex; border: 1px solid var(--line); }
.attendance button { border: 0; background: transparent; padding: 12px 15px; font-size: 15px; letter-spacing: .01em; cursor: pointer; }
.attendance button + button { border-left: 1px solid var(--line); }
.attendance button.selected { background: var(--forest); color: var(--cream); box-shadow: inset 0 -3px 0 var(--gold); }
.dietaryField { margin-top: 24px; }
.removeGuest { margin-top: 18px; border: 0; background: none; padding: 0; color: #865c51; font-size: 15px; text-decoration: underline; cursor: pointer; }
.addGuest { width: 100%; border: 1px dashed var(--line); background: none; padding: 15px 18px; margin-top: 18px; cursor: pointer; letter-spacing: .03em; font-size: 15px; font-weight: 600; }
.addGuest span { margin-right: 8px; font-size: 16px; }
.submitRsvp { width: 100%; border: 1px solid var(--forest); background: var(--forest); color: var(--cream); padding: 18px 24px; margin-top: 18px; letter-spacing: .04em; font-size: 16px; font-weight: 600; cursor: pointer; transition: .2s ease; }
.submitRsvp:hover { background: transparent; color: var(--forest); }
.submitRsvp:disabled { opacity: .5; cursor: wait; }
.formMessage { margin: 20px 0 0; text-align: center; font-family: var(--font-display), serif; font-size: 18px; }
.formMessage.saved { color: #39725c; }
.formMessage.error { color: #985a4f; }
.privacyNote { text-align: center; color: var(--moss); font-size: 14px; margin: 18px 0 0; }

.faqSection { padding: 120px clamp(24px, 7vw, 110px) 150px; background: var(--paper); }
.faqGrid { max-width: 1050px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; border-top: 1px solid var(--line); }
.faqGrid article { padding: 38px 0; border-bottom: 1px solid var(--line); }
.faqGrid h3 { font-family: var(--font-display), serif; font-size: 25px; font-weight: 500; margin: 0 0 12px; }
.faqGrid p { margin: 0; color: rgba(23,57,47,.78); line-height: 1.7; font-size: 18px; }
footer { background: var(--forest); color: var(--cream); text-align: center; padding: 100px 24px; }
.footerHappiness { color: var(--gold); font-size: 32px; margin-bottom: 14px; }
.footerMark { font-family: var(--font-display), serif; font-size: 56px; margin-bottom: 24px; }
.footerMark span { color: var(--gold); font-style: italic; }
footer p { letter-spacing: .04em; font-size: 15px; color: #cbd4c1; }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr 1fr; }
  .navLinks { display: none; }
  .hero { min-height: 700px; }
  .hero h1 { font-size: clamp(64px, 19vw, 112px); }
  .scheduleGrid, .travelSection, .rsvpSection, .faqGrid { grid-template-columns: 1fr; }
  .scheduleCard { min-height: auto; }
  .scheduleCard + .scheduleCard { border-left: 0; border-top: 1px solid rgba(246,241,231,.25); }
  .rsvpSection { gap: 50px; }
  .rsvpIntro { position: static; }
  .guestTopline { grid-template-columns: 1fr; }
  .attendance { width: 100%; }
  .attendance button { flex: 1; }
  .faqGrid { gap: 0; }
}

@media (max-width: 900px) {
  .heroBranch { display: none; background-image: none; }
}

@media (max-width: 520px) {
  .nav { height: 60px; padding-inline: 16px; }
  .monogram { font-size: 16px; }
  .navRsvp { padding: 7px 12px; font-size: 15px; }
  .rsvpPageNav { min-height: 60px; gap: 14px; padding: 8px 16px; }
  .backHome { font-size: 13px; text-align: right; }
  .hero { height: auto; min-height: 600px; max-height: none; padding: 106px 20px 58px; }
  .invitationFrame { inset: 74px 14px 16px; }
  .frameCorner { width: 64px; height: 61.6px; }
  .heroDate { max-width: 260px; line-height: 1.7; }
  .intro, .scheduleSection, .faqSection { padding-top: 90px; padding-bottom: 100px; }
  .travelCopy, .travelDetails { padding: 80px 28px; }
  .rsvpSection { padding: 70px 20px 90px; }
  .rsvpForm { padding: 28px 20px; }
  .attendance { flex-direction: column; }
  .attendance button + button { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
