
:root {
  color-scheme: light dark;
  --ink: #2c2521;
  --muted: #796e65;
  --paper: #fffdf8;
  --cream: #f3eadf;
  --gold: #a98655;
  --gold-light: #dfccb0;
  --wine: #78303c;
  --wine-dark: #4a1420;
  --display-font: 'Cormorant Garamond', Georgia, serif;
  --body-font: 'EB Garamond', Georgia, serif;
  --ui-font: 'Jost', Arial, sans-serif;
  --script-font: 'Parisienne', cursive;
}

* { box-sizing: border-box; }
html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background-color: #e9e0d6;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: #f4eade;
  background: radial-gradient(circle at 50% 0, #fffdfa, #ebe3da 64%, #ddd2c5);
  font-family: var(--body-font);
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #2c2521;
    --muted: #796e65;
    --paper: #fffdf8;
    --cream: #f3eadf;
    --gold: #a98655;
    --gold-light: #dfccb0;
    --wine: #78303c;
    --wine-dark: #4a1420;
  }
  html { background-color: #e9e0d6; }
  body {
    color: #2c2521;
    background-color: #f4eade;
    background-image: radial-gradient(circle at 50% 0, #fffdfa, #ebe3da 64%, #ddd2c5);
  }
  button, input, select, textarea { color-scheme: light; }
}
button, input { font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3 { font-family: var(--display-font); text-wrap: balance; }
p { text-wrap: pretty; }
.invitation-shell {
  min-height: 100svh;
  overflow-x: hidden;
  isolation: isolate;
}

/* Opening cover */
.gate-stage {
  position: relative;
  width: min(100%, 480px);
  height: 100svh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1600px;
  background: #f4eade;
  box-shadow: 0 0 70px rgba(56, 37, 24, .22);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gate-stage:focus-visible { outline: 2px solid var(--wine); outline-offset: -5px; }
.cover-interior {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 38%, #fffdf8 0, #f7eee3 58%, #e9dccd 100%);
}
.cover-interior::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/burgundy-rose-frame.png') center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: .34;
  pointer-events: none;
}
.cover-interior::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.1), transparent 42%), linear-gradient(180deg, rgba(255,249,239,.05), rgba(82,44,25,.08));
  pointer-events: none;
}
.reveal-card {
  position: relative;
  z-index: 1;
  width: min(84vw, 340px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(.94);
  transition: opacity .9s 1.05s ease, transform 1s 1.02s cubic-bezier(.2,.75,.25,1);
}
.reveal-photo {
  width: min(78vw, 300px);
  aspect-ratio: .8;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 5px solid rgba(255,253,247,.92);
  border-radius: 120px 120px 10px 10px;
  box-shadow: 0 15px 32px rgba(76,40,24,.2), 0 0 0 1px rgba(126,75,45,.16);
}
.reveal-card h1 {
  margin: 12px 0 8px;
  font-family: var(--display-font);
  font-size: clamp(38px, 10vw, 50px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.035em;
}
.reveal-card h1 em { color: var(--wine); font-family: var(--script-font); font-size: .7em; font-weight: 400; }
.reveal-date { margin: 14px 0 0; color: #65574e; font: 500 9px var(--ui-font); letter-spacing: .24em; }
.enter-invitation {
  margin-top: 23px;
  padding: 11px 19px;
  border: 1px solid rgba(113,72,44,.28);
  border-radius: 999px;
  color: #5f4f45;
  background: rgba(255,253,247,.72);
  backdrop-filter: blur(6px);
  font: 500 9px var(--ui-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.enter-invitation span { color: var(--wine); margin-left: 5px; }

.gate-door {
  position: absolute;
  top: 0;
  width: 50.2%;
  height: 100%;
  z-index: 4;
  background-image: url('/embroidered-gates.png');
  background-repeat: no-repeat;
  background-size: 200% 100%;
  backface-visibility: hidden;
  filter: drop-shadow(0 0 12px rgba(79,49,29,.16));
  transition: transform 1.45s cubic-bezier(.7,.03,.2,1), filter .7s ease;
}
.gate-door::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/french-lace-overlay.png') center bottom / auto 100% no-repeat;
  opacity: .86;
  mix-blend-mode: multiply;
  filter: contrast(1.28) brightness(.94);
  pointer-events: none;
}
.gate-left { left: 0; background-position: left center; transform-origin: left center; }
.gate-right { right: 0; background-position: right center; transform-origin: right center; }
.gate-right::after { transform: scaleX(-1); }

.satin-ribbon {
  position: absolute;
  top: 54%;
  width: 50.5%;
  height: 62px;
  z-index: 5;
  background-color: #f9f3ea;
  background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(208,191,171,.22)), url('/french-lace-overlay.png');
  background-position: center, center 96%;
  background-size: 100% 100%, 250px auto;
  background-blend-mode: normal, multiply;
  box-shadow: 0 5px 12px rgba(73,50,34,.18), inset 0 1px rgba(255,255,255,.9);
  transition: transform 1.2s .12s cubic-bezier(.66,.03,.25,1), opacity .5s .2s ease;
}
.ribbon-left { left: 0; }
.ribbon-right { right: 0; }
.ribbon-loop, .ribbon-tail {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 6;
  background-color: #fbf5ec;
  background-image: linear-gradient(145deg, rgba(255,255,255,.2), rgba(205,185,164,.28)), url('/french-lace-overlay.png');
  background-position: center, center bottom;
  background-size: 100% 100%, 220px auto;
  background-blend-mode: normal, multiply;
  box-shadow: 0 8px 14px rgba(66,43,28,.18);
  transition: transform 1.15s .08s cubic-bezier(.66,.03,.25,1), opacity .45s .22s ease;
  pointer-events: none;
}
.ribbon-loop { width: 78px; height: 49px; border-radius: 70% 22% 65% 28%; }
.loop-left { transform: translate(-91%, -47%) rotate(17deg); }
.loop-right { transform: translate(-9%, -47%) scaleX(-1) rotate(17deg); }
.ribbon-tail { width: 45px; height: 118px; clip-path: polygon(8% 0, 100% 0, 72% 100%, 42% 81%, 0 100%); }
.tail-left { transform: translate(-94%, 9%) rotate(16deg); }
.tail-right { transform: translate(-6%, 9%) scaleX(-1) rotate(16deg); }

.wax-seal {
  position: absolute;
  left: 50%;
  top: calc(54% + 31px);
  translate: -50% -50%;
  width: 108px;
  height: 108px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 13px 15px rgba(67,19,29,.4));
  cursor: inherit;
  z-index: 8;
  transition: transform .25s ease, opacity .42s .15s ease;
  animation: seal-breathe 2.3s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.seal-image { width: 100%; height: 100%; object-fit: contain; filter: saturate(.78) brightness(.63) contrast(1.16); pointer-events: none; }
.open-hint {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 10px));
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(120,48,60,.2);
  border-radius: 999px;
  color: #5f5048;
  background: rgba(255,250,243,.82);
  box-shadow: 0 7px 18px rgba(70,43,27,.1);
  backdrop-filter: blur(7px);
  font: 500 9px var(--ui-font);
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity .35s ease;
}
.open-hint i { width: 18px; height: 1px; flex: 0 0 auto; background: rgba(120,48,60,.55); animation: hint-line 1.8s ease-in-out infinite; }
@keyframes hint-line { 0%,100% { transform: scaleX(.55); opacity: .45; } 50% { transform: scaleX(1); opacity: 1; } }

.is-open .gate-left { transform: translateX(-105%) rotateY(-16deg); filter: drop-shadow(18px 0 22px rgba(67,35,19,.15)); }
.is-open .gate-right { transform: translateX(105%) rotateY(16deg); filter: drop-shadow(-18px 0 22px rgba(67,35,19,.15)); }
.is-open .ribbon-left { transform: translateX(-105%); opacity: 0; }
.is-open .ribbon-right { transform: translateX(105%); opacity: 0; }
.is-open .loop-left, .is-open .tail-left { transform: translate(-390%, -47%) rotate(8deg); opacity: 0; }
.is-open .loop-right, .is-open .tail-right { transform: translate(290%, -47%) scaleX(-1) rotate(8deg); opacity: 0; }
.is-open .wax-seal { animation: none; opacity: 0; transform: scale(1.32) rotate(-7deg); pointer-events: none; }
.is-open .open-hint { opacity: 0; }
.is-open .reveal-card { opacity: 1; transform: translateY(0) scale(1); }


/* Invitation content */
.paper-flow {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0;
  background: linear-gradient(rgba(247,241,234,.94), rgba(238,228,217,.98)), url('/rose-column-stage.png') center top/760px auto repeat-y;
  transition: opacity .75s 1.05s ease, max-height .01s 1.05s linear;
}
.is-open .paper-flow { max-height: 20000px; opacity: 1; }
.stationery {
  position: relative;
  width: min(calc(100% - 28px), 452px);
  height: calc(100svh - 24px);
  min-height: 0;
  margin: 12px 0;
  overflow: hidden;
  background: radial-gradient(circle at 14% 12%, rgba(155,111,62,.045) 0 1px, transparent 1.4px), repeating-linear-gradient(0deg, rgba(88,66,42,.022) 0 1px, transparent 1px 5px), #fffaf1;
  background-size: 16px 16px, auto, auto;
  border: 1px solid rgba(169,134,85,.45);
  border-radius: 220px 220px 26px 26px;
  box-shadow: 0 20px 42px rgba(63,45,31,.14), inset 0 0 0 5px rgba(169,134,85,.055);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stationery::before {
  content: '';
  position: absolute;
  inset: 15px 9px;
  z-index: 1;
  border-radius: inherit;
  background: url('/burgundy-rose-frame.png') center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: .12;
  pointer-events: none;
}
.date-stationery::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/rose-column-stage.png') center / cover no-repeat;
  opacity: .14;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.rsvp-stationery::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: 42%;
  background: url('/rose-column-stage.png') left center / 452px 100% no-repeat;
  opacity: .1;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stationery > * { position: relative; z-index: 2; }
.eyebrow { margin: 0; color: var(--wine); font: 500 9px/1.35 var(--ui-font); letter-spacing: .28em; text-transform: uppercase; }
.paper-lace { position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(169,134,85,.34); border-radius: inherit; pointer-events: none; }
.paper-lace::after { content: ''; position: absolute; inset: 5px; border: 1px dotted rgba(120,48,60,.22); border-radius: inherit; }
.hero-stationery { padding: 18px 22px 30px; }
.arch-photo { position: relative; z-index: 1; overflow: hidden; border-radius: 200px 200px 8px 8px; aspect-ratio: .78; }
.hero-stationery .arch-photo { height: min(52svh, 475px); aspect-ratio: auto; }
.hero-photo::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.hero-copy { position: relative; z-index: 3; padding: 24px 13px 0; text-align: center; }
.hero-copy h1 { margin: 9px 0 18px; font-size: clamp(41px, 11vw, 52px); font-weight: 500; line-height: .98; letter-spacing: -.025em; }
.hero-copy h1 em { color: var(--gold); font-family: var(--script-font); font-size: .68em; font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 320px; margin: 0 auto 20px; color: #554a43; font-size: 17px; font-style: normal; line-height: 1.55; }
.family-row { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 14px; align-items: center; }
.family-row div { display: flex; flex-direction: column; gap: 7px; }
.family-row small, .event-row small, .location-card small { color: var(--wine); font: 500 8px var(--ui-font); letter-spacing: .2em; text-transform: uppercase; }
.family-row strong { font-family: var(--display-font); font-size: 15px; font-weight: 500; line-height: 1.25; }
.family-divider { height: 42px; background: linear-gradient(transparent, var(--gold-light), transparent); }
.thread-ornament { width: min(78%, 340px); height: 24px; display: flex; align-items: center; color: var(--wine); }
.thread-ornament::before, .thread-ornament::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.thread-ornament::after { transform: scaleX(-1); }
.thread-ornament span { margin: 0 14px; font-size: 11px; }
.date-stationery, .location-stationery, .rsvp-stationery { display: flex; flex-direction: column; justify-content: center; padding: 38px 30px; text-align: center; }
.stationery h2 { margin: 10px 0 24px; font-size: clamp(33px, 8.5vw, 42px); font-weight: 500; line-height: 1.03; letter-spacing: -.018em; }
.event-list { display: grid; gap: 12px; }
.event-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; min-height: 130px; border: 1px solid var(--gold-light); text-align: left; }
.event-number { display: grid; place-items: center; align-self: stretch; border-right: 1px solid var(--gold-light); color: var(--wine); font-size: 54px; line-height: 1; }
.event-row div { padding: 17px 20px; }
.event-row strong { display: block; margin: 5px 0; font-family: var(--display-font); font-size: 25px; font-weight: 500; }
.event-row p { margin: 0; color: var(--muted); font: 500 10px var(--ui-font); letter-spacing: .13em; text-transform: uppercase; }
.location-stationery { text-align: left; }
.location-stationery > .eyebrow, .location-stationery > h2 { text-align: center; }
.location-card { position: relative; padding: 25px 22px 21px; border-top: 1px solid var(--gold-light); }
.location-card:last-child { border-bottom: 1px solid var(--gold-light); }
.location-index { position: absolute; right: 18px; top: 20px; color: rgba(120,48,60,.17); font-size: 38px; }
.location-card h3 { max-width: 270px; margin: 7px 0 9px; font-size: 25px; font-weight: 500; line-height: 1.05; }
.location-card p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.map-frame { height: 116px; margin: 0 0 10px; overflow: hidden; border: 1px solid rgba(169,134,85,.32); filter: sepia(.12) saturate(.88) contrast(.98); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.location-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font: 500 9px var(--ui-font); letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.location-card a span { font-size: 14px; }
.countdown-stationery { display: flex; flex-direction: column; border-radius: 220px 220px 26px 26px; }
.wide-photo { flex: 1; min-height: 0; margin: 0; overflow: hidden; }
.countdown-copy { padding: 40px 24px 46px; text-align: center; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 30px; }
.countdown-grid div { display: flex; flex-direction: column; gap: 7px; border-right: 1px solid var(--gold-light); }
.countdown-grid div:last-child { border: 0; }
.countdown-grid strong { color: var(--wine); font-size: clamp(25px, 8vw, 34px); font-weight: 400; }
.countdown-grid span { color: var(--muted); font: 500 7px var(--ui-font); letter-spacing: .13em; text-transform: uppercase; }
.countdown-copy blockquote { max-width: 325px; margin: 0 auto; color: #5f554c; font-size: 18px; font-style: italic; line-height: 1.6; }
.memory-stationery { display: grid; grid-template-columns: 43% 57%; }
.detail-photo { min-height: 100%; margin: 0; }
.memory-copy { align-self: center; padding: 40px 26px; }
.memory-copy h2 { margin-bottom: 18px; font-size: 36px; font-weight: 500; line-height: 1.02; }
.memory-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.62; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 0 21px; border: 0; border-radius: 999px; color: #fffaf4; background: var(--wine); box-shadow: 0 8px 18px rgba(91,30,43,.2); font: 500 9px var(--ui-font); letter-spacing: .14em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.memory-copy small { display: block; margin-top: 15px; color: #9a8d83; font-size: 10px; line-height: 1.5; }
.section-intro { max-width: 300px; margin: -15px auto 30px; color: var(--muted); line-height: 1.7; }
.rsvp-stationery form { display: grid; gap: 16px; text-align: left; }
.text-field { display: grid; gap: 9px; }
.text-field span, .rsvp-stationery legend, .guest-stepper > span { color: var(--wine); font: 500 8px var(--ui-font); letter-spacing: .18em; text-transform: uppercase; }
.text-field input { width: 100%; height: 50px; padding: 0 15px; border: 0; border-bottom: 1px solid var(--gold-light); border-radius: 0; outline: 0; color: var(--ink); background: transparent; }
.text-field input:focus { border-color: var(--wine); }
.rsvp-stationery fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.rsvp-stationery legend { margin-bottom: 10px; }
.rsvp-stationery fieldset label { display: flex; align-items: center; gap: 11px; min-height: 50px; padding: 0 15px; border: 1px solid var(--gold-light); border-radius: 3px; color: #5d5149; font-size: 14px; transition: .2s ease; }
.rsvp-stationery fieldset label.selected { border-color: var(--wine); background: rgba(120,48,60,.045); }
.rsvp-stationery input[type='radio'] { accent-color: var(--wine); }
.guest-stepper { display: flex; justify-content: space-between; align-items: center; }
.guest-stepper div { display: flex; align-items: center; gap: 15px; }
.guest-stepper button { width: 36px; height: 36px; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--wine); background: #fff; cursor: pointer; }
.guest-stepper strong { min-width: 20px; text-align: center; font-weight: 400; }
.submit-button { width: 100%; }
.submit-button:disabled { cursor: wait; opacity: .72; }
.form-error { margin: -2px 0 0; color: #8c2137; font: 600 11px/1.4 Arial, sans-serif; text-align: center; }
.rsvp-success { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; border: 1px solid var(--gold-light); }
.rsvp-success span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--wine); }
.rsvp-success strong { font-size: 24px; font-weight: 400; }
.rsvp-success p { margin: 0; color: var(--muted); }
.closing-stationery { padding: 18px 18px 40px; text-align: center; border-radius: 220px 220px 26px 26px; }
.closing-photo { height: 62svh; margin: 0 0 28px; overflow: hidden; border-radius: 180px 180px 4px 4px; }
.closing-stationery h2 { margin: 12px 0 15px; font-size: 45px; font-weight: 500; }
.closing-stationery h2 em { color: var(--gold); font-family: var(--script-font); font-size: .7em; font-weight: 400; }
.closing-stationery > p:not(.eyebrow) { max-width: 330px; margin: 18px auto 0; color: #554a43; font-size: 16px; font-style: normal; line-height: 1.55; }

.hero-copy,
.countdown-copy,
.memory-copy,
.date-stationery,
.location-stationery,
.rsvp-stationery,
.closing-stationery {
  overflow-wrap: break-word;
  hyphens: auto;
}
.closing-monogram { display: grid; place-items: center; width: 72px; height: 72px; margin: 28px auto 0; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--wine); font-size: 25px; }
.closing-monogram span { margin: 0 2px; color: var(--gold); font-size: 13px; }

/* Private attendance list */
.attendance-admin {
  min-height: 100svh;
  padding: 28px 16px;
  background: radial-gradient(circle at 50% 0, #fffdf8, #eadfd2);
  font-family: var(--body-font);
}
.attendance-panel {
  width: min(100%, 820px);
  min-height: calc(100svh - 56px);
  margin: 0 auto;
  padding: 42px clamp(20px, 5vw, 54px);
  border: 1px solid rgba(169,134,85,.5);
  border-radius: 180px 180px 18px 18px;
  background: #fffaf1;
  box-shadow: 0 20px 45px rgba(63,45,31,.14), inset 0 0 0 6px rgba(169,134,85,.06);
}
.attendance-panel h1 { margin: 10px 0 28px; font-size: clamp(36px, 8vw, 54px); font-weight: 400; }
.admin-login { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.admin-login label { display: grid; gap: 8px; }
.admin-login label span { color: var(--wine); font: 500 9px var(--ui-font); letter-spacing: .18em; text-transform: uppercase; }
.admin-login input { height: 48px; padding: 0 14px; border: 1px solid var(--gold-light); border-radius: 3px; background: #fff; outline: 0; }
.admin-login input:focus { border-color: var(--wine); }
.admin-error { color: #8c2137; font: 600 12px Arial, sans-serif; }
.attendance-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 18px; }
.attendance-summary div { display: flex; align-items: baseline; gap: 10px; padding: 18px; border: 1px solid var(--gold-light); }
.attendance-summary strong { color: var(--wine); font-size: 34px; font-weight: 400; }
.attendance-summary span { color: var(--muted); font: 500 9px var(--ui-font); letter-spacing: .12em; text-transform: uppercase; }
.attendance-table-wrap { overflow-x: auto; border: 1px solid var(--gold-light); }
.attendance-table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.attendance-table-wrap th, .attendance-table-wrap td { padding: 13px 14px; border-bottom: 1px solid rgba(169,134,85,.22); text-align: left; }
.attendance-table-wrap th { color: var(--wine); font: 500 9px var(--ui-font); letter-spacing: .12em; text-transform: uppercase; }
.attendance-table-wrap td { color: #51463f; font-size: 14px; }

@keyframes seal-breathe {
  0%,100% { filter: drop-shadow(0 13px 15px rgba(67,19,29,.4)) brightness(1); }
  50% { filter: drop-shadow(0 13px 20px rgba(67,19,29,.5)) brightness(1.08); }
}

@media (max-width: 410px) {
  .wax-seal { width: 98px; height: 98px; }
  .ribbon-loop { width: 70px; }
  .date-stationery, .location-stationery, .rsvp-stationery { padding-inline: 22px; }
  .memory-stationery { grid-template-columns: 42% 58%; }
  .detail-photo { min-height: 100%; }
  .memory-copy { padding: 28px 18px; text-align: center; }
  .event-row { grid-template-columns: 78px 1fr; }
  .location-stationery { padding-inline: 18px; }
  .location-card { padding: 13px 14px 12px; }
  .location-card h3 { margin-block: 5px 7px; font-size: 19px; }
}
@media (max-width: 620px) {
  .admin-login { grid-template-columns: 1fr; }
  .attendance-summary { grid-template-columns: 1fr; }
}
@media (max-height: 700px) {
  .reveal-card { width: min(76vw, 280px); }
  .reveal-photo { width: min(68vw, 260px); margin-bottom: 10px; }
  .reveal-card h1 { margin-block: 7px 4px; font-size: clamp(32px, 9vw, 40px); }
  .reveal-date { margin-top: 8px; }
  .hero-stationery .arch-photo { height: 50svh; }
  .hero-copy { padding-top: 12px; }
  .hero-copy h1 { margin-block: 6px 10px; font-size: 35px; }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 10px; font-size: 14px; line-height: 1.35; }
  .family-row { gap: 8px; }
  .family-row div { gap: 3px; }
  .family-divider { height: 30px; }
  .date-stationery, .location-stationery, .rsvp-stationery { padding-block: 22px; }
  .stationery h2 { margin-block: 6px 14px; font-size: 30px; }
  .event-row { min-height: 96px; }
  .event-number { font-size: 42px; }
  .location-card { padding-block: 8px; }
  .location-card h3 { margin-block: 3px 5px; font-size: 18px; }
  .location-card p { margin-bottom: 5px; font-size: 9px; line-height: 1.3; }
  .map-frame { height: 80px; margin-bottom: 5px; }
  .wide-photo { min-height: 0; }
  .countdown-copy { padding: 20px 20px 24px; }
  .countdown-grid { margin-block: 14px 18px; }
  .memory-copy { padding: 22px 16px; }
  .memory-copy h2 { font-size: 27px; }
  .rsvp-stationery form { gap: 10px; }
  .text-field input { height: 40px; }
  .rsvp-stationery fieldset { gap: 6px; }
  .rsvp-stationery fieldset label { min-height: 40px; }
  .guest-stepper button { width: 32px; height: 32px; }
  .closing-photo { height: 50svh; margin-bottom: 18px; }
  .closing-stationery h2 { margin-block: 7px 11px; font-size: 36px; }
  .closing-stationery > p:not(.eyebrow) { margin-top: 14px; font-size: 14px; line-height: 1.45; }
}
@media (min-width: 700px) {
  .gate-stage { margin-top: 24px; height: calc(100svh - 48px); border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Tap-to-advance navigation */
.reveal-tap-hint {
  margin: 22px 0 0;
  color: #71635a;
  font: 500 9px/1.5 var(--ui-font);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal-tap-hint span {
  display: block;
  margin-top: 5px;
  color: var(--wine);
  font-size: 17px;
  line-height: 1;
  animation: tap-chevron 1.7s ease-in-out infinite;
}
.is-ready-to-advance .reveal-tap-hint { opacity: .82; transform: translateY(0); }
@keyframes tap-chevron { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(4px); opacity: 1; } }

.stationery a, .stationery button, .stationery iframe { cursor: pointer; }
