:root {
  --umber: #2B1E16;
  --cocoa: #4A3324;
  --sandstone: #CDB391;
  --linen: #F4ECE2;
  --dahlia: #9C5530;
  --petal: #EBD3C6;
  --flame: #F3C877;

  --ink: #3A2A1F;
  --ink-soft: #6E5646;

  --serif: "Gilda Display", "Times New Roman", serif;
  --script: "Pinyon Script", cursive;

  --app-w: 440px;
  --pvw: min(1vw, calc(var(--app-w) / 100));
  --gutter: calc(7 * var(--pvw));
  --ease: cubic-bezier(.65, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100dvh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--dahlia); outline-offset: 3px; }

.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.btn--glow {
  background: var(--flame);
  color: var(--umber);
  box-shadow: 0 0 0 1px rgba(243, 200, 119, .4), 0 0 40px rgba(243, 200, 119, .35);
}
.btn--glow:hover { box-shadow: 0 0 0 1px rgba(243, 200, 119, .6), 0 0 60px rgba(243, 200, 119, .55); }
.btn--ghost { background: transparent; color: var(--linen); box-shadow: inset 0 0 0 1px rgba(244, 236, 226, .6); }
.btn--ghost:hover { background: rgba(244, 236, 226, .12); }
.btn--ghost-dark { background: transparent; color: var(--umber); box-shadow: inset 0 0 0 1px var(--sandstone); }
.btn--ghost-dark:hover { background: rgba(205, 179, 145, .2); }
.btn--solid { background: var(--umber); color: var(--linen); width: 100%; }
.btn--solid:hover { background: var(--cocoa); }
.btn--dahlia { background: var(--dahlia); color: var(--linen); }
.btn--dahlia:hover { background: #874725; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.link {
  color: var(--dahlia);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- Cover ---------- */
.cover {
  position: fixed;
  top: 0; bottom: 0;
  left: 50%;
  width: min(100%, var(--app-w));
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--linen);
  transition: visibility 0s linear 1.6s;
}
.cover.is-open { visibility: hidden; pointer-events: none; }

/* The lit ceiling, split in two halves that part on open */
.cover__half {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  overflow: hidden;
  transition: transform 1.5s var(--ease);
}
.cover__half--top { top: 0; }
.cover__half--bottom { bottom: 0; }
.cover__ceiling {
  position: absolute;
  left: 0; right: 0;
  height: 100dvh;
  background:
    radial-gradient(ellipse 60% 42% at 50% 50%, rgba(43, 30, 22, .82), rgba(43, 30, 22, .35) 70%, rgba(43, 30, 22, .15)),
    url("assets/img/ceiling.jpg") center / cover no-repeat,
    var(--umber);
}
.cover__half--top .cover__ceiling { top: 0; }
.cover__half--bottom .cover__ceiling { bottom: 0; }
/* film grain over the whole cover */
.cover__ceiling::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cover.is-open .cover__half--top { transform: translateY(-101%); }
.cover.is-open .cover__half--bottom { transform: translateY(101%); }

.cover__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.cover.is-open .cover__body { opacity: 0; transform: scale(.94); }

.cover__lead { margin: 0 0 18px; font-size: 15px; letter-spacing: .08em; color: var(--petal); }

/* Arch window with the couple, framed by a thin offset gold line */
.cover__arch {
  position: relative;
  margin: 0;
  width: min(210px, 27dvh, calc(56 * var(--pvw)));
  aspect-ratio: 3 / 4.1;
}
.cover__arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 72%;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 30px 60px rgba(20, 12, 6, .55);
}
.cover__arch::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(43, 30, 22, .92), rgba(43, 30, 22, .5) 45%, transparent);
}
.cover__arch::before {
  content: "";
  position: absolute;
  inset: -10px -10px 0;
  border: 1px solid rgba(243, 200, 119, .75);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 18px rgba(243, 200, 119, .25);
}

.cover__names {
  position: relative;
  margin: -0.62em 0 0;
  font-size: clamp(40px, min(calc(14.5 * var(--pvw)), 8.5dvh), 96px);
  line-height: .95;
  color: var(--linen);
  text-shadow: 0 2px 24px rgba(20, 12, 6, .7);
}
.cover__names .amp { display: block; font-size: .7em; line-height: .8; color: var(--flame); }
.cover__date { margin: 16px 0 0; font-size: 15px; letter-spacing: .3em; color: var(--sandstone); }

.cover__guest { margin: clamp(20px, 4dvh, 40px) 0 clamp(18px, 3dvh, 28px); }
.cover__guest p { margin: 0; font-size: 14px; color: var(--sandstone); }
.cover__guest .cover__guest-name { margin-top: 2px; font-size: 22px; color: var(--linen); }

/* ---------- Page layout ---------- */
.stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--umber);
}
.stage__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.stage__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 30, 22, .85) 0%, rgba(43, 30, 22, .25) 35%, transparent 55%);
}
.stage__text {
  position: absolute;
  left: 0; right: 0; bottom: max(40px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--linen);
  padding: 0 var(--gutter);
}
.stage__names { margin: 0; font-size: clamp(52px, calc(13 * var(--pvw)), 88px); }
.stage__date { margin: 8px 0 0; font-size: 15px; letter-spacing: .06em; color: var(--petal); }

/* When the cover opens, the hero photo settles from a slight zoom */
.stage__img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
body.is-open .stage__img { transform: scale(1); }

/* Always the phone layout: on larger screens it sits in a centered column */
.page {
  position: relative;
  max-width: var(--app-w);
  margin: 0 auto;
  background: var(--linen);
}
@media (min-width: 480px) {
  html {
    background:
      linear-gradient(rgba(43, 30, 22, .78), rgba(43, 30, 22, .9)),
      url("assets/img/ceiling.jpg") center / cover fixed,
      var(--umber);
  }
  body { background: transparent; }
  .page { box-shadow: 0 0 0 1px rgba(243, 200, 119, .25), 0 30px 80px rgba(0, 0, 0, .5); }
  .stage { height: min(100svh, 860px); }
}

/* ---------- Sections ---------- */
/*
  Every section is one layer of the carved ceiling: it rises over the previous one
  with a wavy edge and a thin line of cove light along that edge.
*/
:root {
  --wave-h: 48px;
  --wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 240 2, 480 4, 720 24 S 1200 46, 1440 14 L1440 48 L0 48 Z'/%3E%3C/svg%3E");
  --wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 240 46, 720 44, 900 22 S 1260 2, 1440 30 L1440 48 L0 48 Z'/%3E%3C/svg%3E");
  --line-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 240 2, 480 4, 720 24 S 1200 46, 1440 14' fill='none' stroke='%23F3C877' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --line-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 14 C 240 46, 720 44, 900 22 S 1260 2, 1440 30' fill='none' stroke='%23F3C877' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

.scroll { overflow-x: clip; }

.sec { padding: 88px var(--gutter); text-align: center; position: relative; }

.layer {
  margin-top: calc(var(--wave-h) * -1);
  padding-top: calc(88px + var(--wave-h));
  isolation: isolate;
}
.layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--layer-bg);
  background-blend-mode: var(--layer-blend, normal);
  -webkit-mask: var(--wave-a) top / 100% var(--wave-h) no-repeat, linear-gradient(#000, #000) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
          mask: var(--wave-a) top / 100% var(--wave-h) no-repeat, linear-gradient(#000, #000) 0 calc(var(--wave-h) - 1px) / 100% calc(100% - var(--wave-h) + 1px) no-repeat;
}
.layer::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--wave-h);
  z-index: -1;
  background: var(--line-a) 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 0 5px rgba(243, 200, 119, .85));
  pointer-events: none;
}
.layer:nth-of-type(even)::before {
  -webkit-mask-image: var(--wave-b), linear-gradient(#000, #000);
          mask-image: var(--wave-b), linear-gradient(#000, #000);
}
.layer:nth-of-type(even)::after { background-image: var(--line-b); }

.layer--tex   { --layer-bg: url("assets/img/plaster.webp") 0 0 / 360px, var(--linen); --layer-blend: multiply; }
.layer--petal { --layer-bg: url("assets/img/plaster.webp") 0 0 / 360px, var(--petal); --layer-blend: multiply; }
.layer--dark  {
  --layer-bg:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(243, 200, 119, .16), transparent 70%),
    linear-gradient(rgba(43, 30, 22, .86), rgba(43, 30, 22, .94)),
    url("assets/img/ceiling.jpg") center / cover,
    var(--umber);
}
.layer--photo {
  --layer-bg:
    linear-gradient(to bottom, rgba(43, 30, 22, .4), rgba(43, 30, 22, .88)),
    url("assets/img/stilllife.jpg") center / cover,
    var(--umber);
}

/* Photo-over-text sections need to sit on the hero edge, so give the hero text room */
.stage__text { bottom: max(84px, calc(env(safe-area-inset-bottom) + 64px)); }


.h2 {
  margin: 0 0 36px;
  font-weight: 400;
  font-size: clamp(30px, calc(8 * var(--pvw)), 38px);
  line-height: 1.2;
  color: var(--umber);
  text-wrap: balance;
}
.h2--light { color: var(--linen); }
.prose { max-width: 34ch; margin: 0 auto; color: var(--ink-soft); font-size: 18px; line-height: 1.75; }
.prose--light { color: var(--linen); }
.prose--sand { color: var(--sandstone); }
.note { margin: 24px 0 0; font-size: 15px; color: var(--ink-soft); }
.note--sand { color: var(--sandstone); }

/* Arch frame used across the page (cover, couple): photo + offset gold line */
.arch { position: relative; margin: 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.arch::before {
  content: "";
  position: absolute;
  inset: -8px -8px 0;
  border: 1px solid rgba(156, 85, 48, .55);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

/* Illustrations: watercolour on light layers, gold line on dark layers */
.ill { display: block; margin: 0 auto; pointer-events: none; user-select: none; }
.ill--wc { mix-blend-mode: multiply; filter: brightness(1.07) contrast(1.06); }
.ill--gold { mix-blend-mode: screen; filter: contrast(1.2); }
.ill--flip { transform: scaleX(-1); }
.ill--spray { width: min(250px, 74%); margin-bottom: 26px; }
.ill--spray-sm { width: min(180px, 56%); margin-bottom: 18px; }
.ill--sprig { width: 50px; margin-bottom: 14px; }
.ill--bow-sm { width: 96px; margin-bottom: 12px; }
.ill--candles { width: 104px; margin-bottom: 22px; }

/* Opening */
.sec--open { padding-bottom: 104px; }
.verse {
  max-width: 24ch;
  margin: 0 auto;
  font-size: 25px;
  line-height: 1.5;
  color: var(--umber);
}
.verse-ref { margin: 14px 0 0; font-size: 14px; color: var(--dahlia); letter-spacing: .06em; }
.verse-ref::after {
  content: "";
  display: block;
  width: 120px; height: 14px;
  margin: 36px auto 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7 C 20 0, 40 14, 60 7 S 100 0, 120 7' fill='none' stroke='%23CDB391' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Couple: staggered arches, like two place cards across the table */
.sec--couple { padding-bottom: 104px; }
.duo { max-width: 420px; margin: 0 auto; }
.person {
  display: grid;
  grid-template-columns: 54% 1fr;
  align-items: end;
  gap: 18px;
  text-align: left;
}
.person--flip { grid-template-columns: 1fr 54%; text-align: right; }
.person--flip .person__photo { order: 2; }
.person__photo { aspect-ratio: 3 / 4.2; }
.person__photo img { box-shadow: 0 22px 40px rgba(43, 30, 22, .25); }
.person__text { padding-bottom: 6px; }
.person__name { margin: 0; font-size: clamp(32px, calc(9 * var(--pvw)), 46px); line-height: 1; color: var(--umber); }
.person__name span { display: block; margin-top: 4px; font-size: .78em; color: var(--dahlia); }
.person__parents { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.duo__amp { margin: 6px 0; font-size: 84px; line-height: 1; color: var(--dahlia); opacity: .85; }

/* Countdown: candles over the dark ceiling */
.sec--count { color: var(--linen); padding-bottom: 104px; }
.count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 36px;
}
.count div {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 0 14px;
  border: 1px solid rgba(243, 200, 119, .45);
  border-radius: 999px 999px 6px 6px;
  background: rgba(243, 200, 119, .05);
}
.count span { font-size: clamp(28px, calc(8.5 * var(--pvw)), 38px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--linen); }
.count small { margin-top: 8px; font-size: 12px; color: var(--sandstone); }

/* Event: a menu card tied with a watercolour bow */
.sec--event { padding-bottom: 104px; }
.setting { position: relative; margin: 64px auto 40px; }
.menu-card {
  position: relative;
  width: min(270px, 78%);
  margin: 0 auto;
  transform: rotate(-1.5deg);
  padding: 92px 16px 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: url("assets/img/plaster.webp") 0 0 / 260px, var(--petal);
  background-blend-mode: multiply;
  border-radius: 999px 999px 6px 6px;
  box-shadow: 0 18px 34px rgba(43, 30, 22, .28);
  color: var(--umber);
}
.menu-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(156, 85, 48, .45);
  border-radius: 999px 999px 3px 3px;
  pointer-events: none;
}
.setting__bow {
  position: absolute;
  top: -44px; left: 50%;
  z-index: 1;
  width: 108px;
  transform: translateX(-50%);
}
.menu-card__title { margin: 0; font-weight: 400; font-size: 17px; line-height: 1.35; color: var(--dahlia); }
.menu-card__day { margin: 10px 0 0; font-size: 76px; line-height: .95; }
.menu-card__month { margin: 2px 0 10px; font-size: 16px; letter-spacing: .08em; }
.menu-card__time { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.menu-card__rule { width: 70px; margin: 14px 0 12px; color: var(--sandstone); }
.menu-card__place { margin: 0; font-size: 17px; line-height: 1.3; }
.menu-card__city { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }

/* Dress code */
.sec--dress { padding-bottom: 104px; }
.swatches {
  list-style: none; padding: 0;
  margin: 40px auto 0;
  display: flex; justify-content: center; gap: 6px;
  max-width: 360px;
}
.swatches li {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  font-size: 12px; color: var(--petal);
}
.swatches li::before {
  content: "";
  width: 100%;
  aspect-ratio: 1 / 2.4;
  background: var(--c);
  border-radius: 999px 999px 4px 4px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 1px rgba(243, 200, 119, .35), 0 16px 26px rgba(0, 0, 0, .3);
}

/* Story: arch-shaped year markers along a gold thread */
.sec--story { padding-bottom: 104px; }
.story { list-style: none; padding: 0; margin: 0 auto; max-width: 380px; text-align: left; }
.story li {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding-bottom: 34px;
}
.story li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 29px; top: 64px; bottom: 6px;
  border-left: 1px dashed rgba(156, 85, 48, .5);
}
.story__year {
  align-self: start;
  padding: 18px 0 8px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--flame);
  background: var(--umber);
  border-radius: 999px 999px 4px 4px;
}
.story__year small { display: block; margin-bottom: 1px; font-size: 11px; letter-spacing: .08em; color: var(--sandstone); }
.story h3 { margin: 6px 0 6px; font-weight: 400; font-size: 22px; color: var(--umber); }
.story p { margin: 0; color: var(--ink-soft); }

/* Gallery */
.sec--gallery { padding-left: 14px; padding-right: 14px; padding-bottom: 104px; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 8px;
  max-width: 520px; margin: 0 auto;
}
.g {
  padding: 0; border: 0;
  background: var(--cocoa);
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(243, 200, 119, .25);
}
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g--tall { grid-row: span 2; border-radius: 999px 999px 4px 4px; }
.g--wide { grid-column: span 2; grid-row: span 2; }

/* RSVP: the form is a tall arched card */
.sec--rsvp { padding-bottom: 104px; }
.card {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 84px 26px 34px;
  background: var(--linen);
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 24px 50px rgba(43, 30, 22, .18);
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(156, 85, 48, .4);
  border-radius: 999px 999px 4px 4px;
  pointer-events: none;
}
.card .h2 { margin-bottom: 14px; }
.rsvp { position: relative; max-width: 380px; margin: 30px auto 0; text-align: left; }
.field { display: block; margin: 0 0 22px; border: 0; padding: 0; }
.field > span, .field legend { display: block; margin-bottom: 8px; font-size: 15px; color: var(--ink-soft); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 17px; color: var(--umber);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--sandstone);
  border-radius: 0;
  padding: 8px 0;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--dahlia) 50%), linear-gradient(135deg, var(--dahlia) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--dahlia); }
.field textarea { resize: vertical; }
.field--choice { display: flex; flex-wrap: wrap; gap: 10px; }
.field--choice legend { width: 100%; }
.pill { position: relative; flex: 1; min-width: 130px; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span {
  display: block; text-align: center;
  padding: 12px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--sandstone);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pill input:checked + span { background: var(--dahlia); color: var(--linen); box-shadow: none; }
.pill input:focus-visible + span { outline: 2px solid var(--dahlia); outline-offset: 3px; }
.form-error { margin: -6px 0 16px; color: var(--dahlia); font-size: 15px; }

/* Gift: two cards, one per account */
.sec--gift { padding-bottom: 104px; }
.accts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  max-width: 480px;
  margin: 36px auto 0;
}
.acct {
  position: relative;
  padding: 30px 18px 24px;
  background: var(--linen);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(43, 30, 22, .14);
}
.acct::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(205, 179, 145, .8);
  border-radius: 9px;
  pointer-events: none;
}
.acct__bank { display: block; height: 26px; width: auto; margin: 0 auto 18px; }
.acct__num { margin: 0; font-size: 25px; letter-spacing: .03em; color: var(--umber); font-variant-numeric: tabular-nums; }
.acct__name { margin: 4px 0 18px; font-size: 15px; color: var(--ink-soft); }

/* Wishes */
.sec--wishes { padding-bottom: 104px; }
.wish-form { max-width: 380px; margin: 30px auto 0; text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wishes__count { margin: 40px 0 16px; font-size: 14px; letter-spacing: .04em; color: var(--dahlia); }
.wishes {
  list-style: none;
  margin: 0 auto;
  padding: 4px 4px 4px 0;
  max-width: 380px;
  max-height: 460px;
  overflow-y: auto;
  text-align: left;
  display: grid;
  gap: 12px;
  overscroll-behavior: contain;
}
.wish {
  position: relative;
  padding: 18px 18px 14px 22px;
  background: url("assets/img/plaster.webp") 0 0 / 260px, var(--petal);
  background-blend-mode: multiply;
  border-radius: 4px 14px 14px 4px;
  box-shadow: inset 3px 0 0 var(--dahlia);
}
.wish__msg { margin: 0; font-size: 16px; line-height: 1.6; color: var(--umber); white-space: pre-line; overflow-wrap: anywhere; }
.wish__meta { display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.wish__name { color: var(--dahlia); }

/* Closing */
.sec--close { padding-top: calc(var(--wave-h) + 110px); padding-bottom: 120px; }
.close__names { margin: 24px 0 0; font-size: clamp(50px, calc(13 * var(--pvw)), 72px); color: var(--flame); }
.close__date { margin: 12px 0 0; font-size: 14px; letter-spacing: .3em; color: var(--sandstone); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(43, 30, 22, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(244, 236, 226, .12);
  color: var(--linen); font-size: 26px; line-height: 1;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px);
  padding: 10px 20px; border-radius: 999px;
  background: var(--umber); color: var(--linen); font-size: 15px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

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