:root {
  --ivory: #f3efe5;
  --paper: #faf7ef;
  --ink: #17372d;
  --moss: #335f4b;
  --sage: #9eae96;
  --blush: #d9b8ab;
  --wine: #713f42;
  --line: rgba(23, 55, 45, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Manrope", sans-serif;
  font-weight: 400;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-pad {
  padding: 140px max(6vw, 28px);
}

#invitation,
#programme,
#lieu,
#hebergements,
#reponse {
  scroll-margin-top: 96px;
}

.site-nav {
  position: fixed;
  z-index: 18;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), 860px);
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(250, 247, 239, 0.16) 48%, rgba(255, 255, 255, 0.28)),
    rgba(245, 245, 238, 0.2);
  box-shadow:
    0 16px 38px rgba(20, 50, 38, 0.16),
    0 3px 10px rgba(20, 50, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px) saturate(175%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(175%) brightness(1.06);
  isolation: isolate;
  transform: translate(-50%, -16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-nav::before,
.site-nav::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.site-nav::before {
  z-index: -1;
  inset: 1px;
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 255, 255, 0.64), transparent 38%),
    linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 49%, transparent 67%);
}

.site-nav::after {
  top: 4px;
  right: 11%;
  left: 11%;
  height: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(0.4px);
}

.site-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-nav a {
  text-decoration: none;
}

.site-nav-mark {
  flex: 0 0 auto;
  font-family: "Italiana", serif;
  font-size: 20px;
}

.site-nav-mark span {
  color: var(--blush);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-links a {
  position: relative;
  padding: 8px 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav-links a:not(.site-nav-response)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-nav-links a:hover::after,
.site-nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav-response {
  padding: 10px 13px !important;
  color: var(--paper);
  background: #2f654d;
}

.envelope-scene {
  position: relative;
  min-height: 100svh;
  background: var(--ivory);
}

.envelope-stage {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(31, 66, 54, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 66, 54, 0.03) 1px, transparent 1px),
    var(--ivory);
  background-size: 42px 42px;
}

.envelope-stage::before,
.envelope-stage::after {
  position: absolute;
  width: 32vw;
  height: 64vw;
  max-height: 680px;
  content: "";
  border: 1px solid rgba(51, 95, 75, 0.15);
  border-radius: 50%;
  transform: rotate(36deg);
}

.envelope-stage::before {
  top: -38vw;
  left: -16vw;
}

.envelope-stage::after {
  right: -17vw;
  bottom: -42vw;
}

.intro-label {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.35s ease;
  white-space: nowrap;
}

.envelope-stage:has(.envelope-wrap.is-open) .intro-label {
  opacity: 0;
}

.envelope-wrap {
  position: relative;
  isolation: isolate;
  width: min(72vw, 720px);
  aspect-ratio: 1.55;
  margin-top: 20px;
  perspective: 1400px;
  transform: rotateX(1.2deg) rotateZ(-0.12deg);
}

.envelope {
  position: absolute;
  inset: 0;
}

.envelope-wrap:not(.is-open) .envelope {
  cursor: pointer;
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  inset: 0;
  opacity: var(--envelope-opacity, 1);
  will-change: opacity;
  transition: opacity 0.85s ease;
}

.envelope-back {
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(89, 70, 43, 0.2);
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 38%),
    repeating-linear-gradient(87deg, rgba(91, 70, 42, 0.045) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(3deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 8px),
    #ded1ba;
  box-shadow:
    0 38px 48px rgba(30, 42, 35, 0.24),
    0 13px 18px rgba(72, 60, 42, 0.18),
    0 2px 3px rgba(72, 60, 42, 0.14),
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 -10px 18px rgba(89, 67, 35, 0.08);
}

.envelope-back::before {
  position: absolute;
  z-index: 2;
  inset: 8px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(112, 89, 54, 0.08);
  box-shadow: inset 0 0 18px rgba(87, 66, 36, 0.06);
}

.envelope-front {
  z-index: 4;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(0deg, rgba(102, 78, 43, 0.14), transparent 51%),
    repeating-linear-gradient(92deg, rgba(91, 67, 36, 0.04) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(2deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 9px),
    #e9deca;
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -3px 3px rgba(67, 51, 28, 0.19));
}

.envelope-front::before,
.envelope-front::after {
  position: absolute;
  inset: 0;
  content: "";
}

.envelope-front::before {
  background:
    linear-gradient(141deg, transparent 47%, rgba(86, 64, 33, 0.2) 49%, rgba(255, 255, 255, 0.32) 50%, transparent 52%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.34), transparent 44%),
    repeating-linear-gradient(76deg, rgba(92, 68, 36, 0.045) 0 1px, transparent 1px 7px),
    #e2d6c0;
  clip-path: polygon(0 0, 50% 56%, 0 100%);
}

.envelope-front::after {
  background:
    linear-gradient(219deg, transparent 47%, rgba(83, 61, 31, 0.16) 49%, rgba(255, 255, 255, 0.38) 50%, transparent 52%),
    linear-gradient(218deg, rgba(255, 255, 255, 0.4), transparent 42%),
    repeating-linear-gradient(102deg, rgba(92, 68, 36, 0.038) 0 1px, transparent 1px 8px),
    rgba(255, 255, 255, 0.2);
  clip-path: polygon(100% 0, 50% 56%, 100% 100%);
}

.envelope-flap {
  z-index: 5;
  height: 61%;
  transform: perspective(1400px) rotateX(0deg);
  transform-origin: top center;
  transition:
    transform 1.25s cubic-bezier(0.7, 0, 0.2, 1),
    opacity 0.55s ease,
    z-index 0s 0.62s;
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 8%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(12deg, rgba(82, 60, 30, 0.2), transparent 54%),
    repeating-linear-gradient(88deg, rgba(91, 67, 35, 0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(3deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 9px),
    #d7c8af;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter:
    drop-shadow(0 5px 4px rgba(65, 48, 25, 0.23))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.wax-seal {
  position: absolute;
  z-index: 10;
  top: 56%;
  left: 50%;
  display: grid;
  width: clamp(116px, 14vw, 138px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  color: #e9dfc8;
  background: rgba(255, 255, 255, 0.001);
  transform: translate(-50%, -50%);
  transition: opacity 0.45s ease, transform 0.6s ease;
  -webkit-tap-highlight-color: transparent;
}

.wax-seal::before {
  position: absolute;
  inset: 13%;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(47, 101, 77, 0.54);
  border-radius: 50%;
  animation: seal-ripple 2.6s cubic-bezier(0.2, 0.65, 0.3, 1) infinite;
}

.seal-hint {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  color: var(--ink);
  font-family: "Italiana", serif;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: seal-hint-float 2.6s ease-in-out infinite;
}

.seal-hint::after {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: 1px;
  height: 15px;
  content: "";
  background: linear-gradient(to bottom, rgba(23, 55, 45, 0.12), rgba(23, 55, 45, 0.65));
  transform: translateX(-50%);
}

.wax-seal-face {
  position: relative;
  display: block;
  width: clamp(88px, 10.5vw, 108px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: saturate(1.04) contrast(1.03);
  transform: rotate(-5deg);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.wax-seal:hover .wax-seal-face,
.wax-seal:focus-visible .wax-seal-face {
  filter: saturate(1.08) contrast(1.05) brightness(1.04);
  transform: rotate(-1deg) scale(1.045);
}

.wax-seal:focus-visible {
  outline: 1px solid var(--moss);
  outline-offset: 2px;
}

@keyframes seal-ripple {
  0%, 35% { opacity: 0; transform: scale(0.78); }
  48% { opacity: 0.7; }
  82%, 100% { opacity: 0; transform: scale(1.3); }
}

@keyframes seal-hint-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.invitation-card {
  position: absolute;
  z-index: 2;
  inset: 4% 8%;
  overflow: hidden;
  pointer-events: none;
  background: #e7e9e1;
  box-shadow: 0 10px 24px rgba(32, 49, 41, 0.12);
  transform: translateY(var(--card-lift, 0%)) scale(var(--card-scale, 1));
  transform-origin: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    box-shadow 0.6s ease,
    transform 1.05s cubic-bezier(0.3, 0, 0.18, 1);
}

.invitation-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.envelope-wrap.is-focused .invitation-card {
  box-shadow:
    0 42px 68px rgba(30, 43, 35, 0.22),
    0 12px 24px rgba(57, 49, 36, 0.12);
}

.envelope-wrap.is-focused .envelope {
  pointer-events: none;
}

.envelope-wrap.is-open .envelope-flap {
  z-index: 1;
  transform: perspective(1400px) rotateX(180deg);
}

.envelope-wrap.is-open .wax-seal {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6) rotate(-15deg);
}

.discover-link {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 0.45s ease 0.8s, transform 0.45s ease 0.8s;
  visibility: hidden;
}

.envelope-stage:has(.envelope-wrap.is-open) .discover-link {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.discover-link svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  animation: float-arrow 1.8s ease-in-out infinite;
}

@keyframes float-arrow {
  50% { transform: translateY(6px); }
}

.announcement {
  display: grid;
  min-height: 100vh;
  align-items: center;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8vw;
  background: var(--paper);
}

.announcement-copy {
  padding-left: 4vw;
}

h1,
h2 {
  margin: 0;
  font-family: "Italiana", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(68px, 9vw, 144px);
  line-height: 0.78;
}

h1 span {
  display: block;
  width: max-content;
  margin: 0.12em 0 0.55em;
  color: var(--moss);
  font-family: "Italiana", serif;
  font-size: 0.46em;
  font-weight: 400;
  line-height: 1;
}

.date-line {
  margin: 44px 0 7px;
  font-family: "Italiana", serif;
  font-size: 21px;
  font-style: italic;
}

.announcement time {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.18em;
}

.location {
  margin: 13px 0 0;
  color: rgba(23, 55, 45, 0.62);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown {
  width: min(100%, 430px);
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.countdown > p {
  margin: 0 0 14px;
  color: rgba(23, 55, 45, 0.58);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.countdown-unit {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.countdown-unit strong {
  font-family: "Italiana", serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit small {
  margin-top: 7px;
  color: rgba(23, 55, 45, 0.58);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown.is-complete .countdown-grid {
  display: none;
}

.countdown.is-complete > p {
  margin: 0;
  color: var(--wine);
  font-family: "Italiana", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.photo-collage {
  position: relative;
  min-height: 750px;
}

.photo {
  margin: 0;
  padding: 10px;
  background: #fffdf7;
  box-shadow: 0 18px 45px rgba(38, 50, 42, 0.14);
}

.photo-main {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88%, 530px);
  aspect-ratio: 9 / 16;
  transform: rotate(2.5deg);
}

.video-card {
  padding: 10px;
}

.video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(23, 55, 45, 0.25);
  background: #111;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-frame video::-webkit-media-controls,
.video-frame video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: #111 url("video-poster.png") center / cover no-repeat;
  text-align: center;
  transition: opacity 0.35s ease;
}

.video-card.is-ready .video-placeholder {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.video-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid rgba(250, 247, 239, 0.48);
  border-radius: 50%;
  color: var(--paper);
  background: rgba(23, 55, 45, 0.82);
  box-shadow: 0 5px 14px rgba(23, 55, 45, 0.22);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-controls button:hover,
.video-controls button:focus-visible {
  background: var(--ink);
  transform: scale(1.06);
}

.video-controls .sound-control {
  width: 76px;
  border-radius: 22px;
}

.sound-control span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.media-icon.is-play::before {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 0;
  height: 0;
  content: "";
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.media-icon.is-pause::before,
.media-icon.is-pause::after {
  position: absolute;
  top: 2px;
  width: 4px;
  height: 14px;
  content: "";
  border-radius: 1px;
  background: currentColor;
}

.media-icon.is-pause::before { left: 4px; }
.media-icon.is-pause::after { right: 4px; }

.external-icon,
.forward-icon,
.up-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.external-icon::before,
.forward-icon::before,
.up-icon::before {
  position: absolute;
  content: "";
}

.external-icon::before {
  inset: 2px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.external-icon::after,
.forward-icon::after,
.up-icon::after {
  position: absolute;
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.external-icon::after {
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
}

.forward-icon::before {
  top: 6px;
  left: 1px;
  width: 11px;
  border-top: 1px solid currentColor;
}

.forward-icon::after {
  top: 3px;
  right: 1px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}

.up-icon::before {
  top: 2px;
  left: 6px;
  height: 11px;
  border-left: 1px solid currentColor;
}

.up-icon::after {
  top: 2px;
  left: 4px;
  width: 5px;
  height: 5px;
  transform: rotate(-45deg);
}

.photo-detail {
  position: absolute;
  right: 61%;
  bottom: 1%;
  width: 43%;
  aspect-ratio: 1;
  transform: rotate(-6deg);
}

.image-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 220px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(23, 55, 45, 0.25);
  color: rgba(23, 55, 45, 0.72);
  background:
    linear-gradient(135deg, transparent calc(50% - 0.5px), rgba(23, 55, 45, 0.16) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(23, 55, 45, 0.16) 50%, transparent calc(50% + 0.5px)),
    #dfe3d5;
  text-align: center;
}

.image-placeholder span {
  padding: 8px 12px;
  background: rgba(250, 247, 239, 0.84);
  font-family: "Italiana", serif;
  font-size: clamp(20px, 2.2vw, 32px);
}

.image-placeholder small {
  padding: 0 8px 8px;
  background: rgba(250, 247, 239, 0.84);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tape {
  position: absolute;
  z-index: 3;
  width: 90px;
  height: 30px;
  background: rgba(219, 197, 158, 0.57);
  box-shadow: 0 1px 2px rgba(30, 44, 36, 0.1);
}

.tape-one {
  top: -3px;
  right: 32%;
  transform: rotate(-8deg);
}

.details-title h2,
.place-copy h2,
.rsvp h2 {
  font-size: clamp(54px, 7vw, 108px);
  line-height: 0.92;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  background: var(--ivory);
}

.details-title {
  position: sticky;
  top: 100px;
  align-self: start;
}

.schedule {
  border-top: 1px solid var(--line);
}

.schedule-item {
  display: grid;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 80px 1fr;
}

.schedule-number {
  color: var(--sage);
  font-family: "Italiana", serif;
  font-size: 38px;
}

.schedule-item time {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.schedule-item time span + span {
  color: var(--sage);
}

.schedule-item h3 {
  margin: 10px 0 14px;
  font-family: "Italiana", serif;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
}

.schedule-item p {
  margin: 0;
  color: rgba(23, 55, 45, 0.65);
  font-size: 13px;
  line-height: 1.8;
}

.place {
  display: grid;
  min-height: 90vh;
  align-items: center;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8vw;
  color: var(--paper);
  background: #2f654d;
}

.place-photo {
  position: relative;
  height: min(68vw, 760px);
  padding: 12px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(61, 48, 43, 0.16);
  transform: rotate(-1.5deg);
}

.place-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.place-copy h2 {
  font-size: clamp(40px, 5vw, 78px);
  white-space: nowrap;
}

.place-copy p:not(.eyebrow) {
  max-width: 430px;
  margin: 34px 0;
  font-size: 14px;
  line-height: 1.9;
}

.place-copy a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stays {
  display: grid;
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
  background: var(--paper);
}

.stays-heading h2 {
  margin: 0;
  font-family: "Italiana", serif;
  font-size: clamp(58px, 7vw, 106px);
  font-weight: 400;
  line-height: 0.9;
}

.stays-heading > p:last-child {
  max-width: 330px;
  margin: 38px 0 0;
  color: rgba(23, 55, 45, 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.stays-options {
  border-top: 1px solid var(--line);
}

.stays-options article {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.stays-options article > span,
.stays-options small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stays-options h3 {
  margin: 10px 0 16px;
  font-family: "Italiana", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
}

.stays-options p {
  max-width: 530px;
  margin: 0 0 22px;
  color: rgba(23, 55, 45, 0.66);
  font-size: 13px;
  line-height: 1.8;
}

.stays-options small {
  color: rgba(23, 55, 45, 0.5);
}

.stays-options a {
  display: inline-flex;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rsvp {
  position: relative;
  display: grid;
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--ivory);
  text-align: left;
}

.rsvp-heading,
.rsvp-details {
  position: relative;
  z-index: 1;
}

.rsvp-heading h2 {
  margin: 0;
  font-size: clamp(58px, 7vw, 106px);
  font-weight: 400;
  line-height: 0.9;
}

.rsvp-heading > p:last-child {
  max-width: 330px;
  margin: 38px 0 0;
  color: rgba(23, 55, 45, 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.rsvp-details {
  padding: 42px 0 0;
  border-top: 1px solid var(--line);
}

.rsvp-deadline-label {
  margin: 0 0 26px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-details time {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
}

.rsvp-details time strong {
  font-family: "Italiana", serif;
  font-size: clamp(72px, 7vw, 108px);
  font-weight: 400;
  line-height: 0.84;
}

.rsvp-details time span {
  font-family: "Italiana", serif;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 0.92;
}

.rsvp-details > p:not(.rsvp-deadline-label) {
  max-width: 470px;
  margin: 38px 0 32px;
  color: rgba(23, 55, 45, 0.66);
  font-size: 13px;
  line-height: 1.8;
}

.rsvp-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
}

.rsvp-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 285px;
  gap: 30px;
  padding: 19px 22px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease;
}

.rsvp-button:hover {
  color: var(--ink);
  background: transparent;
}

.calendar-button {
  color: var(--ink);
  background: transparent;
}

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

.calendar-icon {
  position: relative;
  width: 16px;
  height: 15px;
  border: 1px solid currentColor;
}

.calendar-icon::before,
.calendar-icon::after {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 6px;
  content: "";
  background: currentColor;
}

.calendar-icon::before {
  left: 4px;
}

.calendar-icon::after {
  right: 4px;
}

.rsvp-button span {
  font-size: 17px;
  font-weight: 400;
}

footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 6vw;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
  font-family: "Italiana", serif;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}

footer a {
  text-decoration: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (max-width: 800px) {
  .section-pad {
    padding: 100px 24px;
  }

  .envelope-wrap {
    width: calc(100vw - 40px);
    max-width: 620px;
    margin-inline: auto;
    justify-self: center;
  }

  .announcement,
  .details,
  .place,
  .stays {
    grid-template-columns: 1fr;
  }

  .site-nav {
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 6px;
    transform: translate(-50%, 16px);
  }

  .site-nav.is-visible {
    transform: translate(-50%, 0);
  }

  .site-nav-mark {
    display: none;
  }

  .site-nav-links {
    display: grid;
    width: 100%;
    grid-template-columns: 1.15fr 0.7fr 1.35fr 1.05fr;
    gap: 4px;
  }

  .site-nav-links a:first-child {
    display: none;
  }

  .site-nav-links a {
    display: grid;
    min-width: 0;
    min-height: 44px;
    place-items: center;
    padding: 4px 2px;
    overflow: hidden;
    font-size: 7px;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
  }

  .site-nav-response {
    min-height: 44px !important;
    padding: 4px 2px !important;
    border-left: 1px solid rgba(23, 55, 45, 0.18);
    color: #24573f;
    background: transparent;
    font-weight: 700 !important;
  }

  .announcement {
    gap: 52px;
  }

  .announcement-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(58px, 17vw, 76px);
    line-height: 0.9;
  }

  .photo-collage {
    display: grid;
    width: 100%;
    min-height: 0;
    margin-inline: 0;
    place-items: center;
  }

  .photo-main {
    position: relative;
    right: auto;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    transform: none;
  }

  .video-card {
    padding: 8px;
  }

  .video-frame {
    border: 1px solid rgba(23, 55, 45, 0.18);
  }

  .photo-detail {
    display: none;
  }

  .details {
    gap: 34px;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .details-title {
    position: static;
  }

  .details-title h2 {
    font-size: clamp(40px, 11.3vw, 48px);
    line-height: 0.94;
  }

  .schedule {
    border-top: 0;
  }

  .schedule-item {
    padding: 30px 0;
  }

  .schedule-item:first-child {
    padding-top: 8px;
  }

  .place {
    gap: 80px;
  }

  .stays {
    gap: 34px;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .stays-heading > p:last-child {
    margin-top: 24px;
  }

  .stays-options {
    border-top: 0;
  }

  .stays-options article {
    padding: 30px 0;
  }

  .stays-options article:first-child {
    padding-top: 8px;
  }

  .place-photo {
    height: 115vw;
  }

  .place-copy {
    padding: 0 8px;
  }

  .place-copy h2 {
    white-space: normal;
  }

  .rsvp {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .rsvp-details {
    padding: 42px 0 0;
  }

  .rsvp-heading h2 {
    font-size: clamp(54px, 16vw, 76px);
    line-height: 0.94;
  }

  .rsvp-heading > p:last-child {
    margin-top: 26px;
  }

  .rsvp-details time strong {
    font-size: clamp(72px, 22vw, 96px);
  }
}

@media (max-width: 520px) {
  .intro-label {
    top: 42px;
  }

  .envelope-wrap {
    width: calc(100vw - 40px);
    margin-top: 64px;
    margin-inline: auto;
  }

  .invitation-card {
    inset: 4% 6%;
  }

  .announcement {
    padding-top: 120px;
  }

  .schedule-item {
    grid-template-columns: 60px 1fr;
  }

  .rsvp {
    min-height: 0;
    padding-top: 86px;
    padding-bottom: 86px;
    gap: 54px;
  }

  .rsvp-heading h2 {
    font-size: 58px;
  }

  .rsvp-details {
    padding-top: 34px;
  }

  .rsvp-details time strong {
    font-size: 76px;
  }

  .rsvp-details time span {
    font-size: 28px;
  }

  .rsvp-button {
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding-inline: 18px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

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

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