:root {
  --ink: #302d2a;
  --muted: #857d76;
  --paper: #faf9f7;
  --paper-deep: #f1eeea;
  --cream: #e9e3dc;
  --apricot: #9d746c;
  --apricot-dark: #75544e;
  --gold: #a99171;
  --line: rgba(68, 59, 53, 0.13);
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --sans:
    "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  word-break: keep-all;
  overflow-x: hidden;
}
.js body:not(.is-open) {
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.18;
  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='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.section-shell {
  position: relative;
  overflow: hidden;
  padding: 84px 28px;
}
.eyebrow {
  margin: 0;
  color: var(--apricot-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.section-title {
  margin: 13px 0 32px;
  font: 400 28px/1.38 var(--serif);
  letter-spacing: -0.06em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Intro envelope */
.envelope-intro {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 42px 24px 30px;
  overflow: hidden;
  color: #faf9f7;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(238, 226, 207, 0.42),
      transparent 25%
    ),
    linear-gradient(155deg, #9aa59c 0%, #758278 46%, #4f5a53 100%);
  transition:
    opacity 0.7s ease 0.7s,
    visibility 0s linear 1.4s;
}
.envelope-intro::before,
.envelope-intro::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.42;
}
.envelope-intro::before {
  width: 380px;
  height: 380px;
  right: -155px;
  top: -85px;
  background: #d7cbb9;
}
.envelope-intro::after {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -70px;
  background: #364239;
}
.intro-copy {
  z-index: 2;
  align-self: start;
  text-align: center;
  transition:
    transform 0.65s ease,
    opacity 0.5s ease;
}
.intro-copy span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  opacity: 0.78;
}
.intro-copy p {
  margin: 8px 0 0;
  font: 400 22px var(--serif);
}
.envelope-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 420px;
  transform: translate(-50%, -47%);
  perspective: 1000px;
}
.envelope-shadow {
  position: absolute;
  top: 322px;
  left: 28px;
  width: 276px;
  height: 45px;
  border-radius: 50%;
  background: rgba(32, 39, 34, 0.3);
  filter: blur(17px);
  transition:
    transform 0.7s ease,
    opacity 0.6s ease;
}
.envelope {
  position: absolute;
  left: 10px;
  top: 30px;
  width: 310px;
  height: 220px;
  filter: drop-shadow(0 20px 22px rgba(34, 42, 36, 0.22));
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 0.83, 0.24, 1);
}
.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 3px 3px 8px 8px;
  background: #f1eee9;
}
.letter-preview {
  position: absolute;
  z-index: 1;
  left: 23px;
  top: -72px;
  width: 264px;
  height: 212px;
  padding-top: 32px;
  color: #765c56;
  text-align: center;
  background: #faf9f7;
  box-shadow: inset 0 0 0 1px rgba(101, 81, 72, 0.1);
  transition:
    transform 0.9s cubic-bezier(0.2, 0.76, 0.27, 1),
    opacity 0.4s ease;
}
.letter-preview::before {
  position: absolute;
  content: "";
  inset: 10px;
  border: 1px solid rgba(151, 128, 105, 0.26);
}
.letter-preview span,
.letter-preview strong,
.letter-preview i {
  position: relative;
  z-index: 1;
  display: block;
}
.letter-preview span {
  font-size: 8px;
  letter-spacing: 0.16em;
}
.letter-preview strong {
  margin-top: 13px;
  font: 400 20px/1.35 var(--serif);
  letter-spacing: -0.1em;
}
.letter-preview i {
  width: 42px;
  height: 1px;
  margin: 15px auto 0;
  background: var(--gold);
}
.envelope-front {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 0 0 8px 8px;
  background: #f4f1ec;
  clip-path: polygon(0 0, 50% 53%, 100% 0, 100% 100%, 0 100%);
}
.envelope-front::after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(
      135deg,
      transparent 49.5%,
      rgba(143, 120, 101, 0.14) 50%,
      transparent 50.5%
    ),
    linear-gradient(
      225deg,
      transparent 49.5%,
      rgba(143, 120, 101, 0.14) 50%,
      transparent 50.5%
    );
}
.envelope-flap {
  position: absolute;
  z-index: 5;
  width: 100%;
  height: 135px;
  transform-origin: 50% 0;
  background: #faf7f2;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition:
    transform 0.85s cubic-bezier(0.24, 0.76, 0.25, 1),
    z-index 0s linear 0.85s;
  backface-visibility: hidden;
}
.envelope-flap::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(
    106deg,
    rgba(255, 255, 255, 0.48),
    transparent 55%
  );
}
.wax-seal {
  position: absolute;
  z-index: 6;
  top: 96px;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #815f58;
  border-radius: 50%;
  color: #faf7f2;
  font: 400 14px var(--serif);
  background: #a27a72;
  box-shadow:
    inset 0 0 0 2px rgba(250, 243, 232, 0.42),
    0 3px 6px rgba(50, 41, 37, 0.2);
  transform: translateX(-50%);
  transition:
    transform 0.5s ease,
    opacity 0.35s ease;
}
.open-invitation {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(250px, 80vw);
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(250, 248, 244, 0.64);
  border-radius: 99px;
  color: #faf9f7;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.1);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    opacity 0.35s ease;
}
.open-invitation:hover {
  color: #5d514b;
  background: #faf8f4;
  transform: translateY(-2px);
}
.button-shine {
  position: absolute;
  top: -30%;
  left: -20%;
  width: 20%;
  height: 180%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(25deg);
  animation: shine 3.5s ease-in-out infinite;
}
.intro-hint {
  z-index: 2;
  position: absolute;
  bottom: 13px;
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.19em;
  opacity: 0.58;
  transition: opacity 0.35s ease;
}

/* Main hero */
.invitation {
  background: var(--paper);
}
.js .invitation {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease 0.9s,
    transform 0.65s ease 0.9s;
}
.opening-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: max(620px, 100svh);
  padding: 44px 22px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 19%, rgba(234, 222, 204, 0.68), transparent 25%),
    linear-gradient(150deg, #fbfaf8, #eee9e2);
}
.opening-photo::before,
.opening-photo::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.opening-photo::before {
  top: -105px;
  right: -115px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(157, 116, 108, 0.2);
  border-radius: 50%;
}
.opening-photo::after {
  bottom: -85px;
  left: -70px;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(169, 145, 113, 0.22);
  border-radius: 50%;
}
.opening-photo-kicker,
.opening-photo-caption {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: #8a746c;
  font-size: 8px;
  letter-spacing: 0.2em;
}
.opening-photo-kicker {
  top: 33px;
}
.opening-photo-caption {
  bottom: 30px;
}
.opening-photo-collage {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  height: min(58svh, 450px);
  min-height: 370px;
}
.opening-frame {
  position: absolute;
  width: 59%;
  margin: 0;
  padding: 7px 7px 24px;
  background: #fefdfb;
  box-shadow: 0 16px 35px rgba(69, 56, 48, 0.16);
}
.opening-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 0.6875;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
}
.opening-frame figcaption {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #80746a;
  font-size: 7px;
  letter-spacing: 0.16em;
}
.opening-frame--bride {
  top: 4px;
  left: 3px;
  z-index: 1;
  transform: rotate(-5deg);
}
.opening-frame--groom {
  right: 8px;
  bottom: 2px;
  transform: rotate(5deg);
}
.hero {
  min-height: max(660px, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(165deg, #fdfcfb 0%, #f8f6f3 48%, #ebe6df 100%);
}
.hero::after {
  position: absolute;
  content: "";
  right: -26%;
  bottom: 6%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(151, 137, 121, 0.2);
  border-radius: 50%;
}
.hero-sun {
  position: absolute;
  top: 17%;
  width: min(76vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.65;
  background: radial-gradient(
    circle at 48% 47%,
    #e6ddd2,
    #d8ccc0 65%,
    transparent 66%
  );
  filter: blur(1px);
}
.hero-sun::before {
  position: absolute;
  content: "";
  inset: 13%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}
.hero .eyebrow {
  z-index: 1;
  margin-top: 15vh;
}
.hero-title-wrap {
  z-index: 1;
  margin-top: 23px;
}
.hero-pretitle {
  margin: 0 0 10px;
  color: #625c56;
  font: 400 15px var(--serif);
}
.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  font: 400 clamp(33px, 10vw, 42px) / 1.22 var(--serif);
  letter-spacing: -0.09em;
}
.hero h1 i {
  margin: 5px 0;
  color: var(--apricot);
  font:
    italic 21px Georgia,
    serif;
}
.hero-date {
  z-index: 1;
  margin: 25px 0 0;
  color: var(--apricot-dark);
  font: 500 11px var(--sans);
  letter-spacing: 0.12em;
}
.hero-message {
  z-index: 1;
  margin-top: 28px;
  color: #5f5953;
  font: 400 14px/1.85 var(--serif);
  letter-spacing: -0.04em;
}
.scroll-cue {
  z-index: 1;
  margin-top: auto;
  padding: 18px 8px 7px;
  border: 0;
  color: #847b73;
  font-size: 8px;
  letter-spacing: 0.19em;
  background: transparent;
}
.scroll-cue b {
  display: block;
  width: 1px;
  height: 34px;
  margin: 9px auto 0;
  background: var(--apricot);
  animation: scroll-line 1.8s ease-in-out infinite;
  transform-origin: top;
}
.corner-branch {
  position: absolute;
  width: 126px;
  height: 196px;
  opacity: 0.7;
}
.corner-branch::before {
  position: absolute;
  content: "";
  width: 1px;
  height: 180px;
  background: #aa9a86;
  transform: rotate(-31deg);
}
.corner-branch span {
  position: absolute;
  width: 19px;
  height: 33px;
  border: 1px solid #aa9a86;
  border-radius: 100% 0 100% 0;
  transform: rotate(-25deg);
}
.corner-branch--top {
  top: -37px;
  right: -21px;
  transform: rotate(-14deg);
}
.corner-branch--top::before {
  left: 39px;
  top: 9px;
}
.corner-branch--top span:nth-child(1) {
  top: 23px;
  left: 16px;
}
.corner-branch--top span:nth-child(2) {
  top: 61px;
  left: 43px;
  transform: scaleX(-1) rotate(23deg);
}
.corner-branch--top span:nth-child(3) {
  top: 90px;
  left: 7px;
}
.corner-branch--top span:nth-child(4) {
  top: 127px;
  left: 35px;
  transform: scaleX(-1) rotate(23deg);
}
.corner-branch--bottom {
  left: -41px;
  bottom: -105px;
  transform: rotate(130deg);
}
.corner-branch--bottom::before {
  left: 39px;
  top: 9px;
}
.corner-branch--bottom span:nth-child(1) {
  top: 23px;
  left: 16px;
}
.corner-branch--bottom span:nth-child(2) {
  top: 61px;
  left: 43px;
  transform: scaleX(-1) rotate(23deg);
}
.corner-branch--bottom span:nth-child(3) {
  top: 90px;
  left: 7px;
}

/* Greeting */
.section-paper {
  background: var(--paper-deep);
}
.greeting {
  text-align: center;
}
.section-ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: var(--gold);
}
.section-ornament i {
  width: 35px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-ornament span {
  font-size: 13px;
}
.greeting .eyebrow {
  margin-top: 22px;
}
.greeting-copy {
  color: #4a4641;
  font: 400 15px/2.05 var(--serif);
  letter-spacing: -0.045em;
}
.greeting-copy p {
  margin: 0 0 22px;
}
.family-names {
  margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #625b54;
  font: 400 12px/2.15 var(--serif);
}
.family-names p {
  margin: 4px 0;
}
.family-names span {
  display: inline-block;
  min-width: 41px;
  margin-right: 6px;
  color: var(--apricot-dark);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.family-names b {
  font-weight: 600;
}

/* Story photo */
.story-photo-section {
  padding-top: 48px;
  padding-bottom: 48px;
  background: #f7f6f4;
}
.story-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  background: #e7e6e2;
  box-shadow: 10px 10px 0 rgba(121, 108, 96, 0.1);
}
.story-photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(44, 39, 35, 0.18), transparent 28%);
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.9) contrast(0.98);
  transform: scale(1.45);
}
.story-photo--editorial {
  aspect-ratio: 4 / 5;
}
.story-photo--editorial img {
  object-position: center 27%;
  filter: saturate(0.76) contrast(0.98) brightness(1.04);
  transform: scale(1.18);
}
.story-photo figcaption {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-shadow: 0 1px 8px rgba(40, 35, 31, 0.28);
}

/* Date */
.date-section {
  text-align: center;
  background: linear-gradient(180deg, #faf9f7, #f0ece7);
}
.date-heading {
  margin: 13px 0 4px;
  font: 400 30px/1.4 var(--serif);
  letter-spacing: -0.08em;
}
.date-time {
  margin: 0;
  color: var(--apricot-dark);
  font: 400 15px var(--serif);
}
.calendar {
  max-width: 340px;
  margin: 43px auto 0;
  padding: 17px 17px 13px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 30px rgba(79, 68, 59, 0.07);
}
.calendar-month {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: #655c54;
  font: 500 11px var(--sans);
  letter-spacing: 0.16em;
}
.calendar-month span {
  margin-left: 5px;
  color: var(--apricot);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-days {
  padding: 14px 0 8px;
}
.calendar-days b {
  color: #998f86;
  font-size: 8px;
  font-weight: 500;
}
.calendar-days b:first-child {
  color: var(--apricot-dark);
}
.calendar-dates {
  row-gap: 10px;
}
.calendar-dates span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #68615a;
  font-size: 11px;
}
.calendar-dates .is-wedding-day {
  position: relative;
  color: white;
  font-weight: 600;
}
.calendar-dates .is-wedding-day::before {
  position: absolute;
  z-index: -1;
  content: "";
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 3px 8px rgba(123, 87, 80, 0.22);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 316px;
  margin: 26px auto 0;
  padding: 15px 8px 13px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 25px rgba(79, 68, 59, 0.05);
}
.countdown-unit {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
}
.countdown-unit + .countdown-unit::before {
  position: absolute;
  top: 5px;
  bottom: 3px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(124, 105, 92, 0.17);
}
.countdown-unit b {
  color: var(--apricot-dark);
  font: 400 25px/1 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.countdown-unit span {
  color: #766d65;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.countdown-message {
  margin: 13px 0 0;
  color: #766d65;
  font: 400 11px/1.6 var(--serif);
  letter-spacing: -0.02em;
}
.leaves {
  position: absolute;
  left: -27px;
  bottom: 52px;
  width: 120px;
  height: 160px;
  transform: rotate(-19deg);
  opacity: 0.45;
}
.leaves::before {
  position: absolute;
  content: "";
  width: 1px;
  height: 156px;
  left: 43px;
  background: var(--gold);
  transform: rotate(-22deg);
}
.leaves i {
  position: absolute;
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 100% 0 100% 0;
  background: #b58b7a;
}
.leaves i:nth-child(1) {
  top: 20px;
  left: 26px;
  transform: rotate(-38deg);
}
.leaves i:nth-child(2) {
  top: 69px;
  left: 48px;
  transform: scaleX(-1) rotate(-9deg);
}
.leaves i:nth-child(3) {
  top: 109px;
  left: 14px;
  transform: rotate(-37deg);
}

/* Illustrated portrait */
.portrait-section {
  padding-top: 76px;
  padding-bottom: 70px;
  text-align: center;
  background: #faf9f7;
}
.portrait-section .section-title {
  margin-bottom: 31px;
}
.portrait-card {
  position: relative;
  max-width: 352px;
  height: 272px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(125, 107, 92, 0.16);
  border-radius: 9px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.31),
      transparent 49%,
      rgba(255, 255, 255, 0.25)
    ),
    linear-gradient(145deg, #eee9e1, #dfd8cf);
  box-shadow: 9px 10px 0 rgba(121, 108, 96, 0.08);
}
.portrait-card::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(125, 107, 92, 0.18);
  box-shadow: 3px 0 0 rgba(255, 255, 255, 0.35);
}
.portrait-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 47px;
  content: "";
  border-top: 1px solid rgba(125, 107, 92, 0.11);
  background: rgba(250, 248, 244, 0.68);
}
.portrait-spine {
  position: absolute;
  z-index: 3;
  top: 21px;
  left: calc(50% - 6px);
  width: 12px;
  height: 3px;
  border-radius: 4px;
  background: #b29b7a;
  box-shadow: 0 8px 0 #b29b7a;
}
.frame-person {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  width: 147px;
  height: 194px;
  transform: scale(1.14);
  transform-origin: center bottom;
}
.frame-person--bride {
  left: 11px;
}
.frame-person--groom {
  right: 11px;
}
.frame-person svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 150px;
  height: 190px;
  transform: translateX(-50%);
}
.portrait-frame {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 50%;
  width: 70px;
  height: 66px;
  padding: 4px;
  overflow: hidden;
  border: 2px solid #b99a75;
  border-radius: 9px 7px 10px 8px;
  background: #f6f1e9;
  box-shadow: 2px 3px 0 rgba(113, 93, 74, 0.15);
  transform: translateX(-50%);
}
.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #e2c9b0;
  transform: translateY(-50%);
}
.portrait-frame::before {
  left: -6px;
}
.portrait-frame::after {
  right: -6px;
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.84) contrast(0.97);
}
.portrait-frame--bride {
  transform: translateX(-50%) rotate(-2deg);
}
.portrait-frame--bride img {
  width: 88%;
  height: 88%;
  margin: 6%;
}
.portrait-frame--groom {
  border-color: #8e7667;
  transform: translateX(-50%) rotate(2deg);
}
.portrait-frame--groom img {
  object-position: center 30%;
  transform: scale(1.5);
  transform-origin: center 30%;
}
.portrait-names {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 12px;
  left: 0;
  margin: 0;
  color: #655b53;
  font: 400 15px var(--serif);
  letter-spacing: -0.05em;
}
.portrait-names i {
  display: inline-block;
  margin: 0 5px;
  color: var(--apricot);
  font:
    italic 15px Georgia,
    serif;
}
.portrait-spark {
  position: absolute;
  z-index: 3;
  color: #b39978;
  font-size: 15px;
}
.portrait-spark--one {
  top: 63px;
  left: 32px;
}
.portrait-spark--two {
  top: 94px;
  right: 31px;
  font-size: 10px;
}
.portrait-note {
  margin: 18px 0 0;
  color: #7e756d;
  font: 400 11px/1.6 var(--serif);
}

/* Photo */
.photo-section {
  padding: 50px 28px 57px;
  background: #eceae6;
}
.gallery-eyebrow {
  margin: 0 0 17px;
  color: var(--apricot-dark);
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.photo-slider {
  position: relative;
  width: calc(100% + 56px);
  aspect-ratio: 4 / 5;
  margin: 0 -28px;
  overflow: hidden;
}
.photo-slides {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.photo-slides::-webkit-scrollbar {
  display: none;
}
.photo-frame {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #e7e6e2;
}
.photo-frame::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(49, 39, 30, 0.14), transparent 31%);
}
.photo-frame img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(0.92) contrast(0.98);
  transform: scale(1.65);
  transform-origin: center 42%;
  -webkit-user-drag: none;
  user-select: none;
}
.photo-frame figcaption {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 17px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 8px rgba(50, 39, 28, 0.32);
}
.photo-frame--close img {
  object-position: center 50%;
  transform: scale(1.36);
  transform-origin: center 44%;
}
.photo-frame--veil img {
  object-position: center 60%;
  transform: scale(1.28);
  transform-origin: center 48%;
}
.photo-frame--door img {
  object-position: center 52%;
  transform: scale(1.3);
  transform-origin: center 46%;
}
.photo-frame--walk img {
  object-position: center 53%;
  transform: scale(1.35);
  transform-origin: center 48%;
}
.photo-frame--evening img {
  object-position: center 48%;
  transform: scale(1.42);
  transform-origin: center 44%;
}
.photo-frame--hug img {
  object-position: center 47%;
  transform: scale(1.4);
  transform-origin: center 43%;
}
.gallery-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  border: 0;
  color: #fff;
  font:
    400 30px/1 Georgia,
    serif;
  background: rgba(58, 41, 32, 0.3);
  transform: translateY(-50%);
}
.gallery-nav--prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}
.gallery-nav--next {
  right: 0;
  border-radius: 5px 0 0 5px;
}
.gallery-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  color: #766b63;
}
.gallery-dots {
  display: flex;
  gap: 5px;
}
.gallery-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: #c9bdb3;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}
.gallery-dots i.is-active {
  width: 18px;
  background: var(--apricot);
}
.gallery-status b {
  min-width: 28px;
  font: 400 10px var(--serif);
  letter-spacing: 0.08em;
}
.photo-note {
  margin: 15px 0 0;
  color: #766d65;
  text-align: center;
  font-size: 11px;
}

/* Location */
.venue-section {
  text-align: center;
}
.venue-card {
  position: relative;
  padding: 37px 18px 26px;
  border: 1px solid rgba(128, 110, 94, 0.2);
  background: rgba(255, 255, 255, 0.25);
}
.venue-arch {
  position: relative;
  width: 140px;
  height: 93px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid #a58c72;
  border-bottom: 0;
  border-radius: 140px 140px 0 0;
}
.venue-arch::before {
  position: absolute;
  content: "";
  inset: 11px 11px 0;
  border: 1px solid rgba(165, 140, 114, 0.64);
  border-bottom: 0;
  border-radius: 120px 120px 0 0;
}
.venue-arch span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 52px;
  background: #a58c72;
  box-shadow:
    -34px 16px 0 -0.4px #a58c72,
    34px 16px 0 -0.4px #a58c72;
}
.venue-name {
  margin: 0;
  font: 400 21px var(--serif);
  letter-spacing: -0.08em;
}
.venue-address {
  margin: 11px 0 21px;
  color: #746a61;
  font-size: 12px;
}
.map-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid rgba(117, 95, 81, 0.34);
  color: #765b53;
  font-size: 11px;
  background: #faf9f7;
}
.map-button span {
  font-size: 16px;
  line-height: 0;
}
.map-button.is-disabled {
  cursor: default;
  opacity: 0.7;
}
.transport {
  margin-top: 26px;
  text-align: left;
}
.transport article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.transport article > span {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font:
    600 10px Georgia,
    serif;
  background: var(--apricot);
}
.transport b {
  font: 500 12px var(--serif);
}
.transport p {
  margin: 5px 0 0;
  color: #867c73;
  font-size: 10px;
}
.bus-guide {
  margin-top: 26px;
  padding: 21px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.36);
}
.bus-guide > b {
  color: var(--apricot-dark);
  font: 500 13px var(--serif);
}
.bus-guide > p {
  margin: 7px 0 12px;
  color: #635a53;
  font-size: 11px;
}
.bus-guide ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #7e746b;
  font-size: 10px;
  line-height: 1.5;
  list-style: none;
}
.bus-guide li span {
  display: inline-block;
  min-width: 27px;
  margin-right: 4px;
  color: var(--apricot-dark);
  font-size: 9px;
}
.bus-guide .traffic-note {
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #8f857c;
  font-size: 9px;
  line-height: 1.7;
}
.reception-info {
  margin-top: 17px;
  padding: 15px;
  color: #746a61;
  font: 400 11px var(--serif);
  background: #eeebe6;
}
.reception-info span {
  margin-right: 9px;
  color: var(--apricot-dark);
  font: 500 10px var(--sans);
  letter-spacing: 0.06em;
}

/* RSVP + footer */
.rsvp-section {
  background: #f0ede9;
}
.rsvp-card {
  padding: 44px 25px 31px;
  text-align: center;
  background: #faf9f7;
  box-shadow: 0 14px 32px rgba(67, 57, 50, 0.07);
}
.rsvp-card h2 {
  margin: 14px 0 11px;
  font: 400 24px var(--serif);
  letter-spacing: -0.08em;
}
.rsvp-description {
  margin: 0 0 27px;
  color: #786e66;
  font: 400 12px/1.7 var(--serif);
}
.rsvp-card input {
  width: 100%;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid rgba(100, 83, 72, 0.26);
  border-radius: 0;
  color: var(--ink);
  outline: 0;
  font-size: 16px;
  background: transparent;
}
.rsvp-card input::placeholder {
  color: #a69d96;
}
.rsvp-card input:focus {
  border-bottom-color: var(--apricot-dark);
}
.attendance-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 19px 0;
}
.choice-button {
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(126, 102, 87, 0.23);
  color: #7e6d62;
  font-size: 10px;
  background: transparent;
  transition: 0.2s ease;
}
.choice-button.is-selected {
  border-color: var(--apricot);
  color: #fff;
  background: var(--apricot);
}
.submit-rsvp {
  width: 100%;
  padding: 14px;
  border: 0;
  color: #faf9f7;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: #45413d;
}
.submit-rsvp span {
  margin-left: 8px;
  font-size: 15px;
}
.submit-rsvp:disabled {
  cursor: wait;
  opacity: 0.62;
}
.rsvp-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  background: rgba(45, 38, 33, 0.31);
  transition: opacity 0.22s ease;
}
.rsvp-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
.rsvp-modal-card {
  width: min(100%, 308px);
  padding: 31px 27px 24px;
  text-align: center;
  background: #fdfbf8;
  box-shadow: 0 18px 48px rgba(42, 34, 29, 0.22);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}
.rsvp-modal.is-open .rsvp-modal-card {
  transform: translateY(0) scale(1);
}
.rsvp-modal-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 17px;
  place-items: center;
  border: 1px solid rgba(157, 116, 108, 0.44);
  border-radius: 50%;
  color: var(--apricot-dark);
  font: 400 20px var(--serif);
}
.rsvp-modal.is-error .rsvp-modal-mark {
  border-color: rgba(142, 93, 80, 0.42);
  color: #9b5c51;
}
.rsvp-modal-card .eyebrow {
  font-size: 8px;
}
.rsvp-modal-card h2 {
  margin: 11px 0 9px;
  color: #4a433e;
  font: 400 21px var(--serif);
  letter-spacing: -0.06em;
}
.rsvp-modal-card p:not(.eyebrow) {
  margin: 0;
  color: #746b63;
  font: 400 12px/1.7 var(--serif);
  letter-spacing: -0.03em;
}
.rsvp-modal-close {
  width: 100%;
  margin-top: 23px;
  padding: 12px;
  border: 0;
  color: #fffdfa;
  font-size: 11px;
  background: #5f514a;
}
body.has-modal {
  overflow: hidden;
}
.rsvp-notice {
  margin: 14px 0 0;
  color: #9d948c;
  font-size: 9px;
}
.footer {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  color: #fffdfa;
  background: #514a43;
}
.closing-photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  filter: saturate(0.75) contrast(0.98) brightness(0.86);
}
.closing-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 64px 28px max(37px, env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(41, 35, 30, 0.06) 8%,
    rgba(41, 35, 30, 0.17) 48%,
    rgba(41, 35, 30, 0.76) 100%
  );
}
.closing-photo-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  text-shadow: 0 1px 12px rgba(28, 23, 19, 0.28);
}
.closing-eyebrow {
  margin: 0 0 13px;
  color: rgba(255, 250, 244, 0.83);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.closing-photo h2 {
  margin: 0;
  font: 400 28px/1.48 var(--serif);
  letter-spacing: -0.07em;
}
.closing-date {
  margin: 21px 0 5px;
  color: rgba(255, 249, 241, 0.79);
  font-size: 10px;
  letter-spacing: 0.15em;
}
.footer strong {
  font: 400 18px var(--serif);
  letter-spacing: -0.07em;
}
.share-button {
  display: block;
  width: 180px;
  margin: 27px auto 18px;
  padding: 12px;
  border: 1px solid rgba(247, 244, 239, 0.62);
  color: #f9f7f4;
  font-size: 11px;
  background: rgba(34, 29, 25, 0.1);
}
.footer small {
  color: rgba(247, 244, 239, 0.65);
  font-size: 9px;
}
.account-section {
  text-align: center;
  background: linear-gradient(160deg, #faf9f7, #ebe7e1);
}
.account-intro {
  margin: -14px 0 29px;
  color: #746b63;
  font: 400 12px/1.7 var(--serif);
}
.account-list {
  display: grid;
  gap: 10px;
  text-align: left;
}
.account-list article {
  padding: 19px;
  border: 1px solid rgba(128, 108, 93, 0.18);
  background: rgba(255, 255, 255, 0.5);
}
.account-list article > span {
  color: var(--apricot-dark);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.account-list p {
  margin: 8px 0 3px;
  color: #70655d;
  font-size: 11px;
}
.account-list p b {
  margin-left: 3px;
  color: #4f4943;
  font-weight: 600;
}
.account-list strong {
  display: block;
  color: #423c37;
  font: 400 16px var(--serif);
  letter-spacing: 0.02em;
}
a[x-apple-data-detectors] {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-decoration: none !important;
}
.copy-account {
  float: right;
  margin-top: 9px;
  padding: 6px 8px;
  border: 1px solid rgba(126, 100, 84, 0.3);
  color: #765b53;
  font-size: 9px;
  background: transparent;
}
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 25px;
  max-width: calc(100% - 36px);
  padding: 12px 17px;
  border-radius: 99px;
  color: white;
  font-size: 11px;
  background: rgba(52, 48, 44, 0.9);
  box-shadow: 0 8px 22px rgba(52, 48, 44, 0.17);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* States + motion */
body.is-open {
  height: auto;
  overflow-y: auto;
  overscroll-behavior: auto;
  touch-action: auto;
}
.is-open .envelope-intro {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.is-open .intro-copy {
  opacity: 0;
  transform: translateY(-25px);
}
.is-open .open-invitation,
.is-open .intro-hint {
  opacity: 0;
}
.is-open .envelope {
  transform: translateY(80px) scale(0.84);
}
.is-open .envelope-flap {
  z-index: 0;
  transform: rotateX(178deg);
}
.is-open .wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
}
.is-open .letter-preview {
  transform: translateY(-145px);
}
.is-open .envelope-shadow {
  opacity: 0;
  transform: scale(0.6);
}
.is-open .invitation {
  opacity: 1;
  transform: none;
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes shine {
  0%,
  52% {
    transform: translateX(-100px) rotate(25deg);
  }
  74%,
  100% {
    transform: translateX(420px) rotate(25deg);
  }
}
@keyframes scroll-line {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.25;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}
@media (min-width: 560px) {
  body {
    background: #e7e4df;
  }
  .invitation {
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 0 45px rgba(62, 53, 47, 0.1);
  }
  .envelope-intro {
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 0 45px rgba(62, 53, 47, 0.14);
  }
  /* A phone-sized card should not expand with a tall desktop viewport. */
  .opening-photo {
    min-height: 720px;
  }
  .hero {
    min-height: 740px;
  }
  .hero .eyebrow {
    margin-top: 88px;
  }
  .section-shell {
    padding-right: 38px;
    padding-left: 38px;
  }
  .photo-slider {
    width: calc(100% + 76px);
    margin-right: -38px;
    margin-left: -38px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .gallery-nav {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button-shine,
  .scroll-cue b {
    animation: none;
  }
  .envelope-intro,
  .envelope,
  .envelope-flap,
  .letter-preview,
  .wax-seal,
  .envelope-shadow,
  .invitation,
  .reveal {
    transition-duration: 0.01ms !important;
  }
}
