:root {
  --ink: #151513;
  --charcoal: #232421;
  --paper: #f7f2e9;
  --paper-soft: #fffaf1;
  --stone: #d8d0c2;
  --gold: #b79a67;
  --sage: #6f7c69;
  --wine: #8c5f66;
  --clay: #a8735e;
  --muted: #756f66;
  --line: rgba(247, 242, 233, 0.28);
  --dark-line: rgba(21, 21, 19, 0.12);
  --shadow: 0 26px 80px rgba(12, 12, 10, 0.28);
  --mobile-width: min(500px, 42vw);
}

@font-face {
  font-family: "Simple Serenity Serif";
  src: url("/simple-serenity-serif.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Simple Serenity Script";
  src: url("/simple-serenity-script.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes Local";
  src: url("/great-vibes.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.cover-locked {
  overflow: hidden;
}

body.preloader-active {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 34%, rgba(183, 154, 103, 0.2), transparent 30%),
    linear-gradient(180deg, #1a1a17, #0f0f0d);
  transition: opacity 700ms ease, visibility 700ms;
}

.site-preloader::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(247, 242, 233, 0.16);
  content: "";
}

.site-preloader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.preloader-text {
  position: absolute;
  text-align: center;
  text-transform: uppercase;
}

.preloader-kicker {
  color: var(--paper-soft);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  animation: preloaderKicker 1900ms ease both;
}

.preloader-logo {
  position: absolute;
  width: clamp(138px, 38vw, 208px);
  height: clamp(112px, 30vw, 170px);
  max-width: 62vw;
  opacity: 0;
  transform-origin: center;
  animation: preloaderLogoPop 1800ms cubic-bezier(0.16, 1, 0.3, 1) 4700ms both;
}

img.preloader-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.preloader-logo-mark {
  display: none;
}

.preloader-logo-mark {
  display: none;
  place-items: center;
  color: var(--paper-soft);
}

.preloader-logo-serif {
  font-family: "Libre Bodoni", "Bodoni MT", Didot, serif;
  font-size: clamp(7rem, 31vw, 12rem);
  line-height: 0.72;
}

.preloader-logo-script {
  position: absolute;
  margin-top: 0.16em;
  margin-left: 0.24em;
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-size: clamp(8rem, 34vw, 13rem);
  line-height: 0.72;
  transform: rotate(-10deg);
}

.preloader-names {
  color: var(--paper-soft);
  font-family: "Simple Serenity Serif", "Libre Bodoni", "Bodoni MT", Didot, serif;
  font-size: clamp(2.65rem, 11vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  opacity: 0;
  transform-origin: center;
  animation: preloaderNames 4200ms cubic-bezier(0.2, 0.8, 0.2, 1) 1200ms both;
}

.desktop-scene {
  position: fixed;
  inset: 0 auto 0 0;
  width: calc(100vw - var(--mobile-width));
  min-width: 54vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(183, 154, 103, 0.18), transparent 28%),
    linear-gradient(135deg, #151513, #2f302c 52%, #171411);
}

.scene-photo,
.cover-bg,
.hero-bg,
.closing-bg {
  position: absolute;
  inset: 0;
}

.scene-photo-main {
  inset: 5vh 6vw;
  border: 1px solid rgba(247, 242, 233, 0.24);
  box-shadow: var(--shadow);
  animation: photoFloat 9s ease-in-out infinite alternate;
}

.scene-shade,
.cover-overlay,
.hero-section::after,
.closing-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(10, 10, 8, 0.18), rgba(10, 10, 8, 0.76)),
    radial-gradient(circle at 50% 35%, transparent 0 26%, rgba(0, 0, 0, 0.48) 88%);
  pointer-events: none;
}

.cover-overlay {
  opacity: var(--cover-photo-dim, 0.72);
}

.scene-copy {
  position: absolute;
  inset: auto 8vw 10vh;
  z-index: 2;
  text-align: center;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.58);
}

.scene-copy p,
.eyebrow,
.role,
.menu-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scene-copy h1 {
  margin: 10px 0;
  font-size: clamp(4.3rem, 7.2vw, 8rem);
}

.scene-copy span {
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 242, 233, 0.04), rgba(183, 154, 103, 0.18)),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 50% 32%, rgba(255, 250, 241, 0.28), transparent 24%),
    linear-gradient(145deg, #2c2d29, #6f7c69 45%, #8c5f66);
  background-size: cover;
  background-position: center;
}

.photo-placeholder span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 9px;
  color: var(--paper);
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: 999px;
  background: rgba(21, 21, 19, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-placeholder.has-uploaded-photo span {
  display: none;
}

.closing-bg.photo-placeholder {
  background-color: #11110f;
  background-position: 56% 32px;
  background-repeat: no-repeat;
  background-size: auto 94%;
}

.cover-section {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  text-align: center;
  transition: opacity 900ms ease, transform 900ms ease, visibility 900ms;
}

body.invitation-open .cover-section {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-5%) scale(1.03);
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  width: min(390px, calc(100vw - 42px));
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 38px 26px;
  transform: translateY(48px);
}

.cover-content::before,
.cover-content::after {
  display: none;
}

.cover-content::after {
  display: none;
}

.cover-content h1 {
  margin: 0;
  font-size: clamp(3.45rem, 15.2vw, 5rem);
}

.signature-title {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 100%;
  color: var(--paper-soft);
  font-family: "Libre Bodoni", "Bodoni 72", "Bodoni 72 Smallcaps", "Bodoni MT", "Bodoni MT Poster Compressed", Didot, "Playfair Display", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.72;
  text-transform: uppercase;
}

.signature-title span,
.signature-title em {
  display: block;
}

.signature-title span {
  position: relative;
  z-index: 1;
}

.signature-title em {
  position: absolute;
  top: 50%;
  z-index: 0;
  margin: 0;
  color: rgba(247, 242, 233, 0.36);
  font-family: "Baskerville", "Cormorant Garamond", Georgia, serif;
  font-size: 0.92em;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  transform: translateY(-50%);
}

.cover-content .signature-title {
  font-family: "Great Vibes Local", "Great Vibes", cursive;
  width: min(270px, 82vw);
  margin-top: 18px;
  font-size: clamp(3.85rem, 17.5vw, 6.15rem);
  font-weight: 400;
  line-height: 0.78;
  text-transform: none;
}

.cover-content .signature-title span {
  width: 100%;
  text-transform: none;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.cover-content .signature-title span:first-child {
  padding-left: 0.48em;
}

.cover-content .signature-title span:last-child {
  margin-top: 0.08em;
  padding-right: 0.2em;
  text-align: left;
}

.cover-content .signature-title em {
  display: none;
}

.cover-content .eyebrow {
  color: var(--paper-soft);
  font-size: clamp(0.78rem, 3.05vw, 0.96rem);
}

.cover-date {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(0.78rem, 3.05vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.guest-card {
  width: min(280px, 100%);
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid rgba(247, 242, 233, 0.22);
  border-radius: 8px;
  background: rgba(21, 21, 19, 0.48);
  backdrop-filter: blur(14px);
}

.guest-card span,
.guest-card small {
  color: rgba(247, 242, 233, 0.72);
}

.guest-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--paper);
}

#open-invitation {
  min-height: 48px;
  padding-inline: 22px;
  color: var(--paper-soft);
  border-color: rgba(247, 242, 233, 0.22);
  background: rgba(21, 21, 19, 0.48);
  box-shadow: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(247, 242, 233, 0.3);
  background: rgba(21, 21, 19, 0.2);
}

.invitation {
  position: relative;
  z-index: 3;
  width: var(--mobile-width);
  min-height: 100vh;
  margin-left: auto;
  color: var(--paper);
  background:
    radial-gradient(circle at 10% 10%, rgba(183, 154, 103, 0.12), transparent 20%),
    radial-gradient(circle at 85% 72%, rgba(111, 124, 105, 0.18), transparent 22%),
    linear-gradient(180deg, #191916, #232421 45%, #161411);
  box-shadow: -30px 0 78px rgba(0, 0, 0, 0.36);
}

.snap-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(58px, 8svh, 86px) clamp(22px, 4vw, 40px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.snap-section::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 242, 233, 0.13);
  content: "";
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  gap: 22px;
  text-align: center;
}

.hero-section,
.closing-section {
  padding: 0;
}

.hero-content,
.closing-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 28px;
  text-align: center;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.62);
}

.hero-content h2,
.closing-content h2,
.scripture-section blockquote,
.profile h2,
.story-section h2,
.event-card h2,
.countdown-section h2,
.gallery-section h2,
.rsvp-section h2,
.gift-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.hero-content h2,
.closing-content h2 {
  font-size: clamp(4.2rem, 18vw, 6.7rem);
  line-height: 0.72;
}

.hero-content p,
.closing-content p {
  margin: 0;
  line-height: 1.65;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 6svh, 46px);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--paper-soft);
  opacity: 0.9;
  pointer-events: none;
  transform: translateX(-50%);
}

.scroll-cue span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transform: rotate(-12deg);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.62);
}

.scroll-cue i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--paper-soft);
  border: 1px solid rgba(247, 242, 233, 0.36);
  border-radius: 999px;
  background: rgba(21, 21, 19, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: scrollArrowPulse 1600ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.scroll-cue i::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.scripture-section {
  place-items: center;
  padding: clamp(34px, 6svh, 48px) clamp(18px, 4vw, 28px);
  color: var(--ink);
  background: #3c3c3c;
}

.scripture-section::before {
  content: none;
}

.scripture-section::after {
  content: none;
}

.quote-card {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  min-height: min(82svh, 620px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: #f4f4f4;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.quote-copy {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 7vw, 40px) clamp(28px, 6vw, 38px) clamp(22px, 5vw, 30px);
  text-align: center;
}

.scripture-section blockquote {
  max-width: 22em;
  margin: 0 auto;
  color: #4d4d4d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.94rem, 3.7vw, 1.08rem);
  font-weight: 400;
  line-height: 1.46;
  text-wrap: balance;
}

.scripture-section cite {
  margin: 0 auto;
  color: #555;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(0.95rem, 3.4vw, 1.08rem);
  font-style: italic;
}

.quote-photo {
  position: relative;
  min-height: 390px;
  background-color: #1c1c1c;
  background-image: url("assets/prewed/quote-photo.webp");
  background-position: 50% 42%;
  background-size: cover;
  filter: grayscale(1);
}

.quote-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  content: "";
  pointer-events: none;
}

.events-section,
.rsvp-section {
  background: #11110f;
}

.story-section,
.events-section,
.countdown-section,
.gallery-section,
.rsvp-section,
.gift-section {
  color: var(--paper-soft);
  background: #11110f;
}

.section-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  opacity: 0.44;
}

.section-photo-bg::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.42), rgba(8, 8, 7, 0.84)),
    radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
  content: "";
}

.story-section .section-photo-bg,
.events-section .section-photo-bg {
  opacity: 0.38;
}

.rsvp-section .section-photo-bg,
.gift-section .section-photo-bg {
  opacity: 0.34;
}

.events-section {
  padding-top: clamp(42px, 6svh, 64px);
  padding-bottom: clamp(34px, 5svh, 52px);
}

.events-section .section-inner {
  gap: clamp(12px, 2.4svh, 18px);
}

.profile-section {
  min-height: 100svh;
  align-items: end;
  padding: clamp(64px, 10svh, 96px) clamp(22px, 4vw, 42px);
  color: var(--paper-soft);
  background: var(--ink);
}

.profile-section::before {
  display: none;
}

.profile-bg,
.profile-shade {
  position: absolute;
  inset: 0;
}

.profile-bg {
  background-size: cover;
  background-position: center;
}

.bride-section .profile-bg {
  background-position: 50% 18%;
}

.groom-section .profile-bg {
  background-position: 50% 12%;
}

.profile-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 5, 4, 0.12), rgba(4, 5, 4, 0.54) 56%, rgba(4, 5, 4, 0.86)),
    linear-gradient(90deg, rgba(4, 5, 4, 0.76), rgba(4, 5, 4, 0.22) 62%, rgba(4, 5, 4, 0.08));
}

.profile-detail {
  position: relative;
  z-index: 2;
  width: min(340px, 92vw);
  display: grid;
  justify-items: start;
  gap: 9px;
  text-align: left;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.58);
}

.profile-detail .eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.profile-detail h2 {
  margin: 0;
  color: var(--paper-soft);
  font-family: "Great Vibes Local", "Great Vibes", cursive;
  font-size: clamp(4.2rem, 20vw, 6.8rem);
  font-weight: 400;
  line-height: 0.72;
  text-transform: none;
}

.profile-detail h3 {
  margin: 0;
  color: var(--paper-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.18rem, 4.8vw, 1.62rem);
  font-weight: 700;
  line-height: 1.08;
}

.profile-detail p {
  margin: 0;
  color: rgba(255, 250, 241, 0.92);
  font-size: clamp(0.9rem, 3.6vw, 1.02rem);
  line-height: 1.5;
}

.profile-detail p em {
  display: block;
  margin-bottom: 3px;
  color: var(--paper-soft);
  font-style: italic;
}

.profile-detail a {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 9px 18px;
  color: var(--paper-soft);
  border-radius: 999px;
  background: rgba(183, 154, 103, 0.74);
  font-weight: 900;
  text-decoration: none;
  text-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.story-section .eyebrow,
.gift-section .eyebrow {
  color: var(--gold);
}

.story-section h2,
.countdown-section h2,
.gallery-section h2,
.rsvp-section h2,
.gift-section h2 {
  font-size: clamp(3.2rem, 15vw, 5.8rem);
  line-height: 0.86;
}

.story-track {
  display: grid;
  gap: 14px;
}

.story-card,
.event-card,
.wishes-panel,
.gift-cards article {
  padding: 22px;
  border: 1px solid rgba(247, 242, 233, 0.16);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.08);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.story-card span,
.event-card span,
.gift-cards span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story-card h3,
.wishes-panel h3 {
  margin: 8px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}

.story-card p,
.scroll-note,
.gift-section p,
.event-card p,
.rsvp-section p,
.wishes-panel p {
  margin: 0;
  color: rgba(247, 242, 233, 0.74);
  line-height: 1.65;
}

.scroll-note {
  display: inline-flex;
  justify-content: center;
  color: var(--gold);
  font-weight: 800;
}

.event-card {
  padding: clamp(16px, 4vw, 20px);
  border-color: rgba(247, 242, 233, 0.14);
  background: rgba(247, 242, 233, 0.07);
  box-shadow: none;
}

.event-card > span {
  color: rgba(247, 242, 233, 0.68);
}

.event-card h2 {
  width: fit-content;
  margin: 7px auto 0;
  padding: 7px 17px;
  color: var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.9rem, 3.7vw, 1.08rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.event-card p {
  color: rgba(247, 242, 233, 0.72);
}

.events-intro,
.events-closing {
  display: grid;
  gap: 8px;
  padding-inline: clamp(6px, 3vw, 18px);
}

.events-intro p,
.events-closing p {
  margin: 0;
  color: rgba(247, 242, 233, 0.78);
  font-size: clamp(0.82rem, 3.3vw, 0.98rem);
  line-height: 1.55;
}

.events-intro .salam,
.events-closing .salam {
  color: var(--paper-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 4.2vw, 1.22rem);
  font-style: italic;
}

.events-closing {
  margin-top: 2px;
}

.event-time {
  color: var(--gold) !important;
  font-weight: 900;
}

.event-sessions {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.event-sessions p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: clamp(0.86rem, 3.4vw, 1rem);
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.event-sessions span {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid rgba(247, 242, 233, 0.72);
  border-radius: 2px;
}

.event-card .button {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 0.78rem;
}

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

.countdown-subtitle {
  margin: -8px 0 0;
  color: rgba(247, 242, 233, 0.72);
  font-size: clamp(0.9rem, 3.5vw, 1.05rem);
  font-weight: 800;
}

.countdown div {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 10px 4px;
  border: 1px solid rgba(247, 242, 233, 0.16);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.07);
}

.countdown strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 500;
  line-height: 0.9;
}

.countdown span {
  color: rgba(247, 242, 233, 0.62);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(76px, 10svh, 96px);
  gap: 8px;
}

.gallery-photo {
  position: relative;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 8px;
  background-position: 50% 16%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.gallery-photo:nth-child(1) {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
}

.gallery-photo:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1 / 3;
}

.gallery-photo:nth-child(3) {
  grid-column: 4 / 7;
  grid-row: 3 / 5;
}

.gallery-photo:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 4 / 6;
}

.gallery-photo:nth-child(5) {
  grid-column: 3 / 5;
  grid-row: 5 / 7;
}

.gallery-photo:nth-child(6) {
  grid-column: 5 / 7;
  grid-row: 5 / 7;
}

.gallery-photo[data-photo="gallery-1"] {
  background-position: 50% 8%;
}

.gallery-photo[data-photo="gallery-2"] {
  background-position: 50% 10%;
}

.gallery-photo[data-photo="gallery-3"] {
  background-position: 50% 20%;
}

.gallery-photo[data-photo="gallery-4"] {
  background-position: 50% 8%;
}

.gallery-photo[data-photo="gallery-5"] {
  background-position: 50% 22%;
}

.gallery-photo[data-photo="gallery-6"] {
  background-position: 50% 10%;
}

.quote {
  margin: 0;
  color: rgba(247, 242, 233, 0.72);
  line-height: 1.6;
}

.rsvp-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--gold);
  border: 0;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

legend {
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--paper);
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.08);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(183, 154, 103, 0.18);
}

.radio-line {
  grid-template-columns: auto 1fr;
  align-items: center;
  width: fit-content;
  color: var(--paper);
}

.radio-line input {
  width: 18px;
  aspect-ratio: 1;
  accent-color: var(--gold);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold) !important;
  font-weight: 900;
}

.wishes-panel {
  display: grid;
  gap: 12px;
  color: var(--paper-soft);
}

.wishes-panel h3 {
  margin: 0;
  color: var(--paper-soft);
  font-size: clamp(1.45rem, 6vw, 2.05rem);
  line-height: 1;
}

.wish-list {
  max-height: min(36svh, 340px);
  display: grid;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 8px 2px 0;
  scrollbar-color: rgba(247, 242, 233, 0.7) rgba(247, 242, 233, 0.12);
  scrollbar-width: thin;
}

.wish-list::-webkit-scrollbar {
  width: 5px;
}

.wish-list::-webkit-scrollbar-track {
  background: rgba(247, 242, 233, 0.12);
  border-radius: 999px;
}

.wish-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(247, 242, 233, 0.72);
}

.wish-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.88);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.wish-list strong {
  color: #5d604f;
  font-size: 0.96rem;
  line-height: 1.2;
}

.wish-avatar {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: #e9f7c8;
  font-size: 0.78rem;
  font-weight: 800;
}

.wish-list article:nth-child(2n) .wish-avatar {
  background: #b8f05b;
}

.wish-list article:nth-child(3n) .wish-avatar {
  background: #93efe8;
}

.wish-copy {
  display: grid;
  gap: 4px;
}

.wish-copy p {
  color: #25251f;
  font-size: 0.94rem;
  line-height: 1.42;
}

.wish-copy small {
  color: #8b91a0;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 700;
}

.gift-section .section-inner {
  gap: 18px;
}

.gift-section .button.primary {
  justify-self: center;
  min-width: 172px;
  color: var(--ink);
  border-color: rgba(247, 242, 233, 0.28);
  background: var(--paper-soft);
}

.gift-cards {
  width: min(100%, 380px);
  max-height: 0;
  display: grid;
  gap: 12px;
  justify-self: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 560ms ease, opacity 360ms ease, transform 420ms ease;
}

body.gift-details-open .gift-cards {
  max-height: 430px;
  opacity: 1;
  transform: translateY(0);
}

.gift-cards article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 21, 19, 0.74), rgba(35, 36, 33, 0.54));
  text-align: left;
  box-shadow: 0 18px 48px rgba(21, 21, 19, 0.12);
}

.gift-cards article > div {
  display: grid;
  gap: 3px;
}

.gift-cards span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-cards p {
  color: rgba(247, 242, 233, 0.68);
  font-size: 0.86rem;
}

.gift-cards strong {
  grid-column: 1 / -1;
  color: var(--paper-soft);
  font-family: "Montserrat", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 6.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.copy-button {
  min-height: 34px;
  padding: 7px 12px;
  color: var(--paper-soft);
  border: 0;
  border-radius: 999px;
  background: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.top-menu-trigger {
  position: fixed;
  left: auto;
  right: 10px;
  top: 10px;
  z-index: 72;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.94);
  transition: opacity 240ms ease, transform 240ms ease;
}

body.invitation-open .top-menu-trigger {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-menu,
.music-button,
.icon-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.nav-menu:hover,
.nav-menu:focus-visible {
  background: rgba(247, 242, 233, 0.12);
}

.nav-menu,
.music-button,
.icon-button {
  position: relative;
}

.nav-menu {
  width: 44px;
  border: 1px solid rgba(247, 242, 233, 0.2);
  background: rgba(15, 15, 13, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.nav-menu span,
.nav-menu::before,
.nav-menu::after {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-menu span {
  top: 16px;
}

.nav-menu::before {
  display: none;
}

.nav-menu::after {
  top: 23px;
}

body.menu-open .top-menu-trigger {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.music-button {
  position: fixed;
  top: 62px;
  right: 10px;
  z-index: 31;
  width: 44px;
  border: 1px solid rgba(247, 242, 233, 0.16);
  background: rgba(21, 21, 19, 0.58);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 360ms ease, transform 360ms ease, background 220ms ease;
}

body.invitation-open .music-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.music-button:hover,
.music-button:focus-visible {
  background: rgba(21, 21, 19, 0.76);
}

.music-button span,
.music-button::before,
.music-button::after {
  position: absolute;
  content: "";
}

.music-button span {
  left: 12px;
  top: 17px;
  width: 8px;
  height: 11px;
  border-radius: 2px 0 0 2px;
  background: var(--paper);
}

.music-button::before {
  left: 18px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 13px solid var(--paper);
  background: transparent;
}

.music-button::after {
  left: 31px;
  top: 13px;
  width: 10px;
  height: 18px;
  border: 2px solid var(--paper);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.music-button.is-paused::after {
  left: 31px;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 42%, var(--paper) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--paper) 42% 58%, transparent 58%);
  opacity: 0.76;
}

.editor-toggle {
  position: fixed;
  right: 18px;
  top: 118px;
  z-index: 34;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.photo-toggle {
  position: fixed;
  right: 18px;
  top: 166px;
  z-index: 34;
  min-height: 40px;
  padding: 0 14px;
  color: var(--paper);
  border: 1px solid rgba(247, 242, 233, 0.18);
  border-radius: 999px;
  background: rgba(21, 21, 19, 0.72);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.editor-panel,
.photo-panel {
  position: fixed;
  right: 18px;
  top: 118px;
  z-index: 60;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100svh - 138px);
  display: grid;
  gap: 13px;
  padding: 16px;
  visibility: hidden;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  border: 1px solid rgba(21, 21, 19, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

body.editor-open .editor-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.photo-panel {
  top: 166px;
}

body.photo-open .photo-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.editor-panel-header,
.photo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-panel-header strong,
.photo-panel-header strong {
  font-size: 1rem;
}

.editor-close,
.photo-close {
  flex: 0 0 auto;
  width: 42px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--paper);
  border: 0;
  border-radius: 8px;
  background: var(--charcoal);
  font-weight: 900;
  cursor: pointer;
  overflow: hidden;
  font-size: 0;
}

.editor-close::before,
.photo-close::before {
  content: "X";
  font-size: 0.9rem;
}

.editor-panel label,
.photo-panel label {
  min-width: 0;
  color: var(--ink);
  font-size: 0.75rem;
}

.editor-panel select,
.editor-panel input,
.editor-panel textarea,
.photo-panel input {
  color: var(--ink);
  border-color: rgba(21, 21, 19, 0.15);
  background: rgba(255, 255, 255, 0.82);
}

.editor-panel input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--wine);
}

.editor-panel output {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 900;
}

.photo-panel input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--wine);
}

.photo-panel output {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 900;
}

.editor-panel input[type="color"] {
  height: 42px;
  padding: 4px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.editor-actions .button {
  width: 100%;
}

.editor-actions .button.secondary {
  color: var(--ink);
  border-color: rgba(21, 21, 19, 0.18);
  background: rgba(21, 21, 19, 0.06);
}

.editor-status {
  min-height: 20px;
  margin: 0;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
}

.photo-help,
.photo-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.photo-status {
  min-height: 20px;
  color: var(--wine);
  font-weight: 900;
}

.cover-compose-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 19, 0.12);
  border-radius: 8px;
  background: rgba(21, 21, 19, 0.04);
}

.cover-compose-panel > strong {
  color: var(--ink);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.cover-compose-panel .button.secondary {
  width: 100%;
  min-height: 38px;
  color: var(--ink);
  border-color: rgba(21, 21, 19, 0.18);
  background: rgba(21, 21, 19, 0.06);
}

.photo-slot-list {
  display: grid;
  gap: 10px;
}

.photo-slot {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(21, 21, 19, 0.12);
  border-radius: 8px;
  background: rgba(21, 21, 19, 0.04);
}

.photo-slot-top {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
}

.photo-preview {
  width: 74px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(21, 21, 19, 0.14);
  background:
    linear-gradient(135deg, rgba(247, 242, 233, 0.35), rgba(111, 124, 105, 0.24)),
    #2f332d;
  background-size: cover;
  background-position: center;
}

.photo-slot strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.photo-slot small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.photo-slot input[type="file"] {
  padding: 9px;
  font-size: 0.78rem;
}

.photo-slot-actions,
.photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-slot-actions button {
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--paper);
  background: var(--charcoal);
  font-weight: 900;
  cursor: pointer;
}

.photo-actions .button.secondary {
  width: 100%;
  color: var(--ink);
  border-color: rgba(21, 21, 19, 0.18);
  background: rgba(21, 21, 19, 0.06);
}

body.editor-open [data-design-editable] {
  cursor: pointer;
}

body.editor-open [data-design-editable]:hover {
  outline: 1px dashed rgba(183, 154, 103, 0.75);
  outline-offset: 5px;
}

body.editor-open [data-design-editable].is-editor-selected {
  outline: 2px solid #69a7ff !important;
  outline-offset: 5px;
}

.side-menu {
  position: fixed;
  top: 16px;
  left: max(16px, calc(100vw - 416px));
  right: auto;
  z-index: 74;
  display: grid;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  align-content: start;
  gap: 26px;
  padding: 78px 34px 30px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 12%, rgba(183, 154, 103, 0.16), transparent 34%),
    rgba(16, 16, 14, 0.5);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 320ms;
}

body.menu-open .side-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.side-menu nav {
  display: grid;
  gap: 18px;
}

.side-menu a {
  padding: 0;
  color: var(--paper-soft);
  border-bottom: 0;
  font-family: "Libre Bodoni", "Bodoni MT", Didot, serif;
  font-size: clamp(1.85rem, 7vw, 3rem);
  line-height: 1.12;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}

.side-menu a:hover,
.side-menu a:focus-visible {
  color: var(--gold);
  transform: translateX(4px);
}

.side-menu small {
  color: rgba(247, 242, 233, 0.58);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
}

.menu-kicker {
  display: none;
}

.close-menu {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  border: 1px solid rgba(247, 242, 233, 0.14);
  border-radius: 8px;
  background: rgba(247, 242, 233, 0.08);
}

.icon-button span,
.icon-button::before {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.icon-button span {
  transform: rotate(45deg);
}

.icon-button::before {
  transform: rotate(-45deg);
}

.reveal {
  --reveal-x: 0;
  --reveal-y: 34px;
  --reveal-scale: 0.97;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  transition:
    opacity 680ms ease,
    filter 760ms ease,
    transform 880ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-order, 0) * 78ms);
  will-change: opacity, filter, transform;
}

.reveal.left {
  --reveal-x: -42px;
  --reveal-y: 0;
}

.reveal.right {
  --reveal-x: 42px;
  --reveal-y: 0;
}

.gallery-photo.reveal {
  --reveal-y: 22px;
  --reveal-scale: 0.94;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes photoFloat {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-16px) scale(1.02);
  }
}

@keyframes scrollArrowPulse {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.72);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  48% {
    opacity: 1;
    transform: translateY(8px) scale(1);
  }
  76%,
  100% {
    opacity: 0;
    transform: translateY(18px) scale(0.88);
  }
}

@keyframes preloaderKicker {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  22%,
  58% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes preloaderNames {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  16%,
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  82%,
  100% {
    opacity: 1;
    transform: translateY(42px) scale(0.42);
  }
}

@keyframes preloaderLogoPop {
  0% {
    opacity: 0;
    transform: translateY(-36px) scale(0.76);
  }
  38% {
    opacity: 1;
    transform: translateY(-66px) scale(1.03);
  }
  68% {
    opacity: 1;
    transform: translateY(-62px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(-62px) scale(0.96);
  }
}

@media (max-width: 980px) {
  html,
  body {
    scroll-snap-type: y mandatory;
  }

  .story-card,
  .event-card,
  .wishes-panel,
  .gift-cards article,
  #open-invitation {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .reveal {
    filter: blur(5px);
    transition:
      opacity 520ms ease,
      filter 560ms ease,
      transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--reveal-order, 0) * 54ms);
  }

  body.cover-locked {
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .desktop-scene {
    display: none;
  }

  .invitation {
    width: 100%;
    margin-left: 0;
    box-shadow: none;
  }

  .top-menu-trigger {
    top: 8px;
    left: auto;
    right: 8px;
  }

  .music-button {
    right: 8px;
  }
}

@media (max-width: 560px) {
  .top-menu-trigger {
    left: auto;
    right: 8px;
  }

  .editor-toggle {
    top: 116px;
    right: 12px;
  }

  .photo-toggle {
    top: 164px;
    right: 12px;
  }

  .editor-panel,
  .photo-panel {
    left: 12px;
    right: auto;
    width: min(320px, calc(100vw - 24px));
    max-width: none;
  }

  .editor-panel {
    top: 116px;
    max-height: calc(100svh - 126px);
  }

  .photo-panel {
    top: 164px;
    max-height: calc(100svh - 174px);
  }

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

  .snap-section {
    padding: 42px 18px 56px;
  }

  .story-section .section-inner,
  .events-section .section-inner,
  .gallery-section .section-inner,
  .rsvp-section .section-inner {
    gap: 12px;
  }

  .story-section h2,
  .gallery-section h2,
  .rsvp-section h2 {
    font-size: clamp(2.9rem, 13vw, 4rem);
  }

  .story-track {
    gap: 10px;
  }

  .story-card,
  .wishes-panel {
    padding: 14px;
  }

  .story-card h3 {
    margin: 4px 0;
    font-size: 1.35rem;
  }

  .story-card p,
  .quote,
  .rsvp-section p,
  .wishes-panel p {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .scroll-note {
    display: none;
  }

  .events-section {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .events-intro,
  .events-closing {
    gap: 5px;
  }

  .events-intro p,
  .events-closing p,
  .event-card p {
    font-size: 0.74rem;
    line-height: 1.36;
  }

  .events-intro .salam,
  .events-closing .salam {
    font-size: 0.95rem;
  }

  .event-card {
    padding: 11px;
  }

  .event-card h2 {
    margin-top: 5px;
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  .event-sessions {
    gap: 3px;
  }

  .event-sessions p {
    gap: 6px;
    font-size: 0.74rem;
  }

  .event-card .button {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 0.7rem;
  }

  .rsvp-form {
    gap: 9px;
  }

  label,
  fieldset {
    gap: 6px;
    font-size: 0.68rem;
  }

  input,
  textarea {
    padding: 10px 12px;
  }

  textarea {
    min-height: 78px;
  }

  .hero-content h2,
  .closing-content h2 {
    font-size: clamp(3.2rem, 17vw, 4.9rem);
  }

  .cover-content {
    padding: 32px 22px;
  }

  .cover-content h1 {
    font-size: clamp(3rem, 16.4vw, 4rem);
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-photo {
    min-height: 0;
  }

  .gallery-grid {
    grid-auto-rows: clamp(58px, 8.2svh, 72px);
    gap: 7px;
  }

  .wishes-panel {
    gap: 9px;
  }

  .wish-list {
    max-height: min(25svh, 218px);
    gap: 9px;
  }

  .wish-list article {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 11px;
  }

  .wish-avatar {
    width: 36px;
    font-size: 0.7rem;
  }

  .wish-list strong {
    font-size: 0.84rem;
  }

  .wish-copy p {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .wish-copy small {
    font-size: 0.7rem;
  }

  .side-menu {
    top: 10px;
    left: 10px;
    right: auto;
    width: min(calc(100vw - 20px), 370px);
    max-height: calc(100svh - 20px);
    padding: 74px 34px 28px;
  }
}

@media (max-width: 380px) {
  .side-menu {
    padding-left: 28px;
    padding-right: 28px;
  }

  .snap-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
