:root {
  color-scheme: light;
  --hero-image: url("./assets/hero.svg");
  --ivory: #f8f2e4;
  --ivory-deep: #efe5cf;
  --paper: rgba(255, 252, 244, 0.9);
  --olive-950: #253321;
  --olive-800: #3e5035;
  --olive-600: #536545;
  --sage: #a9b597;
  --blush: #e6c4bd;
  --rose: #c98f87;
  --gold: #c4a56c;
  --shadow: 0 28px 70px rgba(42, 54, 34, 0.28);
  --footer-height: 76px;
  --ease-out: cubic-bezier(0.22, 0.78, 0.24, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  background: #d9dfd0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html.is-locked,
html.is-locked body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  color: var(--olive-950);
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.9), transparent 28rem),
    linear-gradient(135deg, #dce2d3, #eee7d8 52%, #d5dfd3);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(62, 80, 53, 0.74);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 50%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--olive-950);
  border-radius: 999px;
  transform: translate(-50%, -180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.is-locked .skip-link {
  display: none;
}

.page-frame {
  position: relative;
  width: min(100%, 390px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  overflow-x: clip;
  background: var(--ivory);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.ambient-canvas {
  position: fixed;
  z-index: 5;
  inset: 0;
  width: min(100%, 390px);
  height: 100vh;
  height: 100dvh;
  margin-inline: auto;
  pointer-events: none;
}

.invitation-cover {
  --cover-art-width: min(100vw, 390px);
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  width: min(100%, 390px);
  display: block;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #fffdf5;
  background: #f4eebe;
  transform: translateX(-50%);
}

.invitation-cover::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  pointer-events: none;
  background: rgba(68, 82, 54, 0.28);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.42);
  transform: translateX(-0.5px);
  transition: opacity 220ms ease;
}

.cover-door {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: 50%;
  overflow: hidden;
  background: #f4eebe;
  transform: translateX(0);
  transition:
    transform 1.08s var(--ease-out),
    opacity 540ms ease;
}

.cover-door::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -12px;
  bottom: -12px;
  width: calc(var(--cover-art-width) + 24px);
  background: var(--hero-image) center center / cover no-repeat;
  filter: blur(8px) saturate(0.78) brightness(1.04);
  transform: scale(1.025);
}

.cover-door::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(224, 247, 249, 0.98) 0%,
    rgba(239, 247, 223, 0.96) 22%,
    rgba(250, 247, 183, 0.93) 40%,
    rgba(237, 198, 123, 0.82) 55%,
    rgba(241, 218, 160, 0.24) 67%,
    rgba(21, 43, 22, 0.13) 100%
  );
}

.cover-door--left {
  left: 0;
  transform-origin: left center;
}

.cover-door--left::before {
  left: -12px;
}

.cover-door--right {
  right: 0;
  transform-origin: right center;
}

.cover-door--right::before {
  right: -12px;
}

.cover-door__wash {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.08), transparent 32%, rgba(71, 76, 44, 0.08)),
    linear-gradient(to bottom, transparent 62%, rgba(28, 44, 24, 0.16));
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero__names,
.shell-preview h3 {
  margin: 0.65rem 0;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(3rem, 14vw, 4.25rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.invitation-seal {
  position: absolute;
  z-index: 4;
  display: grid;
  top: 53%;
  left: 50%;
  width: clamp(128px, 38vw, 148px);
  aspect-ratio: 8 / 7;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 16px 20px rgba(55, 62, 32, 0.27));
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 320ms ease,
    transform 300ms var(--ease-out),
    filter 250ms ease;
}

.invitation-seal:hover {
  filter: drop-shadow(0 18px 24px rgba(55, 62, 32, 0.35));
  transform: translate(-50%, -50%) scale(1.035);
}

.invitation-seal:active {
  transform: translate(-50%, -50%) scale(0.965);
}

.invitation-seal:focus-visible {
  border-radius: 48% 48% 52% 52%;
  outline: 3px solid #3f5634;
  outline-offset: 5px;
}

.invitation-seal__heart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: seal-breathe 2.8s ease-in-out infinite;
}

.invitation-seal__heart path {
  stroke: rgba(125, 123, 76, 0.22);
  stroke-width: 1;
}

.invitation-seal__names {
  position: relative;
  z-index: 1;
  display: grid;
  color: #4f543d;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(1.18rem, 5.4vw, 1.45rem);
  font-weight: 400;
  line-height: 0.72;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-2px) rotate(-4deg);
}

.invitation-cover[data-state="open"] {
  background-color: transparent;
  pointer-events: none;
  visibility: hidden;
}

.invitation-cover[data-state="opening"] {
  background-color: transparent;
}

.invitation-cover[data-state="opening"]::after,
.invitation-cover[data-state="open"]::after {
  opacity: 0;
}

.invitation-cover[data-state="opening"] .cover-door--left,
.invitation-cover[data-state="open"] .cover-door--left {
  opacity: 1;
  transform: translateX(-105%);
  will-change: transform;
}

.invitation-cover[data-state="opening"] .cover-door--right,
.invitation-cover[data-state="open"] .cover-door--right {
  opacity: 1;
  transform: translateX(105%);
  will-change: transform;
}

.invitation-cover[data-state="opening"] .invitation-seal {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition-duration: 200ms;
  transition-delay: 920ms;
}

.invitation-cover[data-state="open"] .invitation-seal {
  opacity: 0;
}

.invitation-main {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 1.5rem);
  background: var(--ivory);
  opacity: 0;
  transform: scale(1.018);
  filter: blur(5px);
  transition:
    opacity 760ms ease 280ms,
    transform 900ms var(--ease-out) 220ms,
    filter 760ms ease 240ms;
}

.invitation-main.is-revealed {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fffdf5;
  background: #8d9d80;
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(1.025);
  animation: hero-drift 4.8s ease-out 1 both;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(33, 49, 29, 0.26), transparent 36%, rgba(27, 43, 23, 0.08) 58%, rgba(25, 39, 21, 0.62)),
    radial-gradient(circle at 50% 19%, rgba(255, 248, 224, 0.04), transparent 24rem);
}

.hero__content {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 100%;
  padding: max(2.75rem, 6vh) 1.25rem max(5rem, 9vh);
  padding: max(2.75rem, 6dvh) 1.25rem max(5rem, 9dvh);
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(18, 33, 24, 0.92) 0%,
    rgba(22, 39, 28, 0.78) 38%,
    rgba(26, 44, 31, 0.3) 64%,
    rgba(26, 44, 31, 0) 92%
  );
  text-shadow: 0 2px 18px rgba(27, 42, 23, 0.62);
  transform: translateX(-50%);
}

.hero__content > * {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, -1.15rem, 0);
}

.invitation-main.is-revealed .hero__content > * {
  animation: hero-copy-reveal 720ms var(--ease-out) both;
}

.invitation-main.is-revealed .hero__content > :nth-child(1) {
  animation-delay: 340ms;
}

.invitation-main.is-revealed .hero__content > :nth-child(2) {
  animation-delay: 500ms;
}

.invitation-main.is-revealed .hero__content > :nth-child(3) {
  animation-delay: 660ms;
}

.hero__names {
  margin-block: 1rem 0.65rem;
  font-size: clamp(3.4rem, 16vw, 4.8rem);
}

.hero__names > span {
  display: block;
}

.hero__name {
  transform: translateX(-0.12em);
}

.hero__ampersand {
  margin-block: -0.14em;
  color: #f0ddb1;
  font-size: 0.58em;
}

.hero__date {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: calc(var(--footer-height) + env(safe-area-inset-bottom) + 1rem);
  left: 50%;
  display: grid;
  gap: 0.75rem;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(20, 34, 17, 0.7);
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
}

.shell-preview {
  position: relative;
  padding: 5rem 2.4rem 5.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(230, 196, 189, 0.34), transparent 14rem),
    radial-gradient(circle at 90% 85%, rgba(169, 181, 151, 0.32), transparent 13rem),
    var(--ivory);
}

.shell-preview::before,
.shell-preview::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(104, 123, 88, 0.2);
  border-radius: 58% 42% 56% 44%;
  pointer-events: none;
}

.shell-preview::before {
  top: 1.25rem;
  left: -4.5rem;
  transform: rotate(24deg);
}

.shell-preview::after {
  right: -4.2rem;
  bottom: 1.5rem;
  transform: rotate(-28deg);
}

.shell-preview .ornament {
  margin: 0 0 1.15rem;
  color: var(--rose);
  font-size: 1.5rem;
}

.shell-preview__greeting {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-preview h3 {
  margin-block: 1.1rem;
  color: var(--olive-800);
  font-size: 3.25rem;
}

.shell-preview p:not(.ornament):not(.draft-pill) {
  margin-inline: auto;
  max-width: 17.5rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.75;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms ease,
    transform 820ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-section,
.countdown-section,
.gallery-section,
.community-section,
.outro-section {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
}

.content-section {
  background:
    radial-gradient(circle at 8% 8%, rgba(230, 196, 189, 0.26), transparent 11rem),
    radial-gradient(circle at 96% 88%, rgba(169, 181, 151, 0.25), transparent 12rem),
    var(--ivory);
}

.section-ornament {
  margin: 0 0 1rem;
  color: var(--rose);
  font-size: 1.5rem;
}

.section-kicker {
  margin: 0;
  color: var(--olive-600);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.75rem 0 2rem;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.invitation-intro {
  padding-block: 5.5rem;
}

.host-names {
  margin: 1.5rem auto 0.8rem;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.invitation-copy {
  max-width: 18rem;
  margin: 0 auto;
  color: #4d5844;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.97rem;
  line-height: 1.85;
}

.detail-section {
  padding-top: 1rem;
}

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

.detail-item {
  min-height: 150px;
  padding: 1.35rem 0.8rem;
  border: 1px solid rgba(104, 123, 88, 0.2);
  border-radius: 1.35rem;
  background: rgba(255, 253, 246, 0.66);
  box-shadow: 0 12px 30px rgba(60, 78, 49, 0.07);
}

.detail-item__icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  margin: 0 auto 0.75rem;
  border: 1px solid rgba(104, 123, 88, 0.28);
  border-radius: 50%;
  color: var(--olive-600);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.detail-item__label {
  margin: 0;
  color: var(--olive-600);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-item__value {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.87rem;
  line-height: 1.45;
}

.story-panel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: #fffdf4;
  background: #ece2d1;
}

.story-panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transform: scale(1.012);
}

.story-panel__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 42%, rgba(35, 51, 29, 0.15) 63%, rgba(30, 43, 26, 0.78));
}

.story-panel__copy {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 2.5rem;
  left: 1.5rem;
  text-align: center;
  text-shadow: 0 2px 14px rgba(28, 40, 25, 0.55);
}

.story-panel__copy .section-kicker,
.story-panel__copy .section-title {
  color: #fffdf4;
}

.story-panel__copy .section-title {
  margin-bottom: 0;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 3rem;
}

.programme-section {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(65, 82, 53, 0.38), rgba(46, 63, 39, 0.5)),
    var(--hero-image) center 58% / cover;
}

.programme-card {
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 2rem;
  background: rgba(255, 252, 243, 0.79);
  box-shadow: 0 22px 50px rgba(35, 50, 29, 0.28);
  backdrop-filter: blur(15px) saturate(1.18);
  -webkit-backdrop-filter: blur(15px) saturate(1.18);
}

.programme-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.programme-list__item {
  display: grid;
  min-height: 3.5rem;
  grid-template-columns: 5.2rem 1rem 1fr;
  align-items: center;
  text-align: left;
}

.programme-list__time {
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.programme-list__dot {
  position: relative;
  width: 7px;
  height: 7px;
  margin-inline: auto;
  border: 1px solid var(--olive-600);
  border-radius: 50%;
  background: var(--ivory);
}

.programme-list__item:not(:last-child) .programme-list__dot::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 1px;
  height: 3rem;
  background: rgba(104, 123, 88, 0.32);
}

.programme-list__label {
  padding-left: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.prayer-section {
  padding-block: 5.5rem;
}

.prayer-mark {
  height: 2.5rem;
  margin: 0;
  color: var(--blush);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.25rem;
  line-height: 1;
}

.prayer-section blockquote {
  max-width: 18rem;
  margin: 1rem auto;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.85;
}

.hashtag {
  margin: 2rem 0 0;
  color: #8f4f4a;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.8rem;
}

.countdown-section {
  background: linear-gradient(145deg, #526649, #33472f);
  color: #fffdf4;
}

.countdown-section .section-kicker,
.countdown-section .section-title {
  color: #fffdf4;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.countdown-unit {
  display: grid;
  min-width: 0;
  gap: 0.42rem;
  padding: 1.1rem 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.countdown-unit strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 7vw, 1.85rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.countdown-unit span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.gallery-section {
  overflow: hidden;
  background: #f0e8d8;
}

.gallery {
  margin-inline: -2rem;
}

.gallery__track {
  display: flex;
  gap: 1rem;
  padding: 0.75rem calc((100% - 78%) / 2) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__slide {
  flex: 0 0 78%;
  aspect-ratio: 4 / 5.4;
  margin: 0;
  overflow: hidden;
  border: 7px solid rgba(255, 253, 247, 0.9);
  border-radius: 1.5rem;
  background: #d7ddce;
  box-shadow: 0 20px 45px rgba(43, 57, 37, 0.2);
  scroll-snap-align: center;
  transform: scale(0.91) rotateY(7deg);
  opacity: 0.62;
  transition:
    transform 550ms var(--ease-out),
    opacity 420ms ease;
}

.gallery__slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1) rotateY(0);
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__dots {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery__dot {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.gallery__dot::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(79, 98, 65, 0.5);
  content: "";
  transition: width 260ms ease, background 260ms ease;
}

.gallery__dot[aria-current="true"]::before {
  width: 28px;
  background: var(--olive-600);
}

.gallery__toggle {
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border: 1px solid rgba(83, 101, 69, 0.22);
  border-radius: 999px;
  color: var(--olive-600);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
}

.community-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 196, 189, 0.3), transparent 13rem),
    var(--ivory);
}

.attendance-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.attendance-summary__item {
  display: grid;
  min-height: 110px;
  gap: 0.3rem;
  place-content: center;
  border: 1px solid rgba(104, 123, 88, 0.18);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.52);
}

.attendance-summary__item strong {
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.attendance-summary__item span {
  color: var(--olive-600);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wishes {
  padding: 1.6rem;
  border-radius: 1.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.56);
}

.wishes h4 {
  margin: 0 0 1rem;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.empty-state {
  margin: 0;
  color: var(--olive-600);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.55;
}

.outro-section {
  min-height: 360px;
  display: grid;
  align-content: center;
  color: #fffdf5;
  background:
    linear-gradient(rgba(44, 62, 37, 0.65), rgba(32, 47, 28, 0.78)),
    var(--hero-image) center 75% / cover;
  text-shadow: 0 2px 14px rgba(23, 34, 20, 0.48);
}

.outro-section p {
  margin: 0.5rem auto;
  max-width: 18rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.outro-section h3 {
  margin: 0.7rem 0 0;
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 3.3rem;
  font-weight: 400;
}

.outro-section__tag {
  color: #f0d8ca;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.draft-pill {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(104, 123, 88, 0.25);
  border-radius: 999px;
  color: var(--olive-600);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-nav {
  position: fixed;
  z-index: 90;
  right: 50%;
  bottom: 0;
  display: grid;
  width: min(100%, 390px);
  min-height: calc(var(--footer-height) + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  padding: 0.5rem 0.35rem max(0.45rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(74, 91, 62, 0.15);
  background: rgba(252, 248, 238, 0.9);
  box-shadow: 0 -12px 30px rgba(42, 54, 34, 0.12);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transform: translateX(50%);
}

.footer-nav[hidden] {
  display: none;
}

.footer-nav button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  gap: 0.25rem;
  place-content: center;
  border: 0;
  border-radius: 0.8rem;
  color: var(--olive-800);
  background: transparent;
  font-size: 0.63rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-nav button span:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.footer-nav button:disabled {
  opacity: 0.5;
}

.footer-nav button:not(:disabled):active {
  transform: translateY(1px) scale(0.96);
}

.footer-nav button.is-active {
  color: #fffdf4;
  background: var(--olive-800);
}

.drawer-host {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 50%;
  bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
  width: min(100%, 390px);
  pointer-events: none;
  transform: translateX(50%);
}

.drawer-host:empty {
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  pointer-events: auto;
  cursor: default;
  border: 0;
  background: rgba(25, 36, 22, 0.42);
  opacity: 0;
  transition: opacity 360ms ease;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-host.is-open .drawer-backdrop {
  opacity: 1;
}

.has-modal-drawer .skip-link,
.has-modal-drawer .invitation-cover,
.has-modal-drawer .invitation-main,
.has-modal-drawer .footer-nav {
  pointer-events: none;
  user-select: none;
}

.action-drawer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(76vh, 640px);
  max-height: min(76dvh, 640px);
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 0;
  border-radius: 1.75rem 1.75rem 0 0;
  background: rgba(255, 252, 244, 0.97);
  box-shadow: 0 -22px 55px rgba(36, 50, 31, 0.28);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transform: translateY(calc(100% + 2rem));
  visibility: hidden;
  transition:
    transform 500ms var(--ease-out),
    visibility 0s linear 500ms;
}

.action-drawer[aria-hidden="false"] {
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.action-drawer__handle {
  display: block;
  width: 3.2rem;
  height: 5px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: rgba(83, 101, 69, 0.28);
}

.action-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(83, 101, 69, 0.12);
}

.action-drawer__header h2 {
  margin: 0.25rem 0 0;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.drawer-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(83, 101, 69, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  line-height: 1;
}

.action-drawer__body {
  max-height: calc(min(76vh, 640px) - 96px);
  max-height: calc(min(76dvh, 640px) - 96px);
  padding: 1.25rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-empty,
.drawer-note,
.drawer-address,
.privacy-note,
.form-notice {
  color: var(--olive-600);
  font-size: 0.78rem;
  line-height: 1.6;
}

.drawer-empty {
  padding: 1rem;
  border: 1px dashed rgba(83, 101, 69, 0.28);
  border-radius: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}

.drawer-lead {
  margin-top: 0;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
}

.demo-mode-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(196, 165, 108, 0.34);
  border-radius: 0.9rem;
  color: #67572f;
  background: rgba(240, 221, 177, 0.32);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
}

.drawer-place {
  margin: 0;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.drawer-address {
  margin-top: 0.45rem;
}

.drawer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.drawer-actions--stacked {
  grid-template-columns: 1fr;
}

.action-link,
.primary-button,
.secondary-button,
.copy-button {
  min-height: 46px;
  cursor: pointer;
  border: 0;
  border-radius: 0.9rem;
  font-weight: 800;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-start;
  padding: 0.75rem 0.9rem;
  color: var(--olive-800);
  background: rgba(83, 101, 69, 0.1);
  font-size: 0.76rem;
  text-align: left;
  text-decoration: none;
}

.action-link__icon {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fffdf4;
  background: var(--olive-600);
}

.contact-list,
.gift-list {
  display: grid;
  gap: 0.75rem;
}

.contact-card,
.gift-card {
  padding: 1rem;
  border: 1px solid rgba(83, 101, 69, 0.15);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.48);
}

.contact-card__role,
.gift-card__label {
  margin: 0;
  color: var(--olive-600);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h3,
.gift-card strong {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.music-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.primary-button {
  padding: 0.75rem 1rem;
  color: #fffdf4;
  background: var(--olive-800);
}

.secondary-button,
.copy-button {
  padding: 0.75rem 1rem;
  color: var(--olive-800);
  background: rgba(83, 101, 69, 0.12);
}

.copy-button {
  margin-top: 0.8rem;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem;
  border-radius: 1rem;
  background: rgba(83, 101, 69, 0.1);
}

.form-tabs button {
  min-height: 44px;
  cursor: pointer;
  border: 0;
  border-radius: 0.75rem;
  color: var(--olive-600);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
}

.form-tabs button[aria-selected="true"] {
  color: var(--olive-800);
  background: #fffdf6;
  box-shadow: 0 5px 14px rgba(45, 59, 39, 0.12);
}

.invitation-form {
  display: grid;
  gap: 0.95rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  color: var(--olive-800);
  font-size: 0.72rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.8rem;
  border: 1px solid #6f7f65;
  border-radius: 0.85rem;
  color: var(--olive-950);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 400;
}

.form-field [aria-invalid="true"] {
  border-color: #a54f4a;
  box-shadow: 0 0 0 3px rgba(165, 79, 74, 0.12);
}

.field-error {
  color: #8f3733;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
}

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

.privacy-note,
.form-notice {
  margin: 0;
}

.form-notice {
  min-height: 1.4em;
  font-weight: 700;
}

.invitation-form[aria-busy="true"] {
  opacity: 0.72;
}

.turnstile-slot {
  min-height: 65px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.honeypot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.wishes__list {
  display: grid;
  gap: 0.75rem;
}

.wish-card {
  padding: 1rem;
  border: 1px solid rgba(83, 101, 69, 0.14);
  border-radius: 1rem;
  background: rgba(255, 253, 246, 0.74);
}

.wish-card p {
  margin: 0;
  color: var(--olive-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.6;
}

.wish-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--olive-600);
  font-size: 0.66rem;
}

.wish-card footer strong {
  color: var(--olive-800);
}

.drawer-address,
.drawer-lead,
.drawer-empty,
.contact-card h3,
.gift-card strong,
.wish-card p,
.wish-card footer,
.outro-section__tag {
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes seal-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes hero-copy-reveal {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translate3d(0, -1.15rem, 0);
  }
  to {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.025) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.065) translate3d(0, -0.35%, 0);
  }
}

@media (min-width: 620px) {
  body {
    padding-block: 1.25rem 0;
  }

  .page-frame {
    min-height: calc(100vh - 1.25rem);
    min-height: calc(100dvh - 1.25rem);
    border-radius: 1.5rem;
  }

  .invitation-cover,
  .ambient-canvas {
    top: 1.25rem;
    height: calc(100vh - 1.25rem);
    height: calc(100dvh - 1.25rem);
    border-radius: 1.5rem;
  }

  .invitation-cover {
    top: 0;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .footer-nav {
    bottom: 0;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .drawer-host {
    bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .ambient-canvas {
    display: none;
  }

  .invitation-cover[data-state="opening"] .cover-door,
  .invitation-cover[data-state="open"] .cover-door {
    opacity: 0;
    transform: none;
  }

  .invitation-main {
    transform: none;
    filter: none;
  }

  .hero__content > * {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .gallery__slide,
  .gallery__slide.is-active {
    transform: none;
  }

  .gallery__toggle {
    display: none;
  }
}

.gallery-invite {
  text-align: center;
}

.gallery-invite__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0 1.6rem;
  text-decoration: none;
}
