:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #272622;
  --red: #ad282e;
  --muted: #68655e;
  --line: #d4d1c8;
  --serif: "Songti SC","STSong","Noto Serif CJK SC",SimSun,serif;
  --sans: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --latin: "Baskerville","Times New Roman",serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.7 var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,h2,h3,p,figure {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  color: inherit;
}

button,a,input,select,textarea {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.masthead {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 10px clamp(20px,4.8vw,76px);
  font-size: 14px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  font-family: var(--latin);
  font-style: italic;
  color: var(--red);
  padding-inline: 5px;
}

.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-actions a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.music-button {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #69645b50;
  border-radius: 24px;
  background: transparent;
  font-size: 13px;
}

.music-button[aria-pressed=true] {
  color: var(--red);
  border-color: var(--red);
}

.music-button>span:first-child {
  font-size: 19px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  min-height: 760px;
  height: 100svh;
  max-height: 1150px;
  background: #deddd8;
  overflow: hidden;
}

.hero-copy {
  z-index: 1;
  padding: 50px 0 60px clamp(36px,9vw,150px);
  margin-top: 20px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 500;
}

.hero .eyebrow {
  font: 14px/1.4 var(--latin);
  letter-spacing: .16em;
  color: var(--red);
}

.hero h1 {
  font: 500 clamp(96px,12.5vw,200px)/1.15 var(--serif);
  letter-spacing: -.06em;
  margin: 10px 0 26px;
  color: var(--red);
  white-space: nowrap;
}

.hero h1>span:first-child {
  display: block;
  margin-left: .7em;
}

.hero-dot {
  position: absolute;
  font-size: .7em;
  margin-left: 2.16em;
  bottom: auto;
  transform: translateY(-1.1em);
}

.hero-note {
  font-size: 20px;
  line-height: 1.7;
}

.main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s;
}

.main-button:hover {
  background: #891c22;
}

.hero .main-button {
  margin-top: 28px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: 0;
}

.hero-photo img {
  object-fit: cover;
  object-position: 50% 40%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#deddd8,transparent 35%);
}

.hero-caption {
  position: absolute;
  right: 14%;
  bottom: 55px;
  font: 22px/1.4 var(--serif);
  letter-spacing: .12em;
}

.hero-caption span {
  font-style: italic;
  font-family: var(--latin);
  color: var(--red);
}

.scroll-label {
  position: absolute;
  bottom: 18px;
  left: clamp(36px,9vw,150px);
  font-size: 12px;
  color: var(--muted);
}

.section-space {
  padding: clamp(70px,9vw,150px) clamp(24px,7vw,120px);
}

h2 {
  font: 500 clamp(35px,5vw,74px)/1.3 var(--serif);
  letter-spacing: -.04em;
}

.chapter-heading p:last-child,.flower-copy p:last-child,.retro-copy>p:not(.eyebrow) {
  font-size: 16px;
  line-height: 2;
  margin-top: 24px;
}

.chapter-heading .eyebrow,.flower-copy .eyebrow,.lawn-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 16px;
}

.photo-button {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.photo-button img {
  transition: transform 1s cubic-bezier(.2,.7,.3,1);
}

.photo-button:hover img {
  transform: scale(1.025);
}

.white-chapter {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 5vw;
  align-items: center;
  max-width: 1600px;
  margin: auto;
}

.white-photos {
  position: relative;
  padding: 0 10% 70px 0;
}

.white-photo-main {
  aspect-ratio: 2/3;
  width: 86%;
  background: #e4e2dc;
}

.white-photo-main img {
  object-position: 50% 45%;
}

.white-photo-small {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 47%;
  aspect-ratio: 5/4;
  border: 8px solid var(--paper);
}

.white-photo-small img {
  object-position: 45% 50%;
}

.photo-note {
  position: absolute;
  bottom: 12px;
  left: 0;
  font: 17px/1.7 var(--serif);
}

.photo-note i {
  color: var(--red);
  font-family: var(--latin);
}

.photo-note span {
  font: 10px/1.5 var(--latin);
  letter-spacing: .08em;
  color: var(--muted);
}

.flowers-chapter {
  background: #e3e7dd;
}

.flower-spread {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  max-width: 1340px;
  margin: auto;
  gap: 46px 7vw;
  align-items: center;
}

.flower-main {
  aspect-ratio: 5/4;
  width: 100%;
}

.flower-main img {
  object-position: 50% 45%;
}

.flower-copy {
  padding: 20px 0;
}

.flower-copy h2 {
  font-size: clamp(32px,4.6vw,67px);
  color: #31442e;
}

.flower-small {
  grid-column: 2;
  width: 110%;
  aspect-ratio: 4/3;
  margin-left: -10%;
  margin-top: -65px;
  border: 10px solid #e3e7dd;
}

.flowers-chapter .eyebrow {
  color: #51614c;
}

.retro-stage {
  position: relative;
  min-height: 850px;
  height: 110svh;
  max-height: 1150px;
  isolation: isolate;
  overflow: hidden;
  background: #171e1b;
  color: #fff7e8;
}

.retro-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-position: 60% 42%;
}

.retro-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#13201bee,transparent 77%),linear-gradient(0deg,#131a14b0,transparent 55%);
}

.retro-copy {
  position: relative;
  max-width: 660px;
  padding: clamp(80px,10vw,165px) clamp(24px,8vw,130px);
}

.retro-copy h2 {
  margin-top: 18px;
  font-size: clamp(48px,6.4vw,96px);
}

.retro-copy .eyebrow {
  color: #d2c8ae;
}

.retro-copy .underlined-button {
  color: #fff7e8;
}

.underlined-button {
  min-height: 44px;
  padding: 7px 0;
  margin-top: 30px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 14px;
}

.underlined-button:focus-visible {
  outline-color: #f2dbb0;
}

.retro-inset {
  position: absolute;
  width: 23%;
  aspect-ratio: 2/3;
  right: 7%;
  bottom: 8%;
  border: 5px solid #d6c6a5;
  box-shadow: 0 18px 35px #0005;
  transform: rotate(4deg);
}

.chinese-chapter {
  background: #9c2229;
  color: #fff0d6;
  overflow: hidden;
}

.chinese-heading {
  display: flex;
  gap: clamp(25px,8vw,150px);
  align-items: center;
  max-width: 1300px;
  margin: 0 auto 65px;
}

.double-happiness {
  font: 500 clamp(130px,19vw,290px)/1 var(--serif);
  color: #f5dab5;
}

.chinese-heading h2 {
  font-size: clamp(38px,6.5vw,92px);
  margin-top: 16px;
}

.chinese-heading .eyebrow {
  color: #f2d5b5;
}

.chinese-photos {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 5vw;
  max-width: 1300px;
  margin: auto;
}

.chinese-wide {
  aspect-ratio: 3/2;
}

.chinese-wide img {
  object-position: 48% 45%;
}

.chinese-close {
  aspect-ratio: 4/5;
  transform: translateY(60px);
}

.chinese-close img {
  object-position: 49% 50%;
}

.chinese-signature {
  max-width: 1300px;
  margin: 36px auto 0;
  font: 22px/1.3 var(--serif);
  letter-spacing: .1em;
}

.chinese-signature span {
  font: italic 1.3em var(--latin);
}

.lawn-chapter {
  max-width: 1700px;
  margin: auto;
  background: #f1f1e7;
}

.lawn-heading {
  margin-bottom: 50px;
  text-align: center;
}

.lawn-heading h2 {
  color: #3c4b35;
}

.lawn-panorama {
  width: 100%;
  aspect-ratio: 16/8;
}

.lawn-panorama img {
  object-position: center 49%;
}

.lawn-detail {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 10%;
  max-width: 1000px;
  margin: clamp(38px,7vw,90px) auto 0;
  align-items: center;
}

.lawn-close {
  aspect-ratio: 3/2;
}

.lawn-detail>p {
  color: #4d5947;
  line-height: 2.1;
  font-size: 17px;
}

.film-section {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 6vw;
  align-items: center;
}

.film-heading h2 {
  font-size: clamp(32px,4.3vw,62px);
  margin-top: 15px;
}

.film-heading>p:last-child {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}

.film-wrap {
  padding: 8px;
  background: #e8e3da;
}

.film-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  background: #1d2019;
  object-fit: contain;
}

.sparkler-section {
  position: relative;
  isolation: isolate;
  min-height: 640px;
  height: 90svh;
  max-height: 1000px;
  overflow: hidden;
  color: #fff9eb;
}

.sparkler-section>img {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-position: center 47%;
}

.sparkler-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg,#182c28d4,transparent 75%);
}

.sparkler-copy {
  position: absolute;
  left: 8%;
  bottom: 10%;
}

.sparkler-copy h2 {
  font-size: clamp(58px,8.7vw,135px);
  margin-top: 17px;
}

.invitation-section {
  background: #f8f7f3;
}

.invite-paper {
  width: min(100%,830px);
  margin: auto;
  padding: 65px clamp(22px,7vw,95px);
  border: 1px solid #bdad9a;
  text-align: center;
  position: relative;
}

.invite-paper::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #ddcfc2;
  pointer-events: none;
}

.invite-paper>.eyebrow {
  color: var(--red);
  font-family: var(--latin);
  letter-spacing: .22em;
}

.invite-paper h2 {
  font-size: clamp(30px,4.5vw,60px);
  margin: 25px 0;
}

.invite-names {
  font: 26px/1.6 var(--serif);
  letter-spacing: .08em;
}

.invite-names i {
  font-family: var(--latin);
  color: var(--red);
}

.invite-letter {
  margin: 25px 0;
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
}

.wedding-info {
  margin: 35px auto;
  width: min(100%,400px);
}

.wedding-info div {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  text-align: left;
}

.wedding-info dt {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--muted);
}

.wedding-info dd {
  margin: 0;
  flex: 1;
  height: 28px;
  border-bottom: 1px solid var(--line);
}

.album-section {
  padding-top: 35px;
  max-width: 1550px;
  margin: auto;
}

.album-heading {
  display: flex;
  gap: 25px;
  align-items: end;
  justify-content: space-between;
}

.album-heading h2 {
  font-size: clamp(30px,4vw,50px);
}

.album-heading p {
  color: var(--muted);
  font-size: 14px;
}

.album-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0;
}

.album-filters button {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
}

.album-filters button[aria-pressed=true] {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

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

.album-grid button {
  aspect-ratio: 4/5;
}

.album-grid img {
  object-position: center 40%;
}

.footer {
  max-width: 1400px;
  margin: auto;
  padding: 20px 28px;
  min-height: 70px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-underline-offset: .25em;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  background: #151513;
  color: #f8f7ee;
}

.lightbox::backdrop {
  background: #151513;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  font-size: 14px;
}

.lightbox button {
  min-height: 44px;
  min-width: 55px;
  padding: 7px 12px;
  border: 1px solid #ffffff59;
  border-radius: 3px;
  background: #151513a8;
  color: #f8f7ee;
  font-size: 13px;
}

.lightbox :focus-visible {
  outline-color: #fff;
}

.lightbox-picture {
  position: relative;
  height: calc(100% - 95px);
  width: 100%;
  touch-action: pan-y pinch-zoom;
}

.lightbox-picture>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-prev,.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-counter {
  text-align: center;
  font-size: 13px;
  padding-top: 10px;
}

.reply-dialog {
  width: min(430px,calc(100% - 30px));
  border: 0;
  padding: 22px;
  max-height: calc(100dvh - 30px);
  background: var(--paper);
  color: var(--ink);
}

.reply-dialog::backdrop {
  background: #25241d90;
}

.reply-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.reply-dialog h2 {
  font-size: 25px;
}

.reply-dialog header button,.copy-button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  font-size: 14px;
}

.reply-dialog form {
  display: grid;
  gap: 8px;
}

.reply-dialog input:not([type=radio]),.reply-dialog select,.reply-dialog textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  border-radius: 2px;
  min-height: 44px;
}

.reply-dialog fieldset {
  margin: 7px 0;
  padding: 8px;
  border: 1px solid var(--line);
}

.reply-dialog fieldset label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 40px;
  margin-right: 13px;
  font-size: 14px;
}

.reply-dialog label,.reply-dialog legend {
  font-size: 14px;
}

.reply-dialog input[type=radio] {
  accent-color: var(--red);
}

.reply-dialog .main-button {
  margin-top: 10px;
}

.reply-output {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.reply-output textarea {
  resize: vertical;
}

.reply-note,[data-reply-status] {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 15;
  max-width: calc(100% - 30px);
  transform: translateX(-50%);
  background: #272622ed;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  pointer-events: none;
}

.toast:empty {
  display: none;
}

@media (prefers-reduced-motion:no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .85s ease,transform 1s cubic-bezier(.2,.7,.3,1);
  }
  .motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .hero-copy {
    animation: hero-type .9s .1s both;
  }
  .hero-photo {
    animation: hero-photo 1.4s cubic-bezier(.2,.7,.25,1) both;
  }
  .opening-wipe {
    position: fixed;
    inset: 0;
    z-index: 12;
    background: var(--red);
    transform-origin: bottom;
    animation: open-page .9s cubic-bezier(.65,0,.3,1) both;
    pointer-events: none;
  }
  .hero.is-opening .hero-photo img {
    transition: transform 1s ease;
    transform: scale(1.035);
  }
}

@keyframes hero-type {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-photo {
  from {
    opacity: .4;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes open-page {
  0% {
    transform: scaleY(0);
  }
  45%,60% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
}

@media (min-width:1500px) {
  .hero-photo img {
    object-fit: contain;
    object-position: center bottom;
  }
  .hero-photo::after {
    display: none;
  }
}

@media (max-width:850px) {
  .masthead {
    padding: 10px 20px;
    min-height: 62px;
  }
  .wordmark {
    font-size: 16px;
  }
  .header-actions {
    gap: 12px;
    font-size: 12px;
  }
  .music-button {
    padding: 0 9px;
    font-size: 12px;
  }
  .hero {
    display: block;
    min-height: 680px;
    height: 100svh;
    max-height: 1000px;
  }
  .hero-photo {
    inset: 0;
  }
  .hero-photo img {
    object-position: 50% 50%;
  }
  .hero-photo::after {
    background: linear-gradient(0deg,#e2e0d9bb,transparent 22%);
  }
  .hero-copy {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 105px;
    left: 24px;
    right: 24px;
    text-align: center;
  }
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
  }
  .hero h1 {
    font-size: clamp(72px,18vw,122px);
    line-height: 1.1;
    letter-spacing: .02em;
    margin: 12px 0;
  }
  .hero h1>span:first-child {
    display: inline;
    margin: 0;
  }
  .hero-dot {
    position: static;
    display: inline-block;
    font-size: .8em;
    transform: none;
    margin-left: -.08em;
  }
  .hero-note {
    font-size: 14px;
    line-height: 1.6;
  }
  .hero-note br {
    display: none;
  }
  .hero .main-button {
    margin-top: 0;
    position: fixed;
    visibility: hidden;
  }
  .hero-caption {
    left: 0;
    right: 0;
    bottom: 83px;
    text-align: center;
    font-size: 20px;
  }
  .scroll-label {
    left: 0;
    right: 0;
    text-align: center;
    bottom: 24px;
    font-size: 12px;
  }
  .hero-copy .main-button {
    position: absolute;
    visibility: visible;
    top: calc(100svh - 200px);
    left: 50%;
    min-height: 46px;
    width: max-content;
    transform: translate(-50%,-50%);
    padding: 10px 23px;
    font-size: 13px;
  }
  .section-space {
    padding: 68px 24px;
  }
  .white-chapter {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .chapter-heading {
    text-align: center;
  }
  .chapter-heading h2 br {
    display: none;
  }
  .chapter-heading h2 {
    font-size: 35px;
  }
  .chapter-heading p:last-child {
    margin-top: 14px;
    font-size: 14px;
  }
  .white-photos {
    width: min(100%,530px);
    margin: auto;
    padding-bottom: 70px;
  }
  .white-photo-main {
    width: 87%;
  }
  .white-photo-small {
    width: 48%;
    border-width: 5px;
  }
  .photo-note {
    font-size: 14px;
  }
  .flower-spread {
    gap: 28px 15px;
    grid-template-columns: 1fr 1fr;
  }
  .flower-main {
    grid-column: 1/-1;
    aspect-ratio: 4/3;
  }
  .flower-copy {
    padding: 0;
  }
  .flower-copy h2 {
    font-size: clamp(26px,5.6vw,43px);
  }
  .flower-copy p:last-child {
    font-size: 13px;
    margin-top: 16px;
    line-height: 1.9;
  }
  .flower-copy .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .flower-small {
    grid-column: 2;
    width: 100%;
    margin: 0;
    border: 0;
    aspect-ratio: 3/4;
  }
  .flower-small img {
    object-position: 48% 50%;
  }
  .retro-stage {
    min-height: 710px;
    height: 105svh;
  }
  .retro-background {
    object-position: 57% 40%;
  }
  .retro-shade {
    background: linear-gradient(0deg,#142019f2,transparent 90%),linear-gradient(90deg,#14201970,transparent 75%);
  }
  .retro-copy {
    position: absolute;
    bottom: 45px;
    left: 0;
    padding: 0 25px;
    max-width: 70%;
    z-index: 2;
  }
  .retro-copy h2 {
    font-size: 47px;
    margin-top: 13px;
  }
  .retro-copy>p:not(.eyebrow) {
    font-size: 14px;
    margin-top: 16px;
  }
  .retro-inset {
    width: 28%;
    right: 20px;
    bottom: 110px;
    border-width: 3px;
  }
  .retro-copy .eyebrow {
    font-size: 11px;
  }
  .underlined-button {
    font-size: 12px;
    margin-top: 17px;
  }
  .chinese-heading {
    gap: 28px;
    margin-bottom: 35px;
  }
  .double-happiness {
    font-size: 138px;
  }
  .chinese-heading h2 {
    font-size: 36px;
    margin-top: 10px;
  }
  .chinese-heading .eyebrow {
    font-size: 11px;
  }
  .chinese-photos {
    grid-template-columns: 1fr .72fr;
    gap: 14px;
  }
  .chinese-wide {
    aspect-ratio: 4/5;
  }
  .chinese-wide img {
    object-position: 47% 50%;
  }
  .chinese-close {
    aspect-ratio: 3/4;
    transform: translateY(30px);
  }
  .chinese-signature {
    font-size: 19px;
    margin-top: 20px;
  }
  .lawn-heading {
    margin-bottom: 30px;
  }
  .lawn-heading h2 {
    font-size: 35px;
  }
  .lawn-panorama {
    aspect-ratio: 4/3;
  }
  .lawn-panorama img {
    object-position: 46% 49%;
  }
  .lawn-detail {
    gap: 22px;
    grid-template-columns: 1.15fr .85fr;
    margin-top: 30px;
  }
  .lawn-close {
    aspect-ratio: 3/4;
  }
  .lawn-close img {
    object-position: 50% 50%;
  }
  .lawn-detail>p {
    font-size: 13px;
    line-height: 1.9;
  }
  .film-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .film-heading {
    text-align: center;
  }
  .film-heading h2 {
    font-size: 32px;
  }
  .film-heading>p:last-child {
    margin-top: 15px;
    font-size: 13px;
  }
  .film-heading .eyebrow {
    font-size: 11px;
  }
  .film-wrap {
    padding: 5px;
  }
  .sparkler-section {
    height: 82svh;
    min-height: 560px;
  }
  .sparkler-section>img {
    object-position: 48% 50%;
  }
  .sparkler-copy {
    left: 24px;
    bottom: 45px;
  }
  .sparkler-copy h2 {
    font-size: 58px;
  }
  .sparkler-copy .eyebrow {
    font-size: 12px;
  }
  .invite-paper {
    padding: 45px 22px;
  }
  .invite-paper h2 {
    font-size: 30px;
    margin: 25px 0;
  }
  .invite-paper .eyebrow {
    font-size: 11px;
  }
  .invite-names {
    font-size: 23px;
  }
  .invite-letter {
    font-size: 13px;
  }
  .wedding-info {
    margin: 27px auto;
  }
  .wedding-info dt {
    font-size: 12px;
  }
  .wedding-info div {
    gap: 14px;
    margin-top: 15px;
  }
  .album-heading {
    display: block;
  }
  .album-heading p {
    margin-top: 12px;
    font-size: 13px;
  }
  .album-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
  }
  .album-filters {
    gap: 5px;
    margin: 23px 0;
  }
  .album-filters button {
    font-size: 12px;
    padding: 7px 13px;
    min-height: 42px;
  }
  .lightbox {
    padding: 8px 12px;
  }
  .lightbox-picture {
    height: calc(100% - 95px);
  }
  .lightbox-prev,.lightbox-next {
    top: auto;
    bottom: 8px;
    transform: none;
    background: #151513bb;
  }
  .lightbox-top {
    font-size: 13px;
  }
  .footer {
    padding-inline: 24px;
    font-size: 12px;
  }
  .main-button {
    font-size: 14px;
    min-height: 46px;
  }
}

@media (max-width:380px) {
  .hero-copy {
    top: 93px;
  }
  .hero h1 {
    font-size: 72px;
  }
  .hero-caption {
    bottom: 78px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions a {
    font-size: 11px;
  }
  .music-button {
    padding-inline: 7px;
  }
  .hero-note {
    font-size: 13px;
  }
  .chinese-heading {
    gap: 18px;
  }
  .double-happiness {
    font-size: 112px;
  }
  .chinese-heading h2 {
    font-size: 30px;
  }
  .section-space {
    padding-inline: 20px;
  }
  .retro-copy h2 {
    font-size: 42px;
  }
  .invite-paper {
    padding-inline: 18px;
  }
  .album-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .hero {
    min-height: 625px;
  }
  .hero-copy .main-button {
    top: calc(max(625px,100svh) - 187px);
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 850px) {
  .hero-copy { top: 87px; }
  .hero-photo { inset: 180px 0 60px; }
  .hero-photo img { object-position: center 45%; }
  .hero-caption { bottom: 128px; }
  .hero-copy .main-button { top: calc(max(680px, 100svh) - 180px); }
  .chinese-wide { width: 100%; aspect-ratio: 3 / 2; }
  .chinese-photos { display: block; }
  .chinese-close { width: 58%; margin: -10px 0 0 auto; border: 6px solid #9c2229; transform: none; }
  .chinese-signature { margin-top: -30px; max-width: 40%; font-size: 16px; line-height: 1.8; }
}
@media (max-width: 380px) {
  .hero-copy { top: 84px; }
  .hero-photo { inset: 170px 0 60px; }
  .hero-copy .main-button { top: calc(max(625px, 100svh) - 175px); }
  .hero-caption { bottom: 128px; }
  .chinese-heading h2 { font-size: 29px; }
}

@media (max-width: 850px) {
  .retro-copy h2 { font-size: 44px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .retro-copy h2 { font-size: 39px; }
}

/* Second pass: tighter photo rhythm and navigation for the long invitation. */
.section-space {
  padding-block: clamp(60px, 7vw, 108px);
}

.white-chapter {
  gap: 4vw;
}

.retro-stage {
  min-height: 740px;
  height: 100svh;
  max-height: 1020px;
}

.sparkler-section {
  min-height: 560px;
  height: 82svh;
}

.opening-wipe {
  display: grid;
  place-items: center;
}

.opening-wipe p {
  color: #fff8e7;
  font: 24px/1.5 var(--serif);
  letter-spacing: .12em;
}

.chapter-nav {
  position: fixed;
  z-index: 8;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  width: min(560px, calc(100% - 28px));
  padding: 5px;
  border: 1px solid #ddd5ca;
  border-radius: 999px;
  background: #fbfaf6f5;
  box-shadow: 0 5px 24px #30271d17;
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.chapter-nav a {
  display: grid;
  flex: 1;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 5px;
  border-radius: 999px;
  color: #656057;
  font-size: 14px;
  text-decoration: none;
}

.chapter-nav a[aria-current] {
  color: white;
  background: var(--red);
}

body:has(dialog[open]) .chapter-nav {
  visibility: hidden;
}

.lightbox-picture > img {
  transition: opacity .2s ease;
}

.lightbox-picture > img.is-loading {
  opacity: .15;
}

.photo-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 90%;
  padding: 9px 14px;
  border-radius: 3px;
  color: #fff9ee;
  background: #151513dd;
  font-size: 14px;
  transform: translate(-50%, -50%);
}

.music-button[data-playing="true"] > span:first-child {
  animation: music-sway 2.8s ease-in-out infinite;
}

.music-credit {
  margin-top: 5px;
  max-width: 38em;
  font-size: 12px;
  line-height: 1.8;
}

.footer .music-credit a {
  display: inline;
  min-height: 0;
}

@keyframes music-sway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@media (max-width: 850px) {
  .section-space { padding-block: 54px; }
  .hero-photo { inset: 125px 0 52px; }
  .hero-photo img { object-position: center 49%; }
  .hero h1 { font-size: clamp(70px, 18vw, 108px); }
  .white-chapter { gap: 26px; }
  .chapter-heading p:last-child { margin-top: 10px; }
  .flower-spread { row-gap: 23px; }
  .retro-stage { min-height: 650px; height: 92svh; }
  .retro-copy { bottom: 42px; }
  .chinese-heading { margin-bottom: 28px; }
  .chinese-heading .eyebrow { max-width: 12em; }
  .chinese-heading h2 { font-size: 32px; }
  .chinese-close { margin-top: -22px; }
  .lawn-heading { margin-bottom: 24px; }
  .lawn-detail { margin-top: 24px; }
  .sparkler-section { min-height: 480px; height: 75svh; }
  .film-heading > p:last-child { margin-top: 10px; }
  .album-section { padding-bottom: 90px; }
  .album-grid { gap: 7px; }
  .album-filters { margin-block: 20px; }
  .footer { align-items: flex-start; gap: 20px; padding-block: 20px; }
  .footer > a { flex-shrink: 0; }
}

@media (max-width: 380px) {
  .hero-photo { inset: 125px 0 48px; }
  .hero h1 { font-size: 69px; }
  .chinese-heading h2 { font-size: 28px; }
  .chapter-nav { width: calc(100% - 20px); padding: 4px; }
  .chapter-nav a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .music-button[data-playing="true"] > span:first-child { animation: none; }
}
