@font-face {
  font-family: Wedding Song;
  src: url("wedding-song.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Wedding Roman;
  src: url("cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f2e7;
  --cream: #fffaf0;
  --ink: #24382e;
  --forest: #243b31;
  --olive: #415444;
  --line: #bcb8a6;
  --red: #8c4035;
  --serif: "Wedding Song", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --roman: "Wedding Roman", "Bodoni 72", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.05rem, 6vw, 3.9rem); line-height: 1.25; letter-spacing: .07em; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button { color: inherit; font: inherit; cursor: pointer; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a94d3c; outline-offset: 4px; }
[hidden] { display: none !important; }
.frame { width: min(calc(100% - 2.5rem), 74.5rem); margin-inline: auto; }
.eyebrow { display: block; font: 500 .8rem/1.3 var(--sans); letter-spacing: .19em; }
.text-link { font-size: .88rem; text-decoration-thickness: 1px; text-underline-offset: .33em; white-space: nowrap; }
.masthead {
  min-height: 4.4rem; padding-block: .5rem; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line);
}
.masthead .text-link { justify-self: end; }
.masthead .eyebrow { text-align: center; }
.monogram {
  display: inline-flex; justify-self: start; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; border: 1px solid #918e78; border-radius: 50%;
  color: var(--ink); text-decoration: none; font: 600 1.22rem/.8 var(--roman); letter-spacing: -.1em;
}
.monogram i, .cover-names i, .signature i, .invite-line i { padding-inline: .08em; color: var(--red); font-family: var(--roman); font-weight: 500; }
.cover {
  display: grid; grid-template-areas: "intro" "photo" "action";
  gap: 1.15rem; padding-block: 1.7rem 2.1rem;
}
.cover-intro { grid-area: intro; }
.cover h1 {
  font-size: clamp(2.9rem, 11vw, 5.75rem); line-height: 1.1; letter-spacing: .065em;
  white-space: nowrap;
}
.cover h1 span + span { margin-left: .04em; }
.cover-names {
  display: flex; align-items: baseline; gap: .63rem;
  margin-top: .55rem; font: 1.18rem/1.4 var(--serif); letter-spacing: .09em;
}
.cover-names i { font-size: 1.3em; line-height: 1; }
.cover-photo { grid-area: photo; min-width: 0; }
.cover-photo-button { display: block; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.cover-photo img {
  aspect-ratio: 1.03; object-fit: cover; object-position: 63% 54%;
  background: #c2d6c7;
}
.cover-photo figcaption {
  padding-top: .48rem; text-align: right;
  font-size: .76rem; letter-spacing: .075em; color: var(--olive);
}
.cover-action {
  grid-area: action; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  border-top: 1px solid var(--line); padding-top: .95rem;
}
.cover-action time { display: grid; line-height: 1.04; }
.cover-action time span { font: 600 clamp(1.75rem, 7vw, 2.8rem)/.95 var(--roman); letter-spacing: -.018em; }
.cover-action time small { margin-top: .33rem; font: .82rem/1.3 var(--sans); letter-spacing: .06em; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.82rem;
  padding: .58rem 1.12rem; border: 1px solid var(--forest); text-align: center;
  font-size: .88rem; line-height: 1.35; text-decoration: none; white-space: nowrap; letter-spacing: .06em;
  transition: color .2s, background-color .2s;
}
.button-filled { background: var(--forest); color: var(--cream); }
.button-filled:hover { background: #365343; }
.letter {
  padding-block: clamp(3.65rem, 8vw, 7.5rem); border-block: 1px solid #ccc7b3;
  background: #eeebdd;
}
.letter-layout { display: grid; gap: 2.45rem; }
.letter-heading .eyebrow, .album .eyebrow, .card-heading .eyebrow { color: var(--olive); margin-bottom: .7rem; }
.letter-heading p { margin-top: .85rem; font-size: .93rem; color: var(--olive); }
.letter-details { width: min(100%, 29rem); justify-self: center; }
.letter-details summary {
  display: grid; justify-items: center; gap: .8rem; cursor: pointer; list-style: none;
  color: var(--olive); font-size: .88rem; letter-spacing: .12em;
}
.letter-details summary::-webkit-details-marker { display: none; }
.envelope {
  display: block; width: min(100%, 22rem); height: clamp(8.9rem, 44vw, 11.8rem);
  position: relative; perspective: 620px; isolation: isolate; border: 1px solid #647466;
  background: #809381; box-shadow: 0 8px 18px #30413626, 0 24px 45px #3041361a;
}
.envelope-paper {
  position: absolute; left: 7%; right: 7%; top: 6%; bottom: 7%; display: flex;
  flex-direction: column; align-items: center; justify-content: flex-start; padding-top: .7rem;
  background: #f7f1de; color: var(--ink); border: 1px solid #c8bfa4;
  box-shadow: 0 1px 6px #17292040; transform: translateY(0); opacity: 0;
  transition: transform .42s .08s, opacity .33s .09s;
}
.envelope-mark { font: 600 1.38rem/.95 var(--roman); }
.envelope-mark i { color: var(--red); }
.envelope-date { margin-top: .3rem; font: .62rem/1.2 var(--sans); letter-spacing: .15em; }
.envelope-pockets {
  position: absolute; inset: 0; z-index: 2; border: 1px solid #e6ead446;
  background: linear-gradient(137deg, #a6b49d, #6e8775);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.envelope-pockets::before {
  content: ""; position: absolute; inset: 0; clip-path: polygon(0 100%, 50% 46%, 100% 100%);
  background: linear-gradient(164deg, #b6c0a8, #879b81);
}
.envelope-flap {
  position: absolute; inset: 0 0 37%; z-index: 3;
  background: linear-gradient(165deg, #b4c0a5, #869c85);
  clip-path: polygon(0 0, 100% 0, 51% 95%, 49% 95%);
  transform-origin: top; transform: rotateX(0); opacity: 1;
  transition: transform .42s ease, opacity .15s ease;
}
.seal {
  position: absolute; z-index: 4; left: calc(50% - 1.33rem); top: 45%;
  display: grid; place-items: center; width: 2.66rem; height: 2.66rem; border-radius: 50%;
  background: radial-gradient(circle at 40% 24%, #ad6857, #864437 58%, #71342b);
  border: 3px double #e0ac937d; box-shadow: 0 3px 4px #5332227d; color: #f5d8bf;
  font: 1.05rem/1 var(--serif); transition: opacity .2s, transform .3s;
}
.letter-toggle { text-decoration: underline; text-underline-offset: .28em; }
.hide-letter, .letter-details[open] .see-letter { display: none; }
.letter-details[open] .hide-letter { display: inline; }
.letter-details[open] .envelope-flap {
  transform: rotateX(88deg); opacity: 0; transition: transform .36s ease, opacity .27s ease;
}
.letter-details[open] .envelope-paper { opacity: 1; transform: translateY(-24%); }
.letter-details[open] .seal { opacity: 0; transform: translateY(10px); }
.letter-paper {
  margin-top: 1.3rem; padding: 1.5rem clamp(1rem, 5vw, 2.4rem); border: 1px solid #b8b49d;
  background: var(--cream); box-shadow: 0 10px 25px #31413612;
  font: 1rem/1.95 var(--serif);
}
.letter-paper p + p { margin-top: .9rem; }
.signature { text-align: right; }
.letter-details[open] .letter-paper { animation: unfold .35s ease both; }
@keyframes unfold { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.outdoors { padding-block: clamp(3.7rem, 8vw, 7.4rem); background: var(--forest); color: var(--cream); }
.outdoors-layout { display: grid; gap: 1.7rem; grid-template-areas: "heading" "portrait" "walk"; }
.outdoors-heading { grid-area: heading; }
.outdoors-heading .eyebrow { margin-bottom: .78rem; color: #d5dfca; }
.outdoor-portrait { grid-area: portrait; width: 89%; }
.outdoor-walk { grid-area: walk; width: 93%; justify-self: end; }
.spread-photo {
  display: block; width: 100%; padding: .24rem; border: 1px solid #d6dbc075;
  background: #415246; cursor: zoom-in;
}
.spread-photo:hover { background: #77876e; }
.spread-photo img { object-fit: cover; }
.outdoor-portrait img { aspect-ratio: .81; object-position: 50% 42%; }
.outdoor-walk img { aspect-ratio: 1.49; object-position: 51% 50%; }
.outdoors figcaption { margin-top: .5rem; font-size: .8rem; letter-spacing: .12em; color: #e2ead7; }
.album { width: min(calc(100% - 2.5rem), 55rem); padding-block: clamp(4rem, 8vw, 7.1rem); }
.album-heading { display: flex; align-items: end; justify-content: space-between; gap: .7rem; }
.album-hint { font-size: .82rem; text-align: right; color: var(--olive); }
.album-print {
  margin: 1.35rem auto 0; background: var(--cream); border: 1px solid #b7b3a0;
  padding: clamp(.4rem, 1.55vw, .9rem); box-shadow: 0 15px 34px #26342b16;
}
.photo-button {
  display: block; border: 0; width: 100%; padding: 0; background: #e8e5db;
  cursor: zoom-in; touch-action: pan-y;
}
.photo-button img { height: clamp(15rem, 77vw, 34rem); object-fit: contain; }
.album-controls { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .55rem .2rem .1rem .42rem; }
.album-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .7rem; font: .98rem/1.35 var(--serif); }
#photo-count { white-space: nowrap; font: 600 1.02rem/1 var(--roman); color: var(--olive); }
.album-nav { display: flex; gap: .55rem; }
.round-button {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: transparent; font: 500 1.85rem/1 var(--roman);
}
.round-button:hover { background: #183b3910; }
.round-button span { transform: translateY(-.07em); }
.thumbnails {
  display: flex; gap: .45rem; margin: .75rem auto 0; padding: .32rem .32rem .55rem;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #a4aa98 transparent;
}
.thumbnails button { flex: 0 0 auto; width: 3.1rem; height: 3.3rem; padding: .17rem; background: transparent; border: 1px solid transparent; }
.thumbnails button[aria-pressed="true"] { border-color: var(--ink); }
.thumbnails img { height: 100%; object-fit: cover; }
.banquet { padding-bottom: clamp(3.2rem, 8vw, 6.4rem); background: #e6ebdf; }
.banquet-image {
  height: clamp(15rem, 42vw, 31rem); object-fit: cover; object-position: 52% 49%; background: #96b6b7;
}
.banquet-card {
  position: relative; width: min(calc(100% - 2.5rem), 50rem); margin-top: -2.8rem;
  border: 1px solid #b5b298; padding: .4rem; background: var(--cream); box-shadow: 0 18px 45px #2d493121;
}
.card-inside { border: 1px solid #c2bba2; padding: clamp(1.1rem, 4.7vw, 2.55rem); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; }
.card-seal {
  display: grid; place-items: center; padding: .17em; border: 3px double currentColor; color: var(--red);
  font: clamp(1.25rem, 5vw, 1.9rem)/1 var(--serif); transform: rotate(5deg);
}
.invite-line { margin-top: .5rem; font: .98rem/1.55 var(--serif); }
.event-meta {
  display: grid; grid-template-columns: minmax(4.4rem, .7fr) minmax(0, 1.4fr);
  align-items: center; margin-top: 1.2rem; padding-block: .72rem; border-block: 1px solid var(--line);
}
.event-date { display: flex; flex-direction: column; align-items: start; padding-right: .4rem; }
.day { font: 500 clamp(4rem, 18vw, 7rem)/.82 var(--roman); letter-spacing: -.09em; margin-left: -.027em; }
.month { margin-top: .5rem; font-size: .78rem; line-height: 1.45; color: var(--olive); letter-spacing: .035em; }
.event-location { border-left: 1px solid var(--line); padding: .28rem 0 .35rem clamp(.55rem, 3.75vw, 1.65rem); }
.meal { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .43rem; font: 1rem/1.3 var(--serif); }
.meal strong { color: var(--red); font: 600 clamp(1.65rem, 7vw, 2.55rem)/.95 var(--roman); }
.venue { margin-top: .42rem; font: clamp(1rem, 4.55vw, 1.55rem)/1.48 var(--serif); overflow-wrap: anywhere; }
.room { margin-top: .08rem; font: .95rem/1.5 var(--serif); }
.banquet-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.24rem; }
.farewell { padding-block: 2.15rem; background: var(--forest); color: var(--cream); }
.farewell-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.farewell p { font: clamp(1.65rem, 5vw, 2.4rem)/1.1 var(--serif); letter-spacing: .09em; }
dialog {
  width: min(calc(100% - 1.3rem), 64rem); max-height: 95vh; max-height: 95dvh; padding: 0;
  border: 1px solid #f7f7eb77; background: #132421; color: var(--cream);
}
dialog::backdrop { background: #0c1918e0; }
.lightbox-body { position: relative; padding: 3.25rem .65rem .7rem; }
#close { position: absolute; right: .55rem; top: .35rem; }
#large-image { max-height: 68vh; max-height: 68dvh; width: 100%; object-fit: contain; touch-action: pan-y; }
.lightbox-nav { display: flex; justify-content: center; align-items: center; gap: 1.3rem; padding-top: .6rem; }
dialog .round-button:hover { background: #ffffff1f; }
@media (min-width: 720px) {
  .frame { width: min(calc(100% - 7rem), 74.5rem); }
  .masthead { min-height: 5.1rem; }
  .cover {
    grid-template-areas: "intro photo" "action photo"; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
    grid-template-rows: 1fr auto; gap: 1.8rem clamp(1.5rem, 4vw, 4rem);
    padding-block: clamp(2.5rem, 5vw, 4.8rem) clamp(3rem, 6vw, 5.2rem);
  }
  .cover-intro { align-self: center; padding-bottom: .75rem; }
  .cover h1 { font-size: clamp(3.05rem, 7.95vw, 7.4rem); line-height: .97; }
  .cover h1 span { display: block; }
  .cover h1 span + span { margin: .15em 0 0 .23em; }
  .cover-names { margin-top: 1.45rem; font-size: clamp(1.15rem, 2.1vw, 1.8rem); gap: .83rem; }
  .cover-photo img { aspect-ratio: 1.27; object-position: 61% 53%; }
  .cover-action { align-self: end; }
  .cover-action time small { font-size: .88rem; }
  .letter-layout {
    max-width: 62rem; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start; gap: clamp(2.85rem, 8vw, 8rem);
  }
  .letter-heading { align-self: start; padding-top: 1.1rem; }
  .outdoors-layout {
    max-width: 64rem; grid-template-areas: "portrait heading" "portrait walk";
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center;
    grid-template-rows: auto 1fr; column-gap: clamp(2rem, 7vw, 6rem); row-gap: 1.35rem;
  }
  .outdoors-heading { align-self: end; padding-top: 1.1rem; }
  .outdoor-portrait, .outdoor-walk { width: 100%; }
  .outdoor-walk { align-self: end; }
  .album { width: min(calc(100% - 7rem), 55rem); }
  .album-hint { font-size: .92rem; }
  .thumbnails button { width: 3.5rem; height: 3.8rem; }
  .banquet-card { width: min(calc(100% - 7rem), 45rem); margin-top: -5.35rem; }
  .event-meta { grid-template-columns: minmax(6rem, .65fr) minmax(0, 1.8fr); }
  .month { font-size: .92rem; }
}
@media (min-width: 720px) and (max-width: 960px) {
  .cover-action { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .cover-action time span { font-size: 2.28rem; }
  .letter-heading h2 { font-size: clamp(2.05rem, 4.4vw, 2.7rem); }
}
@media (max-width: 359px) {
  .frame, .album, .banquet-card { width: calc(100% - 1.75rem); }
  .masthead .eyebrow { font-size: .68rem; }
  .album-hint { max-width: 6.6rem; }
  .button { padding-inline: .8rem; }
  .card-inside { padding-inline: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important; scroll-behavior: auto !important;
    transition-duration: 0s !important; transition-delay: 0s !important;
  }
}

@font-face {
  font-family: Wedding Brush;
  src: url("brush.woff2?v=6") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Wedding Hand;
  src: url("caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f3e7d0;
  --cream: #fff3d9;
  --ink: #293f34;
  --forest: #315644;
  --olive: #526148;
  --line: #a59e79;
  --red: #943e31;
  --ocean: #225d76;
  --brush: "Wedding Brush", var(--serif);
  --hand: "Wedding Hand", var(--roman);
}
body {
  background: var(--paper) url("paper-texture.webp") 50% 0 / 43rem auto repeat;
}
h1, h2 { font-family: var(--brush); }
.sticker {
  position: absolute; z-index: 2; width: var(--sticker-size, 4.5rem); aspect-ratio: 1;
  background: url("scrapbook-stickers.webp") 0 0 / 200% 200% no-repeat;
  filter: drop-shadow(1px 3px 0 #a45d3844); pointer-events: none;
}
.sticker-cloud { background-position: 100% 0; }
.sticker-map { background-position: 0 100%; }
.sticker-calendar { background-position: 100% 100%; }
.masthead {
  width: min(calc(100% - 2.5rem), 64rem); min-height: 3.75rem; border-bottom: 1px dashed #8c8c67;
}
.masthead .eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .14em; }
.masthead .text-link { color: #365643; }
.monogram {
  transform: rotate(-8deg); border-width: 2px; border-radius: 49% 46% 48% 46% / 50% 44% 52% 43%;
  background: #f3e2ae; border-color: #7a8c63; font: 700 1.4rem/.8 var(--hand); letter-spacing: -.07em;
}
.cover {
  width: min(calc(100% - 2.4rem), 42rem); grid-template-areas: "intro" "photo" "names" "action";
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; align-items: start;
  text-align: center; gap: .36rem; padding-block: 1.15rem 2.3rem;
}
.cover-intro { position: relative; padding: 0; margin-inline: auto; align-self: start; transform: translateX(-.35rem); }
.cover-script {
  position: relative; z-index: 1; display: inline-block;
  font: 700 clamp(3.9rem, 15.2vw, 6.4rem)/.93 var(--hand); letter-spacing: -.055em;
  color: #a95614; -webkit-text-stroke: .095em #fff5d9; paint-order: stroke fill;
  text-shadow: .028em .056em 0 #a36b5252; transform: rotate(-6deg);
}
.cover h1 {
  position: relative; z-index: 1; margin-top: .2em; color: var(--forest);
  font: 400 clamp(2.85rem, 10.2vw, 4.6rem)/.96 var(--brush); letter-spacing: .045em;
  transform: rotate(-3deg);
}
.cover h1 span { display: inline; }
.cover h1 span + span { margin: 0; }
.cover h1::after {
  content: ""; display: block; width: 71%; height: .13em; margin: -.025em auto .065em;
  background: #d6a342a0; border-radius: 52% 24% 46% 21% / 47% 72% 40% 59%; transform: rotate(-2deg);
}
.cover-sun { --sticker-size: 4.15rem; right: -3.75rem; top: -.55rem; transform: rotate(12deg); }
.cover-photo {
  position: relative; isolation: isolate; width: 100%;
  margin-top: .35rem; padding-bottom: .05rem;
}
.cover-photo::before {
  content: ""; position: absolute; z-index: -1; inset: 6% 5% 11% 4%;
  background: #dbb75d50; transform: rotate(3deg);
  border-radius: 17% 21% 27% 16% / 24% 13% 23% 19%;
}
.cover-photo-button { transform: rotate(-1.65deg); }
.cover-photo img, .spread-photo img {
  -webkit-mask-image: radial-gradient(ellipse 73% 69% at 51% 50%, #000 66%, #000f 71%, #0007 86%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 73% 69% at 51% 50%, #000 66%, #000f 71%, #0007 86%, transparent 100%),
    linear-gradient(90deg, transparent, #000 5.5%, #000 96%, transparent),
    linear-gradient(0deg, transparent, #000 6%, #000 94.5%, transparent);
  mask-composite: intersect;
}
.cover-photo img {
  aspect-ratio: 1.13; object-position: 64% 56%; background: transparent;
  border-radius: 13% 16% 12% 16% / 16% 21% 15% 18%;
}
.cover-cloud { --sticker-size: clamp(4.15rem, 16vw, 7.5rem); bottom: 2%; left: -3%; transform: rotate(-14deg); }
.cover-photo figcaption { padding-top: 0; margin-top: -.15rem; padding-right: .47rem; color: #425b4f; }
.cover-names {
  grid-area: names; position: relative; isolation: isolate; justify-self: center;
  padding: .17rem .6rem .32rem; margin: .4rem 0 .7rem; gap: .59rem;
  font: 400 clamp(1.65rem, 6.6vw, 2.5rem)/1.1 var(--brush); letter-spacing: .045em;
}
.cover-names::before {
  content: ""; position: absolute; z-index: -1; inset: 58% -3% 8%; background: #ebc465a6;
  border-radius: 35% 20% 56% 20% / 55% 42% 46% 50%; transform: rotate(-2deg);
}
.cover-names i { color: #a44136; font: 700 1.3em/.8 var(--hand); }
.cover-action {
  justify-self: center; justify-content: space-between; align-items: center;
  width: min(100%, 21rem); gap: .85rem; padding: .75rem .4rem 0;
  border-top: 1px dashed #8c8c67; flex-direction: row; text-align: left;
}
.cover-action time span { color: var(--ocean); font: 700 clamp(2rem, 8.4vw, 2.7rem)/.8 var(--hand); }
.cover-action time small { margin-top: .37rem; font-weight: 600; }
.button {
  border-radius: 12px 18px 13px 17px / 11px 14px 11px 18px;
  border-width: 1px; box-shadow: 2px 3px 0 #8d82623e;
}
.button-filled { background: var(--forest); color: #fff6df; }
.letter {
  background: #d5dfc556; border-block: 1px dashed #919275;
  padding-block: clamp(3rem, 7vw, 5.85rem);
}
.letter-heading h2 {
  position: relative; display: inline-block; color: var(--forest);
  font-size: clamp(2.15rem, 7.45vw, 3.8rem); line-height: 1.2; letter-spacing: .025em;
}
.letter-heading h2::after {
  content: ""; position: absolute; width: 64%; bottom: -.08em; left: 6%;
  border-bottom: .105em solid #c88a5f94; border-radius: 48%; transform: rotate(-4deg);
}
.letter-heading p { margin-top: 1rem; }
.envelope {
  background: #899772; border-radius: 2% 5% 4% 3% / 4% 3% 4% 5%;
  transform: rotate(-3deg);
}
.letter-paper {
  background: #fff1d8; border: 1px solid #af9e6c; border-radius: 1% 4% 2% 3% / 2% 3% 4% 4%;
  box-shadow: 4px 5px 0 #7c6c4b24;
}
.letter-toggle { font-weight: 600; }
.outdoors { position: relative; padding-block: clamp(3.45rem, 8vw, 6rem); color: var(--ink); background: transparent; }
.outdoors-layout { gap: 2rem; }
.outdoors-heading { position: relative; }
.outdoors-heading .eyebrow { color: #4f614b; }
.outdoors-heading h2, .album-heading h2 { color: var(--forest); }
.spread-cloud { right: .5rem; top: -.65rem; transform: rotate(10deg); }
.outdoors figure {
  position: relative; padding: .45rem .45rem .32rem; border-radius: 1% 3% 2% 4% / 2% 3% 2% 3%;
  background: #fff3da; box-shadow: 2px 5px 10px #6a644232, 0 0 0 1px #ead7ac;
}
.outdoors figure::before {
  content: ""; position: absolute; z-index: 2; top: -.45rem; width: 4rem; height: 1.04rem;
  left: calc(50% - 2rem); transform: rotate(8deg); pointer-events: none;
  clip-path: polygon(2% 0, 98% 4%, 95% 32%, 100% 60%, 97% 100%, 3% 93%, 5% 64%, 0 24%);
  background: repeating-linear-gradient(90deg, #e8c474b0 0 5px, #e0b9689f 5px 7px);
}
.outdoor-portrait { width: 87%; transform: rotate(-3.2deg); }
.outdoor-walk { width: 92%; transform: rotate(2.7deg); }
.outdoors .outdoor-walk::before { transform: rotate(-11deg); }
.spread-photo { border: 0; padding: 0; background: transparent; }
.spread-photo:hover { background: transparent; }
.spread-photo img { border-radius: 8% 7% 9% 10% / 8% 13% 9% 10%; }
.outdoor-portrait img { aspect-ratio: .82; }
.outdoor-walk img { aspect-ratio: 1.49; }
.outdoors figcaption {
  margin: .34rem .36rem .2rem; color: var(--ink); font-family: var(--brush); font-size: 1.14rem; letter-spacing: .02em;
}
.album { border-top: 1px dashed #8c8c67; }
.album-print {
  border-radius: 1% 3% 2% 2% / 1% 2% 2% 2%;
  border-color: #c1ab7b; background: #fff0d5; box-shadow: 3px 5px 0 #99875d36;
}
.photo-button { background: #e9ddc6; border-radius: 2%; overflow: hidden; }
.photo-button img {
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent),
    linear-gradient(0deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-composite: intersect;
}
.banquet { background: #d8e7dd48; border-block: 1px dashed #91a27f; overflow: hidden; }
.banquet-image {
  width: min(90%, 42rem); height: auto; max-height: 16rem; object-fit: contain;
  margin: 1.2rem auto 0; padding: .1rem; background: transparent;
}
.banquet-card {
  margin-top: -.95rem; background: #f9e8c6; border: 1px solid #c4a973;
  border-radius: 1% 3% 1% 2% / 3% 4% 2% 4%; box-shadow: 5px 7px 0 #98825433;
}
.card-inside { background: #fff0d3; border: 1px dashed #a89161; border-radius: 2% 4% 2% 1% / 2% 2% 3% 2%; }
.card-heading h2 { color: var(--red); }
.card-heading .eyebrow { color: #6f6140; }
.card-seal { color: #a64b35; font-family: var(--brush); border-radius: 9% 11% 7% 8%; }
.event-date, .event-location { position: relative; isolation: isolate; }
.event-meta { border-block: 1px dashed #9f9469; }
.day { font: 700 clamp(3.6rem, 16vw, 6.25rem)/.85 var(--hand); margin-left: 0; letter-spacing: -.05em; color: var(--ocean); }
.meal strong { font: 700 clamp(1.95rem, 7.5vw, 2.85rem)/.82 var(--hand); }
.venue { font-weight: 600; }
.date-sticker { --sticker-size: clamp(2.7rem, 9vw, 4rem); z-index: -1; top: -.38rem; right: .05rem; transform: rotate(-13deg); opacity: .8; }
.map-sticker { --sticker-size: clamp(2.45rem, 9vw, 4rem); z-index: -1; top: -.4rem; right: 0; transform: rotate(7deg); opacity: .8; }
.schedule-card {
  width: min(calc(100% - 2.5rem), 45rem); margin-top: clamp(1.7rem, 5vw, 2.8rem);
  padding: clamp(1.2rem, 4.5vw, 2.2rem) clamp(1rem, 4.7vw, 2.55rem);
  border: 1px solid #c4a973; border-radius: 2% 1% 3% 1% / 2% 4% 3% 2%;
  background: #fff0d3; box-shadow: 3px 4px 0 #98825426;
}
.schedule-card h2 { color: var(--forest); font-size: clamp(1.85rem, 6vw, 2.75rem); }
.schedule-list { margin: .65rem 0 0; padding: 0; list-style: none; }
.schedule-list li {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); align-items: baseline;
  column-gap: .85rem; padding-block: .64rem; border-bottom: 1px dashed #b9ad85;
}
.schedule-list li:last-child { border-bottom: 0; padding-bottom: .15rem; }
.schedule-list time { color: var(--ocean); font: 700 1.55rem/1 var(--hand); }
.schedule-list small { color: var(--olive); font-size: .875rem; white-space: nowrap; }
.rsvp-card { scroll-margin-top: 1rem; }
.rsvp-intro { margin-top: .3rem; color: var(--olive); font-size: .92rem; }
.rsvp-form { display: grid; gap: .95rem; margin-top: .9rem; }
.rsvp-field, .rsvp-fieldset { min-inline-size: 0; }
.rsvp-field { display: grid; gap: .3rem; font-size: .95rem; }
.rsvp-field input, .rsvp-field textarea {
  width: 100%; min-height: 2.75rem; padding: .55rem .65rem;
  border: 1px solid #ae9f70; border-radius: 9px 11px 8px 10px;
  background: #fffaed; color: var(--ink); font: 1rem/1.45 var(--sans);
}
.rsvp-field textarea { resize: vertical; }
.rsvp-field small, .rsvp-hint { color: var(--olive); font-size: .875rem; }
.rsvp-fieldset { margin: 0; padding: .55rem .66rem .69rem; border: 1px dashed #b9ad85; border-radius: 10px; }
.rsvp-fieldset legend { padding-inline: .25rem; font-size: .95rem; }
.rsvp-fieldset .rsvp-field + .rsvp-field, .rsvp-child-count { margin-top: .5rem; }
.rsvp-hint { margin-bottom: .5rem; }
.rsvp-choices { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.rsvp-choices label { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .4rem; font-size: .94rem; }
.rsvp-choices input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }
.rsvp-form .button, .rsvp-offline .button { min-height: 3rem; }
.rsvp-form .button:disabled { opacity: .7; cursor: default; }
.rsvp-offline { margin-top: .9rem; }
.rsvp-status { font-size: .95rem; color: #8c352a; }
.rsvp-status[data-success] { color: var(--forest); }
.farewell { background: transparent; color: var(--forest); }
.farewell p { font: 400 clamp(1.8rem, 6vw, 2.6rem)/1.05 var(--brush); transform: rotate(-4deg); }
@media (min-width: 720px) {
  .cover { padding-block: 1.45rem 3.3rem; }
  .cover-photo img { aspect-ratio: 1.56; object-position: 63% 50%; }
  .cover-sun { --sticker-size: 6.85rem; right: -6rem; }
  .cover-action time small { font-size: .9rem; }
  .outdoors-layout { gap: 1.6rem clamp(2.6rem, 8vw, 6rem); }
  .outdoor-portrait, .outdoor-walk { width: 100%; }
  .spread-cloud { right: 7%; }
  .banquet-card { margin-top: -3.1rem; }
  .banquet-image { max-height: 19rem; }
}
@media (max-width: 359px) {
  .cover { width: calc(100% - 1.65rem); }
  .cover-sun { --sticker-size: 3.35rem; right: -3rem; }
  .date-sticker { right: -.15rem; }
  .map-sticker { right: -.4rem; }
}

@media (max-width: 719px) {
  :root {
    --mobile-inset: max(1.2rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }
  .frame, .cover, .album, .banquet-card, .schedule-card {
    width: calc(100% - 2 * var(--mobile-inset));
  }
  .masthead { padding-top: calc(.5rem + env(safe-area-inset-top)); }
  .masthead .text-link {
    display: inline-flex; align-items: center; min-height: 2.75rem;
  }
  .cover-action .button, .banquet-actions .button { min-height: 3rem; }
  .cover-action time small { font-size: .875rem; }
  .banquet-actions .button { width: 100%; padding-inline: .5rem; }
  .round-button { width: 2.75rem; height: 2.75rem; }
  .farewell { padding-bottom: calc(2.15rem + env(safe-area-inset-bottom)); }
  dialog { overscroll-behavior: contain; }
  #large-image {
    max-height: min(68dvh, calc(100dvh - 8.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  }
}
@media (max-width: 359px) {
  :root {
    --mobile-inset: max(.875rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }
}
@media (max-width: 719px) and (max-height: 700px) {
  .cover { padding-top: .8rem; gap: .28rem; }
  .cover-script { font-size: clamp(3.05rem, 14vw, 4rem); }
  .cover h1 { font-size: clamp(2.55rem, 9.7vw, 3.7rem); }
  .cover-photo { margin-top: .2rem; }
  .cover-photo img { aspect-ratio: 1.29; }
  .cover-names { margin-block: .27rem .55rem; }
  .cover-action { padding-top: .65rem; }
  .cover-sun { --sticker-size: 3.65rem; right: -3.25rem; top: -.43rem; }
}

.rsvp-form [hidden] { display: none; }
