:root {
  --navy: #17130d;
  --navy-deep: #090806;
  --blue: #8b6318;
  --paper: #fffdf9;
  --paper-2: #f5efe5;
  --ink: #595653;
  --muted: #75716c;
  --gold: #9b711d;
  --gold-deep: #6f4c0b;
  --line: rgba(111, 76, 11, .3);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Montserrat", Arial, sans-serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #e8e3da;
  font: 400 .98rem/1.75 var(--body);
  letter-spacing: .01em;
  overflow-x: hidden;
}
body.editor-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.opening {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #eee9e5;
  transition: visibility 0s 1.45s;
}
.opening__button {
  position: relative;
  width: min(100vw, 570px);
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: #594f4b;
  background: var(--paper);
  cursor: pointer;
  perspective: 1200px;
}
.opening__panel {
  position: absolute;
  inset-block: 0;
  width: 50.2%;
  background-image: url("./assets/ivory-envelope.webp");
  background-size: 200% 100%;
  background-repeat: no-repeat;
  transition: transform 1.15s cubic-bezier(.66,.01,.27,1), filter .9s ease;
  will-change: transform;
}
.opening__panel--left { left: 0; background-position: left center; transform-origin: left center; }
.opening__panel--right { right: 0; background-position: right center; transform-origin: right center; }
.opening__bow {
  position: absolute;
  z-index: 3;
  top: 42%;
  left: 50%;
  width: min(112%, 640px);
  max-width: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 9px rgba(57, 47, 44, .22));
  transition: opacity .3s ease, transform .55s cubic-bezier(.2,.75,.3,1);
}
.opening__names {
  position: absolute;
  z-index: 4;
  top: 6%;
  left: 67.5%;
  display: inline-flex;
  align-items: center;
  column-gap: .13em;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #76571d;
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-size: clamp(3.1rem, 10.8vw, 4.6rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .82), 0 2px 3px rgba(76, 54, 20, .12);
  transition: opacity .35s ease;
}
.opening__initial { display: block; }
.opening__ampersand {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: .48em;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  transform: translateY(.07em);
}
.opening__hint {
  position: absolute;
  z-index: 4;
  bottom: max(9vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  font: 500 .68rem/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .35em;
  white-space: nowrap;
  animation: breathe 1.8s ease-in-out infinite;
}
.opening.is-opening .opening__bow { opacity: 0; transform: translate(-50%, -50%) scale(.72) rotate(-3deg); }
.opening.is-opening .opening__names, .opening.is-opening .opening__hint { opacity: 0; }
.opening.is-opening .opening__panel--left { transform: translateX(-104%) rotateY(-8deg); filter: brightness(1.04); }
.opening.is-opening .opening__panel--right { transform: translateX(104%) rotateY(8deg); filter: brightness(1.04); }
.opening.is-open { visibility: hidden; pointer-events: none; }
@keyframes breathe { 50% { opacity: .42; transform: translateX(-50%) translateY(3px); } }

.site-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 60px rgba(49, 38, 20, .16);
  opacity: 0;
  transition: opacity .65s ease;
}
.site-shell.is-visible { opacity: 1; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #fff;
  background: rgba(23, 19, 13, .98);
  border-bottom: 1px solid rgba(177, 132, 39, .65);
  backdrop-filter: blur(10px);
}
.monogram {
  width: 39px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 165, 79, .88);
  border-radius: 50%;
  text-decoration: none;
  font: 400 .78rem/1 var(--serif);
}
.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span:not(.sr-only) { width: 24px; height: 1px; display: block; margin-left: auto; background: #d5b46f; transition: transform .25s ease, opacity .25s ease; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel {
  position: fixed;
  z-index: 90;
  top: 74px;
  left: 50%;
  width: min(100%, 760px);
  padding: 22px 26px 30px;
  display: grid;
  gap: 14px;
  color: #fff;
  background: var(--navy);
  transform: translate(-50%, -120%);
  transition: transform .45s cubic-bezier(.23,.8,.2,1);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 18px 26px rgba(41, 29, 10, .2);
  text-align: center;
}
.menu-panel.is-open { transform: translate(-50%, 0); }
.menu-panel a { padding: 6px 0; color: #d7b66d; text-decoration: none; font: 600 1.3rem/1.2 var(--serif); }

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fffdf9;
}
.hero__art { position: absolute; inset: clamp(18px, 4vw, 34px); border: 2px solid var(--gold); outline: 1px solid rgba(177,132,39,.35); outline-offset: 7px; background: radial-gradient(circle at center, rgba(255,255,255,.98), rgba(250,245,236,.82)); transform: none; }
.hero__art::before, .hero__art::after { content: "✦"; position: absolute; left: 50%; transform: translateX(-50%); padding: 0 16px; color: var(--gold); background: var(--paper); font-size: .9rem; }
.hero__art::before { top: -10px; }
.hero__art::after { bottom: -10px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 48%, rgba(177,132,39,.035) 50%, transparent 52%); pointer-events: none; }
.hero__card {
  position: relative;
  z-index: 2;
  width: min(68%, 410px);
  min-height: 430px;
  padding: clamp(36px, 7vw, 60px) clamp(24px, 6vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,253,249,.96);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(177,132,39,.35);
  outline-offset: -10px;
  box-shadow: 0 18px 44px rgba(48,35,13,.12);
}
.hero__card::before, .hero__card::after { content: "✦"; position: absolute; color: var(--gold); font-size: .9rem; }
.hero__card::before { top: 14px; left: 16px; }
.hero__card::after { right: 16px; bottom: 14px; }
.eyebrow, .section-heading > span, .section-number, .section-kicker {
  margin: 0;
  color: var(--gold-deep);
  font: 600 .67rem/1.6 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.section-heading > span, .section-number, .section-kicker { color: var(--gold-deep); }
.hero h1 { margin: 20px 0 12px; display: grid; color: var(--gold-deep); font: 600 clamp(3.4rem, 13vw, 6rem)/.88 var(--serif); letter-spacing: -.04em; }
.hero h1 small { margin: 8px 0; font: italic 600 2.2rem/1 var(--script); }
.rings-ornament { position: relative; width: 70px; height: 34px; margin: 20px auto 2px; }
.rings-ornament::before, .rings-ornament::after { content: ""; position: absolute; top: 7px; width: 31px; height: 20px; border: 2px solid var(--gold); border-radius: 50%; }
.rings-ornament::before { left: 10px; transform: rotate(-24deg); }
.rings-ornament::after { right: 10px; transform: rotate(24deg); }
.rings-ornament i { position: absolute; top: 16px; width: 28px; height: 1px; background: var(--gold); }
.rings-ornament i:first-child { right: 70px; }
.rings-ornament i:last-child { left: 70px; }
.fine-rule { width: 42px; height: 1px; margin: 8px auto 17px; background: var(--gold); }
.hero__date { margin: 0; color: var(--gold-deep); font: 600 .82rem/1.2 var(--sans); letter-spacing: .3em; }
.script { font-family: var(--script) !important; font-style: italic !important; font-weight: 600 !important; }
.hero__place { margin: 12px 0 0; font-size: 1.65rem; }
.scroll-cue { margin: 12px 0 -14px; font: 500 .6rem/1 var(--sans); text-transform: uppercase; letter-spacing: .34em; opacity: .56; }
.sound-button {
  position: absolute;
  z-index: 5;
  left: 20px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 22px rgba(44,31,10,.14);
  cursor: pointer;
}
.sound-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.sound-button.is-playing .sound-icon { animation: sound 850ms ease-in-out infinite alternate; }
@keyframes sound { to { transform: scale(1.1) rotate(-4deg); } }

.line-icon { display: block; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.section-icon { width: 64px; height: 64px; margin: 0 auto 22px; }
.mini-icon { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.section { position: relative; padding: clamp(88px, 16vw, 140px) clamp(24px, 8vw, 74px); color: var(--ink); background: var(--paper); text-align: center; }
.section-heading { margin-bottom: 52px; text-align: center; }
.section-heading h2 { margin: 7px 0 0; color: var(--gold-deep); font: 600 clamp(2.1rem, 7vw, 3.7rem)/1.08 var(--serif); }
.countdown { text-align: center; overflow: hidden; }
.countdown::before { content: "◯  ◯"; position: absolute; top: -42px; left: -32px; color: rgba(177,132,39,.12); font: 400 10rem/1 var(--serif); letter-spacing: -.7em; transform: rotate(-18deg); }
.countdown .section-heading { position: relative; z-index: 1; }
.countdown .section-heading h2 { font-size: clamp(2.2rem, 8vw, 4rem); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown__grid div { position: relative; }
.countdown__grid div:not(:last-child)::after { content: ""; position: absolute; right: -5px; top: 5px; width: 1px; height: 50px; background: var(--line); }
.countdown__grid strong { display: block; color: var(--gold-deep); font: 600 clamp(2rem, 8vw, 4rem)/1 var(--serif); }
.countdown__grid span { display: block; margin-top: 14px; font: 500 .57rem/1 var(--sans); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.date-panel { min-height: 430px; display: grid; place-content: center; text-align: center; overflow: hidden; }
.date-panel .section-icon { margin-bottom: 18px; }
.date-panel h2 { margin: 12px 0; color: var(--gold-deep); font: 600 clamp(2rem, 7vw, 3.2rem)/1.2 var(--serif); }
.date-panel > p:last-child { color: var(--muted); }
.corner-flower { position: absolute; width: 96px; height: 96px; background: none; pointer-events: none; opacity: .72; }
.corner-flower--left { left: 20px; top: 20px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-flower--right { right: 20px; bottom: 20px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }

.family { text-align: center; background: linear-gradient(180deg, #fffdf9, #f6f0e6); }
.family__grid { max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.family__grid article { position: relative; padding: 10px 34px; }
.family__grid article + article { border-left: 1px solid var(--gold); }
.family__grid .eyebrow { margin-bottom: 16px; color: var(--gold-deep); }
.family__grid article > p:not(.eyebrow) { margin: 6px 0; font: italic 500 clamp(1.35rem, 4.8vw, 2rem)/1.22 var(--script); }
.family__sponsors { max-width: 660px; margin: 64px auto 0; padding-top: 46px; border-top: 1px solid var(--line); }
.family__sponsors > .section-kicker { margin: 0 auto 28px; max-width: 520px; color: var(--gold-deep); line-height: 1.8; }
.family__grid--sponsors article { display: grid; align-content: center; }

.locations { background: linear-gradient(180deg, #fffdf9, #f8f3ea); }
.venue { margin-bottom: 80px; text-align: center; }
.venue:last-child { margin-bottom: 0; }
.venue__icon { width: 86px; height: 86px; margin: 0 auto 28px; }
.venue__title-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 2px; }
.venue h3 { margin: 0; color: var(--gold-deep); font: 600 clamp(1.8rem, 6vw, 2.8rem)/1.12 var(--serif); }
.venue time { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 500 .72rem/1 var(--sans); letter-spacing: .12em; }
.venue > p:not(.eyebrow) { margin: 8px 0 24px; color: var(--muted); }
.venue__address { display: flex; align-items: center; justify-content: center; gap: 8px; }
.map-frame { height: 260px; overflow: hidden; border: 1px solid var(--gold); background: #eee9df; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(.92); }
.map-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 238px;
  margin: 0 auto 22px;
  padding: 16px 22px;
  overflow: hidden;
  border: 1px solid #9b6b08;
  background: linear-gradient(135deg, #9b6b08 0%, #765005 100%);
  box-shadow: 0 10px 24px rgba(105, 72, 8, .2), inset 0 1px rgba(255, 255, 255, .22);
  color: #fffdf8;
  text-decoration: none;
  font: 700 .68rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.map-button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, .3);
  pointer-events: none;
}
.map-button .mini-icon { width: 20px; height: 20px; }
.map-button__arrow { margin-left: 2px; font-size: 1rem; line-height: 1; transition: transform .22s ease; }
.map-button:hover,
.map-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #a97912 0%, #815908 100%);
  box-shadow: 0 14px 30px rgba(105, 72, 8, .27), inset 0 1px rgba(255, 255, 255, .25);
}
.map-button:hover .map-button__arrow,
.map-button:focus-visible .map-button__arrow { transform: translate(2px, -2px); }
.map-button:active { transform: translateY(1px); box-shadow: 0 5px 14px rgba(105, 72, 8, .2); }
.map-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.schedule { overflow: hidden; }
.timeline { max-width: 540px; margin: 0 auto; }
.timeline article { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; padding-bottom: 45px; text-align: center; }
.timeline article:not(:last-child)::after { display: none; }
.timeline time { color: var(--gold-deep); text-align: center; font: 600 .72rem/1.4 var(--sans); letter-spacing: .15em; }
.timeline article div { padding-left: 0; }
.timeline article div::before { display: none; }
.timeline h3 { margin: 0 0 3px; color: var(--gold-deep); font: 600 2rem/1.15 var(--serif); }
.timeline p { margin: 0; color: var(--muted); }
.toile-spray { position: absolute; height: 36px; border-top: 1px solid var(--gold); background: none; pointer-events: none; opacity: .72; }
.toile-spray::after { content: "♡"; position: absolute; left: 50%; top: -21px; transform: translateX(-50%); padding: 0 14px; color: var(--gold); background: var(--paper); font: 400 1.8rem/1 var(--serif); }
.toile-spray--wide { left: 24%; right: 24%; bottom: 54px; }

.dress-code { min-height: 680px; padding-top: 185px; overflow: hidden; }
.dress-sketch { position: absolute; top: 60px; left: 50%; width: 82px; height: 82px; transform: translateX(-50%); }
.dress-code .section-kicker { margin-top: 14px; }
.dress-code h2 { max-width: 480px; margin: 28px auto 18px; color: var(--gold-deep); font: 600 clamp(3.7rem, 12vw, 6.5rem)/.92 var(--serif); letter-spacing: -.045em; }
.dress-code > p:last-of-type { max-width: 400px; margin-inline: auto; color: var(--muted); }
.toile-spray--side { width: 180px; height: 180px; right: -72px; bottom: -72px; border: 1px solid rgba(177,132,39,.35); transform: rotate(45deg); opacity: .5; }
.toile-spray--side::after { content: ""; padding: 0; }

.outline-button, .solid-button, .text-button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--navy);
  font: 600 .66rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.outline-button { color: var(--gold-deep); border-color: var(--gold); background: transparent; }
.solid-button { color: #fff; border-color: var(--gold-deep); background: var(--gold-deep); }
.text-button { border-color: transparent; color: var(--muted); background: transparent; }
.rsvp { background: #f7f1e7; }
.rsvp__intro { max-width: 540px; margin: -20px auto 44px; text-align: center; }
.rsvp-form { max-width: 540px; margin: 0 auto; display: grid; gap: 28px; }
.rsvp-form > label { display: grid; gap: 9px; color: var(--gold-deep); text-align: center; font: 600 .64rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.rsvp-form input:not([type="radio"]), .rsvp-form textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
  font: 400 1.15rem/1.4 var(--body);
  outline: none;
}
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--gold); }
.rsvp-form fieldset { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: 0; }
.rsvp-form legend { grid-column: 1 / -1; width: 100%; margin-bottom: 10px; color: var(--gold-deep); text-align: center; font: 600 .64rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.rsvp-form fieldset label { padding: 15px; border: 1px solid var(--line); text-align: center; }
.rsvp-form .solid-button { justify-self: center; }
.form-status { min-height: 1.6em; max-width: 540px; margin: 20px auto 0; color: var(--gold-deep); text-align: center; }

.faq { min-height: 650px; padding-bottom: 140px; overflow: hidden; }
.toile-corners::before, .toile-corners::after { content: ""; position: absolute; top: 28px; width: 88px; height: 88px; border-top: 1px solid var(--gold); }
.toile-corners::before { left: 24px; border-left: 1px solid var(--gold); }
.toile-corners::after { right: 24px; border-right: 1px solid var(--gold); }
.faq-list { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { position: relative; width: 100%; padding: 22px 38px; display: flex; justify-content: center; gap: 20px; border: 0; color: var(--gold-deep); background: transparent; text-align: center; font: 600 1.25rem/1.25 var(--serif); cursor: pointer; }
.faq-question span:last-child { position: absolute; right: 6px; transition: transform .25s ease; }
.faq-question[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { padding: 0 38px 20px; color: var(--muted); text-align: center; }
.faq-answer[hidden] { display: none; }

.photo-share { background: linear-gradient(180deg, #fffdf9, #f6f0e6); }
.photo-card {
  max-width: 610px;
  margin: 0 auto;
  padding: clamp(38px, 8vw, 64px) clamp(24px, 7vw, 56px);
  border: 1px solid var(--gold);
  border-radius: 34px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 18px 50px rgba(69, 48, 13, .08);
}
.photo-camera { width: 94px; height: 70px; margin: 0 auto 22px; stroke-width: 1.8; }
.photo-card h2 { margin: 12px 0 20px; color: var(--gold-deep); font: 600 clamp(2.25rem, 7vw, 3.8rem)/1.08 var(--serif); }
.photo-copy { max-width: 470px; margin: 0 auto 34px; color: var(--muted); }
.photo-form { max-width: 460px; margin: 0 auto; display: grid; gap: 18px; }
.photo-form > label:not(.photo-picker) { display: grid; gap: 9px; color: var(--gold-deep); font: 600 .64rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.photo-form input[type="text"], .photo-form input[name="guestName"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
  outline: none;
}
.photo-form input[name="guestName"]:focus { border-color: var(--gold); }
.photo-picker {
  position: relative;
  min-height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  background: rgba(155, 113, 29, .055);
  font: 600 .68rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.photo-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.photo-selection { min-height: 1.5em; margin: -4px 0 0; color: var(--muted); font-size: .82rem; }
.photo-submit { justify-self: center; min-width: 230px; }
.photo-status { min-height: 1.6em; margin: 0; color: var(--gold-deep); font-weight: 500; }
.photo-status.is-error { color: #98412f; }
.photo-status.is-success { color: #4f6b45; }

.closing { min-height: 470px; display: grid; place-content: center; background: #fffdf9; overflow: hidden; }
.closing::before, .closing::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(155, 113, 29, .28); transform: rotate(45deg); }
.closing::before { left: -74px; top: -74px; }
.closing::after { right: -74px; bottom: -74px; }
.closing__message { position: relative; z-index: 1; margin: 0; color: var(--gold-deep); font-size: clamp(3.2rem, 10vw, 5.7rem); line-height: .92; }
.closing__rule { width: 210px; height: 1px; margin: 42px auto 0; background: var(--line); }
.closing__rule span { position: relative; top: -17px; padding: 0 14px; color: var(--gold); background: var(--paper); font: 500 1.7rem/1 var(--serif); }
.footer-mark { margin: 86px auto 0; width: 75px; height: 75px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 400 1.3rem/1 var(--serif); }

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 80;
  min-height: 58px;
  padding: 0 12px calc(env(safe-area-inset-bottom) * .5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 4px;
  background: rgba(255,253,249,.96);
  border-top: 1px solid rgba(177,132,39,.35);
  backdrop-filter: blur(10px);
}
.bottom-nav a { text-align: center; text-decoration: none; font: 500 .57rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.edit-fab { position: fixed; z-index: 950; right: 18px; bottom: 76px; min-height: 44px; padding: 0 16px; border: 1px solid var(--gold); border-radius: 999px; color: #fff; background: var(--navy); box-shadow: 0 8px 25px rgba(40,28,8,.22); font: 600 .68rem/1 var(--sans); cursor: pointer; }
.editor {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  width: min(100%, 520px);
  height: 100dvh;
  overflow-y: auto;
  padding: 24px;
  color: #2d271d;
  background: #fff;
  box-shadow: -18px 0 50px rgba(48,35,13,.2);
}
.editor[hidden] { display: none; }
.editor__header { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.editor__header span { font: 600 .62rem/1 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--blue); }
.editor__header h2 { margin: 6px 0 0; font: 500 2rem/1 var(--serif); }
.editor__header button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f3ede3; font-size: 1.6rem; cursor: pointer; }
.editor__help { padding: 16px; background: #f7f2e9; font: 400 .95rem/1.45 var(--sans); }
.editor fieldset { margin: 28px 0 0; padding: 0; border: 0; }
.editor legend { width: 100%; padding-bottom: 9px; border-bottom: 1px solid #dce3ec; font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; }
.editor label { display: grid; gap: 7px; margin-top: 16px; font: 500 .76rem/1.2 var(--sans); }
.editor input, .editor textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #d6c7aa; border-radius: 5px; color: #2d271d; background: #fff; font: 400 .95rem/1.35 var(--sans); }
.editor textarea { resize: vertical; }
.editor__actions { position: sticky; bottom: -24px; margin: 30px -24px -24px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 10px; background: rgba(255,255,255,.96); border-top: 1px solid #dde4ed; backdrop-filter: blur(12px); }
.editor__actions button { flex: 1 1 130px; }
.editor__status { min-height: 0; margin: 16px 0 80px; font: 500 .86rem/1.4 var(--sans); color: var(--blue); }

@media (min-width: 761px) {
  body { padding: 32px 0; }
  .site-shell { border-radius: 4px; overflow: clip; }
  .opening__button { box-shadow: 0 25px 80px rgba(27,34,47,.22); }
  .bottom-nav { display: none; }
  .faq { padding-bottom: 100px; }
}
@media (max-width: 520px) {
  .hero__card { width: 73%; min-height: 390px; }
  .section { padding-inline: 25px; }
  .countdown__grid { gap: 4px; }
  .countdown__grid strong { font-size: 2rem; }
  .venue__title-row { display: flex; }
  .venue time { display: inline-block; margin-top: 8px; }
  .map-frame { height: 230px; }
  .family__grid { grid-template-columns: 1fr; gap: 28px; }
  .family__grid article { padding-inline: 8px; }
  .family__grid article + article { padding-top: 28px; border-top: 1px solid var(--gold); border-left: 0; }
  .rsvp-form fieldset { grid-template-columns: 1fr; }
  .timeline article { display: flex; gap: 12px; }
  .photo-card { border-radius: 24px; }
  .photo-submit { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
