:root {
  --olive-950: #202319;
  --olive-900: #303522;
  --olive-800: #444c2d;
  --olive-700: #626b42;
  --olive-500: #879064;
  --sage: #b8bea1;
  --cream: #f7f3e9;
  --paper: #fbfaf6;
  --ink: #37382c;
  --muted: #777964;
  --gold: #b89a61;
  --line: rgba(98, 107, 66, 0.3);
  --shadow: 0 28px 80px rgba(20, 23, 14, 0.28);
  --script-font: "Great Vibes", "Edwardian Script ITC", "Lucia", "Allura", cursive;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  background: var(--olive-950);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--olive-950); overflow: hidden; }

body {
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(184, 154, 97, 0.12), transparent 25rem),
    radial-gradient(circle at 90% 80%, rgba(184, 190, 161, 0.1), transparent 24rem),
    var(--olive-950);
}

button, a, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.invitation-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  padding: max(0.55rem, env(safe-area-inset-top)) 1rem max(0.55rem, env(safe-area-inset-bottom));
  place-items: center;
}

.book-chrome, .book-navigation {
  width: min(100%, 30rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.book-chrome { position: relative; color: var(--sage); }

.page-progress {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--sage);
}

.progress-slash { margin: 0 0.35rem; color: var(--gold); }

.language-toggle { position: absolute; right: 3.15rem; display: flex; align-items: center; gap: 0.08rem; color: rgba(184, 190, 161, 0.7); font-size: 0.56rem; letter-spacing: 0.08em; }
.language-toggle button { border: 0; padding: 0.25rem 0.14rem; color: inherit; background: transparent; font-size: inherit; letter-spacing: inherit; }
.language-toggle button[aria-pressed="true"] { color: var(--gold); font-weight: 700; }

.icon-button, .nav-button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(184, 190, 161, 0.35);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(247, 243, 233, 0.08);
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover, .nav-button:hover { background: rgba(184, 154, 97, 0.25); transform: translateY(-2px); }
.icon-button:focus-visible, .nav-button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.book {
  position: relative;
  width: min(100%, 30rem);
  height: 100%;
  min-height: 0;
  perspective: 1800px;
}

.page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  border-radius: 1.1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform-origin: left center;
  transform: none;
  opacity: 0;
  transition: none;
  backface-visibility: hidden;
}

.page::before, .page::after {
  position: absolute;
  z-index: 3;
  width: 4rem;
  height: 4rem;
  content: "";
  border-color: rgba(98, 107, 66, 0.24);
  pointer-events: none;
}

.page::before { top: 1rem; left: 1rem; border-top: 1px solid; border-left: 1px solid; }
.page::after { right: 1rem; bottom: 1rem; border-right: 1px solid; border-bottom: 1px solid; }

.page.is-active {
  z-index: 5;
  visibility: visible;
  opacity: 1;
  transform: rotateY(0);
  transition-delay: 0s;
}

.page.is-leaving { z-index: 6; visibility: visible; opacity: 1; pointer-events: none; }
.book { overflow: hidden; border-radius: 1.1rem; box-shadow: var(--shadow); touch-action: pan-y; }

.page-inner {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.35rem, 5vw, 3rem) clamp(1.25rem, 6vw, 3.2rem);
  scrollbar-width: thin;
  scrollbar-color: var(--sage) transparent;
}

.page-inner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: url("assets/botanica-premium.png") center / auto 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.24;
  pointer-events: none;
}

.page-inner > * { position: relative; z-index: 1; flex-shrink: 0; }

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--olive-700);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -0.015em; }
h1 { margin-bottom: 0.5rem; color: var(--cream); font-size: clamp(2.8rem, 13vw, 5.5rem); line-height: 0.88; }
h1 em, .monogram span, .closing-mark span { color: var(--gold); }
h2 { max-width: 16rem; margin-bottom: 1.2rem; color: var(--olive-800); font-size: clamp(2.2rem, 9vw, 3.5rem); line-height: 0.95; }
h3 { margin-bottom: 0.5rem; color: var(--olive-800); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; line-height: 1; }

.body-copy, .quote, .location-block p, .guide-item p { max-width: 23rem; color: var(--muted); font-size: 0.82rem; line-height: 1.85; }
.body-copy { margin-bottom: 1.2rem; }
.eyebrow, .page-progress, .cover-date, .seal-hint, .quote-source, .date-weekday, .location-label, .location-note, .countdown-target, .countdown-item span, .swipe-hint {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}
.body-copy, .location-block p, .guide-item p, .small-note, .modal-note { font-family: "Libre Baskerville", Georgia, serif; }

.page-cover { color: var(--cream); background: var(--olive-800); }
.cover-photo-wrap, .cover-overlay { position: absolute; inset: 0; }
.cover-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; filter: saturate(0.76) contrast(0.95) brightness(0.8); }
.cover-overlay { background: linear-gradient(180deg, rgba(32, 35, 25, 0.32), rgba(32, 35, 25, 0.84) 75%); }
.cover-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 1.6rem 2rem; text-align: center; }
.cover-content .eyebrow { margin-bottom: 0.35rem; color: var(--sage); font-size: 0.74rem; letter-spacing: 0.22em; }
.monogram { margin-bottom: 0.8rem; color: var(--cream); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 10vw, 3.5rem); letter-spacing: 0.05em; }
.cover-title { width: 100%; max-width: 20rem; margin: 0.9rem auto 1.45rem; color: var(--cream); font-family: var(--script-font); font-size: clamp(3.25rem, 13vw, 5rem); font-style: normal; font-weight: 400; letter-spacing: -0.025em; line-height: 0.82; }
.cover-title span { font-family: var(--script-font); font-style: normal; font-weight: 400; letter-spacing: 0; font-kerning: normal; font-variant-ligatures: common-ligatures contextual; }
.cover-title em { display: inline-block; margin-inline: 0.24em 0.1em; color: var(--gold); font-family: "Parisienne", cursive; font-size: 0.88em; font-style: normal; font-weight: 400; letter-spacing: 0; transform: translateY(-0.02em); }
.cover-date { margin-bottom: 1.35rem; color: var(--sage); font-size: 0.84rem; letter-spacing: 0.14em; text-transform: none; }
.wax-seal-button { width: 6.4rem; aspect-ratio: 1.039; margin: 0; padding: 0; border: 0; background: transparent; transition: transform 220ms ease; }
.wax-seal-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wax-seal-button:hover { transform: translateY(-0.2rem) scale(1.03); }
.wax-seal-button:active { transform: translateY(0.1rem) scale(0.97); }
.seal-hint { margin: 0.58rem 0 0; color: var(--sage); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }

.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-size: 0.68rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.primary-button:hover, .secondary-button:hover, .text-button:hover { transform: translateY(-2px); }
.primary-button { border: 1px solid var(--olive-700); color: var(--cream); background: var(--olive-700); box-shadow: 0 10px 20px rgba(68, 76, 45, 0.22); }
.light-button { border-color: rgba(247, 243, 233, 0.5); color: var(--olive-900); background: var(--cream); }
.secondary-button, .text-button { border: 1px solid var(--olive-700); color: var(--olive-700); background: transparent; }
.secondary-link { width: 100%; }

.rule-mark, .location-separator { margin: 0.9rem 0 1.2rem; color: var(--gold); font-size: 1.5rem; }
.quote { margin-bottom: 0.45rem; color: var(--olive-800); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1.3; }
.quote-source { margin-bottom: 1.2rem; color: var(--gold); font-size: 0.7rem; letter-spacing: 0.08em; }
.image-frame { overflow: hidden; width: 100%; border: 0.4rem solid var(--cream); background: var(--sage); box-shadow: 0 8px 24px rgba(68, 76, 45, 0.16); }
.image-frame-small { max-width: 12rem; margin-bottom: 1.2rem; transform: rotate(-2deg); }
.image-frame img { display: block; width: 100%; height: auto; }
.intro-page { justify-content: center; padding-block: 1.2rem; }
.intro-page .eyebrow { margin-bottom: 0.35rem; }
.intro-page .rule-mark { margin: 0.25rem 0 0.55rem; font-size: 1.25rem; }
.intro-page h2 { max-width: 18rem; margin-bottom: 0.65rem; font-size: clamp(2rem, 8vw, 3.1rem); line-height: 0.9; }
.intro-page .quote { max-width: 19rem; margin-bottom: 0.25rem; font-size: 1.08rem; line-height: 1.35; }
.intro-page .quote-source { margin-bottom: 0.6rem; font-size: 0.68rem; }
.intro-page .body-copy { max-width: 19rem; margin-bottom: 0; font-size: 0.76rem; line-height: 1.55; }

.date-page { justify-content: center; }
.date-lockup { display: grid; grid-template-columns: auto auto auto; align-items: baseline; gap: 0.7rem; margin: 1.5rem 0 0.6rem; color: var(--olive-700); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.date-lockup span { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.5; }
.date-lockup strong { padding: 0; border: 0; color: var(--olive-700); font-family: inherit; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.5; }
.date-weekday { margin-bottom: 2rem; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.date-divider { width: 5rem; height: 1px; margin-bottom: 2rem; background: var(--gold); }
.location-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; color: var(--olive-700); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.location-icon { color: var(--gold); font-size: 1.4rem; }

.countdown-page { justify-content: flex-start; padding-top: 1.55rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 20rem; gap: 0.6rem; margin: 1.2rem 0; }
.countdown-item { padding: 0.7rem 0.4rem; border: 1px solid var(--line); background: rgba(184, 190, 161, 0.13); }
.countdown-item strong { display: block; color: var(--olive-800); font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; line-height: 1; }
.countdown-item span { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.countdown-target { margin-bottom: 1rem; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.16em; }
.signature { margin-bottom: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.7; }
.signature span { color: var(--olive-700); font-family: var(--script-font); font-size: 2rem; }
.signature-ampersand { display: inline-block; margin-inline: 0.24em 0.1em; font-family: "Parisienne", cursive; font-size: 0.88em; font-style: normal; font-weight: 400; }

.countdown-page .body-copy { margin-bottom: 0.7rem; line-height: 1.55; }
.countdown-page .countdown-grid { gap: 0.45rem; margin: 0.75rem 0; }
.countdown-page .countdown-target { margin-bottom: 0.5rem; }
.countdown-page .rule-mark { margin: 0.35rem 0 0.45rem; }

.locations-page { justify-content: center; }
.location-block { width: 100%; max-width: 19rem; }
.location-label { display: block; margin-bottom: 0.7rem; color: var(--gold); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }
.location-block p { margin-bottom: 0.8rem; font-size: 0.78rem; line-height: 1.65; }
.text-button { min-height: 2.2rem; padding: 0.55rem 0.9rem; font-size: 0.68rem; }
.location-separator { margin: 0.8rem 0; font-size: 1rem; }

.guide-page { justify-content: center; }
.guide-list { width: 100%; max-width: 20rem; margin: 1rem 0; text-align: left; }
.guide-item { display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; align-items: start; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.guide-item span { color: var(--gold); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; }
.guide-item p { margin: 0; font-size: 0.78rem; line-height: 1.65; }
.small-note { max-width: 19rem; color: var(--muted); font-size: 0.74rem; line-height: 1.6; }

.action-page { justify-content: center; }
.action-stack { display: grid; width: 100%; max-width: 19rem; gap: 0.65rem; margin: 1rem 0 1.1rem; }
.closing-mark { color: var(--olive-700); font-family: var(--script-font); font-size: 2.15rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
.closing-mark span { display: inline-block; margin-inline: 0.22em 0.1em; }
.closing-text { margin: 0; color: var(--olive-700); font-family: var(--script-font); font-size: 2rem; }
.action-page .action-stack + .closing-mark { margin-top: clamp(0.8rem, 3cqh, 1.8rem); margin-bottom: 0.75rem; }

.book-navigation { gap: 1rem; }
.page-dots { display: flex; flex: 1; justify-content: center; gap: 0.4rem; }
.page-dot { width: 0.42rem; height: 0.42rem; padding: 0; border: 0; border-radius: 50%; background: rgba(184, 190, 161, 0.35); }
.page-dot.is-active { background: var(--gold); transform: scale(1.25); }
.swipe-hint { margin: 0; color: rgba(184, 190, 161, 0.75); font-size: 0.62rem; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }

.modal { width: min(90vw, 25rem); border: 1px solid var(--line); border-radius: 1rem; padding: 2rem; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(20, 23, 14, 0.7); backdrop-filter: blur(4px); }
.modal h2 { font-size: 2.2rem; }
.modal-close { position: absolute; top: 0.7rem; right: 0.9rem; border: 0; color: var(--olive-700); background: transparent; font-size: 1.8rem; }
.modal form { display: grid; gap: 0.9rem; }
.modal label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.68rem; text-align: left; }
.modal label[hidden] { display: none; }
.modal button[hidden] { display: none; }
.modal input, .modal select { width: 100%; border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.75rem; color: var(--ink); background: white; }
.form-status { min-height: 1.2rem; margin: 0; color: var(--olive-700); font-family: "Libre Baskerville", Georgia, serif; font-size: 0.7rem; line-height: 1.5; text-align: center; }
.form-status.is-error { color: #8a4a42; }
.primary-button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.modal-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.6; }
.modal code { color: var(--olive-800); font-size: 0.65rem; }

.gift-illustration { flex-shrink: 0; width: 6rem; height: 6rem; margin-bottom: 1.5rem; color: var(--gold); }
.gifts-page { justify-content: safe center; }
.gifts-page h2 { max-width: 22rem; }
.gift-note { margin: 1rem 0 2rem; }
.page-dots { gap: 0.2rem; }
.page-dot { position: relative; width: 1.1rem; height: 2.5rem; background: transparent; }
.page-dot::after { content: ""; position: absolute; width: 0.42rem; height: 0.42rem; top: calc(50% - 0.21rem); left: calc(50% - 0.21rem); border-radius: 50%; background: rgba(184, 190, 161, 0.35); }
.page-dot.is-active { background: transparent; }
.page-dot.is-active::after { background: var(--gold); }

/* Keep the invitation's paper, olive and gold; let the composition fit the screen. */
.page-inner { justify-content: safe center; padding-block: clamp(1.5rem, 4vh, 3rem); }
.cover-content { overflow-y: auto; justify-content: safe center; }
.book { max-height: 54rem; }
.book-chrome, .book-navigation, .book { width: min(100%, 36rem); }
.invitation-shell { padding-inline: clamp(0.65rem, 3vw, 2.5rem); }
.body-copy, .location-block p, .guide-item p, .intro-page .body-copy { font-size: 0.86rem; }
.small-note { font-size: 0.78rem; }
.primary-button, .secondary-button { font-size: 0.8rem; min-height: 2.9rem; }
.language-toggle { font-size: 0.75rem; }
.language-toggle button { min-height: 2.5rem; padding-inline: 0.35rem; }

@media (min-width: 960px) {
  .invitation-shell { padding-block: clamp(0.75rem, 2vh, 1.5rem); gap: 0.75rem; }
  .book-chrome, .book-navigation, .book { width: min(100%, 72rem); }
  .page:not(.page-cover) .page-inner { padding-inline: clamp(3rem, 8vw, 8rem); }
  .page-inner::before { background-size: cover; opacity: 0.14; }
  .cover-content { width: 100%; padding-top: 2rem; }
  .cover-overlay { background: radial-gradient(ellipse at center, rgba(32, 35, 25, 0.66), rgba(32, 35, 25, 0.25)), linear-gradient(0deg, rgba(32, 35, 25, 0.4), transparent); }
  .cover-photo { object-position: center; }
  .cover-title { font-size: clamp(5rem, 6vw, 6.5rem); max-width: 29rem; }
  h2, .intro-page h2 { max-width: 38rem; font-size: clamp(3rem, 4vw, 4rem); line-height: 1; }
  .body-copy, .intro-page .body-copy, .location-block p, .guide-item p { font-size: 0.95rem; }
  .intro-page .eyebrow { margin-bottom: 0.8rem; }
  .intro-page h2 { margin-bottom: 1.5rem; }
  .intro-page .quote { max-width: 36rem; font-size: 1.4rem; line-height: 1.6; }
  .intro-page .quote-source { margin-block: 0.6rem 1.6rem; }
  .intro-page .body-copy { max-width: 32rem; line-height: 1.8; }
  .location-block, .guide-list, .action-stack { max-width: 26rem; }
  .countdown-grid { max-width: 27rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown-item strong { font-size: 2.8rem; }
  .swipe-hint { font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .page-inner { padding-inline: 1.5rem; }
  .cover-content { padding-top: 2rem; }
  .gift-illustration { width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; }
}

@media (max-height: 650px) {
  .invitation-shell { gap: 0.35rem; padding-block: 0.35rem; }
  .page-inner { padding-block: 1.5rem; }
  .cover-content { padding-block: 1.5rem; }
  .cover-title { margin-block: 0.5rem; }
  .wax-seal-button { width: 4.5rem; flex-shrink: 0; }
}

/* Size the composition from the actual paper height, including browser chrome. */
.book { container-type: size; }
.gifts-page h2 { max-width: 40rem; }
.gifts-page .body-copy { max-width: 34rem; }
.gift-note { max-width: 30rem; }

@media (min-width: 700px) {
  .locations-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; justify-items: center; column-gap: 2rem; row-gap: 1rem; }
  .locations-page > .eyebrow, .locations-page > h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .locations-page .location-separator { display: none; }
  .location-block { align-self: start; }
  .guide-list { max-width: 44rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .action-stack { max-width: 38rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-height: 560px) {
  .page-inner { padding-block: 1.2rem; gap: 0.65rem; }
  .page .page-inner > * { margin-block: 0; }
  .page-inner h2 { font-size: clamp(1.9rem, 8cqh, 3rem); max-width: 38rem; line-height: 1.02; }
  .page-inner .body-copy { line-height: 1.6; }
  .page-inner .quote { font-size: 1.15rem; line-height: 1.45; }
  .gift-illustration { width: 3rem; height: 3rem; }
  .page-inner .gift-note { margin-bottom: 0.3rem; }
  .date-lockup { margin-block: 0.5rem; }
  .date-divider { margin-block: 0.35rem; }
  .location-note { margin-top: 0; }
  .guide-item { padding-block: 0.5rem; }
  .guide-item p, .location-block p { line-height: 1.45; }
  .location-label { margin-bottom: 0.35rem; }
  .locations-page { row-gap: 0.65rem; }
  .countdown-page .countdown-grid { margin-block: 0; }
  .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown-item { padding-block: 0.45rem; }
  .signature { line-height: 1.35; }
  .cover-content { padding-block: 1.1rem; }
  .cover-title { font-size: clamp(3.4rem, 16cqh, 5rem); margin-block: 0.5rem 0.9rem; }
  .wax-seal-button { width: 4.5rem; }
  .action-page { gap: 0.4rem; }
  .action-page .action-stack { gap: 0.4rem; }
}

@container (max-height: 460px) {
  .page-inner { padding-block: 0.9rem; gap: 0.45rem; }
  .page-inner .eyebrow { font-size: 0.62rem; }
  .page-inner h2 { font-size: clamp(1.7rem, 7.5cqh, 2.5rem); }
  .page-inner .body-copy, .guide-item p, .location-block p { font-size: 0.78rem; line-height: 1.45; }
  .page-inner .quote { font-size: 1rem; line-height: 1.35; }
  .guide-item { padding-block: 0.35rem; gap: 0.4rem; }
  .guide-list { margin-block: 0; }
  .small-note { font-size: 0.7rem; line-height: 1.4; }
  .locations-page h3 { font-size: 1.3rem; }
  .location-block p { margin-bottom: 0.4rem; }
  .location-label { margin-bottom: 0.2rem; }
  .location-separator { margin-block: 0; }
  .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown-item strong { font-size: 2rem; }
  .countdown-item span { font-size: 0.6rem; letter-spacing: 0; }
  .gift-illustration { width: 2.5rem; height: 2.5rem; }
  .action-stack { gap: 0.4rem; }
  .action-stack .primary-button, .action-stack .secondary-button { min-height: 2.5rem; padding-block: 0.5rem; }
  .closing-mark, .closing-text { font-size: 1.7rem; }
}

@media (max-height: 450px) and (min-width: 650px) {
  .swipe-hint { display: none; }
  .invitation-shell { grid-template-rows: auto minmax(0, 1fr) auto; }
  .cover-content { padding-block: 0.75rem; }
  .cover-title { font-size: 3.2rem; margin-block: 0.3rem; }
  .cover-date { margin-bottom: 0.5rem; }
  .wax-seal-button { width: 3.5rem; }
  .countdown-page { display: grid; grid-template-columns: 1fr 1fr; align-content: center; justify-items: center; column-gap: 2rem; }
  .countdown-page > .eyebrow, .countdown-page > h2 { grid-column: 1 / -1; }
  .countdown-page > .body-copy { grid-column: 1; grid-row: 3; }
  .countdown-page > .countdown-grid { grid-column: 2; grid-row: 3; }
  .countdown-page > .signature { grid-column: 1; grid-row: 4; }
  .countdown-page > .countdown-target { grid-column: 2; grid-row: 4; }
  .countdown-page > .rule-mark { display: none; }
}

/* Photographic preview: original photographs, with responsive framing only. */
.cover-photo { object-position: 50% 48%; filter: none; }
.cover-overlay { background: linear-gradient(180deg, rgba(32,35,25,.78), rgba(32,35,25,.1) 38%, transparent 65%, rgba(32,35,25,.65)); }
.cover-content { justify-content: flex-start; padding-top: 1.5rem; }
.cover-title { font-size: 3.5rem; margin-block: 0.5rem 0.8rem; }
.cover-content .wax-seal-button { position: absolute; bottom: 2.8rem; width: 4rem; }
.cover-content .seal-hint { position: absolute; bottom: 1.2rem; }
.couple-portrait { display: block; width: 100%; height: 30%; object-fit: cover; object-position: 50% 40%; }
.page-with-photo .page-inner { height: 70%; padding: 1rem 1.5rem; gap: 0.55rem; }
.page-with-photo .page-inner > * { margin-block: 0; }
.page-with-photo h2 { font-size: clamp(1.8rem, 6cqh, 3rem); max-width: 30rem; }
.page-with-photo .rule-mark { display: none; }
.page-with-photo .quote { font-size: 1.05rem; line-height: 1.4; }
.closing-photo-page .couple-portrait { object-position: 50% 51%; }
.page-with-photo .action-stack + .closing-mark { margin-top: 0.8rem; margin-bottom: 0.3rem; }

@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .cover-photo-wrap { width: 50%; }
  .cover-photo { object-position: 50% 48%; }
  .cover-overlay { background: linear-gradient(90deg, transparent 35%, var(--olive-950) 52%); }
  .cover-content { width: 50%; margin-left: 50%; justify-content: center; padding: 1.5rem; }
  .cover-title { font-size: clamp(3.5rem, 11cqh, 5.5rem); }
  .cover-content .wax-seal-button, .cover-content .seal-hint { position: static; }
  .cover-content .wax-seal-button { margin-top: 0.4rem; }
  .page-with-photo .couple-portrait { position: absolute; inset: 0; width: 42%; height: 100%; object-position: 43% 45%; }
  .message-photo-page .couple-portrait { object-fit: contain; padding: 1.25rem; background: var(--cream); }
  .closing-photo-page .couple-portrait { object-position: 50% 52%; }
  .page-with-photo .page-inner { margin-left: 42%; width: 58%; height: 100%; padding-inline: 2rem; gap: 1rem; }
  .page-with-photo .page-inner::before { opacity: 0.1; }
  .page-with-photo::before { left: calc(42% + 1rem); }
  .page-with-photo .action-stack { grid-template-columns: 1fr; max-width: 22rem; }
  .page-with-photo .quote { font-size: 1.2rem; line-height: 1.55; }
}

@container (max-height: 560px) {
  .page-with-photo .page-inner { gap: 0.4rem; }
  .page-with-photo .eyebrow { font-size: 0.6rem; }
  .page-with-photo .quote { font-size: 0.95rem; line-height: 1.35; }
  .page-with-photo .body-copy { font-size: 0.76rem; line-height: 1.45; }
  .page-with-photo h2 { font-size: clamp(1.65rem, 6cqh, 2.6rem); }
  .page-with-photo .closing-mark, .page-with-photo .closing-text { font-size: 1.6rem; }
}

@media (max-height: 450px) and (min-width: 650px) {
  .cover-content { padding-block: 0.65rem; }
  .cover-title { font-size: 3rem; margin-block: 0.2rem; }
  .cover-content .wax-seal-button { width: 3rem; }
  .cover-content .cover-date { margin-bottom: 0.25rem; }
}

/* Integrated photographs share the paper rather than creating separate panels. */
.page-cover .cover-photo-wrap { width: 100%; }
.page-cover .cover-photo { object-position: center; filter: saturate(0.76) brightness(0.8); }
.page-cover .cover-overlay { background: radial-gradient(ellipse at center, rgba(32,35,25,.6), rgba(32,35,25,.25)); }
.page-cover .cover-content { width: 100%; margin-left: 0; justify-content: center; padding: 1.25rem; }
.page-cover .wax-seal-button, .page-cover .seal-hint { position: static; }
.page-cover .seal-hint { margin-top: 0.6rem; }
.message-photo-page .couple-portrait { position: absolute; inset: 0 0 auto; width: 100%; height: 38%; padding: 0; background: transparent; object-fit: cover; object-position: 50% 36%; mask-image: linear-gradient(to bottom, black 65%, transparent); }
.message-photo-page .page-inner { margin-top: 32%; margin-left: 0; width: 100%; height: 68%; background: transparent; }
.message-photo-page .page-inner { margin-top: 0; position: absolute; bottom: 0; }
.message-photo-page .page-inner::before { opacity: 0.06; }
.message-photo-page::before { left: 1rem; }
.message-photo-page::before, .message-photo-page::after { border-color: var(--olive-700); border-width: 2px; }
.date-background-photo { position: absolute; bottom: 0; right: 0; width: 100%; height: 58%; object-fit: cover; object-position: 50% 43%; mask-image: linear-gradient(to bottom, transparent, black 30%); }
.date-photo-page .date-page { position: relative; height: 55%; justify-content: center; padding: 1.2rem 1.5rem 0; gap: 0.5rem; }
.date-photo-page .date-page::before { display: none; }
.date-photo-page .date-page > * { margin-block: 0; }
.date-photo-page h2 { font-size: clamp(1.8rem, 6cqh, 3.5rem); }
.date-photo-page .date-divider { display: none; }
.date-photo-page .body-copy { font-size: 0.8rem; line-height: 1.5; }
.date-photo-page .location-note { font-size: 0.7rem; }

@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .page-cover .cover-title { font-size: clamp(3rem, 12cqh, 6rem); }
  .message-photo-page .couple-portrait { width: 61%; height: 100%; left: -2%; object-fit: contain; mask-image: linear-gradient(90deg, black 50%, transparent 96%), linear-gradient(180deg, transparent 18%, black 32%, black 58%, transparent 76%); mask-composite: intersect; }
  .message-photo-page .page-inner { position: relative; bottom: auto; width: 48%; height: 100%; margin-left: 52%; padding-inline: 1.5rem 3rem; }
  .date-background-photo { width: 62%; height: 100%; object-fit: cover; object-position: 50% 46%; mask-image: linear-gradient(90deg, transparent, black 38%); }
  .date-photo-page .date-page { width: 53%; height: 100%; padding: 1.5rem 2rem 1.5rem 4rem; gap: 0.9rem; background: transparent; }
  .date-photo-page h2 { font-size: clamp(2.2rem, 7cqh, 3.4rem); }
  .date-photo-page .body-copy { max-width: 25rem; font-size: 0.9rem; }
}

@container (max-height: 460px) {
  .date-photo-page .date-page { gap: 0.25rem; padding-top: 0.75rem; }
  .date-photo-page .body-copy { font-size: 0.72rem; line-height: 1.35; }
  .date-photo-page .date-weekday { font-size: 0.65rem; }
  .date-photo-page .location-note { font-size: 0.62rem; }
  .date-photo-page h2 { font-size: 1.65rem; }
}

@media (max-height: 450px) and (min-width: 650px) {
  .message-photo-page .page-inner { gap: 0.3rem; padding-block: 0.6rem; }
  .message-photo-page .quote { font-size: 0.85rem; line-height: 1.3; }
}

@media (min-width: 960px) and (min-height: 500px) {
  .date-photo-page .date-page { gap: clamp(0.75rem, 3cqh, 1.5rem); }
  .date-photo-page h2 { font-size: clamp(2.2rem, 8cqh, 3.4rem); }
  .date-photo-page .body-copy { font-size: 0.95rem; line-height: 1.6; }
  .date-photo-page .date-weekday, .date-photo-page .location-note { font-size: 0.8rem; }
}

.message-botanical {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url("assets/botanica-premium.png") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.13;
}
.message-photo-page .page-inner { z-index: 2; }
.message-photo-page .page-inner::before { display: none; }

.closing-photo-page .couple-portrait {
  transform: translateX(-4%);
  mask-image: linear-gradient(to bottom, black 65%, transparent), linear-gradient(90deg, black 85%, transparent);
  mask-composite: intersect;
}
.closing-photo-page .page-inner::before { display: none; }
.closing-photo-page .page-inner { z-index: 2; background: transparent; }
.closing-photo-page::before { left: 1rem; }
.closing-photo-page::before, .closing-photo-page::after {
  border-color: var(--olive-700);
  border-width: 2px;
}
@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .closing-photo-page .couple-portrait {
    width: 54%;
    object-position: 50% 49%;
    mask-image: linear-gradient(90deg, black 45%, transparent 100%), linear-gradient(180deg, transparent, black 14%, black 80%, transparent);
    mask-composite: intersect;
  }
  .closing-photo-page .page-inner { margin-left: 48%; width: 52%; padding-inline: 2rem; }
}

@media (max-height: 450px) and (min-width: 650px) {
  .closing-photo-page .page-inner { padding-block: 0.65rem; gap: 0.3rem; }
  .closing-photo-page .action-stack + .closing-mark { margin-top: 0.2rem; margin-bottom: 0; }
}

.venue-photo {
  display: block;
  width: 100%;
  height: clamp(3.5rem, 15cqh, 10rem);
  object-fit: contain;
  object-position: center;
  margin-bottom: 0.5rem;
  border-radius: 0.4rem;
  mask-image: linear-gradient(to bottom, black 75%, transparent);
}
.locations-page::before, .locations-page::after { pointer-events: none; }
.page[data-page="4"]::before, .page[data-page="4"]::after { border-color: var(--olive-700); border-width: 2px; }
.locations-page { gap: 0.5rem; }
.locations-page .location-label { margin-bottom: 0.3rem; }
.locations-page h2 { margin-bottom: 0.65rem; }
.locations-page .location-separator { display: none; }
@media (min-width: 700px) {
  .locations-page { row-gap: 0.65rem; }
  .venue-photo { height: clamp(5rem, 27cqh, 15rem); margin-bottom: 0.75rem; }
}
@container (max-height: 560px) {
  .locations-page { padding-block: 1rem; gap: 0.35rem; }
  .locations-page .eyebrow { margin-bottom: 0; }
  .locations-page .location-block { max-width: 28rem; }
  .locations-page h3 { font-size: 1.35rem; }
  .locations-page .location-block p { font-size: 0.73rem; line-height: 1.35; margin-bottom: 0.35rem; }
  .locations-page .venue-photo { height: 3.8rem; margin-bottom: 0.2rem; }
  .locations-page .location-label { font-size: 0.6rem; margin-bottom: 0.2rem; }
}
@media (min-width: 700px) {
  @container (max-height: 560px) {
    .locations-page .venue-photo { height: clamp(4rem, 23cqh, 8rem); }
  }
}

@media (max-width: 699px) {
  .locations-page .location-block { display: grid; grid-template-columns: 30% minmax(0, 1fr); column-gap: 0.7rem; row-gap: 0.25rem; text-align: left; }
  .locations-page .venue-photo { grid-column: 1; grid-row: 1 / span 4; width: 100%; height: 100%; max-height: 10rem; align-self: center; margin: 0; mask-image: linear-gradient(90deg, black 75%, transparent); }
  .locations-page .location-block > :not(img) { grid-column: 2; margin-block: 0; }
  .locations-page .text-button { justify-self: start; }
  .locations-page { gap: 0.75rem; }
  @container (max-height: 460px) {
    .locations-page { gap: 0.45rem; padding: 0.8rem 1.2rem; }
    .locations-page > .eyebrow { display: none; }
    .locations-page .location-block { row-gap: 0.2rem; }
    .locations-page h3 { font-size: 1.15rem; }
    .locations-page .text-button { padding: 0.4rem 0.55rem; font-size: 0.62rem; }
  }
}
@media (max-height: 450px) and (min-width: 700px) {
  .locations-page > .eyebrow { display: none; }
  .locations-page { padding-block: 0.6rem; }
}

.message-photo-page .couple-portrait {
  left: 4%; object-position: 50% 53%;
  mask-image: linear-gradient(to bottom, black 65%, transparent), linear-gradient(90deg, transparent, black 10%);
  mask-composite: intersect;
}
@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .message-photo-page .couple-portrait {
    left: -2%;
    object-fit: cover;
    object-position: 50% 52%;
    mask-image: linear-gradient(90deg, black 48%, transparent 100%), linear-gradient(180deg, transparent, black 12%, black 84%, transparent);
  }
}

.date-background-photo {
  transform: translateX(4%);
  object-position: 48% 32%;
  mask-image: linear-gradient(to bottom, transparent, black 30%), linear-gradient(90deg, transparent, black 10%);
  mask-composite: intersect;
}
@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .date-background-photo { width: 60%; object-position: 46% 34%; mask-image: linear-gradient(90deg, transparent, black 24%); }
  .date-photo-page .date-page { width: 43%; padding-inline: 1.5rem; }
}

.date-photo-page .date-page { z-index: 2; }
.date-photo-page .message-botanical { mask-image: linear-gradient(90deg, black 25%, transparent 50%); }
.date-photo-page::before, .date-photo-page::after { border-color: var(--olive-700); border-width: 2px; }

.countdown-photo { position: absolute; bottom: 0; right: 0; width: 100%; height: 48%; object-fit: cover; object-position: 48% 48%; mask-image: linear-gradient(180deg, transparent, black 24%); }
.countdown-photo-page .countdown-page { position: relative; z-index: 2; height: 62%; justify-content: center; padding: 1rem 1.5rem; gap: 0.35rem; }
.countdown-photo-page .countdown-page::before { display: none; }
.countdown-photo-page .countdown-page > * { margin-block: 0; }
.countdown-photo-page .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 30rem; gap: 0.4rem; }
.countdown-photo-page .countdown-item { background: rgba(251,250,246,.85); padding: 0.4rem 0.2rem; }
.countdown-photo-page .countdown-item strong { font-size: 2rem; }
.countdown-photo-page .countdown-item span { letter-spacing: 0; font-size: 0.62rem; }
.countdown-photo-page h2 { max-width: 34rem; font-size: clamp(1.75rem, 6cqh, 3.4rem); }
.countdown-photo-page .body-copy { font-size: 0.78rem; line-height: 1.45; }
.countdown-photo-page .rule-mark { display: none; }
.countdown-photo-page .signature { line-height: 1.2; }
.countdown-photo-page .signature span { font-size: 1.6rem; }
.countdown-photo-page .message-botanical { mask-image: linear-gradient(90deg, black 25%, transparent 50%); }
.countdown-photo-page::before, .countdown-photo-page::after { border-color: var(--olive-700); border-width: 2px; }
@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .countdown-photo { width: 53%; height: 100%; object-position: 45% 42%; mask-image: linear-gradient(90deg, transparent, black 24%); }
  .countdown-photo-page .countdown-page { width: 50%; height: 100%; padding-inline: 2rem; gap: 0.8rem; display: flex; }
  .countdown-photo-page .body-copy { font-size: 0.9rem; line-height: 1.6; }
}
@container (max-height: 460px) {
  .countdown-photo-page .countdown-page { gap: 0.3rem; padding-block: 0.65rem; }
  .countdown-photo-page .eyebrow { display: none; }
  .countdown-photo-page .signature-label { display: none; }
  .countdown-photo-page .signature br { display: none; }
  .countdown-photo-page .body-copy { font-size: 0.72rem; line-height: 1.35; }
  .countdown-photo-page .countdown-target { font-size: 0.65rem; }
}

.countdown-photo {
  left: 3%; right: auto; width: 120%; object-position: 50% 48%;
  mask-image: linear-gradient(180deg, transparent, black 24%), linear-gradient(90deg, transparent, black 12%);
  mask-composite: intersect;
}
@media (min-width: 960px), (max-height: 450px) and (min-width: 650px) {
  .countdown-photo { left: 54%; width: 60%; object-position: 50% 40%; mask-image: linear-gradient(90deg, transparent, black 16%); }
}

.page-cover .cover-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  white-space: nowrap;
  width: 100%;
  max-width: none;
  font-size: clamp(2rem, 11cqw, 6rem);
  line-height: 1.1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.inline-gifts[hidden]{display:none}.gifts-page.gifts-expanded{justify-content:flex-start!important}.inline-gifts{width:100%;max-width:1100px;scroll-margin-top:12px}.inline-gifts iframe{display:block;width:100%;height:75dvh;min-height:460px;border:1px solid #c49a5355;border-radius:12px;background:#f7f4ec}.inline-gifts>button{margin:18px auto}.gifts-expanded>.body-copy{flex-shrink:0}
