@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic-Latin.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 300 700;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 700;
}

:root {
  --canvas: 430px;
  --ink: #2b1d17;
  --muted: #70594c;
  --line: #d8ccbe;
  --paper: #f5eee5;
  --paper-deep: #eee3d5;
  --coffee: #2d1c16;
  --coffee-soft: #49342a;
  --sand: #cfad8d;
  --sand-light: #f1dfca;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 62px;
  background: var(--paper);
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked,
body.is-modal-open {
  overflow: hidden;
}

body.is-locked {
  background: #170e0b;
}

.desktop-stage {
  display: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a7794c;
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.kicker {
  margin: 0;
  color: #926a49;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.kicker.light {
  color: var(--sand-light);
}

.invitation {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: clip;
  background: var(--paper);
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity .42s ease-out, transform .42s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  html.motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  html.motion-ready .couple-feature > img {
    transform: scale(1.055);
    transition: transform 1.25s cubic-bezier(.22, 1, .36, 1);
  }

  html.motion-ready .couple-feature.is-visible > img {
    transform: scale(1);
  }
}

.content-section {
  padding: 56px 28px;
}

.welcome-section {
  padding-bottom: 28px;
}

.story-section {
  padding-top: 32px;
}

section[id] {
  scroll-margin-top: 62px;
}

/* Entry */
.passcode-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #f8f2e9;
  min-height: 100svh;
  min-height: 100dvh;
  background-color: #170e0b;
  background: radial-gradient(circle at 50% 8%, #624535, #2c1b16 47%, #170e0b);
  transition: opacity .32s ease, visibility .32s ease;
}

.passcode-screen.is-unlocked {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.passcode-panel {
  width: min(100%, var(--canvas));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 36px;
  text-align: center;
  border-inline: 1px solid rgba(242, 224, 204, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 42%);
}

.passcode-logo {
  width: 58px;
  margin: 0 auto 32px;
  opacity: .9;
}

.passcode-panel h1 {
  max-width: 330px;
  margin: 14px auto 0;
  font-family: var(--display);
  font-size: clamp(40px, 12vw, 54px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .93;
}

.passcode-panel h1 span {
  color: var(--sand-light);
  font-style: italic;
}

.passcode-instruction {
  max-width: 264px;
  margin: 18px auto 34px;
  color: #d2c0af;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.35;
}

.passcode-form {
  width: 100%;
}

.passcode-form label {
  display: block;
  margin: 0 0 10px;
  color: #c7a78a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.passcode-input-wrap {
  position: relative;
}

.passcode-form input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(238, 220, 196, .4);
  border-radius: 0;
  color: #fff7ec;
  outline: 0;
  background: rgba(255, 255, 255, .06);
  caret-color: var(--sand-light);
  font-size: 19px;
  letter-spacing: .55em;
  text-align: center;
}

.passcode-form input::placeholder {
  color: #a38570;
}

.passcode-form input:focus {
  border-color: #f0d6bb;
}

.passcode-progress {
  position: absolute;
  left: 50%;
  bottom: -14px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.passcode-progress i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}

.passcode-progress i.is-filled {
  background: #f0d6bb;
}

.passcode-status {
  min-height: 18px;
  margin: 28px 0 0;
  color: #baa597;
  font-size: 11px;
}

.passcode-form.has-error {
  animation: shake .32s ease;
}

.passcode-form.has-error .passcode-status {
  color: #f0b4a7;
}

.passcode-form.is-checking .passcode-status {
  color: #f0d6bb;
}

@keyframes shake {
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

/* Header */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(69, 47, 34, .10);
  background: rgba(245, 238, 229, .94);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.brand-mark img {
  width: 33px;
  height: auto;
  filter: sepia(.2) saturate(.82) brightness(.58) contrast(1.08);
  opacity: .94;
}

.chapter-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(7px, 2.2vw, 16px);
}

.chapter-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  color: #806b5c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .24s ease;
}

.chapter-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  opacity: 0;
  background: #a26f49;
  transform: scaleX(.35);
  transition: opacity .24s ease, transform .24s ease;
}

.chapter-nav a.is-active,
.chapter-nav a:hover {
  color: #3b281f;
}

.chapter-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.music-control {
  justify-self: end;
  width: 32px;
  height: 32px;
  border: 0;
  color: #6f503d;
  background: transparent;
  font-family: var(--display);
  font-size: 21px;
}

.music-control.is-playing {
  color: #a16d44;
}

.site-header {
  transition: background .28s ease, border-color .28s ease, color .28s ease, backdrop-filter .28s ease;
}

.invitation.is-cover .site-header {
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(31, 19, 14, .52), rgba(31, 19, 14, 0));
  backdrop-filter: none;
}

.invitation.is-cover .chapter-nav a,
.invitation.is-cover .music-control {
  color: rgba(250, 239, 226, .88);
}

.invitation.is-cover .brand-mark img {
  filter: sepia(.18) saturate(.9) brightness(1.5) contrast(.94);
}

.invitation.is-cover .chapter-nav a.is-active,
.invitation.is-cover .chapter-nav a:hover,
.invitation.is-cover .music-control.is-playing {
  color: #efd1ae;
}

.invitation.is-cover .chapter-nav a.is-active::after {
  background: #efd1ae;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  margin-top: -62px;
  padding: 98px 28px 36px;
  color: #fffaf2;
  background: var(--coffee);
}

.hero-section > img,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section > img {
  object-fit: cover;
  object-position: 63% 30%;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 13, 10, .58), rgba(24, 13, 10, .18) 72%),
    linear-gradient(180deg, rgba(24, 13, 10, .08), rgba(24, 13, 10, .12) 38%, rgba(24, 13, 10, .88) 100%);
}

.hero-content {
  width: 100%;
  max-width: 300px;
}

.hero-content h1 {
  max-width: 360px;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(60px, 17.5vw, 74px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .72;
}

.hero-content h1 i {
  display: block;
  margin: 7px 0;
  color: var(--sand-light);
  font-size: .55em;
  font-weight: 400;
}

.hero-date {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 32px;
}

.hero-date strong {
  display: grid;
  min-width: 60px;
  place-items: center;
  padding-right: 13px;
  border-right: 1px solid rgba(255, 250, 242, .48);
  font-family: var(--display);
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
}

.hero-date span {
  display: grid;
  align-content: center;
  padding-left: 13px;
  color: rgba(255, 250, 242, .84);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-venue {
  margin: 17px 0 18px;
  color: rgba(255, 250, 242, .78);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.28;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8cfb2;
  color: #f3d8b7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Editorial sections */
.welcome-section h2,
.rsvp-section h2,
.story-section h2,
.closing-section h2 {
  margin: 12px 0 18px;
  color: #2a1c16;
  font-family: var(--display);
  font-size: 47px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .89;
}

.welcome-section > p:not(.kicker),
.rsvp-lead {
  max-width: 326px;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.4;
}

.couple-feature {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 3 / 4;
  margin-top: 32px;
  overflow: hidden;
  color: #fff7ed;
  background: #21140f;
}

.couple-feature > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.couple-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 36%, rgba(23, 13, 9, .12) 50%, rgba(23, 13, 9, .87) 100%);
}

.family-list {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  left: 22px;
  margin: 0;
  border-top: 1px solid rgba(255, 244, 231, .46);
}

.family-list article {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 244, 231, .28);
}

.family-list span {
  display: block;
  margin-bottom: 3px;
  color: #ead2b5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.family-list strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(21px, 6.4vw, 24px);
  font-weight: 500;
  line-height: 1.08;
}

.details-section {
  position: relative;
  color: #fff9f0;
  background:
    linear-gradient(180deg, rgba(22, 13, 10, .34), rgba(22, 13, 10, .78)),
    url("photos/zax-4005.webp") center center / cover no-repeat;
  background-color: var(--coffee);
  isolation: isolate;
}

.details-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 15, 11, .32), rgba(24, 15, 11, .72));
}

.details-section h2 {
  margin: 13px 0 0;
  color: #fff8ef;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .78;
}

.details-section h2 em {
  color: #e9caa8;
  font-size: .76em;
  font-weight: 400;
}

.countdown {
  min-height: 17px;
  margin: 26px 0 28px;
  color: #dec4ad;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.schedule-list {
  border-top: 1px solid rgba(245, 230, 213, .25);
}

.schedule-list article {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 10px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(245, 230, 213, .25);
}

.schedule-list > article > span {
  padding-top: 3px;
  color: #f0cdab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.schedule-list strong {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.schedule-list p {
  margin: 6px 0 0;
  color: #d6c1b0;
  font-size: 12px;
}

.venue-block {
  padding-top: 36px;
}

.venue-block h3 {
  margin: 10px 0 9px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: .98;
}

.venue-block > p:last-child {
  margin: 0;
  color: #e1c8b2;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.35;
}

.action-stack {
  display: grid;
  gap: 10px;
  margin-top: 29px;
}

.button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  border-color: #ead1b4;
  color: #2b1c16;
  background: #ead1b4;
}

.button.secondary {
  color: #ebd6be;
  background: transparent;
}

.rsvp-section {
  background: var(--paper-deep);
}

.rsvp-lead {
  margin: 0 0 27px;
}

.rsvp-lead strong {
  color: var(--ink);
  font-weight: 500;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}

.full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
}

.field > span,
.field legend {
  margin: 0;
  padding: 0;
  color: #886749;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.field small {
  color: #988b81;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #baafa4;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.25;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #916842;
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.attendance-field {
  gap: 16px;
}

.attendance-field legend {
  margin-bottom: 16px;
}

.attendance-options button {
  min-height: 56px;
  padding: 11px 9px;
  border: 1px solid #baafa4;
  color: #715e52;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.25;
}

.attendance-options button.is-selected {
  border-color: #2b1c16;
  color: #fff9f0;
  background: #2b1c16;
}

.submit-button {
  width: 100%;
  border-color: #2b1c16;
  color: #fff9f0;
  background: #2b1c16;
}

.form-note {
  margin: -12px 0 0;
  color: #82746a;
  font-size: 10px;
  line-height: 1.45;
}

.gift-entry {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 31px;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: #5b4130;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.story-section {
  background: var(--paper);
}

.story-list {
  display: grid;
  gap: 16px;
  margin-top: 31px;
}

.story-entry {
  display: grid;
  grid-template-columns: 125px 1fr;
  height: 204px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f9f6f0;
}

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

.story-entry:nth-child(1) img {
  object-position: 48% center;
}

.story-entry:nth-child(2) img {
  object-position: 50% 25%;
}

.story-entry:nth-child(3) img {
  object-position: center;
}

.story-entry > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 14px;
}

.story-entry time {
  color: #9b704d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.story-entry h3 {
  margin: 7px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: .92;
}

.story-entry p {
  margin: 11px 0 0;
  color: #74665d;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.29;
}

.closing-section {
  position: relative;
  min-height: max(570px, calc(100dvh - 58px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  isolation: isolate;
  padding: 42px 28px 28px;
  color: #fffaf2;
  background: #1b100c;
  text-align: center;
}

.closing-section > img,
.closing-scrim {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-section > img {
  object-fit: cover;
  object-position: center 24%;
  filter: blur(.45px) brightness(.92) saturate(.88);
  transform: scale(1.06);
}

.closing-scrim {
  z-index: -1;
  background: linear-gradient(180deg, rgba(25, 14, 10, .08), rgba(25, 14, 10, .22) 50%, rgba(25, 14, 10, .58) 100%);
}

.closing-content,
.page-footer {
  position: relative;
  z-index: 1;
}

.closing-content {
  width: min(100%, 340px);
  margin-top: auto;
}

.closing-section h2 {
  margin: 12px 0 15px;
  color: #fffaf2;
  font-family: var(--display);
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .88;
}

.closing-content > p:not(.kicker) {
  margin: 0;
  color: #eed0ae;
  font-family: var(--display);
  font-size: 30px;
  font-style: italic;
}

.closing-section i {
  padding: 0 3px;
  font-size: .7em;
}

.page-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 213, 185, .26);
  color: #f0d4b7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
}

.page-footer img {
  width: 34px;
  opacity: .92;
}

/* Gift modal */
.gift-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  align-items: end;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(25, 15, 10, .53);
  transition: opacity .2s ease, visibility .2s ease;
}

.gift-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.gift-dialog {
  position: relative;
  width: min(100%, var(--canvas));
  max-height: 82dvh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 38px 28px 31px;
  color: #fff9f0;
  background: #2b1c16;
}

.gift-close {
  position: absolute;
  top: 10px;
  right: 17px;
  width: 38px;
  height: 38px;
  border: 0;
  color: #f0d4b7;
  background: transparent;
  font-family: var(--display);
  font-size: 31px;
}

.gift-dialog h2 {
  margin: 13px 0 14px;
  font-family: var(--display);
  font-size: 37px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}

.gift-dialog > p:not(.kicker) {
  margin: 0 0 24px;
  color: #cfb7a1;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.35;
}

.bank-list {
  border-top: 1px solid rgba(245, 228, 209, .22);
}

.bank-list article {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 228, 209, .22);
}

.bank-list article > div {
  display: grid;
  gap: 2px;
}

.bank-list small {
  color: #e7c39f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.bank-list strong {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.bank-list span {
  color: #c5ad99;
  font-size: 12px;
  letter-spacing: .05em;
}

.bank-list button {
  padding: 7px 9px;
  border: 1px solid rgba(245, 228, 209, .35);
  color: #f0d4b7;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.copy-helper {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

/* Responsive */
@media (min-width: 481px) {
  .passcode-panel {
    min-height: min(812px, 100dvh);
    box-shadow: 0 0 0 1px rgba(241, 222, 200, .15), 0 28px 70px rgba(24, 13, 10, .28);
  }
}

@media (min-width: 720px) {
  .desktop-stage {
    position: fixed;
    z-index: 0;
    inset: 0 calc(var(--canvas) + clamp(18px, 4vw, 76px)) 0 0;
    display: block;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(25, 16, 12, .44), rgba(25, 16, 12, .10)),
      url("photos/hero-expanded.png") 74% center / cover no-repeat;
  }

  .desktop-stage::before,
  .desktop-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .desktop-stage::before {
    border: 1px solid rgba(245, 229, 210, .18);
    transform: translate(28px, 28px);
  }

  .desktop-stage::after {
    background: linear-gradient(180deg, rgba(18, 11, 8, .06), rgba(18, 11, 8, .48));
  }

  .stage-wash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 84%, rgba(238, 211, 181, .22), transparent 28%);
  }

  .stage-signature {
    position: absolute;
    z-index: 1;
    bottom: clamp(34px, 7vh, 82px);
    left: clamp(32px, 8vw, 132px);
    display: grid;
    justify-items: start;
    gap: 8px;
    color: #f3dfc6;
  }

  .stage-signature::before {
    content: "";
    width: 62px;
    height: 1px;
    margin-bottom: 10px;
    background: rgba(243, 223, 198, .72);
  }

  .stage-signature img {
    width: clamp(72px, 8vw, 118px);
    filter: drop-shadow(0 8px 24px rgba(18, 11, 8, .22));
    opacity: .92;
  }

  .stage-signature span {
    font-family: var(--display);
    font-size: clamp(27px, 3.2vw, 43px);
    font-style: italic;
    line-height: .85;
  }

  .stage-signature small {
    color: rgba(243, 223, 198, .72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .stage-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(243, 223, 198, .58);
    color: #fff2e2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .22s ease, border-color .22s ease, transform .22s ease;
  }

  .stage-action span {
    font-family: inherit;
    font-size: 13px;
    font-style: normal;
    line-height: 1;
  }

  .stage-action:hover,
  .stage-action:focus-visible {
    border-color: #fff2e2;
    color: #fffaf2;
    transform: translateY(2px);
  }

  .invitation {
    width: min(var(--canvas), calc(100vw - 40px));
    min-height: 100dvh;
    margin: 0 clamp(18px, 4vw, 76px) 0 auto;
    box-shadow: 0 0 0 1px rgba(246, 235, 224, .22), 0 35px 110px rgba(28, 19, 14, .36);
  }

  .passcode-screen {
    place-items: stretch end;
    padding-right: clamp(18px, 4vw, 76px);
    background: linear-gradient(120deg, #221510 0%, #493227 53%, #1f130f 100%);
  }

  .passcode-panel {
    width: min(var(--canvas), calc(100vw - 40px));
    min-height: 100dvh;
    box-shadow: 0 0 0 1px rgba(241, 222, 200, .15), 0 28px 70px rgba(24, 13, 10, .28);
  }

  .hero-section,
  .welcome-section,
  .details-section,
  .rsvp-section,
  .story-section,
  .closing-section {
    min-height: calc(100svh - 58px);
  }

  .hero-section {
    min-height: 100svh;
    align-items: flex-end;
    margin-top: -58px;
    padding-top: 94px;
  }

  .site-header {
    transition: background .28s ease, border-color .28s ease, color .28s ease, backdrop-filter .28s ease;
  }

  .invitation.is-cover .site-header {
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(24, 13, 10, .46), rgba(24, 13, 10, 0));
    backdrop-filter: none;
  }

  .invitation.is-cover .brand-mark,
  .invitation.is-cover .chapter-nav a,
  .invitation.is-cover .music-control {
    color: rgba(255, 246, 235, .9);
  }

  .invitation.is-cover .brand-mark span,
  .invitation.is-cover .chapter-nav a.is-active,
  .invitation.is-cover .chapter-nav a:hover,
  .invitation.is-cover .music-control.is-playing {
    color: #f0d1af;
  }

  .invitation.is-cover .chapter-nav a.is-active::after {
    background: #f0d1af;
  }

  .welcome-section,
  .details-section,
  .rsvp-section {
    display: grid;
    align-content: center;
  }
}

/* Native responsive layout: retain the invitation's mobile language without a fixed phone frame. */
@media (min-width: 600px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header,
  .chapter-nav a {
    height: 64px;
    min-height: 64px;
  }

  .site-header {
    padding-inline: clamp(28px, 5vw, 72px);
  }

  .brand-mark img {
    width: 38px;
  }

  .chapter-nav a {
    font-size: 9px;
  }

  .content-section {
    padding: clamp(64px, 8vw, 86px) clamp(38px, 8vw, 92px);
  }

  .welcome-section {
    padding-bottom: 34px;
  }

  .story-section {
    padding-top: 36px;
  }

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

  .passcode-screen {
    place-items: center;
    padding: 0;
  }

  .passcode-panel {
    width: min(100%, 620px);
    min-height: 100dvh;
    box-shadow: none;
  }

  .hero-section,
  .welcome-section,
  .details-section,
  .rsvp-section,
  .story-section,
  .closing-section {
    min-height: auto;
  }

  .welcome-section,
  .details-section,
  .rsvp-section {
    display: block;
  }

  .hero-section {
    min-height: 100svh;
    margin-top: -64px;
    padding: 104px clamp(38px, 8vw, 92px) 58px;
  }

  .hero-content {
    max-width: 430px;
  }

  .hero-content h1 {
    font-size: clamp(76px, 10vw, 100px);
  }

  .welcome-section > .kicker,
  .welcome-section > h2,
  .welcome-section > p:not(.kicker),
  .welcome-section > .couple-feature,
  .details-section > *,
  .rsvp-section > * {
    width: min(100%, 720px);
  }

  .welcome-section > .kicker,
  .welcome-section > h2,
  .welcome-section > p:not(.kicker),
  .welcome-section > .couple-feature {
    width: min(100%, 620px);
    margin-right: 0;
    margin-left: 0;
  }

  .family-list {
    right: 28px;
    bottom: 26px;
    left: 28px;
  }

  .family-list article {
    padding-block: 12px;
  }

  .couple-feature {
    width: min(100%, 600px);
    aspect-ratio: 4 / 5;
  }

  .story-section > .kicker,
  .story-section > h2,
  .story-list {
    width: min(100%, 1000px);
    margin-right: auto;
    margin-left: auto;
  }

  .story-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
  }

  .story-entry {
    grid-template-columns: 39% 1fr;
    height: 228px;
  }

  .story-entry:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 18px) / 2);
    justify-self: center;
  }

  .story-entry > div {
    padding: 20px 18px;
  }

  .rsvp-form {
    gap: 30px 20px;
  }

  .closing-section {
    min-height: calc(100svh - 64px);
    padding: 58px clamp(38px, 8vw, 92px) 34px;
  }

  .closing-content {
    max-width: 440px;
  }

  .closing-section > img {
    object-fit: cover;
    object-position: center 47%;
    filter: brightness(.82) saturate(.86);
    transform: scale(1.012);
    transform-origin: center 64%;
  }

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

@media (min-width: 960px) {
  .closing-section > img {
    object-position: center 44%;
    transform: scale(1.018);
    transform-origin: center 64%;
  }
}

@media (min-width: 960px) {
  .site-header {
    padding-inline: clamp(56px, 9vw, 156px);
  }

  .chapter-nav {
    gap: clamp(18px, 2.4vw, 34px);
  }

  .content-section {
    padding: clamp(68px, 5vw, 84px) clamp(56px, 10vw, 176px);
  }

  .welcome-section {
    padding-bottom: 40px;
  }

  .story-section {
    padding-top: 42px;
  }

  .hero-section {
    padding-right: clamp(56px, 10vw, 176px);
    padding-left: clamp(56px, 10vw, 176px);
  }

  .hero-content {
    max-width: 510px;
  }

  .hero-content h1 {
    font-size: clamp(88px, 8.4vw, 124px);
  }

  .welcome-section > .kicker,
  .welcome-section > h2,
  .welcome-section > p:not(.kicker),
  .welcome-section > .couple-feature,
  .details-section > *,
  .rsvp-section > * {
    width: min(100%, 780px);
  }

  .welcome-section > .kicker,
  .welcome-section > h2,
  .welcome-section > p:not(.kicker),
  .welcome-section > .couple-feature {
    width: min(100%, 600px);
  }

  .story-section > .kicker,
  .story-section > h2,
  .story-list {
    width: min(100%, 1180px);
  }

  .story-entry {
    height: 246px;
  }

  .story-entry h3 {
    font-size: 29px;
  }

  .story-entry p {
    font-size: 17px;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  html {
    scroll-padding-top: 52px;
  }

  .site-header,
  .chapter-nav a {
    height: 52px;
    min-height: 52px;
  }

  .hero-section {
    min-height: 100svh;
    margin-top: -52px;
    padding-top: 76px;
    padding-bottom: 24px;
  }

  .hero-content h1 {
    font-size: clamp(52px, 8vw, 76px);
  }

  .hero-date {
    margin-top: 18px;
  }

  .hero-venue {
    margin: 10px 0 12px;
  }

  .content-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
}

@media (max-width: 375px) {
  .content-section {
    padding-inline: 22px;
  }

  .family-list {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .hero-section {
    padding-inline: 22px;
  }

  .hero-content h1 {
    font-size: 59px;
  }

  .chapter-nav {
    gap: 6px;
  }

  .chapter-nav a {
    font-size: 8px;
    letter-spacing: .045em;
  }

  .story-entry {
    grid-template-columns: 112px 1fr;
    height: 216px;
  }

  .story-entry > div {
    padding-inline: 12px;
  }

  .story-entry h3 {
    font-size: 25px;
  }

  .story-entry p {
    font-size: 14px;
  }

  .passcode-panel {
    padding-inline: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Final composition: concise entry, editorial desktop couple layout, and never-clipped story copy. */
.passcode-panel {
  min-height: 100svh;
  min-height: 100dvh;
  padding: clamp(34px, 6vh, 62px) clamp(28px, 6vw, 52px);
}

.passcode-logo {
  width: clamp(50px, 7vw, 66px);
  margin-bottom: clamp(18px, 3vh, 28px);
}

.passcode-panel h1 {
  max-width: none;
  margin-top: clamp(12px, 2vh, 20px);
  line-height: .94;
}

.passcode-panel h1 .welcome-line,
.passcode-panel h1 .guest-line {
  display: block;
}

.passcode-panel h1 .guest-line {
  margin-top: 4px;
}

.passcode-form {
  width: min(100%, 320px);
  margin-top: clamp(44px, 6vh, 64px);
}

.passcode-form label {
  margin-bottom: 16px;
}

.passcode-status {
  min-height: 0;
  margin-top: 14px;
}

.story-entry {
  height: auto;
  min-height: 204px;
}

.story-entry > div {
  min-width: 0;
}

.story-entry p {
  overflow-wrap: anywhere;
}

/* Hash links use the page's scroll padding once; adding both padding and per-section margin leaves headings too low. */
section[id] {
  scroll-margin-top: 0;
}

@media (min-width: 600px) {
  .passcode-panel {
    width: min(100%, 540px);
    min-height: 0;
  }

  .story-entry {
    height: auto;
    min-height: 228px;
  }
}

@media (min-width: 960px) {
  .welcome-section {
    --couple-column-gap: clamp(42px, 6vw, 104px);
    box-sizing: border-box;
    width: min(100%, 1520px);
    margin-right: auto;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
    column-gap: var(--couple-column-gap);
    align-items: start;
  }

  .welcome-section > .kicker,
  .welcome-section > h2,
  .welcome-section > p:not(.kicker) {
    grid-column: 2;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .welcome-section > .kicker { grid-row: 1; }
  .welcome-section > h2 { grid-row: 2; }
  .welcome-section > p:not(.kicker) { grid-row: 3; align-self: start; }

  .welcome-section > .couple-feature {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100%;
    min-height: clamp(560px, 45vw, 640px);
    margin: 0;
    aspect-ratio: auto;
    overflow: visible;
  }

  .couple-feature > img {
    height: 100%;
    object-position: center 52%;
  }

  .family-list {
    right: auto;
    top: clamp(244px, 21vw, 306px);
    bottom: auto;
    left: calc(100% + var(--couple-column-gap));
    width: 100%;
    border-color: var(--line);
    color: var(--ink);
  }

  .family-list article {
    border-color: var(--line);
  }

  .family-list span {
    color: #9b704d;
  }

  .family-list strong {
    color: #2a1c16;
  }

  .story-entry {
    height: auto;
    min-height: 246px;
  }
}

@media (max-width: 375px) {
  .story-entry {
    height: auto;
    min-height: 216px;
  }
}

/* Desktop entry: make the larger screen a composed arrival, not an enlarged phone form. */
.passcode-stage {
  display: none;
}

@media (min-width: 720px) {
  .passcode-screen {
    display: block;
    padding: 0;
    background: #21140f;
  }

  .passcode-stage {
    position: absolute;
    inset: 0 calc(var(--canvas) + clamp(18px, 4vw, 76px)) 0 0;
    display: block;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(25, 16, 12, .50), rgba(25, 16, 12, .12)),
      linear-gradient(180deg, rgba(18, 11, 8, .02), rgba(18, 11, 8, .48)),
      url("photos/hero-expanded.png") 74% center / cover no-repeat;
  }

  .passcode-stage::before {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(245, 229, 210, .18);
  }

  .passcode-stage-signature {
    position: absolute;
    bottom: clamp(34px, 7vh, 82px);
    left: clamp(32px, 8vw, 132px);
    display: grid;
    justify-items: start;
    gap: 8px;
    color: #f3dfc6;
  }

  .passcode-stage-signature::before {
    content: "";
    width: 62px;
    height: 1px;
    margin-bottom: 10px;
    background: rgba(243, 223, 198, .72);
  }

  .passcode-stage-signature img {
    width: clamp(72px, 8vw, 118px);
    filter: drop-shadow(0 8px 24px rgba(18, 11, 8, .22));
    opacity: .92;
  }

  .passcode-stage-signature span {
    font-family: var(--display);
    font-size: clamp(27px, 3.2vw, 43px);
    font-style: italic;
    line-height: .85;
  }

  .passcode-stage-signature small {
    color: rgba(243, 223, 198, .72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .passcode-panel {
    position: relative;
    z-index: 1;
    width: min(var(--canvas), calc(100vw - 40px));
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 clamp(18px, 4vw, 76px) 0 auto;
    box-shadow: 0 0 0 1px rgba(241, 222, 200, .15), 0 28px 70px rgba(24, 13, 10, .28);
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .passcode-stage-signature {
    display: none;
  }
}
