:root {
  --navy: #3c5d97;
  --navy-deep: #284878;
  --navy-dark: #18345d;
  --envelope-base: #30466c;
  --envelope-base-soft: #415b89;
  --envelope-base-deep: #233552;
  --envelope-seam-dark: rgba(11, 17, 28, 0.34);
  --envelope-seam-light: rgba(255, 255, 255, 0.09);
  --paper: #fbf2e8;
  --paper-soft: #efdfcf;
  --paper-deep: #dec7af;
  --card: rgba(248, 239, 229, 0.82);
  --card-strong: rgba(250, 244, 237, 0.94);
  --mist: rgba(255, 245, 233, 0.76);
  --ink: #4d392d;
  --ink-soft: rgba(77, 57, 45, 0.9);
  --taupe: #866654;
  --taupe-deep: #664b3d;
  --gold: #c7a06a;
  --line: rgba(166, 132, 97, 0.24);
  --paper-shadow: 0 52px 120px rgba(72, 47, 29, 0.22);
  --card-shadow: 0 26px 64px rgba(79, 53, 33, 0.16);
  --card-shadow-soft: 0 18px 42px rgba(79, 53, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Baskerville", "Times New Roman", serif;
  overflow-x: hidden;
  background:
    linear-gradient(
      90deg,
      #cdb69b 0%,
      #ddccb8 18%,
      #eee2d4 34%,
      #f7eee4 50%,
      #eee2d4 66%,
      #ddccb8 82%,
      #cdb69b 100%
    );
}

body::before {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 52%, rgba(165, 126, 79, 0.18), transparent 28%),
    radial-gradient(circle at 86% 48%, rgba(165, 126, 79, 0.18), transparent 28%),
    radial-gradient(circle at 50% 18%, rgba(255, 231, 191, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 240, 0.08), transparent 24%, transparent 76%, rgba(115, 82, 47, 0.09)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(197, 164, 123, 0.012) 0,
      rgba(197, 164, 123, 0.012) 1px,
      transparent 1px,
      transparent 34px
    );
  content: "";
  opacity: 0.76;
  animation: background-drift-a 26s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

body::after {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 232, 0.24), transparent 40%),
    radial-gradient(circle at 18% 18%, rgba(255, 229, 188, 0.1), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(180, 142, 96, 0.12), transparent 32%);
  content: "";
  filter: blur(18px);
  opacity: 0.82;
  animation: background-drift-b 30s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes background-drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.2%, 0.8%, 0) scale(1.015);
  }

  100% {
    transform: translate3d(-0.8%, 1%, 0) scale(1.02);
  }
}

@keyframes background-drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-1%, -0.6%, 0) scale(1.018);
  }

  100% {
    transform: translate3d(0.9%, -1.1%, 0) scale(1.022);
  }
}

body.is-sealed,
body.is-opening {
  overflow: hidden;
}

.page-shell {
  position: relative;
  width: 100%;
  z-index: 1;
  padding: 72px 32px 92px;
  opacity: 0;
  transform: translateY(52px);
  pointer-events: none;
  transition:
    opacity 700ms ease,
    transform 850ms cubic-bezier(0.18, 1, 0.22, 1);
}

body.is-open .page-shell {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.envelope-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 50% 84%, rgba(20, 17, 15, 0.18), transparent 34%),
    linear-gradient(180deg, #847f7b 0%, #6c6763 36%, #56514e 100%);
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

body.is-open .envelope-stage {
  opacity: 0;
  visibility: hidden;
}

.envelope-scene {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.envelope-button {
  position: relative;
  width: min(560px, 84vw);
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  perspective: 2200px;
}

.envelope-button:focus {
  outline: none;
}

.envelope-button:focus-visible {
  outline: 1.5px solid rgba(151, 127, 107, 0.5);
  outline-offset: 12px;
}

.envelope-shadow {
  position: absolute;
  left: 19%;
  right: 19%;
  bottom: -24px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(43, 33, 27, 0.42), transparent 72%);
  filter: blur(34px);
  opacity: 0.52;
  transition:
    transform 1100ms cubic-bezier(0.2, 1, 0.22, 1),
    opacity 1100ms ease;
}

.envelope-aura {
  position: absolute;
  inset: 18% 16% auto;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 245, 235, 0.18) 0%,
    rgba(255, 245, 235, 0.08) 38%,
    transparent 74%
  );
  filter: blur(42px);
  pointer-events: none;
}

.envelope-set {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  transform-style: preserve-3d;
  transition: transform 1500ms cubic-bezier(0.18, 1, 0.22, 1);
}

.envelope-body,
.envelope-back,
.envelope-interior,
.envelope-pocket,
.envelope-flap,
.envelope-flap-face,
.envelope-flap-lining {
  position: absolute;
}

.envelope-body {
  left: 14%;
  right: 14%;
  bottom: 12%;
  height: 68%;
  transform-style: preserve-3d;
  transition: transform 1100ms cubic-bezier(0.2, 1, 0.22, 1);
  z-index: 4;
}

.envelope-back {
  inset: 0;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(
      180deg,
      var(--envelope-base-soft) 0%,
      var(--envelope-base) 28%,
      var(--envelope-base-deep) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 44px rgba(10, 17, 30, 0.18);
  overflow: hidden;
  z-index: 1;
}

.envelope-back::before,
.envelope-flap-face::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.03), transparent 30%),
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.018), transparent 26%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.008) 0,
      rgba(255, 255, 255, 0.008) 2px,
      transparent 2px,
      transparent 20px
    );
  content: "";
  opacity: 0.28;
}

.envelope-back::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018),
      transparent 16%,
      transparent 84%,
      rgba(12, 19, 31, 0.08)
    ),
    linear-gradient(180deg, rgba(14, 24, 41, 0.035), transparent 24%);
  content: "";
}

.envelope-interior {
  inset: 2% 2.5% auto;
  height: 58%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #4c6793 0%, #334a72 100%);
  clip-path: polygon(0 100%, 50% 16%, 100% 100%, 100% 0, 0 0);
  opacity: 0.92;
  z-index: 1;
}

.envelope-pocket {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      136deg,
      transparent 49.5%,
      var(--envelope-seam-light) 49.8%,
      var(--envelope-seam-dark) 50.05%,
      transparent 50.35%
    )
      left bottom / 54% 72% no-repeat,
    linear-gradient(
      -136deg,
      transparent 49.5%,
      var(--envelope-seam-light) 49.8%,
      var(--envelope-seam-dark) 50.05%,
      transparent 50.35%
    )
      right bottom / 54% 72% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%);
  clip-path: polygon(0 38%, 50% 70%, 100% 38%, 100% 100%, 0 100%);
  z-index: 4;
}

.envelope-pocket::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.08), transparent 52%);
  content: "";
  opacity: 0.72;
}

.envelope-pocket::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 25, 0.1));
  content: "";
}

.envelope-flap {
  inset: 0 0 auto;
  height: 56%;
  transform-origin: 50% 4%;
  transform-style: preserve-3d;
  transition:
    transform 1450ms cubic-bezier(0.2, 0.85, 0.24, 1),
    filter 900ms ease;
  z-index: 6;
}

.envelope-flap-face,
.envelope-flap-lining {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%),
    linear-gradient(
      180deg,
      var(--envelope-base-soft) 0%,
      var(--envelope-base) 30%,
      var(--envelope-base-deep) 100%
    );
  border-radius: 4px 4px 44% 44% / 4px 4px 62% 62%;
  backface-visibility: hidden;
  overflow: hidden;
}

.envelope-flap-face {
  box-shadow:
    0 12px 14px rgba(10, 17, 30, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.envelope-flap-face::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      44deg,
      transparent 49.55%,
      var(--envelope-seam-light) 49.82%,
      var(--envelope-seam-dark) 50.06%,
      transparent 50.34%
    )
      left top / 54% 84% no-repeat,
    linear-gradient(
      -44deg,
      transparent 49.55%,
      var(--envelope-seam-light) 49.82%,
      var(--envelope-seam-dark) 50.06%,
      transparent 50.34%
    )
      right top / 54% 84% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 36%);
  content: "";
  opacity: 0.94;
}

.envelope-flap-face::after {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 10%;
  height: 38%;
  border-bottom: 1px solid rgba(12, 18, 30, 0.34);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  content: "";
  opacity: 0.94;
}

.envelope-flap-lining {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #556f9b 0%, #3e567f 100%);
  transform: rotateX(180deg) translateY(-1px) translateZ(1px);
}

.envelope-flap-lining::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%);
  content: "";
}

.wax-seal {
  position: absolute;
  left: 50%;
  bottom: 9%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78) 42%, rgba(231, 231, 231, 0.92) 100%);
  box-shadow:
    0 16px 24px rgba(9, 14, 26, 0.22),
    inset 0 0 0 1px rgba(33, 48, 76, 0.08),
    inset 0 10px 16px rgba(255, 255, 255, 0.42);
  content: "";
  transform: translateX(-50%);
  transition:
    opacity 320ms ease,
    transform 900ms cubic-bezier(0.2, 0.85, 0.24, 1);
  z-index: 8;
}

.wax-seal::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(43, 60, 92, 0.14);
  content: "";
}

.wax-seal-mark {
  position: relative;
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.94;
  filter: grayscale(1) brightness(0.22) contrast(1.2);
}

.envelope-hint {
  margin: 0;
  color: rgba(255, 248, 241, 0.86);
  font-family: "Forum", "Didot", serif;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 240ms ease;
}

body.is-opening .envelope-set {
  transform: translateY(-22px) scale(1.02);
}

body.is-opening .envelope-body {
  transform: translateY(12px) rotateX(-10deg);
}

body.is-opening .envelope-flap {
  transform: rotateX(-212deg);
  filter: drop-shadow(0 18px 20px rgba(8, 12, 20, 0.16));
}

body.is-opening .wax-seal {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px) scale(0.82);
}

body.is-opening .envelope-hint {
  opacity: 0;
}

body.is-opening .envelope-shadow {
  transform: scale(1.12);
  opacity: 0.66;
}

.stationery {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 104px 92px 86px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.44), rgba(247, 238, 227, 0.88) 58%, rgba(240, 228, 212, 0.98) 100%);
  background-color: var(--paper);
  border: 0;
  border-radius: 32px;
  box-shadow:
    0 42px 96px rgba(67, 44, 27, 0.24),
    0 14px 34px rgba(67, 44, 27, 0.11),
    inset 0 1px 0 rgba(255, 249, 240, 0.54);
  overflow: hidden;
}

.stationery:focus,
.stationery:focus-visible {
  outline: none;
}

.stationery::before {
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(178, 145, 109, 0.34);
  border-radius: 28px;
  content: "";
  pointer-events: none;
}

.stationery::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(249, 241, 231, 0.9) 0%,
      rgba(249, 241, 231, 0.78) 14%,
      rgba(249, 241, 231, 0.54) 28%,
      rgba(249, 241, 231, 0.34) 40%,
      rgba(249, 241, 231, 0.34) 60%,
      rgba(249, 241, 231, 0.54) 72%,
      rgba(249, 241, 231, 0.78) 86%,
      rgba(249, 241, 231, 0.9) 100%
    ),
    linear-gradient(
      180deg,
      rgba(249, 241, 231, 0.66) 0%,
      rgba(249, 241, 231, 0.74) 18%,
      rgba(249, 241, 231, 0.84) 42%,
      rgba(249, 241, 231, 0.95) 62%,
      rgba(249, 241, 231, 1) 100%
    ),
    url("assets/reception-candle-bg.jpg") 58% 14% / 126% auto no-repeat;
  content: "";
  opacity: 0.52;
  filter: saturate(0.9) contrast(0.98) brightness(0.98);
  background-blend-mode: normal, normal, normal;
  pointer-events: none;
}

.sheet-top,
.sheet-divider,
.sheet-footer {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hands-illustration {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1.5 / 1;
  margin: 0 auto 28px;
  opacity: 0.64;
}

.hands-illustration::before {
  position: absolute;
  inset: 14% 12% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 194, 177, 0.24), transparent 74%);
  content: "";
  filter: blur(20px);
}

.hands-illustration img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.68;
  filter: drop-shadow(0 12px 20px rgba(88, 58, 35, 0.12));
}

.salutation,
.section-script,
.signature {
  margin: 0;
  font-family: "Luxurious Script", "Snell Roundhand", "Apple Chancery", cursive;
  font-weight: 400;
  color: #5d4334;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 0 rgba(255, 247, 235, 0.4),
    0 10px 24px rgba(58, 36, 18, 0.08);
}

.salutation {
  width: min(12.4ch, 100%);
  margin-inline: auto;
  font-size: clamp(3.25rem, 6vw, 5.45rem);
  line-height: 1.06;
  letter-spacing: 0.012em;
  text-wrap: balance;
}

.lead {
  margin: 20px 0 0;
  color: #b88f62;
  font-family: "Bodoni Moda", "Forum", "Didot", serif;
  font-size: 1.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-text {
  width: min(580px, 100%);
  margin: 24px auto 0;
}

.intro-text p,
.body-copy,
.address,
.footer-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.34rem, 2vw, 1.64rem);
  line-height: 1.62;
}

.intro-text p + p {
  margin-top: 14px;
}

.sheet-divider {
  margin-top: 62px;
  padding-top: 58px;
}

.sheet-divider::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(170px, 38%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
  transform: translateX(-50%);
}

.section-script {
  font-size: clamp(3rem, 6vw, 4.8rem);
  display: inline-block;
  line-height: 0.96;
  text-wrap: balance;
}

.place {
  margin: 16px 0 0;
  color: var(--taupe-deep);
  font-family: "Bodoni Moda", "Forum", "Didot", serif;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.address,
.detail-block .body-copy,
.dresscode-block .body-copy,
.contact-block .body-copy {
  width: min(600px, 100%);
  margin: 16px auto 0;
}

.info-block,
.detail-block,
.dresscode-block,
.contact-block {
  padding: 40px 34px 42px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(252, 246, 239, 0.76), rgba(244, 231, 215, 0.86)),
    radial-gradient(circle at top, rgba(255, 231, 193, 0.22), transparent 58%);
  box-shadow:
    0 24px 48px rgba(69, 44, 27, 0.16),
    inset 0 1px 0 rgba(255, 251, 244, 0.44);
  -webkit-backdrop-filter: blur(8px) saturate(116%);
  backdrop-filter: blur(8px) saturate(116%);
}

.info-block {
  background:
    linear-gradient(180deg, rgba(252, 246, 239, 0.82), rgba(245, 233, 218, 0.92)),
    radial-gradient(circle at top, rgba(255, 236, 204, 0.28), transparent 62%);
}

.dresscode-block .body-copy + .body-copy {
  margin-top: 10px;
}

.dresscode-note {
  width: min(520px, 100%);
  margin-top: 14px;
  line-height: 1.58;
  text-align: center;
  text-wrap: balance;
}

.countdown-shell {
  width: min(610px, 100%);
  margin: 32px auto 0;
  padding: 28px 24px 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(252, 246, 239, 0.82), rgba(243, 230, 214, 0.88)),
    radial-gradient(circle at top, rgba(255, 229, 187, 0.22), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 242, 0.42),
    0 20px 38px rgba(69, 44, 27, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(116%);
  backdrop-filter: blur(10px) saturate(116%);
}

.countdown-kicker {
  margin: 0 0 18px;
  color: #b58a5c;
  font-family: "Bodoni Moda", "Forum", "Didot", serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

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

.countdown-item {
  padding: 18px 12px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 249, 243, 0.66), rgba(241, 229, 213, 0.78));
  box-shadow:
    0 12px 24px rgba(82, 54, 33, 0.1),
    inset 0 1px 0 rgba(255, 252, 246, 0.42);
}

.countdown-value {
  display: block;
  color: #5b4d45;
  font-family: "Bodoni Moda", "Forum", "Didot", serif;
  font-size: clamp(1.72rem, 3.2vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown-label {
  display: block;
  margin-top: 8px;
  color: rgba(96, 82, 72, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.photo-composition {
  position: relative;
  min-height: 760px;
}

.photo-composition::before {
  position: absolute;
  inset: 34px 24px 28px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 239, 214, 0.72), transparent 38%),
    radial-gradient(circle at 74% 82%, rgba(198, 156, 101, 0.16), transparent 44%);
  opacity: 0.72;
  content: "";
  pointer-events: none;
}

.photo-composition::after {
  position: absolute;
  inset: 94px 120px auto;
  height: 92px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 198, 180, 0.18), transparent 76%);
  content: "";
  filter: blur(24px);
}

.photo-card {
  position: absolute;
  margin: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  box-shadow:
    0 24px 52px rgba(107, 87, 69, 0.16),
    0 8px 18px rgba(107, 87, 69, 0.06);
}

.photo-card-large {
  top: 54px;
  left: 44px;
  width: 58%;
  height: 77%;
  transform: rotate(-1deg);
}

.photo-card-large img {
  object-position: center 24%;
}

.photo-card-small {
  right: 46px;
  bottom: 54px;
  width: 36%;
  height: 42%;
  transform: rotate(1.2deg);
}

.photo-card-small img {
  object-position: center 36%;
}

.timeline {
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  margin: 30px auto 0;
}

.timeline-row {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(251, 245, 238, 0.74), rgba(243, 230, 214, 0.82));
  box-shadow: 0 14px 28px rgba(82, 54, 33, 0.12);
  -webkit-backdrop-filter: blur(8px) saturate(114%);
  backdrop-filter: blur(8px) saturate(114%);
}

.timeline-time {
  display: block;
  color: #4a4039;
  font-family: "Bodoni Moda", "Forum", "Didot", serif;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.82), rgba(244, 231, 214, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.56);
}

.timeline-event {
  color: var(--taupe-deep);
  font-family: "Bodoni Moda", "Forum", "Didot", serif;
  font-size: clamp(1.75rem, 2.8vw, 2.15rem);
  letter-spacing: 0.14em;
  text-align: left;
}

.dresscode-reference {
  width: min(640px, 100%);
  margin: 30px auto 0;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(251, 246, 240, 0.86), rgba(243, 231, 216, 0.9));
  box-shadow: 0 22px 46px rgba(77, 50, 30, 0.14);
  -webkit-backdrop-filter: blur(8px) saturate(114%);
  backdrop-filter: blur(8px) saturate(114%);
}

.dresscode-reference img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.contact-title {
  display: grid;
  justify-items: center;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.contact-title span {
  display: block;
  line-height: 0.88;
}

.contact-title span:first-child {
  transform: translateX(-0.22em);
}

.contact-title span:last-child {
  margin-top: -0.04em;
  transform: translateX(-0.12em);
}

.contact-block .body-copy {
  width: min(500px, 100%);
}

.contact-links {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 360px);
  margin: 0 auto;
  color: var(--taupe-deep);
  font-size: clamp(1.24rem, 1.9vw, 1.5rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 24px 15px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(252, 247, 241, 0.78), rgba(242, 229, 213, 0.88));
  box-shadow:
    0 14px 28px rgba(82, 54, 33, 0.12),
    inset 0 1px 0 rgba(255, 251, 244, 0.42);
  -webkit-backdrop-filter: blur(8px) saturate(114%);
  backdrop-filter: blur(8px) saturate(114%);
  transition:
    transform 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #7a5a43;
  box-shadow:
    0 18px 34px rgba(82, 54, 33, 0.16),
    inset 0 1px 0 rgba(255, 252, 246, 0.48);
  transform: translateY(-1px);
}

.sheet-footer {
  margin-top: 88px;
  padding-top: 62px;
  text-align: center;
}

.sheet-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(180px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
  transform: translateX(-50%);
}

.signature {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0.006em;
  white-space: nowrap;
}

.footer-note {
  margin-top: 12px;
  color: rgba(95, 81, 72, 0.78);
}

@media (max-width: 980px) {
  .envelope-button {
    width: min(540px, 88vw);
  }

  .envelope-body {
    left: 13%;
    right: 13%;
    bottom: 12%;
    height: 68%;
  }

  .stationery {
    padding: 84px 32px 64px;
    border-radius: 32px;
  }

  .stationery::before {
    inset: 16px;
    border-radius: 26px;
  }

  .photo-composition {
    min-height: clamp(470px, 88vw, 680px);
    display: block;
    padding-top: 0;
  }

  .photo-composition::before {
    inset: 20px 12px 18px;
    border-radius: 34px;
  }

  .photo-composition::after {
    inset: 56px 18% auto;
    height: 72px;
  }

  .photo-card {
    position: absolute;
    margin: 0;
  }

  .photo-card-large {
    top: 34px;
    left: 18px;
    width: 63%;
    height: 76%;
    aspect-ratio: auto;
    transform: rotate(-0.85deg);
  }

  .photo-card-small {
    right: 18px;
    bottom: 24px;
    width: 38%;
    height: 40%;
    aspect-ratio: auto;
    margin: 0;
    transform: rotate(1deg);
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 24px 18px 52px;
  }

  .envelope-stage {
    padding: 16px;
  }

  .envelope-button {
    width: min(470px, 92vw);
  }

  .envelope-set {
    aspect-ratio: 1.38 / 1;
  }

  .envelope-body {
    left: 12%;
    right: 12%;
    bottom: 13%;
    height: 68%;
  }

  .envelope-hint {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .stationery {
    padding: 66px 20px 48px;
    border-radius: 30px;
  }

  .stationery::before {
    inset: 14px;
    border-radius: 24px;
  }

  .hands-illustration {
    width: min(320px, 100%);
    margin-bottom: 18px;
  }

  .sheet-divider {
    margin-top: 46px;
    padding-top: 44px;
  }

  .info-block,
  .detail-block,
  .dresscode-block,
  .contact-block {
    padding: 32px 22px 34px;
    border-radius: 28px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-time,
  .timeline-event {
    text-align: center;
  }

  .countdown-shell {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

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

  .countdown-item {
    padding: 14px 10px 12px;
    border-radius: 18px;
  }

  .countdown-label {
    font-size: 0.76rem;
  }

  .photo-composition::before {
    inset: 14px 8px 16px;
    border-radius: 28px;
  }

  .photo-composition::after {
    inset: 42px 15% auto;
    height: 62px;
  }

  .photo-composition {
    min-height: clamp(470px, 100vw, 580px);
  }

  .photo-card-large {
    top: 24px;
    left: 12px;
    width: 66%;
    height: 76%;
    transform: rotate(-0.75deg);
  }

  .photo-card-small {
    right: 10px;
    bottom: 18px;
    width: 41%;
    height: 40%;
    transform: rotate(0.85deg);
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 18px 14px 40px;
  }

  .envelope-scene {
    gap: 18px;
  }

  .envelope-button {
    width: min(420px, 94vw);
  }

  .envelope-set {
    aspect-ratio: 1.34 / 1;
  }

  .envelope-body {
    left: 10%;
    right: 10%;
    bottom: 13%;
    height: 68%;
  }

  .envelope-hint {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .stationery {
    padding: 48px 16px 40px;
    border-radius: 28px;
  }

  .stationery::before {
    inset: 10px;
    border-radius: 20px;
  }

  .hands-illustration {
    width: min(280px, 100%);
    margin: 0 auto 12px;
  }

  .salutation {
    font-size: clamp(2.9rem, 13vw, 4rem);
    line-height: 0.94;
  }

  .lead {
    margin-top: 6px;
    font-size: 1.18rem;
    letter-spacing: 0.09em;
  }

  .intro-text {
    margin-top: 20px;
  }

  .intro-text p,
  .body-copy,
  .address,
  .footer-note {
    font-size: 1.08rem;
    line-height: 1.42;
  }

  .intro-text p + p {
    margin-top: 10px;
  }

  .sheet-divider {
    margin-top: 36px;
    padding-top: 34px;
  }

  .section-script {
    font-size: clamp(2.3rem, 11vw, 3.1rem);
  }

  .info-block,
  .detail-block,
  .dresscode-block,
  .contact-block {
    padding: 28px 16px 30px;
    border-radius: 24px;
  }

  .place {
    margin-top: 12px;
    font-size: 1.42rem;
    letter-spacing: 0.04em;
  }

  .address,
  .detail-block .body-copy,
  .dresscode-block .body-copy,
  .contact-block .body-copy {
    margin-top: 12px;
  }

  .countdown-shell {
    margin-top: 24px;
    padding: 20px 14px 16px;
    border-radius: 22px;
  }

  .countdown-kicker {
    margin-bottom: 13px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .countdown-grid {
    gap: 10px;
  }

  .countdown-value {
    font-size: 1.42rem;
  }

  .countdown-label {
    margin-top: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.11em;
  }

  .countdown-item {
    border-radius: 16px;
  }

  .photo-composition {
    min-height: clamp(420px, 114vw, 500px);
  }

  .photo-card {
    border-radius: 24px;
  }

  .photo-card img {
    border-radius: 22px;
  }

  .photo-card-large {
    top: 22px;
    left: 10px;
    width: 68%;
    height: 76%;
  }

  .photo-card-small {
    right: 8px;
    bottom: 14px;
    width: 42%;
    height: 38%;
    margin: 0;
  }

  .timeline {
    gap: 10px;
    margin-top: 20px;
  }

  .timeline-row {
    padding-bottom: 8px;
  }

  .timeline-time {
    font-size: 1.45rem;
  }

  .timeline-event {
    font-size: 1.28rem;
    letter-spacing: 0.1em;
  }

  .dresscode-reference {
    margin-top: 24px;
    padding: 12px;
    border-radius: 24px;
  }

  .contact-links {
    gap: 10px;
    margin-top: 20px;
  }

  .text-link {
    width: 100%;
    font-size: 1.04rem;
    letter-spacing: 0.01em;
    text-align: center;
  }

  .sheet-footer {
    margin-top: 54px;
    padding-top: 40px;
  }

  .signature {
    font-size: clamp(2.15rem, 9.8vw, 3.25rem);
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding: 10px 6px 24px;
  }

  .envelope-stage {
    padding: 12px;
  }

  .envelope-button {
    width: min(390px, 95vw);
  }

  .envelope-set {
    aspect-ratio: 1.32 / 1;
  }

  .envelope-body {
    left: 10%;
    right: 10%;
    bottom: 13%;
    height: 68%;
  }

  .envelope-hint {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .stationery {
    padding: 36px 12px 28px;
    border-radius: 24px;
  }

  .stationery::before {
    inset: 8px;
    border-radius: 17px;
  }

  .hands-illustration {
    width: min(240px, 100%);
  }

  .salutation {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .lead {
    font-size: 1.02rem;
    letter-spacing: 0.07em;
  }

  .intro-text p,
  .body-copy,
  .address,
  .footer-note {
    font-size: 0.98rem;
    line-height: 1.38;
  }

  .section-script {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .place {
    font-size: 1.2rem;
  }

  .signature {
    font-size: clamp(1.9rem, 9.1vw, 2.35rem);
  }

  .photo-composition {
    min-height: clamp(390px, 118vw, 450px);
  }

  .photo-card-large {
    top: 18px;
    left: 8px;
    width: 69%;
    height: 75%;
  }

  .photo-card-small {
    right: 6px;
    bottom: 12px;
    width: 43%;
    height: 37%;
    margin: 0;
  }

  .timeline-time {
    font-size: 1.26rem;
  }

  .timeline-event {
    font-size: 1.12rem;
    letter-spacing: 0.08em;
  }

  .dresscode-reference {
    padding: 8px;
    border-radius: 16px;
  }

  .text-link {
    font-size: 0.96rem;
  }
}

@media (max-height: 520px) {
  .envelope-stage {
    padding: 12px 16px 18px;
  }

  .envelope-scene {
    gap: 12px;
  }

  .envelope-button {
    width: min(390px, 72vw);
  }

  .envelope-set {
    aspect-ratio: 1.34 / 1;
  }

  .envelope-hint {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .envelope-stage {
    place-items: start center;
    padding-top: 18px;
  }

  .envelope-button {
    width: min(380px, 64vw);
  }

  .envelope-set {
    aspect-ratio: 1.34 / 1;
  }
}

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