/* ==========================================================================
   Olive: a Mediterranean wedding invitation, ported from landing/olive (css/style.css).
   Class names follow the landing, so its changes carry over.
   - a single column: full width on phones, a centred 480px column from 560px
   - everything works without JavaScript; .js (set by invitation.js) adds the envelope intro, the scroll
     lock until it opens, reveals, the countdown and the floating RSVP button
   ========================================================================== */

/* local fonts (OFL, see fonts/OFL.txt): no third-party requests under the CSP */
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; src: url("fonts/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; src: url("fonts/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; src: url("fonts/eb-garamond-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; src: url("fonts/eb-garamond-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; src: url("fonts/eb-garamond-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; src: url("fonts/eb-garamond-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; src: url("fonts/eb-garamond-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; src: url("fonts/eb-garamond-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 100 900; src: url("fonts/jost-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 100 900; src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-display: swap; font-family: "Jost"; font-style: normal; font-weight: 100 900; src: url("fonts/jost-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* palette */
  --paper:      #f4ece2;
  --paper-2:    #f7f1ea;
  --paper-3:    #efe5d9;
  --ivory:      #fbf8f3;
  --ink:        #1f1b16;
  --ink-2:      #4a433a;
  --ink-3:      #7c7266;
  --line:       #ddd0c1;
  --line-2:     #cbbba8;
  --olive:      #7f7b5f;
  --olive-600:  #6c6a4f;
  --olive-700:  #57553f;
  --olive-300:  #b7b398;
  --sand:       #c9ab86;
  --err:        #9a4b36;

  /* type */
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-body:    "EB Garamond", Garamond, Georgia, serif;
  --f-sans:    "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;

  /* layout */
  --gutter: 24px;
  --col: 480px;
  --radius: 14px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --noise: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  background: #e6dccf var(--noise);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
p, h1, h2, h3, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1.5px solid var(--olive); outline-offset: 3px; }

/* Cormorant/EB Garamond default to old-style figures; the design uses lining ones.
   !important because every `font:` shorthand resets font-variant-numeric. */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
.countdown-grid b { font-variant-numeric: lining-nums tabular-nums !important; }

.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- page column ---------- */
.page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper) var(--noise);
  overflow: clip;
}
@media (min-width: 560px) {
  body {
    background:
      radial-gradient(ellipse at 70% 0%, rgba(255,250,242,.65), transparent 55%),
      #e3d8ca var(--noise);
    background-attachment: fixed;
  }
  .page { box-shadow: 0 0 0 1px rgba(90,70,45,.06), 0 30px 80px -20px rgba(70,52,30,.28); }
}

/* ---------- shared bits ---------- */
.eyebrow {
  font: 500 .72rem/1.5 var(--f-sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: -.34em;            /* optical centering of tracked caps */
}
.rule, .cover-eyebrow .rule {
  display: block;
  width: 48px; height: 1px;
  margin: 22px auto 0;
  background: currentColor;
  opacity: .7;
}
.title {
  font: italic 400 clamp(2.45rem, 11.2vw, 3.1rem)/1.04 var(--f-display);
  letter-spacing: -.005em;
  color: var(--ink);
}
.title--sm { font-size: 2.3rem; }
.lead {
  font: 400 1.14rem/1.55 var(--f-body);
  color: var(--ink);
  max-width: 18.5em;
  margin-inline: auto;
  text-wrap: balance;
}
.link {
  display: inline-flex; align-items: center; gap: .4em;
  margin-top: 8px;
  font: 500 .68rem/1 var(--f-sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--olive-600);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 30px;
  font: 500 .74rem/1 var(--f-sans);
  letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color .3s, color .3s, border-color .3s, transform .2s;
}
.btn .ico { font-size: 1.05rem; margin-right: -.2em; }
.btn:active { transform: scale(.98); }
.btn--olive { background: var(--olive); color: #fbf8f1; box-shadow: 0 10px 24px -14px rgba(60,58,35,.7); }
.btn--olive:hover { background: var(--olive-600); }
.btn--line { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,.28); }
.btn--line:hover { border-color: var(--olive); background: rgba(255,255,255,.55); }
.btn--block { width: 100%; }

.section {
  position: relative;
  padding: 88px var(--gutter) 92px;
  text-align: center;
  isolation: isolate;
}
.sec-head { margin-bottom: 26px; }
.sec-head .title { margin-top: 26px; }

/* reveal on scroll (only when JS is on) */
.js [data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* ==========================================================================
   1. COVER — envelope
   ========================================================================== */
.cover {
  --ew: min(86vw, 380px, 45vh);
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 85% 8%, rgba(255,251,245,.95), rgba(255,251,245,0) 60%),
    linear-gradient(180deg, #f5ece2 0%, #f1e6da 100%);
}
@supports (height: 1svh) {
  .cover { --ew: min(86vw, 380px, 45svh); min-height: 100svh; }
}
.cover-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 30% 50%;
  transition: opacity 1.6s var(--ease-out), scale 2.4s var(--ease-out);
  pointer-events: none;
}
.js .cover-bg { opacity: 0; scale: 1.06; }
.js .cover.is-intro .cover-bg, .js .cover.is-ready .cover-bg { opacity: 1; scale: 1; }
/* the moving branch over the still, shown only once it really plays (invitation.js) */
.cover-video {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 30% 50%;
  opacity: 0; scale: 1.06;
  transition: opacity .8s var(--ease-out), scale 2.4s var(--ease-out);
  pointer-events: none;
}
.cover.is-intro .cover-video, .cover.is-ready .cover-video { scale: 1; }
.cover.is-intro .cover-video.is-playing, .cover.is-ready .cover-video.is-playing { opacity: 1; }
.cover::after {   /* blend into the hero below */
  content: ""; position: absolute; inset: auto 0 0; height: 9%; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(244,236,226,0), var(--paper));
}

.stage {
  position: relative;
  width: var(--ew);
  height: calc(var(--ew) * 1.4);
  margin: 72px 0 132px;
  z-index: 2;
}

.cover-eyebrow {
  position: absolute; left: 50%;
  bottom: calc(100% - var(--ew) * .35 + 34px);
  width: max-content;
  translate: -50% 0;
  text-align: center;
  font: 400 clamp(.86rem, 4vw, 1rem)/1.6 var(--f-sans);
  letter-spacing: .34em; text-transform: uppercase;
  padding-left: .34em;
  color: var(--ink);
  transition: opacity 1.2s var(--ease-out) .15s, translate 1.2s var(--ease-out) .15s;
}
.js .cover-eyebrow { opacity: 0; translate: -50% 8px; }
.js .cover.is-intro .cover-eyebrow, .js .cover.is-ready .cover-eyebrow { opacity: 1; translate: -50% 0; }
.js .cover.is-open .cover-eyebrow { opacity: 0; translate: -50% -10px; transition-delay: 0s; transition-duration: .5s; }

/* envelope position: closed = centred in stage, open = drops to bottom */
.env-wrap {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--ew) * .7);
  transform: translateY(-50%);
  transition: transform 1.3s var(--ease-out) .95s;
}
.cover.is-open .env-wrap { transform: none; }

.env-float {
  position: absolute; inset: 0;
  transition: opacity 1s var(--ease-out), scale 1.1s var(--ease-out);
}
.js .env-float { opacity: 0; scale: .9; }
.cover.is-ready .env-float { opacity: 1; scale: 1; animation: float 4.5s ease-in-out 1.1s infinite; }
.cover.is-open .env-float { animation-play-state: paused; }

.env-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -10%;
  height: 14%;
  background: radial-gradient(closest-side, rgba(70,55,35,.26), rgba(70,55,35,0));
  filter: blur(4px);
  z-index: 0;
}
.cover.is-ready .env-shadow { animation: float-shadow 4.5s ease-in-out 1.1s infinite; }

.envelope {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  border-radius: 4px;
  color: inherit; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}
.js .cover:not(.is-ready) .envelope { pointer-events: none; }
.cover.is-open .envelope { cursor: default; }
.envelope > span { position: absolute; inset: 0; display: block; }
.envelope svg { width: 100%; height: 100%; overflow: visible; }

.env-back {
  z-index: 1;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 30px -16px rgba(70,52,30,.45), 0 4px 10px -4px rgba(70,52,30,.2);
}
.env-pocket { z-index: 4; }
.env-flap-shadow { display: none; }

.env-flap {
  z-index: 6;
  transform-origin: 50% 0;
  filter: drop-shadow(0 2px 2.5px rgba(80,62,40,.2));
}
.flap-in { opacity: 0; }

/* the card */
.env-card-slot {
  z-index: 3;
  clip-path: inset(-400% -20% 2.5% -20%);
}
.card {
  position: absolute; left: 5.5%; right: 5.5%; top: 5%;
  height: calc(var(--ew) * .82);
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--ew) * .06);
  text-align: center;
  color: var(--ink);
  background: #fbf7f0 url("img/paper-tex.jpg") center / 290px 484px;
  border-radius: 3px;
  box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset, 0 6px 18px -8px rgba(70,52,30,.35);
  transform: translateY(0);
  transition: transform 1.3s var(--ease-out) .95s;
}
.cover.is-open .card { transform: translateY(-89%); }

.card-frame { position: absolute; inset: calc(var(--ew) * .028); pointer-events: none; }
.card-frame svg { width: 100%; height: 100%; }
.card-frame rect { fill: none; stroke: var(--olive-300); stroke-width: 1; vector-effect: non-scaling-stroke; }
.card-sprig {
  width: 42%;
  margin-bottom: calc(var(--ew) * .012);
  opacity: .9;
}
.card-eyebrow {
  font: 500 max(8px, calc(var(--ew) * .029))/1.4 var(--f-sans);
  letter-spacing: .34em; text-transform: uppercase;
  padding-left: .34em;
}
.card-names {
  display: flex; flex-direction: column; align-items: center;
  margin-top: calc(var(--ew) * .022);
  font: 400 calc(var(--ew) * .108)/1 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.card-names > span { white-space: nowrap; }
.card-names .amp { font-style: italic; text-transform: none; color: var(--olive-600); }
.card-rule { width: 30px; height: 1px; background: var(--ink); opacity: .55; margin: calc(var(--ew) * .032) 0 calc(var(--ew) * .028); }
.card-date { font: 400 calc(var(--ew) * .056)/1 var(--f-display); letter-spacing: .14em; }
.card-place {
  margin-top: calc(var(--ew) * .022);
  font: italic 400 calc(var(--ew) * .046)/1.2 var(--f-display);
  color: var(--ink-2);
}

/* seal, ribbon, branch */
.env-deco { z-index: 7; pointer-events: none; }
.env-deco > * {
  position: absolute;
  transition: opacity .55s var(--ease-out), translate .7s var(--ease-out), rotate .7s var(--ease-out);
}
.env-ribbon {
  width: 25%;
  left: 17%; top: 58%;
  transform: rotate(8deg);
  filter: drop-shadow(0 3px 3px rgba(80,62,40,.18));
}
.env-branch {
  width: 40%;
  left: 49%; top: -2%;
  transform: scaleX(-1) rotate(-4deg);
  filter: drop-shadow(0 4px 4px rgba(50,45,20,.22));
}
.seal {
  width: 28%; aspect-ratio: 1;
  left: 36%; top: 37%;
  border-radius: 50%;
}
.seal img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(90,64,30,.32)); }
.seal::before, .seal::after {
  content: ""; position: absolute; inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(190,160,115,.75);
  opacity: 0;
}
.cover.is-ready:not(.is-open) .seal::before { animation: ring 2.6s ease-out 1.6s infinite; }
.cover.is-ready:not(.is-open) .seal::after  { animation: ring 2.6s ease-out 2.9s infinite; }

.cover.is-open .seal { animation: seal-pop .6s var(--ease-out) both; }
.cover.is-open .env-ribbon { opacity: 0; translate: -18px 26px; rotate: -14deg; }
.cover.is-open .env-branch { opacity: 0; translate: 26px -18px; rotate: 16deg; }

/* flap opening */
.cover.is-open .env-flap { animation: flap-open .95s .32s both, flap-z .95s .32s both; filter: none; }
.cover.is-open .flap-out { animation: hide-late .95s .32s both; }
.cover.is-open .flap-in  { animation: show-late .95s .32s both; }

/* hint + after-open block */
.cover-hint {
  position: absolute; left: 50%;
  top: calc(var(--ew) * 1.05 + 8vh);
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: max-content;
  font: italic 400 clamp(1.7rem, 8vw, 2.05rem)/1 var(--f-display);
  color: var(--ink);
  opacity: 0;
  transition: opacity .9s var(--ease-out) .4s;
  pointer-events: none;
}
.tap-icon { width: 38px; height: 38px; fill: none; stroke: var(--ink); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.cover.is-ready .cover-hint { opacity: 1; }
.cover.is-ready .tap-icon { animation: tap 2.2s ease-in-out 1.4s infinite; }
.cover.is-open .cover-hint { opacity: 0; transition-delay: 0s; transition-duration: .35s; }

.cover-after {
  position: absolute; left: 50%; top: calc(100% + 22px);
  translate: -50% 10px;
  width: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease-out) 1.7s, translate .9s var(--ease-out) 1.7s, visibility 0s 1.7s;
}
.cover-date {
  font: 500 .7rem/1 var(--f-sans);
  letter-spacing: .3em; text-transform: uppercase;
  padding-left: .3em;
  color: var(--ink-2);
}
.cover-after .btn .ico { font-size: 1rem; }
.cover.is-open .cover-after { opacity: 1; visibility: visible; translate: -50% 0; }

/* instant open (deep link) */
.cover.no-anim *, .cover.no-anim *::before, .cover.no-anim *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }

/* petals */
.petal {
  position: absolute; z-index: 8;
  left: 50%; top: 52%;
  width: var(--s); height: calc(var(--s) * .62);
  border-radius: 60% 0 60% 0;
  background: var(--c, #fffaf2);
  box-shadow: 0 1px 2px rgba(80,62,40,.18);
  pointer-events: none;
  animation: petal var(--d) cubic-bezier(.2,.7,.3,1) forwards;
}

@keyframes flap-open {
  0%   { transform: perspective(1100px) rotateX(0);      animation-timing-function: cubic-bezier(.55,.05,.85,.45); }
  50%  { transform: perspective(1100px) rotateX(90deg);  animation-timing-function: cubic-bezier(.15,.55,.35,1); }
  100% { transform: perspective(1100px) rotateX(180deg); }
}
@keyframes flap-z    { 0%, 49.9% { z-index: 6; } 50%, 100% { z-index: 2; } }
@keyframes hide-late { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes show-late { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes seal-pop {
  0%   { transform: scale(1); opacity: 1; }
  35%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(.7) translateY(-10px); opacity: 0; }
}
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes float-shadow { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .92; opacity: .75; } }
@keyframes tap { 0%, 60%, 100% { transform: translateY(0) scale(1); } 70% { transform: translateY(3px) scale(.94); } 80% { transform: translateY(0) scale(1); } }
@keyframes sway { 0% { translate: 0 0; rotate: 0deg; } 100% { translate: -14px 8px; rotate: 1.5deg; } }
@keyframes petal {
  0%   { transform: translate(-50%, -50%) rotate(0) scale(.4); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); opacity: 0; }
}

/* ==========================================================================
   2. HERO — invitation cover
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 var(--gutter) max(20vh, 150px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 60% at 20% 30%, rgba(255,251,246,.9), rgba(255,251,246,0) 70%),
    linear-gradient(180deg, #f1e6da 0%, #efe3d7 60%, var(--paper) 100%);
}
@supports (height: 1svh) { .hero { min-height: 100svh; } }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 50%;
  pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 9%; z-index: 0; pointer-events: none;
  background: linear-gradient(var(--paper), rgba(244,236,226,0));
}
.hero::after {   /* soft fade into the next section */
  content: ""; position: absolute; inset: auto 0 0; height: 14%; z-index: -1;
  background: linear-gradient(rgba(244,236,226,0), var(--paper));
}
.hero-text { position: relative; z-index: 2; }
.hero-names {
  margin-top: 26px;
  font: 400 clamp(3rem, 15.5vw, 4.3rem)/.98 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .015em;
}
.hero-names span { white-space: nowrap; }
.hero .rule { margin-top: 28px; }
.hero-date {
  margin-top: 22px;
  font: 400 clamp(1.5rem, 7vw, 1.85rem)/1 var(--f-display);
  letter-spacing: .16em;
  padding-left: .16em;
}
.hero-down {
  position: absolute; z-index: 2; left: 50%; bottom: max(4vh, 26px);
  translate: -50% 0;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  font-size: 26px;
  color: var(--ink);
  animation: nudge 2.4s ease-in-out infinite;
}
.hero-down .ico { stroke-width: 1.2; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ==========================================================================
   3. OUR STORY
   ========================================================================== */
.story { padding-bottom: 40px; }
.polaroid {
  position: relative;
  width: 100%;
  margin: 40px 0 0;
  aspect-ratio: 1 / 1.08;
}
.pf {
  position: absolute;
  width: 60%;
  aspect-ratio: 720 / 881;
  filter: drop-shadow(0 16px 18px rgba(70,52,30,.2)) drop-shadow(0 2px 3px rgba(70,52,30,.12));
}
.pf--back  { left: 1%;  top: 2%;  transform: rotate(-8deg); }
.pf--front { right: 0;  bottom: 2%; transform: rotate(7deg); }
.pf-frame { position: relative; width: 100%; height: 100%; }
.pf-fill {   /* photo window of polaroid-frame.webp, overlapped by ~0.4% */
  position: absolute; left: 5.8%; top: 5.6%; right: 6.1%; bottom: 20.1%;
  overflow: hidden;
  background: #d9d0c1;
}
.pf-fill img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pf-fill--paper {
  background: #ddd3c4 url("img/paper-tex.jpg") center / 290px 484px;
  background-blend-mode: multiply;
  box-shadow: inset 0 2px 6px rgba(70,52,30,.18);
}
.story-branch {
  position: relative; z-index: 2;
  width: 38%;
  margin: -27% -9% -8% auto;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 8px rgba(60,50,30,.16));
  pointer-events: none;
}

/* ==========================================================================
   4. THE DETAILS
   ========================================================================== */
.details { padding-bottom: 0; }
.facts { text-align: left; margin-top: 8px; }
.fact {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child { border-bottom: 0; }
.medal {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffdf9, #f6efe6);
  box-shadow: 0 8px 20px -10px rgba(90,70,45,.35), 0 0 0 1px rgba(255,255,255,.7) inset;
  font-size: 30px; color: var(--ink);
  flex: none;
}
.medal .ico { stroke-width: 1.15; }
.fact > div, .fact > dl { padding-top: 9px; }
.fact-main { font: 500 1.14rem/1.25 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.fact-sub { font: 400 1.08rem/1.4 var(--f-body); color: var(--ink-2); }
.schedule { display: grid; gap: 7px; padding-top: 12px !important; }
.schedule div { display: grid; grid-template-columns: 5.6em 1fr; align-items: baseline; }
.schedule dt { font: 500 1.02rem/1.3 var(--f-body); letter-spacing: .02em; }
.schedule dd { font: 400 1.06rem/1.3 var(--f-body); color: var(--ink-2); }

.countdown {
  margin: 30px auto 0;
  padding: 22px 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.35);
}
.countdown-label { font: 500 .66rem/1 var(--f-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); padding-left: .3em; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.countdown-grid span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown-grid span + span { border-left: 1px solid var(--line); }
.countdown-grid b { font: 400 2.1rem/1 var(--f-display); }
.countdown-grid i { font: 500 .6rem/1 var(--f-sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }



/* ==========================================================================
   5. RSVP
   ========================================================================== */
.rsvp { overflow: hidden; }
.rsvp-bg {
  position: absolute; z-index: -1; left: 0; top: 0;
  width: 100%; max-width: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent 0, #000 8%, #000 55%, transparent 92%);
          mask-image: linear-gradient(transparent 0, #000 8%, #000 55%, transparent 92%);
}
.deadline {
  margin-top: 14px;
  font: 500 .66rem/1.4 var(--f-sans);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3);
}
.deadline b { font-weight: 500; color: var(--ink); }

.form { margin-top: 34px; text-align: left; }
.field { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }

/* the reply's details (shared macro classes): names on the open link, a note, extra guests */
.rsvp-extra { display: grid; gap: 22px; margin-bottom: 22px; }
.rsvp-extra__field { display: grid; gap: 8px; min-width: 0; }
.rsvp-extra__label {
  display: block;
  font: 500 .66rem/1.4 var(--f-sans);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-2);
}
.rsvp-extra__optional { letter-spacing: .16em; color: var(--ink-3); }
.rsvp-extra__help { font: italic 400 .98rem/1.3 var(--f-body); color: var(--ink-3); }
.rsvp-extra__input {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255,255,255,.45);
  padding: 14px 16px;
  font: 400 1.1rem/1.35 var(--f-body);
  color: var(--ink);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.rsvp-extra__input::placeholder { color: #a39686; font-style: italic; }
.rsvp-extra__input:focus {
  outline: none;
  border-color: var(--olive);
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px rgba(127,123,95,.14);
}
.rsvp-extra__textarea { resize: vertical; min-height: 96px; }
.rsvp-guest__select { -webkit-appearance: auto; appearance: auto; }

.deadline {
  margin: 14px 0 22px; text-align: center;
  font: 500 .66rem/1.4 var(--f-sans);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3);
}
.form-alert {
  margin-bottom: 22px; padding: 12px 16px;
  border: 1px solid var(--err); border-radius: 10px;
  background: rgba(255,255,255,.6);
  font: italic 400 1.04rem/1.4 var(--f-body); color: var(--err);
}
.form-current { margin-bottom: 18px; font: italic 400 1.04rem/1.45 var(--f-body); color: var(--ink-2); }
.form-current strong { font-style: normal; font-weight: 500; color: var(--ink); }

.choice { display: grid; gap: 14px; margin-bottom: 30px; }
.choice-card {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  min-height: 70px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255,255,255,.3);
  font: 400 1.2rem/1.25 var(--f-body);
  cursor: pointer;
  transition: background-color .35s var(--ease-out), border-color .35s, color .35s, box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--ink-3);
  font-size: 30px;
  flex: none;
  transition: border-color .3s, background-color .3s;
}
.choice-mark .ico { opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-out); stroke-width: 1.4; }
.choice-card input:checked ~ .choice-mark .ico { opacity: 1; transform: none; }
.choice-card input:focus-visible ~ .choice-mark { outline: 1.5px solid var(--olive); outline-offset: 3px; }
.choice-card:has(input:checked) {
  background: var(--olive);
  border-color: var(--olive);
  color: #fbf8f1;
  box-shadow: 0 14px 26px -18px rgba(60,58,35,.9);
}
.choice-card:has(input:checked) .choice-mark { border-color: transparent; }

/* named extra guests: one fieldset per person, first name, last name and an answer */
.rsvp-guests-block { display: grid; gap: 12px; min-width: 0; }
.rsvp-guests { display: grid; gap: 16px; }
.rsvp-guest {
  display: grid; gap: 14px; min-width: 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255,255,255,.3);
}
.rsvp-guest__legend { padding: 0 6px; font: 500 .66rem/1.4 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.rsvp-guest__names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsvp-guest__field { display: grid; gap: 6px; min-width: 0; }
.rsvp-guest__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsvp-guest__option {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 10px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255,255,255,.4);
  font: 500 .7rem/1.2 var(--f-sans);
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.rsvp-guest__option:hover { border-color: var(--olive); }
.rsvp-guest__option[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fbf8f1; }
.rsvp-guest__icon { flex: none; width: 15px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-guests__add { justify-self: center; min-height: 48px; }
.rsvp-guests__count { text-align: center; font: italic 400 .98rem/1.3 var(--f-body); color: var(--ink-3); }
.rsvp-guest__remove {
  justify-self: end; min-height: 44px; padding: 0 6px;
  font: italic 400 1rem/1 var(--f-body); color: var(--olive-600);
  text-decoration: underline; text-underline-offset: .2em;
}
@media (max-width: 380px) { .rsvp-guest__names { grid-template-columns: 1fr; } }

#rsvpSubmit { margin-top: 10px; }
.form-hint { margin-top: 14px; text-align: center; font: italic 400 1rem/1.4 var(--f-body); color: var(--ink-3); }
.form-link {
  display: block; margin-top: 8px; padding: 10px 0; text-align: center;
  font: italic 400 1.08rem/1.4 var(--f-body); color: var(--olive-700); text-underline-offset: .2em;
}


/* ==========================================================================
   7. GIFTS
   ========================================================================== */
.gifts { padding-bottom: 0; }
.gift-img {
  width: 84%; margin: 10px auto 18px; translate: 2% 0;
  filter: drop-shadow(0 26px 24px rgba(70,52,30,.16));
}
.js .gift-img[data-reveal].is-in { translate: 2% 0; }
.gifts .title { margin-top: 6px; }
.gifts .lead { margin-top: 14px; margin-bottom: 28px; }
.gifts-linen {
  display: block;
  width: 136%; max-width: none;
  margin: 26px -18% -4px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}

/* ==========================================================================
   FOOTER + FAB
   ========================================================================== */
.footer {
  position: relative;
  padding: 10px var(--gutter) 72px;
  text-align: center;
  background: linear-gradient(var(--paper), #efe5d9);
}
.footer-sprig { width: 150px; margin: 0 auto 12px; }
.footer-names { font: 400 2.1rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.footer-names span { font-style: italic; text-transform: none; color: var(--olive-600); }
.footer-meta { margin-top: 10px; font: 500 .66rem/1.5 var(--f-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.footer-note { margin-top: 18px; font: italic 400 1.05rem/1.4 var(--f-body); color: var(--ink-3); }
.footer-note a { color: var(--olive-700); }

.fab {
  position: fixed; z-index: 50;
  right: max(16px, calc(50vw - var(--col) / 2 + 16px));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid; place-items: center;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  background: var(--olive);
  color: #fbf8f1;
  font: 500 .72rem/1 var(--f-sans);
  letter-spacing: .26em; padding-left: calc(22px + .26em);
  text-decoration: none;
  box-shadow: 0 14px 28px -12px rgba(50,48,28,.6);
  opacity: 0; translate: 0 16px; pointer-events: none;
  transition: opacity .4s var(--ease-out), translate .4s var(--ease-out), background-color .3s;
}
.fab:hover { background: var(--olive-600); }
.fab.is-visible { opacity: 1; translate: none; pointer-events: auto; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}

/* ==========================================================================
   Added for the application (not in the landing)
   ========================================================================== */
.skip-link { position: fixed; z-index: 90; left: 1rem; top: 1rem; padding: .8rem 1rem; background: var(--ink); color: #fff; transform: translateY(-300%); }
.skip-link:focus { transform: none; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .68rem; }
.btn:disabled { opacity: .45; pointer-events: none; }
.form .btn--block { width: 100%; }

/* without JavaScript the envelope stays closed: the way on is the link under it */
html:not(.js) .cover-after { opacity: 1; visibility: visible; translate: -50% 0; }

/* names from the event title: a stacked pair when "A & B" is short, one wrapped block otherwise */
.card-names { max-width: 100%; }
.card-names.is-md { font-size: calc(var(--ew) * .088); }
.card-names.is-sm { font-size: calc(var(--ew) * .068); }
.card-names .names-solo {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  font-size: .8em; white-space: normal; text-align: center; text-wrap: balance; overflow-wrap: anywhere; line-height: 1.1;
}
.card-place {
  max-width: 88%; text-align: center; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.hero-names.is-md { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
.hero-names.is-sm { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
.hero-names .names-solo { display: block; font-size: .72em; white-space: normal; text-wrap: balance; overflow-wrap: anywhere; line-height: 1.08; }
.footer-names, .saved-event { max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.footer-names.is-md { font-size: 1.6rem; }
.footer-names.is-sm { font-size: 1.3rem; }
.hero-dear { margin-top: 26px; font: italic 400 1.35rem/1.3 var(--f-display); color: var(--ink-2); overflow-wrap: anywhere; }

/* story: the organizer's photos in the polaroids */
.story-lead { max-width: 24em; white-space: pre-line; overflow-wrap: anywhere; }

/* details */
.fact > div { flex: 1 1 auto; min-width: 0; }
.fact .schedule { padding-top: 3px !important; }
.fact-place { overflow-wrap: anywhere; text-transform: none; letter-spacing: .03em; }
.fact-zone { margin-top: 8px; font-size: 1rem; font-style: italic; color: var(--ink-3); }
.schedule dt, .schedule dd { overflow-wrap: anywhere; }
.schedule-note { display: block; font: italic 400 .98rem/1.35 var(--f-body); color: var(--ink-3); }
.countdown[hidden] { display: none; }

/* event photos from the shared macro */
.gallery { padding-bottom: 60px; }
.gallery-grid { margin-top: 8px; }
.photo-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-gallery__item { aspect-ratio: 4 / 5; }
.photo-gallery__item:first-child,
.photo-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.photo-gallery__link {
  display: block; height: 100%; overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 14px 24px -16px rgba(70,52,30,.5);
}
.photo-gallery__link img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* photo viewer (built by invitation.js) */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center;
  padding: max(.75rem, env(safe-area-inset-top)) .75rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(31,27,22,.94);
}
.lightbox__close { justify-self: end; width: 2.75rem; height: 2.75rem; color: #fff; }
.lightbox svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close svg { margin: auto; }
.lightbox__stage { position: relative; width: min(100%, 64rem); height: 100%; min-height: 0; overflow: hidden; }
.lightbox__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; opacity: 0; transition: opacity .6s var(--ease-out);
}
.lightbox__stage img.is-on { opacity: 1; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 1rem; color: #fff; }
.lightbox__nav { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.lightbox__count { min-width: 4rem; font: 400 1.2rem/1 var(--f-display); letter-spacing: .2em; text-align: center; }
.lightbox button:focus-visible { outline-color: #fff; }

/* the shared wishlist list */
.wish-list { margin-top: 20px; text-align: left; }
.wishlist { width: 100%; }
.wishlist-items { display: grid; gap: 14px; }
.wishlist-item {
  display: grid; gap: 16px; padding: 20px 20px 22px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  box-shadow: 0 24px 40px -34px rgba(70,52,30,.5);
  scroll-margin-top: 24px;
}
.wishlist-item--mine { background: #f1efe3; border-color: var(--olive-300); }
.wishlist-item__title { font: 400 1.5rem/1.2 var(--f-display); overflow-wrap: anywhere; }
.wishlist-item--taken .wishlist-item__title { color: var(--ink-3); }
.wishlist-item__description { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.wishlist-item__link { margin-top: 6px; }
.wishlist-item__link a { color: var(--olive-700); text-underline-offset: .2em; }
.wishlist-item__status { margin-top: 8px; font: italic 400 1rem/1.4 var(--f-body); color: var(--ink-3); }
.wishlist-item__status strong { font-style: normal; font-weight: 500; color: var(--ink); }
.wishlist-item__actions { display: grid; gap: 10px; }
.wishlist-item__form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.wishlist-item__quantity { display: grid; gap: 4px; font: 500 .62rem/1.3 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.wishlist-item__quantity input {
  width: 6rem; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.6);
  font: 400 1.1rem/1.2 var(--f-body); color: var(--ink);
}
.wishlist-item__quantity input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(127,123,95,.14); }
.wishlist-item__form .btn, .wishlist-item__cancel .btn { flex: 1 1 100%; width: 100%; }
.wishlist-notice, .wishlist-error {
  margin-bottom: 16px; padding: 12px 16px; border: 1px solid; border-radius: 10px;
  background: rgba(255,255,255,.6); font: italic 400 1.04rem/1.4 var(--f-body);
}
.wishlist-notice { border-color: var(--olive); color: var(--olive-700); }
.wishlist-error { border-color: var(--err); color: var(--err); }
.wishlist-help { margin-top: 18px; text-align: center; font: italic 400 .98rem/1.4 var(--f-body); color: var(--ink-3); }
.gifts .wish-list + .gifts-linen { margin-top: 18px; }

/* footer: countdown line */
.footer-note { font-size: 1.1rem; }

/* ---------- response saved ---------- */
.saved { min-height: 100vh; overflow: hidden; padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; }
@supports (height: 1svh) { .saved { min-height: 100svh; } }
.saved-bg {
  position: absolute; z-index: -1; left: 0; top: 0;
  width: 100%; max-width: none; pointer-events: none; opacity: .6;
  -webkit-mask-image: linear-gradient(transparent 0, #000 8%, #000 55%, transparent 92%);
          mask-image: linear-gradient(transparent 0, #000 8%, #000 55%, transparent 92%);
}
.saved-sprig { width: 160px; margin: 0 auto 14px; }
.saved .title--sm { max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.saved .lead { margin-top: 14px; }
.saved-event { margin-top: 20px; font: italic 400 1.3rem/1.4 var(--f-display); color: var(--ink-2); }
.saved-event span { color: var(--olive-600); }
.saved-party { margin-top: 8px; font: 500 .66rem/1.5 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.saved .facts { width: 100%; margin-top: 22px; }
.saved-actions { display: grid; width: min(100%, 320px); margin-top: 24px; }
.saved-wishlist { width: 100%; margin-top: 48px; }
.saved .form-link { margin-top: 18px; }
