:root {
  --night: #050607;
  --ink: #111312;
  --espresso: #171917;
  --wine: #626a5a;
  --wine-dark: #0d100e;
  --chartreuse: #aaa37e;
  --chartreuse-soft: rgba(170, 163, 126, 0.14);
  --candle: #d6c79e;
  --glass-dark: rgba(7, 9, 9, 0.62);
  --glass-light: rgba(255, 250, 241, 0.48);
  --moss: #687260;
  --rose: #92806f;
  --blue: #7b8583;
  --paper: #f2ede4;
  --ivory: #fff9ee;
  --muted: #62645e;
  --line: rgba(17, 19, 18, 0.18);
  --line-light: rgba(255, 250, 241, 0.24);
  --shadow: 0 28px 78px rgba(11, 9, 7, 0.28);
  --page-pad: 5rem;
  --script: "Parisienne", "Brush Script MT", cursive;
  --ease-editorial: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Familjen Grotesk", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.intro-active {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--wine);
  color: var(--ivory);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--wine), rgba(129, 123, 103, 0.78));
}

.entry-scene {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--night);
  color: var(--ivory);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 780ms ease, visibility 780ms ease;
}

.entry-scene.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.85fr;
  gap: 0.55rem;
  padding: 0.55rem;
  opacity: 0.78;
}

.entry-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.88), rgba(7, 7, 6, 0.36), rgba(7, 7, 6, 0.88)),
    linear-gradient(180deg, rgba(7, 7, 6, 0.18), rgba(7, 7, 6, 0.88));
}

.entry-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.9) contrast(1.06);
  animation: entryDrift 12s ease-in-out infinite alternate;
}

.entry-gallery img:nth-child(2) {
  animation-delay: -2s;
}

.entry-gallery img:nth-child(3) {
  animation-delay: -4s;
}

.skip-intro {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.08);
  color: var(--ivory);
  padding: 0.65rem 1rem;
  backdrop-filter: blur(18px);
}

.entry-lockup {
  position: relative;
  z-index: 1;
  width: min(68rem, calc(100% - 2rem));
  padding: 2rem;
  text-align: center;
}

.entry-lockup h1,
.section-heading h2,
.proposal-copy h2,
.gift-copy h2,
.rsvp-copy h2,
.opening-spread h2,
.details-lede h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

.entry-lockup h1 {
  margin: 0.35rem auto 1rem;
  max-width: 58rem;
  font-family: var(--script);
  font-size: 8.7rem;
  font-weight: 400;
  line-height: 0.88;
}

.entry-lockup h1 span {
  display: inline;
  font-family: inherit;
  font-size: 0.42em;
  font-style: normal;
  font-weight: 400;
  line-height: inherit;
}

.entry-lockup p {
  margin: 0.35rem 0;
}

.entry-command {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  color: rgba(255, 250, 241, 0.82);
}

.page-shell {
  min-height: 100vh;
  background: var(--paper);
}

.site-header {
  display: none;
}

.nav-wrap {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--page-pad);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-seal {
  position: relative;
  display: block;
  width: 3.65rem;
  height: 3.65rem;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--chartreuse-soft), transparent 54%),
    rgba(255, 250, 241, 0.2);
  box-shadow: inset 0 0 0 5px rgba(21, 19, 15, 0.04);
}

.brand-seal::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(21, 19, 15, 0.3);
  border-radius: 50%;
}

.brand-letter,
.brand-amp {
  position: absolute;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1;
}

.brand-letter {
  font-size: 1.45rem;
}

.brand-letter-e {
  top: 0.86rem;
  left: 0.72rem;
}

.brand-letter-g {
  right: 0.66rem;
  bottom: 0.78rem;
}

.brand-amp {
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--chartreuse);
  font-size: 1.05rem;
  font-style: italic;
}

.brand-wordmark {
  display: grid;
  gap: 0.05rem;
  line-height: 1;
}

.brand-wordmark span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.brand-wordmark small {
  color: rgba(21, 19, 15, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: rgba(21, 19, 15, 0.78);
  font-size: 0.95rem;
}

.site-nav a {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  position: absolute;
  width: 1.05rem;
  height: 1px;
  background: var(--ink);
  transition: transform 220ms ease;
}

.nav-toggle span:last-child {
  transform: translateY(0.35rem);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(42deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-42deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(8rem, 1fr) auto;
  align-content: stretch;
  overflow: hidden;
  isolation: isolate;
  padding: 5.25rem var(--page-pad) 3rem;
  background: var(--night);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 50%, rgba(170, 163, 126, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.82), rgba(5, 6, 7, 0.44) 46%, rgba(5, 6, 7, 0.58)),
    url("assets/engagement/after-dark.jpg") center / cover;
  filter: blur(12px) grayscale(1) contrast(1.06);
  opacity: 0.42;
  transform: scale(1.04);
}

.cover-meta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 250, 241, 0.78);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(7, 7, 6, 0.48);
}

.cover-meta span:nth-child(n + 2) {
  color: rgba(255, 250, 241, 0.78);
}

.cover-meta span:nth-child(2) {
  color: var(--chartreuse);
}

.hero-photo {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: none;
  transition: none;
}

body.site-entered .hero-photo-main {
  animation: coverImageSettle 1200ms var(--ease-editorial) both;
}

body.site-entered .hero-photo-secondary {
  animation: coverCardSlide 1400ms var(--ease-editorial) 140ms both;
}

body.site-entered .hero-date {
  animation: dateSlip 1150ms var(--ease-editorial) 260ms both;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: grayscale(1) contrast(1.04) brightness(0.86);
}

.hero-photo-main {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.hero-photo-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.88) 0%, rgba(5, 6, 7, 0.62) 36%, rgba(5, 6, 7, 0.22) 72%, rgba(5, 6, 7, 0.52) 100%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.08), rgba(5, 6, 7, 0.7));
  pointer-events: none;
}

.hero-photo-secondary {
  display: none;
  right: clamp(21rem, 28vw, 36rem);
  bottom: 2.4rem;
  width: 18rem;
  height: 24rem;
  filter: grayscale(1);
  opacity: 0.94;
}

.hero-title {
  position: relative;
  z-index: 4;
  align-self: end;
  margin-top: 0;
  color: var(--ivory);
  font-family: var(--script);
  font-size: 8.8rem;
  font-weight: 400;
  line-height: 0.84;
  pointer-events: none;
  text-shadow: 0 4px 36px rgba(7, 7, 6, 0.52);
}

.hero-title span {
  display: block;
}

.hero-title span:last-child {
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.82em;
  font-weight: 400;
  line-height: 0.9;
  margin-top: -0.02em;
  text-shadow: 0 2px 28px rgba(7, 7, 6, 0.45);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(30rem, 100%);
  margin-top: 2rem;
  color: rgba(255, 250, 241, 0.88);
  text-shadow: 0 2px 18px rgba(7, 7, 6, 0.58);
}

.hero-copy p {
  margin: 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  border: 1px solid rgba(255, 249, 238, 0.22);
  background: rgba(104, 114, 96, 0.72);
  color: var(--ivory);
}

.button-secondary {
  border: 1px solid rgba(255, 249, 238, 0.34);
  background: rgba(255, 249, 238, 0.08);
  color: var(--ivory);
}

.hero-date {
  position: absolute;
  right: 4rem;
  bottom: 3rem;
  z-index: 4;
  width: 24rem;
  border-top: 1px solid rgba(129, 123, 103, 0.48);
  border-bottom: 1px solid rgba(129, 123, 103, 0.3);
  padding: 1rem 0;
  color: rgba(255, 250, 241, 0.78);
}

.hero-date span {
  display: block;
}

.hero-date strong {
  display: block;
  color: var(--chartreuse);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.4rem;
  line-height: 0.9;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--wine);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.entry-scene .eyebrow,
.hero .eyebrow,
.proposal-section .eyebrow,
.schedule-section .eyebrow,
.gift-section .eyebrow,
.rsvp-section .eyebrow {
  color: var(--chartreuse);
}

.marquee-section {
  overflow: hidden;
  border-top: 1px solid rgba(214, 199, 158, 0.2);
  border-bottom: 1px solid rgba(214, 199, 158, 0.18);
  background:
    linear-gradient(100deg, #050607 0%, #111513 48%, #222b25 100%);
  color: var(--ivory);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  padding: 1rem 0;
  white-space: nowrap;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.countdown-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    linear-gradient(135deg, #050607 0%, #101312 48%, #1f2821 100%);
  color: var(--ivory);
}

.countdown-strip div {
  min-height: 8rem;
  display: grid;
  place-items: center;
  align-content: center;
  border-right: 1px solid var(--line-light);
  padding: 1rem;
}

.countdown-strip div:last-child {
  border-right: 0;
}

.count-num {
  display: block;
  color: #bdb38a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 1;
}

.count-label {
  display: block;
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.85rem;
}

.storylude {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 0.78fr);
  gap: 4.5rem;
  align-items: center;
  min-height: 88svh;
  padding: 7rem var(--page-pad);
  background:
    linear-gradient(135deg, rgba(104, 114, 96, 0.13), transparent 44%),
    linear-gradient(180deg, #f4e8d7, #eee0cd);
}

.storylude::before {
  content: "";
  position: absolute;
  top: 3rem;
  left: var(--page-pad);
  right: var(--page-pad);
  height: 1px;
  background: rgba(104, 114, 96, 0.22);
  pointer-events: none;
}

.storylude-copy {
  max-width: 46rem;
}

.storylude-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 5rem;
  line-height: 0.92;
}

.storylude-copy p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.storylude-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 19, 18, 0.16);
}

.storylude-photo img {
  width: 100%;
  height: min(62svh, 42rem);
  object-fit: cover;
  object-position: center;
  transform: translateY(var(--scroll-shift, 0px)) scale(1.04);
  transform-origin: center;
  filter: saturate(0.88) contrast(1.02);
}

.opening-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.74fr) minmax(0, 0.9fr);
  min-height: 78svh;
  gap: 5rem;
  align-items: center;
  padding: 7rem var(--page-pad);
  background:
    linear-gradient(90deg, rgba(104, 114, 96, 0.08), transparent 42%),
    var(--paper);
}

.opening-copy {
  border-left: 2px solid rgba(129, 123, 103, 0.64);
  padding-left: 1.2rem;
}

.opening-photo,
.proposal-image,
.gift-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  --wipe-color: var(--paper);
}

.proposal-image,
.schedule-photo,
.gift-image {
  --wipe-color: var(--night);
}

.opening-photo::after,
.proposal-image::after,
.schedule-photo::after,
.gift-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--wipe-color);
  transform: translate3d(0, 0, 0);
  transition: transform 1450ms var(--ease-editorial);
  pointer-events: none;
}

.opening-photo.is-visible::after,
.proposal-image.is-visible::after,
.schedule-photo.is-visible::after,
.gift-image.is-visible::after {
  transform: translate3d(0, -102%, 0);
}

.opening-photo img {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(var(--scroll-shift, 0px)) scale(1.06);
  transform-origin: center;
  will-change: transform;
}

.opening-photo .story-photo-frame:not(:first-child) {
  display: none;
}

.opening-spread[data-story-lock] {
  --story-photo-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(24rem, 0.88fr);
  min-height: 285svh;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
  padding: clamp(4rem, 7svh, 6rem) var(--page-pad) 16svh;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(104, 114, 96, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(242, 237, 228, 0.95), rgba(232, 221, 203, 0.96)),
    var(--paper);
}

.opening-spread[data-story-lock] .opening-photo {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: clamp(1.5rem, 4svh, 3rem);
  z-index: 4;
  display: grid;
  width: 100%;
  height: min(var(--story-photo-height, 86svh), calc(100svh - clamp(3rem, 8svh, 5.5rem)));
  min-height: clamp(28rem, 50svh, 42rem);
  place-items: center;
  margin: 0 auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.opening-spread[data-story-lock] .opening-photo.reveal,
.opening-spread[data-story-lock] .opening-photo.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.opening-spread[data-story-lock] .opening-photo::after {
  display: none;
}

.opening-spread[data-story-lock] .opening-photo .story-photo-frame {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(17, 19, 18, 0.18);
  opacity: 0;
  transform: none;
  transition: opacity 520ms var(--ease-editorial);
  will-change: auto;
}

.opening-spread[data-story-lock] .opening-photo .story-photo-frame.is-active {
  opacity: 1;
}

.opening-spread[data-story-lock] .story-copy-track {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: grid;
  width: min(44rem, 100%);
  gap: 18svh;
  margin: 0;
  padding-top: var(--story-track-offset, 0px);
  padding-bottom: 18svh;
}

.opening-spread[data-story-lock] .story-panel {
  display: flex;
  min-height: 64svh;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  transform: none;
  opacity: var(--story-panel-opacity, 0);
  transition: opacity 260ms linear;
}

.opening-spread[data-story-lock] .story-panel.reveal,
.opening-spread[data-story-lock] .story-panel.reveal.is-visible {
  transform: none;
  opacity: var(--story-panel-opacity, 0);
}

.opening-spread[data-story-lock] h2 {
  max-width: 42rem;
  font-size: clamp(3.6rem, 5.6vw, 5.2rem);
}

.opening-spread h2 {
  max-width: 56rem;
  margin: 0;
  font-size: 5.2rem;
  line-height: 0.9;
}

.opening-spread p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.opening-spread.newspaper-story {
  min-height: 360svh;
  display: block;
  padding: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 18% 12%, rgba(170, 163, 126, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(104, 114, 96, 0.22), transparent 42%),
    linear-gradient(180deg, #eee4d4, #d9ccb7 58%, #121310);
}

.newspaper-stage {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5svh, 4rem) var(--page-pad);
  perspective: 1400px;
}

.newspaper-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(17, 19, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 18, 0.035) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  opacity: 0.38;
  pointer-events: none;
}

.newspaper-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 7, 0.72));
  pointer-events: none;
}

.newspaper-intro {
  position: absolute;
  top: clamp(1.5rem, 4svh, 3rem);
  left: var(--page-pad);
  z-index: 6;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: rgba(17, 19, 18, 0.68);
}

.newspaper-intro .eyebrow {
  margin: 0;
  color: var(--wine-dark);
}

.newspaper-intro span {
  font-size: 0.92rem;
  font-weight: 700;
}

.newspaper-desk {
  position: relative;
  z-index: 2;
  width: min(70rem, calc(100vw - (var(--page-pad) * 2)));
  height: min(76svh, 52rem);
}

.opening-spread.newspaper-story[data-story-lock] .newspaper-page {
  --paper-opacity: 0;
  --paper-fall-y: -70vh;
  --paper-scale: 0.94;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(38rem, 48vw);
  max-height: min(76svh, 50rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.65rem, 1.5svh, 1rem);
  border: 1px solid rgba(17, 19, 18, 0.22);
  border-radius: 4px;
  padding: clamp(0.8rem, 1.7vw, 1.15rem);
  background:
    linear-gradient(90deg, rgba(17, 19, 18, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(17, 19, 18, 0.04) 1px, transparent 1px),
    #f8f0e1;
  background-size: 2rem 2rem;
  color: var(--ink);
  box-shadow:
    0 2rem 5rem rgba(21, 19, 15, 0.26),
    inset 0 0 0 0.5rem rgba(255, 250, 241, 0.45);
  opacity: var(--paper-opacity);
  transform:
    translate(-50%, -50%)
    translate(var(--settle-x, 0), var(--settle-y, 0))
    translateY(var(--paper-fall-y))
    rotate(var(--tilt, 0deg))
    scale(var(--paper-scale));
  transform-origin: center;
  transition: opacity 180ms linear;
  will-change: opacity, transform;
}

.opening-spread.newspaper-story[data-story-lock] .newspaper-page.is-active {
  z-index: 60;
}

.newspaper-page.is-settled {
  filter: saturate(0.72) contrast(0.96);
}

.newspaper-masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  border-bottom: 1px solid rgba(17, 19, 18, 0.22);
  padding-bottom: 0.45rem;
}

.newspaper-masthead span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 0.9;
}

.newspaper-masthead small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.newspaper-page figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 18, 0.16);
  border-radius: 3px;
  background: var(--ink);
}

.newspaper-page img {
  width: 100%;
  height: clamp(12rem, 29svh, 19rem);
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) contrast(1.02) saturate(0.85);
}

.newspaper-page figcaption {
  border-top: 1px solid rgba(255, 250, 241, 0.2);
  padding: 0.35rem 0.55rem;
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.newspaper-copy {
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid rgba(17, 19, 18, 0.18);
  padding-top: 0.65rem;
}

.newspaper-copy .eyebrow {
  margin: 0;
  color: var(--wine-dark);
}

.opening-spread.newspaper-story[data-story-lock] .newspaper-page h2 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.1vw, 3.65rem);
  line-height: 0.88;
}

.opening-spread.newspaper-story[data-story-lock] .newspaper-page p:not(.eyebrow) {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.38;
}

.section {
  position: relative;
  padding: 7rem var(--page-pad);
}

[data-section]::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--page-pad);
  right: var(--page-pad);
  z-index: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.12;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1100ms var(--ease-editorial);
  pointer-events: none;
}

[data-section].section-live::before {
  transform: scaleX(1);
}

[data-section]::after {
  display: none;
}

[data-section].section-live::after {
  display: none;
}

.gallery-strip::after {
  display: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(11rem, 0.28fr) minmax(0, 0.72fr);
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  margin-bottom: 4rem;
}

.section-heading h2 {
  margin: 0;
  max-width: 54rem;
  font-size: 4.8rem;
  line-height: 0.92;
  text-wrap: balance;
}

.story-section {
  background:
    linear-gradient(135deg, rgba(129, 123, 103, 0.08), transparent 42%),
    #f7ecdc;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.58fr);
  gap: 5rem;
}

.story-copy {
  max-width: 50rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.35rem;
  line-height: 1.12;
}

.story-copy p {
  margin: 0 0 1.5rem;
}

.story-moments {
  display: grid;
  gap: 1.2rem;
}

.moment {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.moment span {
  color: var(--wine);
  font-weight: 700;
}

.moment h3 {
  margin: 0.35rem 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  line-height: 1;
}

.moment p {
  margin: 0;
  color: var(--muted);
}

.proposal-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 0.7fr);
  gap: 5rem;
  align-items: end;
  min-height: 86svh;
  padding: 7rem var(--page-pad);
  background: var(--night);
  color: var(--ivory);
}

.proposal-image img {
  width: 100%;
  max-height: 50rem;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(1) contrast(1.05);
  transform: translateY(var(--scroll-shift, 0px)) scale(1.06);
  transform-origin: center;
  will-change: transform;
}

.proposal-copy {
  padding-bottom: 2rem;
}

.proposal-copy h2 {
  margin: 0;
  font-size: 5.6rem;
  line-height: 0.9;
}

.proposal-copy p:not(.eyebrow) {
  color: rgba(255, 250, 241, 0.78);
  font-size: 1.08rem;
}

.schedule-section {
  min-height: 380svh;
  padding: 0 var(--page-pad);
  overflow: visible;
  background: var(--night);
  color: var(--ivory);
}

.schedule-pin {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(1.35rem, 3svh, 2.4rem) 0;
  overflow: hidden;
}

.schedule-section .section-heading {
  grid-template-columns: minmax(8rem, 0.18fr) minmax(0, 0.62fr);
  gap: clamp(1rem, 2vw, 2rem);
  border-color: var(--line-light);
  margin-bottom: clamp(1rem, 2.2svh, 1.8rem);
  padding-top: 0.9rem;
}

.schedule-section .section-heading h2 {
  max-width: 48rem;
  font-size: clamp(2.5rem, 4.2vw, 4.25rem);
  line-height: 0.94;
}

.schedule-board {
  display: grid;
  grid-template-columns: minmax(16rem, 0.5fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
  height: calc(100svh - clamp(11rem, 24svh, 16rem));
  min-height: clamp(28rem, 58svh, 40rem);
  overflow: hidden;
}

.schedule-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.schedule-photo img {
  width: 100%;
  height: min(56svh, 35rem);
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(1) contrast(1.04);
  transform: translateY(var(--scroll-shift, 0px)) scale(1.06);
  transform-origin: center;
  will-change: transform;
}

.schedule-list {
  max-width: 78rem;
  transform: translate3d(0, var(--schedule-list-y, 0px), 0);
  will-change: transform;
}

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 3rem;
  border: 1px solid rgba(255, 250, 241, 0.1);
  border-radius: 8px;
  padding: 1.35rem 1.1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 250, 241, 0.035);
  opacity: 0.45;
  transition:
    opacity 520ms var(--ease-editorial),
    transform 520ms var(--ease-editorial),
    padding-left 520ms var(--ease-editorial),
    border-color 520ms var(--ease-editorial);
}

.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-item::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: -1.15rem;
  width: 3px;
  border-radius: 999px;
  background: var(--chartreuse);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: center;
  transition: opacity 520ms var(--ease-editorial), transform 520ms var(--ease-editorial);
}

.schedule-item.is-active {
  opacity: 1;
  border-color: rgba(129, 123, 103, 0.38);
  padding-left: 0.7rem;
}

.schedule-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.schedule-item.is-active time {
  color: var(--chartreuse);
  text-shadow: 0 0 18px rgba(129, 123, 103, 0.16);
}

.schedule-item time {
  color: rgba(170, 163, 126, 0.42);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.3rem;
  font-weight: 600;
  line-height: 0.95;
}

.schedule-item h3 {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.65rem;
  line-height: 1;
}

.schedule-item p {
  max-width: 42rem;
  margin: 0;
  color: rgba(255, 250, 241, 0.72);
}

.gallery-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.9fr 1.15fr;
  gap: 0.75rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, #070808, #111312 54%, #050607),
    var(--night);
}

.gallery-strip img {
  --gallery-gray: 0;
  width: 100%;
  height: 28rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  filter: grayscale(var(--gallery-gray)) contrast(1.04);
}

.gallery-strip img:nth-child(even) {
  --gallery-gray: 1;
}

.details-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.86fr);
  gap: 5rem;
  background:
    linear-gradient(135deg, rgba(104, 114, 96, 0.08), transparent 46%),
    #efe4d4;
}

.details-lede {
  position: sticky;
  top: 7rem;
}

.details-lede h2 {
  margin: 0;
  font-size: 5rem;
  line-height: 0.9;
}

.details-grid {
  display: grid;
  gap: 1.8rem;
}

.detail-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgba(255, 250, 241, 0.42);
  box-shadow: 0 18px 48px rgba(17, 19, 18, 0.08);
}

.detail-block h3 {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.detail-block p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.detail-block a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  border-bottom: 2px solid var(--wine);
  font-weight: 700;
}

.faq-section {
  background:
    linear-gradient(90deg, rgba(129, 123, 103, 0.08), transparent 38%),
    #f7ecdc;
}

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

.faq-card {
  min-height: 15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  background: rgba(255, 250, 241, 0.58);
  box-shadow: 0 16px 42px rgba(17, 19, 18, 0.08);
}

.faq-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

.gift-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(18rem, 0.58fr);
  gap: 4rem;
  align-items: center;
  padding: 7rem var(--page-pad);
  background:
    linear-gradient(135deg, #0d100e, #171917 62%, #11140f);
  color: var(--ivory);
}

.gift-image img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border-radius: 8px;
  transform: translateY(var(--scroll-shift, 0px)) scale(1.05);
  transform-origin: center;
  will-change: transform;
}

.gift-copy h2 {
  margin: 0;
  font-size: 4.6rem;
  line-height: 0.95;
}

.gift-copy p:not(.eyebrow) {
  color: rgba(255, 250, 241, 0.74);
}

.rsvp-section {
  background:
    linear-gradient(135deg, var(--night), #0d100e 58%, #11140f);
  color: var(--ivory);
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.62fr) minmax(20rem, 0.7fr);
  gap: 5rem;
  align-items: start;
}

.rsvp-copy {
  position: sticky;
  top: 7rem;
}

.rsvp-copy h2 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.9;
}

.rsvp-copy p {
  color: rgba(255, 250, 241, 0.78);
}

.rsvp-notes {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 250, 241, 0.7);
}

.rsvp-notes li {
  border-top: 1px solid var(--line-light);
  padding-top: 0.55rem;
}

.rsvp-form {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.15rem;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 1.5rem;
  background: rgba(255, 250, 241, 0.07);
  transform-origin: center;
  transition: transform 680ms var(--ease-editorial), border-color 680ms var(--ease-editorial), background 680ms var(--ease-editorial);
}

.rsvp-form.is-sent {
  border-color: rgba(129, 123, 103, 0.56);
  background: rgba(129, 123, 103, 0.06);
  transform: rotate(-0.35deg);
}

.rsvp-stamp {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 4;
  width: 7.5rem;
  height: 7.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px solid var(--chartreuse);
  border-radius: 50%;
  color: var(--chartreuse);
  font-family: "Cormorant Garamond", Georgia, serif;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-14deg) scale(1.65);
  pointer-events: none;
}

.rsvp-stamp::before,
.rsvp-stamp::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.rsvp-stamp::after {
  inset: 0.82rem;
  opacity: 0.42;
}

.rsvp-stamp span {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.rsvp-stamp small {
  font-family: "Familjen Grotesk", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.rsvp-form.is-sent .rsvp-stamp {
  animation: stampPress 760ms var(--ease-editorial) both;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

label {
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.optional {
  color: rgba(255, 250, 241, 0.5);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  outline: none;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(129, 123, 103, 0.16);
}

.form-submit {
  width: 100%;
}

.form-message {
  border-radius: 6px;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.08);
}

.form-message.success {
  border: 1px solid rgba(129, 123, 103, 0.46);
}

.form-message.error {
  border: 1px solid rgba(216, 101, 101, 0.72);
}

.form-message.muted {
  border: 1px solid var(--line-light);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--page-pad);
  background: var(--night);
  color: rgba(255, 250, 241, 0.64);
  border-top: 1px solid var(--line-light);
}

.site-footer p {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
}

.site-footer span {
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(0.97);
  transition:
    opacity 1120ms var(--ease-editorial),
    transform 1120ms var(--ease-editorial);
  will-change: opacity, transform;
}

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

.hero-title.reveal {
  transform: translate3d(-1.5rem, 2.6rem, 0) scale(0.96);
}

.hero-title.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.opening-photo.reveal,
.proposal-image.reveal,
.schedule-photo.reveal,
.gift-image.reveal {
  transform: translate3d(0, 5rem, 0) scale(0.94);
  transition-duration: 1280ms;
}

.opening-photo.reveal.is-visible,
.proposal-image.reveal.is-visible,
.schedule-photo.reveal.is-visible,
.gift-image.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.opening-copy.reveal,
.proposal-copy.reveal,
.rsvp-copy.reveal {
  transform: translate3d(2rem, 0, 0);
}

.opening-copy.reveal.is-visible,
.proposal-copy.reveal.is-visible,
.rsvp-copy.reveal.is-visible {
  transform: translate3d(0, 0, 0);
}

.story-copy.reveal {
  transform: translate3d(0, 1.5rem, 0) scale(0.985);
}

.story-copy.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.moment.reveal,
.detail-block.reveal,
.faq-card.reveal,
.rsvp-form.reveal {
  transform: translate3d(0, 2.2rem, 0) scale(0.985);
}

.moment.reveal.is-visible,
.detail-block.reveal.is-visible,
.faq-card.reveal.is-visible,
.rsvp-form.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.schedule-item.reveal {
  transform: translate3d(2.8rem, 0, 0);
}

.schedule-item.reveal.is-visible {
  transform: translate3d(0, 0, 0);
}

.schedule-section .schedule-item.reveal.is-visible {
  opacity: 0.42;
}

.schedule-section .schedule-item.reveal.is-visible.is-active {
  opacity: 1;
}

.gallery-strip img.reveal {
  filter: grayscale(var(--gallery-gray)) contrast(1.04);
  transform: translate3d(0, 4rem, 0) scale(0.93);
  transition-duration: 1240ms;
}

.gallery-strip img.reveal.is-visible {
  filter: grayscale(var(--gallery-gray)) contrast(1.04);
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 240ms;
}

.reveal-delay-3 {
  transition-delay: 360ms;
}

.reveal-delay-4 {
  transition-delay: 480ms;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes coverImageSettle {
  from {
    opacity: 0;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coverImageLift {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0) scale(1.03);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes coverCardSlide {
  from {
    opacity: 0;
    transform: translate3d(-2rem, 2.4rem, 0) rotate(-2deg) scale(0.96);
  }

  to {
    opacity: 0.94;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes dateSlip {
  from {
    opacity: 0;
    transform: translate3d(0, 2rem, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes stampPress {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scale(1.65);
  }

  42% {
    opacity: 1;
    transform: rotate(-9deg) scale(0.82);
  }

  62% {
    transform: rotate(-9deg) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}

@keyframes entryDrift {
  from {
    transform: scale(1.02) translateY(0);
  }

  to {
    transform: scale(1.08) translateY(-1.5rem);
  }
}

@keyframes stampPressResponsive {
  0% {
    opacity: 0;
    transform: rotate(-14deg) scale(1.08);
  }

  42% {
    opacity: 1;
    transform: rotate(-9deg) scale(0.86);
  }

  62% {
    transform: rotate(-9deg) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}

@media (max-width: 1240px) {
  :root {
    --page-pad: 3rem;
  }

  .hero-title,
  .entry-lockup h1 {
    font-size: 7.2rem;
  }

  .hero-photo-main {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-photo-secondary {
    display: none;
  }

  .opening-spread h2,
  .storylude-copy h2,
  .section-heading h2,
  .details-lede h2,
  .rsvp-copy h2,
  .gift-copy h2 {
    font-size: 3.8rem;
  }

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

@media (max-width: 1100px) {
  .hero {
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(8rem, 1fr) auto auto auto;
    align-content: stretch;
    padding: 5.25rem var(--page-pad) 2rem;
    background: var(--night);
  }

  .hero::before {
    opacity: 0.28;
  }

  .cover-meta {
    color: rgba(255, 250, 241, 0.74);
    font-size: 0.9rem;
  }

  .cover-meta span:nth-child(2) {
    display: none;
  }

  .hero-photo-main {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 1;
  }

  body.site-entered .hero-photo-main {
    animation-name: coverImageLift;
  }

  .hero-photo-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 6, 0.1), rgba(7, 7, 6, 0.9));
  }

  .hero-photo-secondary {
    display: none;
  }

  .hero-title {
    align-self: end;
    margin-top: 0;
    color: var(--ivory);
    font-size: 5.5rem;
  }

  .hero-title span:last-child {
    color: var(--ivory);
    font-size: 0.82em;
  }

  .hero-copy {
    width: min(34rem, 100%);
    margin-top: 1.2rem;
    color: rgba(255, 250, 241, 0.88);
  }

  .button-primary {
    border-color: rgba(255, 249, 238, 0.22);
    background: rgba(104, 114, 96, 0.72);
    color: var(--ivory);
  }

  .button-secondary {
    border-color: var(--line-light);
    background: rgba(255, 249, 238, 0.08);
    color: var(--ivory);
  }

  .hero-date {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(38rem, 100%);
    margin-top: 1.5rem;
  }
}

@media (max-width: 920px) {
  :root {
    --page-pad: 1.25rem;
  }

  .nav-wrap {
    min-height: 4.15rem;
  }

  .brand-wordmark {
    display: none;
  }

  .brand-seal {
    width: 3.45rem;
    height: 3.45rem;
  }

  .brand-letter {
    font-size: 1.35rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: var(--page-pad);
    display: none;
    width: min(20rem, calc(100vw - 2.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(246, 240, 230, 0.96);
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    border-radius: 6px;
    padding: 0.7rem 0.8rem;
  }

  .nav-cta {
    border-radius: 6px;
  }

  .entry-gallery {
    grid-template-columns: 1fr;
  }

  .entry-gallery img:nth-child(1),
  .entry-gallery img:nth-child(3) {
    display: none;
  }

  .entry-lockup h1 {
    font-size: 5rem;
  }

  .entry-lockup h1 span {
    font-size: 0.42em;
  }

  .hero {
    min-height: 100svh;
    padding-top: 5.25rem;
  }

  .hero-title {
    margin-top: 0;
    font-size: 5.5rem;
  }

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

  .countdown-strip div:nth-child(2) {
    border-right: 0;
  }

  .countdown-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }

  .opening-spread,
  .storylude,
  .story-layout,
  .proposal-section,
  .schedule-board,
  .details-section,
  .gift-section,
  .rsvp-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .opening-spread,
  .storylude,
  .section,
  .proposal-section,
  .gift-section {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
  }

  .opening-spread {
    align-items: start;
    gap: 2rem;
  }

  .opening-spread[data-story-lock] {
    display: block;
    min-height: 315svh;
    padding: 0 var(--page-pad) 18svh;
    background:
      linear-gradient(180deg, rgba(242, 237, 228, 0.94), rgba(232, 221, 203, 0.96)),
      var(--paper);
  }

  .opening-spread[data-story-lock] .opening-photo {
    position: sticky;
    top: 0;
    display: grid;
    width: 100%;
    height: var(--story-photo-height, 100svh);
    min-height: 42svh;
    margin: 0;
  }

  .opening-spread[data-story-lock] .story-copy-track {
    width: 100%;
    gap: 14svh;
    margin-top: 1.25rem;
    padding-top: var(--story-track-offset, 0px);
    padding-bottom: 12svh;
  }

  .opening-spread[data-story-lock] .story-panel {
    display: block;
    min-height: 52svh;
  }

  .opening-spread[data-story-lock] h2 {
    max-width: 38rem;
    font-size: 2.85rem;
    line-height: 0.98;
  }

  .opening-spread.newspaper-story[data-story-lock] {
    min-height: 340svh;
    padding: 0;
    background:
      radial-gradient(circle at 50% 8%, rgba(170, 163, 126, 0.18), transparent 18rem),
      linear-gradient(180deg, #eee4d4, #d9ccb7 64%, #121310);
  }

  .newspaper-stage {
    min-height: 100svh;
    padding: clamp(2.5rem, 6svh, 4rem) var(--page-pad);
  }

  .newspaper-intro {
    top: clamp(1rem, 3svh, 1.8rem);
    left: var(--page-pad);
    right: var(--page-pad);
    justify-content: space-between;
  }

  .newspaper-desk {
    width: 100%;
    height: min(78svh, 43rem);
  }

  .opening-spread.newspaper-story[data-story-lock] .newspaper-page {
    width: min(27rem, calc(100vw - 2.5rem));
    max-height: min(76svh, 42rem);
    padding: 0.9rem;
  }

  .opening-spread.newspaper-story[data-story-lock] .newspaper-page h2 {
    font-size: clamp(2rem, 8vw, 2.9rem);
    line-height: 0.9;
  }

  .storylude {
    min-height: auto;
    align-items: start;
    gap: 2rem;
  }

  .storylude-photo img {
    height: clamp(23rem, 52svh, 31rem);
  }

  .opening-photo img {
    width: 100%;
    height: clamp(23rem, 52svh, 31rem);
    max-height: none;
    object-position: center 58%;
  }

  .opening-spread h2,
  .storylude-copy h2,
  .section-heading h2,
  .proposal-copy h2,
  .details-lede h2,
  .gift-copy h2,
  .rsvp-copy h2 {
    font-size: 2.85rem;
    line-height: 0.98;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .story-copy {
    font-size: 1.85rem;
  }

  .opening-copy.reveal,
  .proposal-copy.reveal,
  .rsvp-copy.reveal,
  .schedule-item.reveal {
    transform: translate3d(0, 1.35rem, 0) scale(0.985);
  }

  .opening-copy.reveal.is-visible,
  .proposal-copy.reveal.is-visible,
  .rsvp-copy.reveal.is-visible,
  .schedule-item.reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .rsvp-stamp {
    transform: rotate(-14deg) scale(1);
  }

  .rsvp-form.is-sent .rsvp-stamp {
    animation-name: stampPressResponsive;
  }

  .schedule-photo,
  .details-lede,
  .rsvp-copy {
    position: static;
  }

  .schedule-section {
    min-height: auto;
    padding: 4.75rem var(--page-pad);
  }

  .schedule-pin {
    position: static;
    display: block;
    min-height: auto;
    padding: 0;
    overflow: visible;
  }

  .opening-photo::after,
  .proposal-image::after,
  .schedule-photo::after,
  .gift-image::after {
    display: none;
  }

  .opening-photo.reveal,
  .proposal-image.reveal,
  .schedule-photo.reveal,
  .gift-image.reveal {
    transform: translate3d(0, 1.6rem, 0) scale(0.985);
    transition-duration: 780ms;
  }

  .opening-photo.reveal.is-visible,
  .proposal-image.reveal.is-visible,
  .schedule-photo.reveal.is-visible,
  .gift-image.reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .opening-photo img,
  .proposal-image img,
  .schedule-photo img,
  .gift-image img {
    transform: none;
    will-change: auto;
  }

  .schedule-board {
    gap: 1.6rem;
    overflow: visible;
  }

  .schedule-list {
    transform: none !important;
    will-change: auto;
  }

  .schedule-photo img {
    max-height: 24rem;
  }

  .schedule-item {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
  }

  .schedule-item.is-active {
    padding-left: 1rem;
  }

  .schedule-item time {
    font-size: 2rem;
  }

  .schedule-item h3 {
    font-size: 1.85rem;
    line-height: 1.02;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-strip img {
    height: 18rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.98rem;
  }

  .skip-intro {
    top: 1rem;
    right: 1rem;
  }

  .entry-lockup {
    padding: 1rem;
  }

  .entry-lockup h1 {
    font-size: 3.9rem;
  }

  .entry-lockup h1 span {
    font-size: 0.42em;
  }

  .cover-meta {
    display: none;
  }

  .hero {
    position: relative;
    min-height: auto;
    display: block;
    padding: 0 var(--page-pad) 2.4rem;
    background: var(--night);
  }

  .hero::before {
    display: none;
  }

  .hero-photo-main {
    position: relative;
    inset: auto;
    width: calc(100% + (var(--page-pad) * 2));
    height: auto;
    min-height: 0;
    margin: 0 calc(var(--page-pad) * -1);
    border-radius: 0 0 8px 8px;
    background: var(--night);
  }

  .hero-photo-main::after {
    display: none;
  }

  .hero-photo-main img {
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(1) contrast(1.04) brightness(1.08);
  }

  .hero-title {
    position: absolute;
    top: max(1.1rem, env(safe-area-inset-top));
    left: var(--page-pad);
    z-index: 5;
    width: min(13rem, calc(100% - (var(--page-pad) * 2)));
    margin: 0;
    font-size: 2.55rem;
    line-height: 0.84;
    text-shadow: 0 2px 22px rgba(5, 6, 7, 0.74);
  }

  .hero-title span:last-child {
    font-size: 0.8em;
    margin-top: -0.06em;
  }

  .hero-copy {
    width: 100%;
    margin-top: 1.35rem;
    color: rgba(255, 249, 238, 0.78);
    text-shadow: none;
  }

  .hero-copy p {
    max-width: 23rem;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .hero-actions,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .button {
    width: 100%;
    min-height: 2.72rem;
    padding: 0.62rem 0.78rem;
    font-size: 0.94rem;
  }

  .hero-date {
    display: none;
  }

  .hero-date span:first-child {
    align-self: end;
  }

  .hero-date strong {
    font-size: 2.5rem;
  }

  .hero-date span:last-child {
    grid-column: 1 / -1;
    font-size: 0.9rem;
  }

  .marquee-track span {
    font-size: 1.45rem;
  }

  .countdown-strip div {
    min-height: 6.2rem;
  }

  .count-num {
    font-size: 2.4rem;
  }

  .opening-spread {
    gap: 1.75rem;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .opening-spread[data-story-lock] {
    --story-photo-height: 100svh;
    display: block;
    min-height: 315svh;
    padding: 0 var(--page-pad) 18svh;
    overflow: visible;
    background:
      linear-gradient(180deg, rgba(242, 237, 228, 0.94), rgba(232, 221, 203, 0.96)),
      var(--paper);
  }

  .opening-spread[data-story-lock] .opening-photo {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    width: 100%;
    height: var(--story-photo-height);
    min-height: 42svh;
    place-items: center;
    margin: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .opening-spread[data-story-lock] .opening-photo .story-photo-frame {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(17, 19, 18, 0.18);
    opacity: 0;
    transform: none;
    transition: opacity 520ms var(--ease-editorial);
    will-change: auto;
  }

  .opening-spread[data-story-lock] .opening-photo .story-photo-frame.is-active {
    opacity: 1;
  }

  .opening-spread[data-story-lock] .story-copy-track {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14svh;
    margin-top: 1.25rem;
    padding-top: var(--story-track-offset, 0px);
    padding-bottom: 12svh;
  }

  .opening-spread[data-story-lock] .story-panel {
    min-height: 52svh;
    margin: 0;
    transform: none;
    opacity: var(--story-panel-opacity, 0);
    transition: opacity 260ms linear;
  }

  .opening-spread[data-story-lock] .story-panel.reveal,
  .opening-spread[data-story-lock] .story-panel.reveal.is-visible {
    transform: none;
    opacity: var(--story-panel-opacity, 0);
  }

  .storylude {
    min-height: 100svh;
    padding-top: clamp(2.6rem, 7svh, 4rem);
    padding-bottom: clamp(2.6rem, 7svh, 4rem);
  }

  .storylude-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .storylude-photo img {
    height: clamp(17rem, 37svh, 22rem);
  }

  .opening-photo img {
    height: clamp(16rem, 38svh, 21rem);
  }

  .opening-spread h2,
  .storylude-copy h2,
  .section-heading h2,
  .proposal-copy h2,
  .details-lede h2,
  .gift-copy h2,
  .rsvp-copy h2 {
    font-size: 2.28rem;
    line-height: 1.02;
  }

  .opening-spread[data-story-lock] h2 {
    font-size: 2.28rem;
    line-height: 1.02;
  }

  .opening-spread.newspaper-story[data-story-lock] {
    min-height: 340svh;
    padding: 0;
  }

  .newspaper-stage {
    padding: 2.8rem var(--page-pad) 2rem;
  }

  .newspaper-intro {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .newspaper-intro span {
    max-width: 10rem;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: right;
  }

  .newspaper-desk {
    height: min(78svh, 40rem);
  }

  .opening-spread.newspaper-story[data-story-lock] .newspaper-page {
    width: min(22.5rem, calc(100vw - 1.6rem));
    max-height: 74svh;
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .newspaper-masthead {
    gap: 0.55rem;
  }

  .newspaper-masthead span {
    font-size: 1.22rem;
  }

  .newspaper-masthead small,
  .newspaper-page figcaption {
    font-size: 0.62rem;
  }

  .newspaper-page img {
    height: clamp(10rem, 25svh, 14rem);
  }

  .opening-spread.newspaper-story[data-story-lock] .newspaper-page h2 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 0.92;
  }

  .opening-spread.newspaper-story[data-story-lock] .newspaper-page p:not(.eyebrow) {
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .schedule-section .section-heading {
    margin-bottom: 1.35rem;
  }

  .schedule-section .section-heading h2 {
    max-width: 20rem;
    font-size: 1.88rem;
    line-height: 1.06;
  }

  .proposal-section {
    min-height: 0;
  }

  .proposal-image img {
    max-height: 32rem;
  }

  .schedule-photo img {
    height: clamp(16rem, 38svh, 19rem);
    max-height: none;
    object-position: center 50%;
  }

  .schedule-item {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.55rem;
    padding: 0.85rem 0.9rem;
  }

  .schedule-item.is-active {
    padding-left: 0.9rem;
  }

  .schedule-item time {
    font-size: 1.38rem;
    line-height: 1.04;
  }

  .schedule-item h3 {
    margin-bottom: 0.2rem;
    font-size: 1.36rem;
    line-height: 1.04;
  }

  .schedule-item p {
    font-size: 0.97rem;
    line-height: 1.45;
  }

  .detail-block h3 {
    font-size: 2.2rem;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-strip img {
    height: 24rem;
  }

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

  .faq-card {
    min-height: 0;
  }

  .rsvp-form {
    padding: 1rem;
  }

  .rsvp-stamp {
    top: 0.85rem;
    right: 0.85rem;
    width: 6rem;
    height: 6rem;
    transform: rotate(-14deg) scale(1);
  }

  .rsvp-stamp span {
    font-size: 1.12rem;
  }

  .rsvp-form.is-sent .rsvp-stamp {
    animation-name: stampPressMobile;
  }

  .opening-copy.reveal,
  .proposal-copy.reveal,
  .rsvp-copy.reveal,
  .schedule-item.reveal {
    transform: translate3d(0, 1.35rem, 0) scale(0.985);
  }

  .opening-copy.reveal.is-visible,
  .proposal-copy.reveal.is-visible,
  .rsvp-copy.reveal.is-visible,
  .schedule-item.reveal.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .site-footer {
    display: grid;
  }

  @keyframes stampPressMobile {
    0% {
      opacity: 0;
      transform: rotate(-14deg) scale(1.08);
    }

    42% {
      opacity: 1;
      transform: rotate(-9deg) scale(0.86);
    }

    62% {
      transform: rotate(-9deg) scale(1.04);
    }

    100% {
      opacity: 1;
      transform: rotate(-9deg) scale(1);
    }
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 3.15rem;
  }

  .entry-lockup h1 {
    font-size: 3.3rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0);
  }

  .opening-spread[data-story-lock] {
    display: grid;
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .opening-spread[data-story-lock] .opening-photo {
    position: relative;
    height: auto;
    min-height: 0;
  }

  .opening-spread[data-story-lock] .opening-photo .story-photo-frame {
    position: relative;
    opacity: 1;
  }

  .opening-spread[data-story-lock] .opening-photo .story-photo-frame:not(:first-child) {
    display: none;
  }

  .opening-spread[data-story-lock] .story-copy-track {
    padding-top: 0;
  }

  .opening-spread[data-story-lock] .story-panel,
  .opening-spread[data-story-lock] .story-panel.reveal,
  .opening-spread[data-story-lock] .story-panel.reveal.is-visible {
    min-height: 0;
    opacity: 1;
  }

  .opening-spread.newspaper-story[data-story-lock] {
    display: block;
    min-height: auto;
    padding: 5rem var(--page-pad);
  }

  .newspaper-stage {
    position: relative;
    min-height: auto;
    overflow: visible;
    padding: 0;
  }

  .newspaper-stage::after {
    display: none;
  }

  .newspaper-intro {
    position: relative;
    inset: auto;
    margin-bottom: 1.5rem;
  }

  .newspaper-desk {
    display: grid;
    width: 100%;
    height: auto;
    gap: 1rem;
  }

  .opening-spread.newspaper-story[data-story-lock] .newspaper-page {
    position: relative;
    top: auto;
    left: auto;
    width: min(38rem, 100%);
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .schedule-section {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .schedule-pin {
    position: static;
    min-height: auto;
    padding: 0;
    overflow: visible;
  }

  .schedule-list {
    transform: none !important;
  }
}
