:root {
  color-scheme: light;
  --ink: #241818;
  --paper: #fff8ee;
  --paper-deep: #f1d8bf;
  --rose: #b95f72;
  --berry: #5f1d39;
  --sage: #6f876b;
  --blue: #496f83;
  --gold: #c09041;
  --mist: rgba(255, 250, 241, 0.78);
  --line: rgba(67, 42, 35, 0.18);
  --shadow: 0 24px 80px rgba(45, 28, 25, 0.23);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #f9f0e4;
}

body.site-locked > :not(.test-gate) {
  display: none !important;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 249, 239, 0.72), rgba(255, 249, 239, 0.86)),
    url("assets/wedding-background.png") center / cover no-repeat;
}

.background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at top left, rgba(185, 95, 114, 0.25), transparent 34rem),
    linear-gradient(180deg, rgba(255, 248, 238, 0.16), #fff7eb 96%);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 238, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  transition: opacity 220ms ease, transform 220ms ease;
}

.needs-language .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--berry);
}

.brand small {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--sage);
}

.brand img {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.nav a {
  min-width: 4.4rem;
  padding: 0.58rem 0.82rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--berry);
  color: white;
  outline: none;
}

.header-languages {
  display: flex;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.header-languages button {
  min-width: 2.35rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 999px;
  color: var(--berry);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.header-languages button:hover,
.header-languages button:focus-visible,
.header-languages button.is-active {
  color: white;
  background: var(--berry);
  outline: none;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  position: relative;
  overflow-x: hidden;
}

.hero-copy {
  max-width: 48rem;
  text-align: center;
}

.invitation-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(19rem, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  width: min(94vw, 66rem);
  min-height: auto;
  padding: clamp(1.35rem, 3vw, 2.45rem);
  border: 1px solid rgba(95, 29, 57, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 252, 246, 0.86), rgba(255, 247, 234, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 1.5rem, rgba(192, 144, 65, 0.045) 1.5rem 1.56rem);
  box-shadow:
    0 34px 110px rgba(53, 31, 28, 0.24),
    inset 0 0 0 0.55rem rgba(255, 255, 255, 0.42);
}

.invitation-card::before,
.invitation-card::after {
  position: absolute;
  inset: 1.1rem;
  z-index: -1;
  content: "";
  border: 1px solid rgba(192, 144, 65, 0.3);
  border-radius: 8px;
  pointer-events: none;
}

.invitation-card::after {
  inset: 1.55rem;
  border-color: rgba(111, 135, 107, 0.24);
}

.floral {
  position: absolute;
  z-index: 1;
  width: clamp(9rem, 19vw, 14rem);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(83, 49, 38, 0.16));
}

.floral-top {
  top: -2.6rem;
  left: -2.5rem;
  transform: rotate(-4deg);
}

.floral-bottom {
  right: -2.8rem;
  bottom: -2.7rem;
  transform: rotate(180deg);
}

.photo-stamp {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 0.78;
  margin: 0;
  justify-self: center;
  padding: 0.55rem 0.55rem 1.2rem;
  border-radius: 6px;
  background: #fffaf2;
  box-shadow: 0 14px 34px rgba(65, 41, 34, 0.18);
  transform: rotate(-1.5deg);
}

.photo-stamp::after {
  position: absolute;
  right: 0.65rem;
  bottom: 0.34rem;
  left: 0.65rem;
  height: 0.2rem;
  content: "";
  border-radius: 999px;
  background: rgba(192, 144, 65, 0.42);
}

.photo-stamp img,
.story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-stamp img {
  border-radius: 4px;
  object-position: 50% 30%;
}

.invitation-content {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: clamp(0.85rem, 2vh, 1.25rem);
  min-width: 0;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--berry);
  max-width: 100%;
  font-size: clamp(2.1rem, 4.2vw, 3.85rem);
  font-weight: 500;
  line-height: 0.92;
}

.year {
  margin: 0.55rem 0 0;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.4vw, 2.8rem);
  line-height: 0.95;
}

.stage {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  perspective: 1200px;
  width: 100%;
}

.envelope {
  position: relative;
  width: min(38vw, 22rem);
  aspect-ratio: 1.45;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
}

.envelope:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 0.8rem;
}

.envelope-shadow {
  position: absolute;
  right: 7%;
  bottom: -10%;
  left: 7%;
  height: 20%;
  border-radius: 50%;
  background: rgba(73, 44, 36, 0.25);
  filter: blur(18px);
  transform: translateZ(-20px);
}

.pocket,
.flap {
  position: absolute;
  inset: 0;
}

.pocket {
  z-index: 5;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(142deg, transparent 49.5%, rgba(109, 59, 45, 0.14) 50%, transparent 51%) left / 50% 100% no-repeat,
    linear-gradient(218deg, transparent 49.5%, rgba(109, 59, 45, 0.14) 50%, transparent 51%) right / 50% 100% no-repeat,
    linear-gradient(180deg, var(--paper), var(--paper-deep));
  border: 1px solid rgba(83, 49, 38, 0.18);
  box-shadow: var(--shadow);
  clip-path: polygon(0 32%, 50% 70%, 100% 32%, 100% 100%, 0 100%);
}

.flap-back {
  z-index: 1;
  background: #efd6bd;
  clip-path: polygon(0 35%, 50% 0, 100% 35%, 50% 72%);
}

.flap-front {
  z-index: 7;
  opacity: 1;
  transform-origin: 50% 35%;
  transition:
    transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 180ms ease,
    z-index 0ms linear 420ms;
  background: linear-gradient(180deg, #fff5e7, #eac6a8);
  border-radius: 8px;
  clip-path: polygon(0 35%, 50% 72%, 100% 35%, 50% 0);
}

.letter {
  position: absolute;
  right: 8%;
  bottom: 15%;
  left: 8%;
  z-index: 4;
  display: grid;
  place-items: center;
  height: 74%;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38)),
    repeating-linear-gradient(90deg, transparent 0 1.3rem, rgba(192, 144, 65, 0.07) 1.3rem 1.38rem),
    var(--paper);
  border: 1px solid rgba(83, 49, 38, 0.16);
  box-shadow: 0 16px 40px rgba(66, 37, 31, 0.17);
  transform: translateY(42%);
  transition: transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1) 140ms;
}

.letter-inner {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  width: 82%;
  color: var(--berry);
  text-align: center;
}

.script {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 2.65rem);
  line-height: 0.95;
}

.letter strong {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 500;
}

.divider {
  width: min(12rem, 62%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.seal {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: clamp(4.6rem, 12vw, 6.8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35), transparent 24%),
    var(--berry);
  box-shadow: 0 12px 28px rgba(65, 22, 39, 0.32);
  transform: translate(-50%, -50%);
  transition: transform 500ms ease, opacity 500ms ease;
}

.seal img {
  display: block;
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.stage[data-opening="true"] .flap-front {
  z-index: 2;
  transform: rotateX(178deg);
}

.stage[data-open="true"] .flap-front {
  z-index: 1;
  opacity: 0;
  transform: rotateX(178deg);
}

.stage[data-opening="true"] .letter,
.stage[data-open="true"] .letter {
  transform: translateY(-34%);
}

.stage[data-opening="true"] .seal,
.stage[data-open="true"] .seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8) rotate(-10deg);
}

.stage[data-open="true"] .open-actions {
  display: none;
}

.stage[data-open="true"] {
  min-height: 22rem;
  align-content: center;
}

.open-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.language-choice {
  width: min(100%, 28rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.94);
  box-shadow: 0 18px 50px rgba(65, 41, 34, 0.12);
  text-align: center;
}

.language-choice[hidden] {
  display: none;
}

.language-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.language-buttons button {
  min-height: 2.55rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--berry);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.language-buttons button:hover,
.language-buttons button:focus-visible {
  color: white;
  background: var(--berry);
  outline: none;
  transform: translateY(-1px);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: white;
  background: var(--berry);
  box-shadow: 0 14px 30px rgba(95, 29, 57, 0.22);
}

.secondary-button {
  color: var(--berry);
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  right: 50%;
  bottom: 1.3rem;
  width: 1.5rem;
  height: 2.4rem;
  border: 1px solid rgba(36, 24, 24, 0.34);
  border-radius: 999px;
  transform: translateX(50%);
}

.needs-language .scroll-hint {
  display: none;
}

.scroll-hint span {
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  margin: 0.5rem auto;
  border-radius: 50%;
  background: var(--berry);
  animation: drift 1.8s infinite;
}

.details,
.guest-notes,
.rsvp,
.reception-help,
.access,
.wishes,
.wish-teaser,
.next-actions,
.party-hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 6vw, 6rem);
}

.details {
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.85), rgba(255, 249, 239, 0.96));
}

.needs-language .details,
.needs-language .guest-notes,
.needs-language .rsvp,
.needs-language .reception-help,
.needs-language .access,
.needs-language .wish-teaser,
.needs-language .next-actions,
.needs-language .footer {
  display: none;
}

.needs-language:not(.wishes-page) .wishes {
  display: none;
}

.section-heading {
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading p:not(.kicker),
.party-hero p {
  max-width: 44rem;
  margin: 1rem auto 0;
  font-size: 1.06rem;
  line-height: 1.7;
}

.story-photo {
  max-width: 54rem;
  margin: 0 auto 1.35rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 54px rgba(65, 41, 34, 0.12);
}

.story-photo img {
  height: clamp(24rem, 48vw, 38rem);
  object-position: 50% 72%;
}

.story-photo figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--sage);
  font-size: 0.96rem;
  font-weight: 800;
  text-align: center;
}

h2 {
  margin: 0;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 74rem;
  margin: 0 auto;
}

.info-card,
.note-panel {
  min-height: 16rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 50px rgba(65, 41, 34, 0.08);
}

.info-card.highlight {
  background: rgba(95, 29, 57, 0.92);
  color: #fff7ec;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--berry);
  background: rgba(255, 248, 238, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
}

.info-card h3,
.note-panel h2 {
  margin: 0 0 0.75rem;
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.info-card p,
.note-panel p,
.rsvp p {
  margin: 0;
  color: currentColor;
  font-size: 1rem;
  line-height: 1.65;
}

.ceremony-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 54rem;
  margin: 0 auto;
}

.summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 44px rgba(65, 41, 34, 0.08);
}

.summary-card h3 {
  margin: 0 0 0.4rem;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.summary-card p {
  margin: 0;
  line-height: 1.55;
}

.program-shell {
  max-width: 48rem;
  margin: 1.2rem auto 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 50px rgba(65, 41, 34, 0.08);
}

.program-shell h2,
.program-shell h3 {
  margin: 0 0 0.85rem;
  color: var(--berry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
  text-align: center;
}

.program-list {
  display: grid;
  gap: 0.55rem;
}

.program-item {
  display: grid;
  grid-template-columns: 7.6rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(95, 29, 57, 0.1);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.72);
}

.program-item time {
  color: var(--blue);
  font-weight: 900;
}

.program-item p {
  margin: 0;
  line-height: 1.45;
}

.party-program {
  max-width: 56rem;
  margin-top: 1.4rem;
}

.guest-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: rgba(245, 229, 211, 0.9);
}

.next-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 1rem;
  align-items: stretch;
  background: rgba(245, 229, 211, 0.82);
}

.wish-teaser {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.82);
  box-shadow: 0 16px 44px rgba(65, 41, 34, 0.08);
}

.wish-teaser > div {
  max-width: 46rem;
}

.wish-teaser h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.wish-teaser p:not(.kicker) {
  margin: 0.75rem 0 0;
  line-height: 1.65;
}

.wishes {
  min-height: 100svh;
  padding-top: clamp(7rem, 12vw, 10rem);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.96), rgba(245, 229, 211, 0.88)),
    rgba(255, 248, 238, 0.94);
}

.money-wish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0 auto 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(192, 144, 65, 0.34);
  border-radius: 8px;
  color: var(--berry);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 16px 44px rgba(65, 41, 34, 0.08);
  text-align: center;
}

.money-wish span {
  font-size: 1.7rem;
}

.money-wish p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.wish-categories {
  display: grid;
  gap: 0.7rem;
  max-width: 58rem;
  margin: 0 auto;
}

.wish-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 50px rgba(65, 41, 34, 0.08);
  overflow: hidden;
}

.wish-category summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.1rem;
  padding: 0.85rem 1rem;
  color: var(--berry);
  cursor: pointer;
  list-style: none;
}

.wish-category summary::-webkit-details-marker {
  display: none;
}

.wish-category summary::after {
  margin-left: auto;
  content: "+";
  color: var(--sage);
  font-size: 1.5rem;
  font-weight: 800;
}

.wish-category[open] summary::after {
  content: "-";
}

.wish-category h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 500;
}

.wish-category summary > span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 248, 238, 0.86);
  font-family: initial;
  font-size: 1rem;
}

.wish-category ul {
  display: grid;
  gap: 0.38rem;
  padding: 0 1rem 1rem 1.35rem;
  margin: 0;
  list-style: none;
}

.wish-category li {
  position: relative;
  padding-left: 0.9rem;
  color: rgba(36, 24, 24, 0.86);
  font-size: 0.94rem;
  line-height: 1.42;
}

.wish-category li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.32rem;
  height: 0.32rem;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.note-panel {
  min-height: 13rem;
  background: rgba(255, 248, 238, 0.76);
}

.rsvp {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  background: rgba(255, 248, 238, 0.96);
}

.reception-help {
  background: rgba(244, 235, 221, 0.94);
}

.help-form {
  margin-right: auto;
  margin-left: auto;
}

.food-needs {
  width: min(100%, 58rem);
  margin: 0 auto 1.25rem;
}

.food-needs h3 {
  margin: 0 0 0.8rem;
  color: var(--berry);
  font-size: 1.15rem;
  text-align: center;
}

.food-needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.food-needs-grid article {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.food-needs-grid strong { color: var(--berry); }
.food-needs-grid span { color: var(--ink); font-size: 0.9rem; line-height: 1.4; }
.food-needs-grid small { color: var(--sage); font-weight: 800; }
.food-needs-empty { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); color: var(--sage); text-align: center; font-weight: 800; }

.rsvp-form {
  display: grid;
  gap: 1rem;
  width: min(100%, 48rem);
  margin-top: 0.8rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 60px rgba(65, 41, 34, 0.1);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--berry);
  font-weight: 800;
}

.rsvp-form legend {
  margin: 0 0 0.42rem;
  padding: 0;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
  font-weight: 500;
}

.rsvp-form select {
  appearance: auto;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(73, 111, 131, 0.18);
}

.rsvp-form .choice {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.7);
  color: var(--ink);
  font-weight: 700;
}

.rsvp-form .choice input {
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.rsvp-form > .primary-button {
  justify-self: center;
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(16rem, 1.1fr);
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.82);
  box-shadow: 0 16px 44px rgba(65, 41, 34, 0.08);
}

.access-copy {
  max-width: 44rem;
}

.access-copy p:not(.kicker) {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.access h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.code-form {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 20px 60px rgba(65, 41, 34, 0.1);
}

.code-form label {
  color: var(--berry);
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.code-row input {
  min-width: 0;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fffaf2;
  font: inherit;
  text-transform: uppercase;
}

.code-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(73, 111, 131, 0.18);
}

.form-message {
  min-height: 1.5rem;
  margin: 0;
  color: var(--sage);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-message.is-error {
  color: #9b2638;
}

.form-message.is-success {
  color: var(--sage);
  font-weight: 800;
}

.party-hero {
  min-height: 74svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-top: clamp(8rem, 12vw, 10rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.46), rgba(255, 248, 238, 0.88));
}

.party-hero h1 {
  max-width: 60rem;
}

.party-details {
  background: rgba(255, 248, 238, 0.94);
}

.party-page.is-locked main,
.party-page.is-locked footer {
  display: none;
}

.locked-notice {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.locked-panel {
  max-width: 34rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.locked-panel h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.locked-panel p {
  line-height: 1.65;
}

.test-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 249, 239, 0.76), rgba(255, 249, 239, 0.9)),
    url("assets/wedding-background.png") center / cover no-repeat;
}

.test-gate-panel {
  width: min(100%, 34rem);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid rgba(192, 144, 65, 0.42);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.94);
  box-shadow: var(--shadow);
}

.test-gate-panel h1 {
  margin: 0 0 0.8rem;
  color: var(--berry);
  font: 700 clamp(2.2rem, 8vw, 4rem) / 0.95 Georgia, "Times New Roman", serif;
}

.test-gate-panel p {
  line-height: 1.65;
}

.test-gate-panel label {
  display: block;
  margin: 1.4rem 0 0.55rem;
  color: var(--berry);
  font-size: 0.86rem;
  font-weight: 800;
}

.rsvp p {
  max-width: 42rem;
}

.footer {
  padding: 2rem;
  color: #fff8ee;
  text-align: center;
  background: var(--berry);
}

.footer p {
  margin: 0;
}

.confetti {
  position: fixed;
  top: -1rem;
  z-index: 50;
  width: 0.55rem;
  height: 0.9rem;
  border-radius: 1px;
  pointer-events: none;
  animation: fall var(--speed) linear forwards;
}

.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;
}

@keyframes drift {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(1rem);
    opacity: 0;
  }
}

@keyframes fall {
  to {
    transform: translate3d(var(--sway), 104vh, 0) rotate(720deg);
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .invitation-card {
    grid-template-columns: minmax(9rem, 0.72fr) minmax(0, 1.28fr);
    width: min(94vw, 54rem);
    overflow: visible;
  }

  .photo-stamp {
    max-width: min(28vw, 14rem);
  }

  .envelope {
    width: min(48vw, 21rem);
  }

  .access {
    grid-template-columns: 1fr;
  }

  .wish-teaser,
  .next-actions,
  .ceremony-summary {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .guest-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .brand {
    padding-top: 0.45rem;
  }

  .nav {
    gap: 0.15rem;
  }

  .nav a {
    min-width: auto;
    padding: 0.5rem 0.58rem;
    font-size: 0.82rem;
  }

  .header-languages {
    margin-left: auto;
  }

  .hero {
    min-height: 100svh;
    padding: 0.75rem;
  }

  .invitation-card {
    width: min(96vw, 26rem);
    grid-template-columns: 1fr;
    padding: 1.25rem 0.85rem;
    gap: 0.75rem;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .year {
    font-size: clamp(1.5rem, 8vw, 2.55rem);
  }

  .envelope {
    width: min(82vw, 22rem);
  }

  .floral {
    width: clamp(7rem, 36vw, 10rem);
  }

  .photo-stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    max-width: min(24vw, 6.4rem);
    padding: 0.28rem;
    aspect-ratio: 1;
    transform: rotate(4deg);
  }

  .photo-stamp::after {
    display: none;
  }

  .invitation-content {
    padding-top: 1.8rem;
  }

  .story-photo img {
    height: clamp(20rem, 92vw, 28rem);
    object-position: 50% 74%;
  }

  .open-actions,
  .info-grid,
  .guest-notes,
  .ceremony-summary,
  .summary-card,
  .next-actions,
  .wish-categories,
  .form-grid,
  .code-row,
  .language-buttons {
    grid-template-columns: 1fr;
  }

  .food-needs-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .guest-notes {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: min(100%, 20rem);
  }

  .program-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .code-row .primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Annatina & Simon: candlelit editorial redesign */
:root {
  color-scheme: light;
  --ink: #171319;
  --paper: #f6efe6;
  --paper-deep: #dec5b5;
  --rose: #a86370;
  --berry: #58162d;
  --sage: #687363;
  --blue: #142033;
  --gold: #b99659;
  --midnight: #090d16;
  --mist: rgba(246, 239, 230, 0.88);
  --line: rgba(185, 150, 89, 0.34);
  --shadow: 0 30px 90px rgba(4, 5, 10, 0.42);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.background {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.18), rgba(7, 9, 15, 0.5)),
    url("assets/luxury-wedding-bg.png") center / cover no-repeat;
}

.background::after {
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0 70%, rgba(5, 7, 12, 0.76)),
    radial-gradient(circle at center, transparent 10%, rgba(2, 3, 7, 0.3) 100%);
}

.site-header {
  padding-block: 0.75rem;
  color: #f7efe5;
  background: rgba(8, 11, 18, 0.88);
  border-bottom: 1px solid rgba(185, 150, 89, 0.28);
}

.brand { color: #f5e7d7; letter-spacing: 0; }
.brand small { color: #c8a86c; }
.nav, .header-languages { border-color: rgba(185, 150, 89, 0.35); background: rgba(255, 255, 255, 0.035); }
.nav a, .header-languages button { color: #eee1d3; }
.nav a:hover, .nav a:focus-visible, .header-languages button:hover,
.header-languages button:focus-visible, .header-languages button.is-active {
  color: #11131a;
  background: #c5a56b;
}

.hero { min-height: 100svh; padding-top: 5.75rem; }
.invitation-card {
  grid-template-columns: minmax(15rem, 0.78fr) minmax(20rem, 1.22fr);
  width: min(92vw, 68rem);
  padding: clamp(1.5rem, 4vw, 3.4rem);
  border-color: rgba(204, 172, 112, 0.62);
  background:
    linear-gradient(115deg, rgba(8, 12, 20, 0.95), rgba(20, 20, 29, 0.93) 58%, rgba(65, 15, 35, 0.9));
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.66), inset 0 0 0 1px rgba(255,255,255,.04);
}
.invitation-card::before { inset: .7rem; border-color: rgba(185, 150, 89, .46); }
.invitation-card::after { inset: 1rem; border-color: rgba(185, 150, 89, .16); }
.floral { width: clamp(7rem, 14vw, 11rem); opacity: .8; filter: saturate(.7) brightness(.72) drop-shadow(0 18px 28px #0008); }
.photo-stamp {
  max-width: 20rem;
  padding: .45rem .45rem 1.35rem;
  background: #efe4d7;
  border: 1px solid rgba(185,150,89,.72);
  box-shadow: 0 22px 50px rgba(0,0,0,.48);
  transform: rotate(-2deg);
}
.photo-stamp::after { background: #b99659; }
.kicker { color: #aa8f5e; font-size: .72rem; letter-spacing: .16em; }
h1 { color: #f7efe5; font-size: clamp(2.45rem, 5vw, 4.7rem); line-height: .96; }
.year { color: #c8a86c; }
.envelope { width: min(38vw, 23rem); }
.pocket {
  border-color: rgba(185,150,89,.52);
  background:
    linear-gradient(142deg, transparent 49.4%, rgba(185,150,89,.22) 50%, transparent 50.7%) left / 50% 100% no-repeat,
    linear-gradient(218deg, transparent 49.4%, rgba(185,150,89,.22) 50%, transparent 50.7%) right / 50% 100% no-repeat,
    linear-gradient(180deg, #6b1e38, #34101f);
}
.flap-back { background: #421226; }
.flap-front { background: linear-gradient(180deg, #7a2944, #431326); }
.letter { border-color: rgba(185,150,89,.62); background: #f5ede3; }
.letter-inner { color: #53152c; }
.letter strong { color: #17243a; }
.seal { color: #211019; background: radial-gradient(circle at 35% 28%, #f5dfad, transparent 25%), #b8924f; box-shadow: 0 10px 25px #0009; }
.primary-button { background: #6c1d3a; box-shadow: 0 12px 30px rgba(67,13,35,.28); }
.primary-button:hover, .primary-button:focus-visible { background: #8a294a; }
.language-choice { border-color: rgba(185,150,89,.52); background: rgba(10,13,21,.95); box-shadow: 0 20px 60px #0008; }
.language-choice .kicker { color: #c8a86c; }
.language-buttons button { color: #f4eadf; border-color: rgba(185,150,89,.42); background: rgba(255,255,255,.04); }
.language-buttons button:hover, .language-buttons button:focus-visible { color: #11131a; background: #c5a56b; }

.details, .reception-help, .rsvp, .access, .wishes, .party-details, .party-program {
  position: relative;
  background: rgba(247, 240, 231, .97);
}
.details::before, .reception-help::before, .rsvp::before, .access::before, .wishes::before,
.party-details::before, .party-program::before {
  position: absolute; top: 0; left: 50%; width: min(88vw, 74rem); height: 1px;
  content: ""; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #b99659, transparent);
}
.section-heading { max-width: 47rem; }
.section-heading h2, .rsvp h2, .access h2, .wishes h2 { color: #3f1024; font-weight: 500; }
.section-heading p:not(.kicker), .rsvp > p, .access-copy p { color: #62575a; }
.story-photo { border: 1px solid rgba(185,150,89,.48); background: #111722; box-shadow: 0 24px 60px rgba(23,14,20,.16); }
.story-photo img { object-position: 50% 72%; }
.story-photo figcaption { color: #d9c29a; background: #111722; }
.ceremony-summary, .party-summary { gap: 1px; border: 1px solid rgba(185,150,89,.36); background: rgba(185,150,89,.36); }
.summary-card { border: 0; border-radius: 0; background: #fffaf4; box-shadow: none; }
.summary-card:first-child { background: #50162d; color: #fff6eb; }
.summary-card:first-child h3, .summary-card:first-child p { color: inherit; }
.card-icon { color: #5a1730; background: #ead9c5; }
.program-shell, .rsvp-form, .code-form, .money-wish { border-color: rgba(185,150,89,.42); background: #fffaf4; box-shadow: 0 20px 55px rgba(33,18,25,.08); }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea, .code-row input { border-color: #d4c3b2; background: #f8f1e8; }
.rsvp-form label, .rsvp-form legend { color: #4d152a; }
.financial-support {
  padding: 1rem;
  border: 1px solid rgba(185,150,89,.48);
  background: #f4e9dc;
}
.financial-support .choice { margin-top: .45rem; background: #fffaf4; }
.participant-fields { padding: 1rem; border: 1px solid rgba(152,115,56,.34); background: #f4e9dc; }
.participant-fields > p { margin: .25rem 0 1rem; color: #62575a; font-size: .85rem; }
.participant-fields > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.participant-fields label { display: grid; gap: .45rem; }
@media (max-width: 620px) { .participant-fields > div { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.accommodation {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem);
  background: #eef2f4;
}
.accommodation::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(88vw, 74rem);
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #d8c5a3, transparent);
}
.accommodation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 54rem);
  margin: 2rem auto 0;
  border: 1px solid rgba(24,59,86,.16);
  border-radius: 6px;
  background: #fcfaf7;
}
.accommodation-list article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  border-right: 1px solid rgba(152,115,56,.24);
}
.accommodation-list article:last-child { border-right: 0; }
.accommodation-list article > div { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.accommodation-list h3 { margin: 0; color: var(--gold-deep); font: 600 1.2rem/1.2 Georgia, serif; }
.accommodation-list article span { flex: 0 0 auto; padding: .3rem .5rem; border-radius: 999px; color: #18304a; background: #e6edf1; font-size: .7rem; font-weight: 800; }
.accommodation-list article p { margin: .85rem 0 1.2rem; color: #62575a; font-size: .9rem; line-height: 1.55; }
.accommodation-list article a { margin-top: auto; color: #18304a; font-size: .82rem; font-weight: 800; text-decoration-color: var(--gold-light); text-underline-offset: .22rem; }
.accommodation-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  color: #5f6f7c;
  text-align: center;
}
@media (max-width: 760px) {
  .accommodation-list { grid-template-columns: 1fr; }
  .accommodation-list article { border-right: 0; border-bottom: 1px solid rgba(152,115,56,.24); }
  .accommodation-list article:last-child { border-bottom: 0; }
}
.food-needs article, .wish-categories article { border-color: rgba(185,150,89,.38); background: #fffaf4; box-shadow: none; }
.party-hero { background: #090d16; }
.party-hero::after { background: linear-gradient(180deg, rgba(9,13,22,.18), #090d16); }
.footer { color: #d9c8b7; background: #090d16; border-top: 1px solid rgba(185,150,89,.35); }

@media (max-width: 900px) {
  .invitation-card { grid-template-columns: 1fr 1.25fr; width: min(94vw, 52rem); }
  .photo-stamp { max-width: 17rem; }
}
@media (max-width: 620px) {
  .site-header { background: rgba(8,11,18,.95); }
  .hero { padding-top: 2rem; }
  .invitation-card { grid-template-columns: 1fr; width: min(92vw, 30rem); padding: 2.3rem 1.1rem 1.5rem; }
  .photo-stamp { width: 58%; max-width: 12rem; aspect-ratio: .84; }
  .envelope { width: min(78vw, 22rem); }
  .floral { width: 7rem; }
}

/* Refined light theme: navy framing with restrained florals */
:root {
  --ink: #241b1d;
  --paper: #fffaf3;
  --paper-deep: #ead6c5;
  --berry: #681f3d;
  --blue: #18304a;
  --gold: #b78f52;
  --line: rgba(24, 48, 74, .2);
  --shadow: 0 24px 70px rgba(34, 29, 34, .2);
}
.background {
  background:
    linear-gradient(rgba(255,249,240,.76), rgba(255,249,240,.9)),
    url("assets/wedding-background.png") center / cover no-repeat;
}
.background::after {
  background: linear-gradient(180deg, rgba(255,248,238,.08), #fff8ee 97%);
}
.site-header {
  color: var(--ink);
  background: rgba(255,250,243,.86);
  border-bottom-color: rgba(24,48,74,.13);
}
.brand { color: var(--berry); }
.brand small { color: var(--blue); }
.nav, .header-languages { border-color: rgba(24,48,74,.2); background: rgba(255,255,255,.48); }
.nav a, .header-languages button { color: var(--blue); }
.nav a:hover, .nav a:focus-visible, .header-languages button:hover,
.header-languages button:focus-visible, .header-languages button.is-active { color: white; background: var(--blue); }
.invitation-card {
  border: 3px solid var(--blue);
  background:
    linear-gradient(rgba(255,252,246,.92), rgba(255,248,238,.94)),
    repeating-linear-gradient(90deg, transparent 0 1.5rem, rgba(183,143,82,.04) 1.5rem 1.56rem);
  box-shadow: 0 30px 90px rgba(35,31,37,.24), inset 0 0 0 7px #fffaf3;
}
.invitation-card::before { inset: .85rem; border-color: rgba(183,143,82,.58); }
.invitation-card::after { inset: 1.2rem; border-color: rgba(24,48,74,.2); }
.floral { width: clamp(5.5rem, 10vw, 8rem); opacity: .74; filter: saturate(.68) drop-shadow(0 10px 18px rgba(53,35,34,.13)); }
.floral-top { top: -1.5rem; left: -1.4rem; }
.floral-bottom { right: -1.5rem; bottom: -1.6rem; }
.photo-stamp { background: #fffaf3; border-color: rgba(24,48,74,.28); box-shadow: 0 15px 36px rgba(40,31,34,.16); }
.photo-stamp::after { background: rgba(183,143,82,.55); }
.kicker { color: #6c795f; }
h1 { color: var(--berry); }
.year { color: var(--blue); }
.pocket {
  border-color: rgba(24,48,74,.2);
  background:
    linear-gradient(142deg, transparent 49.5%, rgba(91,63,55,.13) 50%, transparent 51%) left / 50% 100% no-repeat,
    linear-gradient(218deg, transparent 49.5%, rgba(91,63,55,.13) 50%, transparent 51%) right / 50% 100% no-repeat,
    linear-gradient(180deg, #fff7ed, #ead1ba);
}
.flap-back { background: #ead0b8; }
.flap-front { background: linear-gradient(180deg, #fff7ed, #e8c7aa); }
.letter { border-color: rgba(24,48,74,.2); background: #fffaf3; }
.letter-inner { color: var(--berry); }
.letter strong { color: var(--blue); }
.seal { color: #fffaf3; background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.35), transparent 24%), var(--blue); box-shadow: 0 10px 24px rgba(24,48,74,.3); }
.language-choice { border-color: rgba(24,48,74,.2); background: rgba(255,250,243,.96); box-shadow: 0 18px 48px rgba(45,32,34,.14); }
.language-choice .kicker { color: #6c795f; }
.language-buttons button { color: var(--blue); border-color: rgba(24,48,74,.2); background: white; }
.language-buttons button:hover, .language-buttons button:focus-visible { color: white; background: var(--blue); }
.party-hero { background: #f8efe4; }
.party-hero::after { background: linear-gradient(180deg, rgba(255,250,243,.1), #f8efe4); }
.footer { color: #ece4d9; background: var(--blue); border-top-color: rgba(183,143,82,.4); }

@media (max-width: 620px) {
  .site-header { background: rgba(255,250,243,.96); }
  .floral { width: 5.5rem; }
}

/* Homepage artwork inspired by the navy and gold stationery */
.home-page .background {
  background: url("assets/navy-gold-home-bg.png") center / cover no-repeat;
}
.home-page .background::after {
  background: linear-gradient(180deg, rgba(4,16,37,.05), rgba(4,16,37,.18));
}
.home-page .hero {
  background: rgba(5, 18, 42, .08);
}
@media (max-width: 620px) {
  .home-page .background { background-position: 58% center; }
}

/* Premium stationery redesign */
:root {
  --ink: #1f2931;
  --paper: #f7f3ec;
  --paper-deep: #ebe2d4;
  --berry: #7a2947;
  --blue: #183b56;
  --gold: #d8c5a3;
  --line: rgba(24, 59, 86, .18);
  --shadow: 0 22px 60px rgba(8, 28, 45, .18);
}

.background,
.home-page .background {
  background:
    linear-gradient(118deg, transparent 0 28%, rgba(111,132,152,.2) 43%, transparent 62%),
    linear-gradient(163deg, #102a43 0%, #183b56 52%, #294d68 100%);
}
.background::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .22;
  background-image: radial-gradient(rgba(252,250,247,.25) .55px, transparent .7px);
  background-size: 7px 7px;
}
.background::after,
.home-page .background::after {
  background:
    linear-gradient(112deg, transparent 0 17%, rgba(216,197,163,.22) 17.08%, transparent 17.18%),
    linear-gradient(158deg, transparent 0 78%, rgba(216,197,163,.16) 78.08%, transparent 78.18%);
}

.floral { display: none; }
.hero { padding: clamp(5.5rem, 8vh, 7rem) clamp(1rem, 4vw, 3rem) 2rem; }
.invitation-card {
  grid-template-columns: minmax(15rem, .72fr) minmax(22rem, 1.28fr);
  grid-template-areas: "photo copy" "photo stage";
  align-content: center;
  column-gap: clamp(2.5rem, 5vw, 5rem);
  row-gap: 1.25rem;
  width: min(91vw, 70rem);
  padding: clamp(2.25rem, 5vw, 4.75rem);
  border: 1px solid rgba(216,197,163,.92);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(252,250,247,.98), rgba(247,243,236,.97)),
    #f7f3ec;
  box-shadow: 0 24px 65px rgba(5,22,38,.2), 0 3px 12px rgba(5,22,38,.08);
  animation: invitation-arrive 700ms cubic-bezier(.2,.8,.2,1) both;
}
.invitation-card::before { inset: .7rem; border-color: rgba(24,59,86,.1); border-radius: 3px; }
.invitation-card::after { display: none; }
.invitation-content { display: contents; }
.hero-copy { grid-area: copy; align-self: end; max-width: none; }
.stage { grid-area: stage; align-self: start; gap: 1.15rem; }
.photo-stamp {
  grid-area: photo;
  align-self: center;
  width: 100%;
  max-width: 21rem;
  padding: .55rem .55rem 1.25rem;
  border: 1px solid rgba(24,59,86,.12);
  border-radius: 3px;
  background: #fcfaf7;
  box-shadow: 0 10px 25px rgba(16,42,67,.14), 0 2px 5px rgba(16,42,67,.08);
  transform: rotate(-.65deg);
}
.photo-stamp::after { display: none; }
.kicker {
  margin-bottom: .9rem;
  color: #6f8498;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}
h1 {
  color: #102a43;
  font-family: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: .98;
}
.year {
  margin-top: .7rem;
  color: #6f8498;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: .08em;
}
.envelope {
  width: min(36vw, 22rem);
  transition: transform 260ms ease;
}
.envelope:hover { transform: translateY(-3px); }
.envelope-shadow { background: rgba(16,42,67,.15); filter: blur(15px); }
.pocket {
  border-color: rgba(24,59,86,.12);
  background:
    linear-gradient(142deg, transparent 49.5%, rgba(24,59,86,.08) 50%, transparent 50.8%) left / 50% 100% no-repeat,
    linear-gradient(218deg, transparent 49.5%, rgba(24,59,86,.08) 50%, transparent 50.8%) right / 50% 100% no-repeat,
    linear-gradient(180deg, #f7f3ec, #e9decc);
  box-shadow: 0 14px 30px rgba(16,42,67,.16);
}
.flap-back { background: #eadfce; }
.flap-front { background: linear-gradient(180deg, #fcfaf7, #e9decc); }
.letter { border-color: rgba(216,197,163,.72); background: #fcfaf7; box-shadow: 0 10px 24px rgba(16,42,67,.11); }
.letter-inner { color: #102a43; }
.letter strong { display: none; }
.seal {
  color: #f7f3ec;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.18), transparent 25%), #183b56;
  box-shadow: 0 8px 18px rgba(16,42,67,.3);
  transition: transform 260ms ease, opacity 500ms ease;
}
.envelope:hover .seal { transform: translate(-50%, -50%) scale(1.035); }
.primary-button {
  color: #fcfaf7;
  background: #183b56;
  box-shadow: 0 7px 18px rgba(16,42,67,.16);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.primary-button:hover, .primary-button:focus-visible {
  background: #102a43;
  box-shadow: 0 10px 22px rgba(16,42,67,.22);
  transform: translateY(-2px);
}

@keyframes invitation-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .invitation-card { column-gap: 2rem; padding: 2.5rem; }
  .photo-stamp { max-width: 18rem; }
}
@media (max-width: 620px) {
  .hero { padding: 1rem; }
  .invitation-card {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "photo" "stage";
    gap: 1.5rem;
    width: min(94vw, 30rem);
    padding: 2.25rem 1.4rem 1.7rem;
  }
  .hero-copy { align-self: auto; }
  .photo-stamp { width: min(70%, 14rem); max-width: none; }
  .envelope { width: min(78vw, 21rem); }
  h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
}

/* Envelope-first homepage */
.home-page .invitation-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "photo" "stage";
  justify-items: center;
  gap: 1.25rem;
  width: min(94vw, 48rem);
  padding: 1rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .invitation-card::before,
.home-page .invitation-card::after { display: none; }
.home-page .hero-copy { color: #f7f3ec; text-shadow: 0 2px 18px rgba(8,28,45,.28); }
.home-page .hero-copy .kicker { color: #d8c5a3; }
.home-page .hero-copy h1 { color: #fcfaf7; }
.home-page .hero-copy .year { color: #d8c5a3; }
.home-page .stage { width: 100%; }
.home-page .envelope { width: min(72vw, 25rem); }
.home-page .photo-stamp {
  display: none;
  grid-area: photo;
  width: min(62vw, 17rem);
  aspect-ratio: .86;
  margin: .2rem auto;
  border-color: rgba(216,197,163,.75);
  transform: rotate(-.4deg);
}
.home-page .invitation-card:has(.stage[data-opening="true"]) .photo-stamp,
.home-page .invitation-card:has(.stage[data-open="true"]) .photo-stamp {
  display: block;
  animation: photo-reveal 650ms cubic-bezier(.2,.8,.2,1) 280ms both;
}
.home-page .invitation-card:has(.stage[data-opening="true"]) .hero-copy,
.home-page .invitation-card:has(.stage[data-open="true"]) .hero-copy {
  display: none;
}
@keyframes photo-reveal {
  from { opacity: 0; transform: translateY(12px) scale(.97) rotate(-.4deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(-.4deg); }
}
@media (max-width: 620px) {
  .home-page .invitation-card { width: 100%; padding: .75rem 0; }
  .home-page .photo-stamp { width: min(58vw, 14rem); }
  .home-page .envelope { width: min(84vw, 23rem); }
}

/* The photograph now rises physically from inside the envelope */
.home-page .hero-copy {
  max-height: 10rem;
  overflow: hidden;
  opacity: 1;
  transition: opacity 320ms ease, max-height 600ms cubic-bezier(.2,.8,.2,1), margin 600ms ease;
}
.home-page .stage {
  position: relative;
  isolation: isolate;
  padding-top: 0;
  transition: padding-top 1150ms cubic-bezier(.22,.75,.18,1);
}
.home-page .stage .envelope-photo {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  display: block;
  width: min(58vw, 16rem);
  max-width: none;
  aspect-ratio: .86;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 38%) scale(.82) rotate(-.35deg);
  transform-origin: 50% 85%;
  transition:
    transform 1150ms cubic-bezier(.16,.82,.2,1) 180ms,
    opacity 260ms ease 300ms,
    box-shadow 700ms ease;
}
.home-page .stage[data-opening="true"],
.home-page .stage[data-open="true"] {
  min-height: 34rem;
  padding-top: 12.5rem;
}
.home-page .stage[data-opening="true"] .envelope-photo,
.home-page .stage[data-open="true"] .envelope-photo {
  opacity: 1;
  box-shadow: 0 12px 30px rgba(8,28,45,.2);
  transform: translate(-50%, 0) scale(1) rotate(-.35deg);
}
.home-page .invitation-card:has(.stage[data-opening="true"]) .photo-stamp,
.home-page .invitation-card:has(.stage[data-open="true"]) .photo-stamp {
  display: block;
  animation: none;
}
.home-page .invitation-card:has(.stage[data-opening="true"]) .hero-copy,
.home-page .invitation-card:has(.stage[data-open="true"]) .hero-copy {
  display: block;
  max-height: 0;
  margin: 0;
  opacity: 0;
}
.home-page .stage[data-opening="true"] .flap-front,
.home-page .stage[data-open="true"] .flap-front {
  transition-duration: 720ms;
}
.home-page .stage[data-opening="true"] .letter,
.home-page .stage[data-open="true"] .letter {
  transform: translateY(-20%);
  transition-duration: 850ms;
}
@media (max-width: 620px) {
  .home-page .stage .envelope-photo { width: min(54vw, 13rem); }
  .home-page .stage[data-opening="true"],
  .home-page .stage[data-open="true"] { min-height: 29rem; padding-top: 9.5rem; }
}

/* Keep the reveal anchored to the envelope itself */
.home-page .hero::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100%;
  content: "Annatina & Simon";
  color: rgba(247,243,236,.075);
  font-family: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  font-size: clamp(5rem, 13vw, 12rem);
  line-height: .82;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.home-page .invitation-card { position: relative; z-index: 1; }
.home-page .envelope .envelope-photo {
  position: absolute;
  top: auto;
  right: 9%;
  bottom: 14%;
  left: 9%;
  z-index: 4;
  display: block;
  width: auto;
  height: 112%;
  aspect-ratio: auto;
  margin: 0;
  padding: .38rem .38rem .9rem;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(216,197,163,.72);
  border-radius: 3px;
  background: #fcfaf7;
  box-shadow: 0 8px 20px rgba(8,28,45,.14);
  transform: translateY(43%) scale(.86) rotate(-.35deg);
  transform-origin: 50% 90%;
  transition:
    transform 1100ms cubic-bezier(.16,.82,.2,1) 180ms,
    opacity 240ms ease 260ms,
    box-shadow 600ms ease;
}
.home-page .envelope .envelope-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 2px;
}
.home-page .stage[data-opening="true"] .envelope-photo,
.home-page .stage[data-open="true"] .envelope-photo {
  opacity: 1;
  box-shadow: 0 12px 28px rgba(8,28,45,.2);
  transform: translateY(-72%) scale(1) rotate(-.35deg);
}

/* Final save-the-date cover */
.home-page .background {
  background: #102a43 url("assets/invitation-blue-gold-bg.png") center / cover no-repeat;
}
.home-page .background::before { display: none; }
.home-page .background::after {
  background: linear-gradient(90deg, rgba(3,16,35,.08), rgba(3,16,35,.18));
}
.home-page .hero-copy,
.home-page .invitation-card:has(.stage[data-opening="true"]) .hero-copy,
.home-page .invitation-card:has(.stage[data-open="true"]) .hero-copy {
  display: none;
}
.home-page .letter-inner { gap: .75rem; }
.home-page .letter-inner .script { font-size: clamp(1.55rem, 3.4vw, 2.4rem); }
.home-page .letter-inner [data-i18n="envelope.card"] {
  max-width: 90%;
  color: #183b56;
  font-size: clamp(.68rem, 1.5vw, .92rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
}

/* Wide blue and gold cover supplied for the invitation */
.home-page .background {
  background: #061a32 url("assets/invitation-blue-gold-wide-bg.png") center / cover no-repeat;
}
.home-page .background::after {
  background: linear-gradient(90deg, rgba(3,16,35,.025), rgba(3,16,35,.06));
}
.home-page .hero::before {
  color: rgba(247,243,236,.25);
  text-shadow: 0 2px 10px rgba(0,12,29,.18);
  filter: none;
}
@media (max-width: 620px) {
  .home-page .background { background-position: center; }
  .home-page .hero::before { color: rgba(247,243,236,.3); font-size: clamp(4.2rem, 22vw, 7rem); }
}

/* Front-page verse */
.home-page .hero::before { display: none; }
.front-verse {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3.25rem);
  left: clamp(1.25rem, 4vw, 4rem);
  z-index: 3;
  width: min(25rem, 35vw);
  margin: 0;
  color: #d8b76c;
  font-family: "Iowan Old Style", Baskerville, "Palatino Linotype", Georgia, serif;
  text-shadow: 0 2px 10px rgba(0,12,29,.28);
}
.front-verse p {
  margin: 0;
  font-size: clamp(.92rem, 1.25vw, 1.15rem);
  font-style: italic;
  line-height: 1.5;
}
.front-verse cite {
  display: block;
  margin-top: .55rem;
  font-size: .75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 620px) {
  .home-page .hero { padding-top: 9rem; }
  .front-verse { top: 1.25rem; left: 1.25rem; width: calc(100% - 2.5rem); }
  .front-verse p { font-size: .86rem; line-height: 1.45; }
}

/* Champagne gold as the consistent invitation accent */
:root {
  --gold-light: #d8b76c;
  --gold-deep: #987338;
}
.section-heading h2,
.rsvp > h2,
.access h2,
.wishes h2,
.wish-teaser h2,
.accommodation h2,
.program-shell h2,
.program-shell > h3,
.summary-card h3,
.wish-categories h3,
.money-wish h3,
.food-needs h3 {
  color: var(--gold-deep);
}
.party-hero h1,
.locked-panel h1 {
  color: var(--gold-light);
}
.summary-card:first-child h3 {
  color: #f0d79d;
}
.kicker,
.section-heading .kicker,
.rsvp > .kicker,
.access .kicker,
.accommodation .kicker {
  color: var(--gold-deep);
}
.party-hero .kicker,
.home-page .kicker,
.locked-panel .kicker {
  color: var(--gold-light);
}
.divider,
.details::before,
.reception-help::before,
.rsvp::before,
.access::before,
.wishes::before,
.party-details::before,
.party-program::before,
.accommodation::before {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.summary-card,
.program-shell,
.rsvp-form,
.code-form,
.money-wish,
.accommodation-list {
  border-color: rgba(152,115,56,.34);
}
.nav a:hover,
.nav a:focus-visible,
.header-languages button:hover,
.header-languages button:focus-visible,
.header-languages button.is-active {
  color: #102a43;
  background: var(--gold-light);
}

/* Final interaction polish */
.home-page .open-actions { margin-top: 2.5rem; }
.primary-button:disabled { cursor: wait; opacity: .68; transform: none; }
.rsvp-form[data-submitted="true"] { border-color: rgba(111,135,107,.55); }
.rsvp-form[data-submitted="true"] .form-message { color: #49664d; font-weight: 700; }
@media (max-width: 620px) {
  .home-page .open-actions { margin-top: 3.25rem; }
}

/* 2027 invitation suite: editorial refinement */
:root {
  --navy: #082a45;
  --navy-soft: #123c5c;
  --cream: #f8f3ea;
  --cream-deep: #eee5d8;
  --gold: #c99b46;
  --burgundy: #7c3048;
  --charcoal: #25282b;
  --paper: #fffdf8;
  --ink: var(--charcoal);
  --line: rgba(8, 42, 69, 0.16);
  --shadow: 0 24px 70px rgba(8, 30, 47, 0.12);
}
body { color: var(--charcoal); background: var(--cream); font-size: 1.08rem; line-height: 1.72; }
.background { background: var(--cream); }
.background::after { background: linear-gradient(180deg, rgba(255,255,255,.3), transparent 35rem); }
.home-page .background { background: #06233a url("assets/invitation-blue-gold-wide-bg.png") center / cover no-repeat; }
.home-page .background::after { background: rgba(3,25,42,.12); }
h1, h2, h3, .script { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
h1 { font-size: clamp(3.25rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.55rem, 5vw, 4rem); }
h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.kicker { color: var(--gold) !important; font-size: .75rem; font-weight: 800; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; }

.site-header { min-height: 4.75rem; padding: .72rem clamp(1rem,4vw,3.5rem); border-bottom: 1px solid rgba(201,155,70,.22); background: rgba(248,243,234,.94); box-shadow: 0 8px 30px rgba(8,42,69,.04); }
.brand { color: var(--navy); }
.brand img { width: 2.7rem; height: 2.7rem; }
.brand small { color: var(--gold); font: 700 .7rem/1 system-ui,sans-serif; letter-spacing: .12em; }
.nav { gap: clamp(.75rem,2.5vw,2.25rem); padding: 0; border: 0; border-radius: 0; background: transparent; }
.nav a { position: relative; min-width: 0; padding: .65rem .1rem; border-radius: 0; color: var(--navy); font-size: .84rem; font-weight: 650; }
.nav a::after { position: absolute; right: 50%; bottom: .32rem; left: 50%; height: 1px; content: ""; background: var(--gold); transition: left 220ms ease,right 220ms ease; }
.nav a:hover, .nav a:focus-visible { color: var(--burgundy); background: transparent; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; left: 0; }
.header-languages { padding: .15rem; border-color: rgba(8,42,69,.18); background: rgba(255,255,255,.5); }
.header-languages button { color: var(--navy); font-weight: 750; }
.header-languages button:hover, .header-languages button:focus-visible, .header-languages button.is-active { color: var(--cream); background: var(--navy); }

.hero { padding: clamp(1rem,3vw,2.5rem); }
.front-verse { top: clamp(2rem,7vh,5.5rem); left: clamp(1.25rem,4vw,4rem); max-width: 25rem; color: #dfbd77; }
.front-verse p { font-family: Georgia,"Times New Roman",serif; font-size: clamp(.92rem,1.4vw,1.12rem); line-height: 1.6; }
.front-verse cite { color: #dfbd77; letter-spacing: .14em; }
.home-page .invitation-card { width: min(95vw,72rem); padding: 0; background: transparent; box-shadow: none; }
.hero-copy h1 { color: rgba(248,243,234,.13); }
.hero-copy .year { color: rgba(201,155,70,.72); }
.stage { filter: drop-shadow(0 30px 45px rgba(0,0,0,.25)); }
.letter { background: #fffdf8; }
.letter-inner { gap: .55rem; color: var(--navy); }
.letter-names { color: var(--gold); font: 700 .68rem/1.4 system-ui,sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.letter-inner .script { font-size: clamp(1.55rem,3vw,2.35rem); color: var(--navy); }
.seal { background: var(--navy); }

.primary-button, .secondary-button, .code-row button { min-height: 3.35rem; padding: .8rem 1.55rem; border: 1px solid var(--navy); border-radius: 5px; color: var(--cream); background: var(--navy); box-shadow: 0 12px 24px rgba(8,42,69,.14); font-weight: 750; letter-spacing: .03em; transition: transform 180ms ease,box-shadow 180ms ease,background 180ms ease; }
.secondary-button { color: var(--navy); background: transparent; box-shadow: none; }
.primary-button:hover, .primary-button:focus-visible, .code-row button:hover, .code-row button:focus-visible { color: var(--cream); background: var(--navy-soft); box-shadow: 0 16px 30px rgba(8,42,69,.2); transform: translateY(-2px); }
.secondary-button:hover, .secondary-button:focus-visible { color: var(--cream); background: var(--navy); transform: translateY(-2px); }
.language-choice { border: 1px solid rgba(201,155,70,.42); border-radius: 6px; background: rgba(248,243,234,.97); box-shadow: var(--shadow); }
.language-buttons button { border-radius: 4px; color: var(--navy); }
.language-buttons button:hover, .language-buttons button:focus-visible, .language-buttons button.is-active { color: var(--cream); background: var(--navy); }

.details, .reception-help, .rsvp, .next-actions, .accommodation, .wishes { width: min(100%,80rem); margin: 0 auto; padding: clamp(5.5rem,10vw,9rem) clamp(1.25rem,5vw,4.5rem); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.details::before, .reception-help::before, .rsvp::before, .wishes::before { display: none; }
.section-heading { max-width: 45rem; }
.ceremony-page .section-heading { min-width: 0; margin: 0; text-align: left; }
.ceremony-page .section-heading h2 { max-width: 100%; font-size: clamp(2.4rem,3.8vw,3.2rem); overflow-wrap: normal; word-break: normal; }
.section-heading h2, .rsvp h2, .access h2, .wishes h1, .wishes h2 { margin: .35rem 0 1.25rem; color: var(--navy); font-weight: 500; line-height: 1.02; }
.section-heading > p:last-child, .rsvp > p { max-width: 44rem; color: rgba(37,40,43,.78); }
.ceremony-page { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(18rem,.88fr); align-items: center; gap: clamp(2.5rem,7vw,7rem); width: min(100%,92rem); }
.ceremony-page .section-heading { grid-column: 2; grid-row: 1; }
.ceremony-page .story-photo { grid-column: 1; grid-row: 1; }
.ceremony-page .ceremony-summary, .ceremony-page .program-shell { grid-column: 1/-1; }
.story-photo { overflow: hidden; margin: 0; border: 0; border-radius: 3px; background: var(--navy); box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: clamp(31rem,52vw,46rem); object-fit: cover; object-position: 50% 72%; }
.story-photo figcaption { padding: 1rem 1.4rem; color: var(--cream); background: var(--navy); font-size: .78rem; letter-spacing: .08em; text-align: left; }
.ceremony-summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; margin-top: clamp(2rem,6vw,5rem); border-top: 1px solid rgba(201,155,70,.55); border-bottom: 1px solid rgba(201,155,70,.55); }
.summary-card { gap: 1.4rem; padding: 2.5rem clamp(1rem,4vw,3rem); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.summary-card + .summary-card { border-left: 1px solid rgba(201,155,70,.35); }
.summary-card h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.75rem; }
.card-icon { display: grid; width: 3.2rem; min-width: 3.2rem; height: 3.2rem; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--navy); background: transparent; font-size: .72rem; }

.program-shell, .party-program { max-width: 58rem; margin: clamp(4.5rem,8vw,7rem) auto 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.program-shell > h2, .program-shell > h3 { margin-bottom: 3rem; color: var(--navy); text-align: center; }
.program-list { position: relative; display: grid; gap: 0; }
.program-list::before { position: absolute; top: 1.3rem; bottom: 1.3rem; left: 7.35rem; width: 1px; content: ""; background: rgba(201,155,70,.7); }
.program-item { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 3rem; min-height: 5.25rem; padding: 1rem 0; border: 0; border-radius: 0; background: transparent; }
.program-item::before { position: absolute; top: 1.55rem; left: 7.03rem; width: .68rem; height: .68rem; content: ""; border: 2px solid var(--cream); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.program-item time { color: var(--navy); font: 700 .92rem/1.5 system-ui,sans-serif; text-align: right; }
.program-item p { margin: 0; color: var(--charcoal); font-family: Georgia,"Times New Roman",serif; font-size: 1.3rem; line-height: 1.35; }

.reception-help { border-top: 1px solid rgba(8,42,69,.1); }
body:not(.language-fr) .reception-help { display: none; }
.rsvp { width: 100%; max-width: none; padding-inline: max(1.25rem,calc((100vw - 72rem)/2)); background: #fffdf8; border-top: 1px solid rgba(8,42,69,.08); border-bottom: 1px solid rgba(8,42,69,.08); }
.rsvp-form, .help-form { max-width: 64rem; margin-top: 3rem; padding: clamp(1.5rem,4vw,3.25rem); border: 1px solid rgba(201,155,70,.38); border-radius: 4px; background: var(--cream); box-shadow: 0 24px 60px rgba(8,42,69,.07); }
.form-grid { gap: 1.65rem 2rem; }
.rsvp-form label, .rsvp-form legend { color: var(--navy); font-size: .86rem; font-weight: 750; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea, .code-row input { min-height: 3.55rem; border: 0; border-bottom: 1px solid rgba(8,42,69,.28); border-radius: 0; color: var(--charcoal); background: rgba(255,253,248,.65); box-shadow: none; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus, .code-row input:focus { border-color: var(--gold); outline: 2px solid rgba(201,155,70,.18); outline-offset: 2px; }
.rsvp-form .choice { border-radius: 3px; background: rgba(255,253,248,.72); }

.next-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem,8vw,7rem); }
.wish-teaser, .access { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.access { padding-left: clamp(2rem,5vw,5rem); border-left: 1px solid rgba(201,155,70,.5); }
.wish-teaser h2, .access h2 { font-size: clamp(2.2rem,4vw,3.35rem); }
.code-form { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
.party-hero { min-height: 76svh; padding: 10rem 1.5rem 7rem; background: linear-gradient(rgba(4,29,48,.68),rgba(4,29,48,.82)),url("assets/proposal-photo.jpeg") center 40%/cover no-repeat; color: var(--cream); }
.party-hero h1 { max-width: 60rem; margin: .4rem auto 1.4rem; color: var(--cream); }
.party-hero > p:last-child { max-width: 45rem; margin-inline: auto; color: rgba(248,243,234,.86); }
.party-details { width: min(100%,80rem); }
.party-page .rsvp { background: #fffdf8; }
.accommodation { border-top: 1px solid rgba(201,155,70,.3); }
.accommodation-list { gap: 0; }
.accommodation-card { border: 0; border-bottom: 1px solid rgba(8,42,69,.14); border-radius: 0; background: transparent; box-shadow: none; }
.wishes-page .wishes { padding-top: 10rem; }
.wishes-page .section-heading { margin: 0 auto 4rem; text-align: center; }
.money-wish { max-width: 52rem; margin: 0 auto 5rem; padding: 2.25rem; border: 1px solid rgba(201,155,70,.45); border-radius: 3px; background: #fffdf8; }
.money-wish img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
.wish-categories { gap: 0; border-top: 1px solid rgba(8,42,69,.14); }
.wish-category { padding: 2.25rem 0; border: 0; border-bottom: 1px solid rgba(8,42,69,.14); border-radius: 0; background: transparent; box-shadow: none; }
.wish-category h2, .wish-category h3 { color: var(--navy); }
.footer { padding: 3.5rem 1.5rem; color: rgba(248,243,234,.72); background: var(--navy); border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
  .ceremony-page { grid-template-columns: 1fr; }
  .ceremony-page .section-heading, .ceremony-page .story-photo { grid-column: 1; grid-row: auto; }
  .ceremony-page .story-photo { grid-row: 1; }
  .ceremony-page .section-heading { grid-row: 2; }
  .story-photo img { height: min(72svh,42rem); }
  .next-actions { grid-template-columns: 1fr; }
  .access { padding: 3.5rem 0 0; border-top: 1px solid rgba(201,155,70,.5); border-left: 0; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .site-header { min-height: 4.15rem; padding: .55rem .85rem .4rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .nav { gap: 1rem; padding: .15rem 0; justify-content: flex-start; }
  .nav a { font-size: .75rem; white-space: nowrap; }
  .header-languages button { min-width: 2rem; min-height: 1.9rem; padding: .3rem; font-size: .7rem; }
  .front-verse { top: 1.2rem; right: 1.2rem; left: 1.2rem; max-width: 19rem; }
  .hero { align-items: end; padding: 9rem .65rem 2rem; }
  .home-page .invitation-card { width: 100%; }
  .letter-names { font-size: .55rem; }
  .details, .reception-help, .next-actions, .accommodation, .wishes { padding: 5.5rem 1.2rem; }
  .ceremony-page { gap: 2.5rem; }
  .story-photo img { height: 60svh; min-height: 27rem; }
  .ceremony-summary { grid-template-columns: 1fr; }
  .summary-card + .summary-card { border-top: 1px solid rgba(201,155,70,.35); border-left: 0; }
  .program-list::before { left: 4.85rem; }
  .program-item { grid-template-columns: 3.75rem 1fr; gap: 2.2rem; min-height: 4.8rem; }
  .program-item::before { left: 4.53rem; }
  .program-item p { font-size: 1.08rem; }
  .rsvp { padding: 5.5rem 1.2rem; }
  .rsvp-form { padding: 1.25rem; }
  .code-row { grid-template-columns: 1fr; }
  .party-hero { min-height: 68svh; padding-top: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Envelope starts sealed, then opens in one calm motion on all viewports. */
.home-page .stage {
  min-height: clamp(17rem, 34vw, 24rem);
  align-content: center;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.24));
  transition:
    min-height 900ms cubic-bezier(.2,.75,.18,1),
    padding-top 900ms cubic-bezier(.2,.75,.18,1);
}

.home-page .envelope {
  width: min(68vw, 25rem);
  max-width: calc(100svw - 2rem);
  transform-origin: 50% 65%;
}

.home-page .envelope:hover {
  transform: translateY(-2px);
}

.home-page .flap-back {
  opacity: 0;
  transform: rotateX(0deg);
  transform-origin: 50% 35%;
  transition: opacity 180ms ease 170ms;
}

.home-page .flap-front {
  z-index: 9;
  opacity: 1;
  transform: rotateX(0deg);
  backface-visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 50% 72%, 0 35%);
  box-shadow: inset 0 -12px 24px rgba(8,42,69,.05);
}

.home-page .pocket {
  z-index: 6;
}

.home-page .letter,
.home-page .envelope .envelope-photo {
  z-index: 4;
}

.home-page .letter {
  opacity: 0;
  transform: translateY(48%);
  transition:
    opacity 220ms ease 140ms,
    transform 850ms cubic-bezier(.16,.82,.2,1) 180ms;
}

.home-page .seal {
  z-index: 10;
}

.home-page .stage[data-opening="true"],
.home-page .stage[data-open="true"] {
  min-height: clamp(28rem, 46vw, 36rem);
  padding-top: clamp(8.5rem, 18vw, 13rem);
}

.home-page .stage[data-opening="true"] .flap-back,
.home-page .stage[data-open="true"] .flap-back {
  opacity: 1;
}

.home-page .stage[data-opening="true"] .flap-front,
.home-page .stage[data-open="true"] .flap-front {
  z-index: 2;
  opacity: 1;
  transform: rotateX(178deg);
}

.home-page .stage[data-open="true"] .flap-front {
  opacity: 0;
}

.home-page .stage[data-opening="true"] .letter,
.home-page .stage[data-open="true"] .letter {
  opacity: 1;
  transform: translateY(-18%);
}

.home-page .stage[data-opening="true"] .envelope-photo,
.home-page .stage[data-open="true"] .envelope-photo {
  transform: translateY(-74%) scale(1) rotate(-.35deg);
}

@media (min-width: 1000px) {
  .home-page .stage {
    transform: translateY(1.25rem);
  }
}

@media (max-width: 620px) {
  .home-page .hero {
    min-height: 100svh;
    align-items: center;
    padding: 8rem .75rem 1.25rem;
  }

  .front-verse {
    max-width: min(100% - 2.4rem, 21rem);
  }

  .home-page .stage {
    min-height: clamp(15rem, 54vw, 19rem);
    gap: 1rem;
  }

  .home-page .envelope {
    width: min(86vw, 23rem);
  }

  .home-page .stage[data-opening="true"],
  .home-page .stage[data-open="true"] {
    min-height: clamp(26rem, 92vw, 31rem);
    padding-top: clamp(8rem, 30vw, 10.5rem);
  }

  .home-page .stage[data-opening="true"] .envelope-photo,
  .home-page .stage[data-open="true"] .envelope-photo {
    transform: translateY(-70%) scale(.98) rotate(-.35deg);
  }

  .home-page .open-actions {
    margin-top: 1.2rem;
  }
}
