/* The RSVP landing page. Builds on landing.css: the Canva watercolor shapes become the page's backgrounds
   (big soft washes, dots that hold the facts, shape bullets, a heart), sections ease in on scroll, and the
   illustrations get a light hand-drawn "boil", the jitter of rotoscoped animation. Reduced motion stops all of it. */
.rsvp-page .site-header .brand { pointer-events: none; }
.rsvp-page main { overflow-x: clip; }
.wash { opacity: .38; filter: saturate(1.05); }

/* hero */
.rs-hero { overflow: visible; }
.w-hero1 { width: min(46vw, 620px); left: -12vw; top: -6%; animation: drift 26s ease-in-out infinite alternate; }
.w-hero2 { width: min(22vw, 300px); left: 34vw; bottom: -4%; opacity: .32; animation: drift 21s ease-in-out -7s infinite alternate-reverse; }
.rs-hero .lp-hero-copy { position: relative; z-index: 2; }
.stamp { position: absolute; z-index: 4; right: 2%; top: 46%; width: 128px; height: 128px; display: grid; place-content: center;
  text-align: center; transform: rotate(-9deg); background: center / contain no-repeat url("/static/img/shapes/yellow.webp");
  font-family: var(--serif); color: var(--ink); line-height: 1; animation: bob 7s ease-in-out infinite; }
.stamp-m { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.stamp-d { font-size: 3.2rem; letter-spacing: -.03em; }
.stamp-y { font-size: .8rem; letter-spacing: .12em; }
@media (max-width: 759px) { .stamp { width: 96px; height: 96px; top: auto; bottom: 0; } .stamp-d { font-size: 2.4rem; } }

/* when / time / where on watercolor dots */
.rs-facts { padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 8vw, 100px); }
.rs-dots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.dot { position: relative; aspect-ratio: 1 / 1; max-width: 300px; width: 100%; justify-self: center; display: grid; place-content: center;
  text-align: center; padding: 14%; isolation: isolate; }
.dot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: center / contain no-repeat var(--bg);
  animation: boil 1.2s steps(1) infinite; }
.dot-y { --bg: url("/static/img/shapes/yellow-lg.webp"); } .dot-m { --bg: url("/static/img/shapes/mint-lg.webp"); } .dot-p { --bg: url("/static/img/shapes/pink-lg.webp"); }
.dot:nth-child(2)::before { animation-delay: -.4s; transform: rotate(14deg); }
.dot:nth-child(3)::before { animation-delay: -.8s; }
.dot-k { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 8px; }
.dot-v { margin: 0; font-size: 1.02rem; line-height: 1.45; }
@media (max-width: 759px) { .rs-dots { grid-template-columns: 1fr; } .dot { max-width: 270px; } }

/* last year */
.lp-story { overflow: visible; }
.w-story1 { width: 180px; left: 3%; top: 6%; transform: rotate(-12deg); opacity: .55; animation: drift 24s ease-in-out infinite alternate; }
.w-story2 { width: 150px; right: 6%; bottom: 4%; opacity: .6; animation: spin 60s linear infinite; }
.rs-eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }

/* nothing to prepare */
.rs-how { padding: clamp(64px, 9vw, 120px) 0; }
.rs-how-grid, .rs-form-grid, .rs-refer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 100px); align-items: center; }
.rs-art, .rs-form-art { position: relative; max-width: 520px; justify-self: center; }
.rs-art > img.boil, .rs-form-art > img { position: relative; z-index: 1; mix-blend-mode: multiply; }
.b-how1 { width: 78%; left: -10%; top: -14%; opacity: .7; animation: drift 14s ease-in-out infinite alternate; }
.b-how2 { width: 24%; right: -2%; bottom: -8%; animation: bob 6s ease-in-out infinite; }
.rs-points { list-style: none; margin: 0; padding: 0; }
.rs-points li { position: relative; padding: 0 0 22px 58px; font-size: 1.12rem; line-height: 1.5; color: var(--ink-soft); }
.rs-points li::before { content: ""; position: absolute; left: 0; top: -4px; width: 40px; height: 40px; background: center / contain no-repeat var(--ic); }
.ic-y { --ic: url("/static/img/shapes/yellow.webp"); } .ic-m { --ic: url("/static/img/shapes/mint.webp"); } .ic-p { --ic: url("/static/img/shapes/pink.webp"); }
.rs-points strong { color: var(--ink); font-weight: 600; display: block; }

/* bring someone good */
.rs-refer { padding: clamp(40px, 6vw, 80px) 0; background: linear-gradient(180deg, transparent, rgba(247, 198, 163, .22) 30%, rgba(247, 198, 163, .22) 70%, transparent); }
.rs-refer-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.heart { position: relative; max-width: 340px; justify-self: center; }
.heart img { width: 100%; }
.heart span { position: absolute; inset: 0 0 10% 0; display: grid; place-content: center; font-family: var(--serif); color: var(--paper-raised);
  font-size: clamp(3rem, 7vw, 5.2rem); letter-spacing: -.03em; text-shadow: 0 1px 0 rgba(3, 40, 89, .25); }

/* quote */
.rs-quote { overflow: visible; }
.rs-quote .lp-wrap { position: relative; z-index: 1; }
.w-quote { width: 260px; right: -60px; bottom: -40px; opacity: .35; animation: drift 22s ease-in-out infinite alternate; }

/* RSVP card on watercolor */
.rs-form { position: relative; padding: clamp(72px, 10vw, 130px) 0; scroll-margin-top: 8px; overflow: hidden; }
.w-form1 { width: min(60vw, 720px); right: -14vw; top: -4%; opacity: .45; animation: drift 24s ease-in-out infinite alternate; }
.w-form2 { width: min(40vw, 480px); left: -10vw; bottom: -8%; opacity: .4; animation: drift 19s ease-in-out -5s infinite alternate-reverse; }
.w-form3 { width: 84px; left: 44%; top: 10%; z-index: 3; animation: bob 6s ease-in-out infinite; }
.rs-form .lp-wrap { position: relative; z-index: 2; }
.rs-card { background: var(--paper-raised); border: 1px solid var(--ink); padding: clamp(24px, 4vw, 44px); max-width: 560px;
  box-shadow: 10px 10px 0 rgba(3, 40, 89, .9); }
.rs-card .lp-h2 { margin-bottom: 6px; }
.rs-card-sub { color: var(--ink-soft); margin: 0 0 24px; }
.rs-submit { width: 100%; font-size: 1.15rem; padding-block: 16px; }
.rs-form-note { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; text-align: center; margin: 18px 0 0; }
@media (max-width: 759px) { .rs-how-grid, .rs-form-grid, .rs-refer-grid { grid-template-columns: 1fr; } .rs-form-art { max-width: 300px; }
  .rs-card { box-shadow: 6px 6px 0 rgba(3, 40, 89, .9); } .w-form3 { display: none; } }

.rs-sponsors { padding: 24px 0 56px; text-align: center; }
.rs-sponsors .lp-sponsors { margin: 8px auto 0; max-width: 560px; }
.rs-small { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* reveal on scroll (only when the script runs, so nothing is hidden without it) */
.js-reveal .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .rv.in { opacity: 1; transform: none; }

/* rotoscope boil: a few steps a second, a hair of movement */
@keyframes boil {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(.6px, -.4px) rotate(.25deg); }
  50%  { transform: translate(-.4px, .5px) rotate(-.2deg); }
  75%  { transform: translate(.3px, .3px) rotate(.15deg); }
}
.boil > img, img.boil { animation: boil .9s steps(1) infinite; }
.who.boil:hover > img, .who.boil.say > img { animation-duration: .45s; }

@media (prefers-reduced-motion: reduce) {
  .boil > img, img.boil, .dot::before, .wash, .blob, .stamp { animation: none !important; }
  .js-reveal .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- RSVP as a conversation */
.rchat { margin-top: 8px; }
.rchat-thread { display: flex; flex-direction: column; gap: 12px; }
.rmsg { max-width: 92%; animation: rin .28s ease both; }
@keyframes rin { from { opacity: 0; transform: translateY(8px); } }
.rmsg.them { align-self: flex-start; font-family: var(--serif); font-size: 1.32rem; line-height: 1.3; }
.rmsg.me { align-self: flex-end; background: var(--ink); color: var(--paper); padding: 9px 14px; font-size: 1.02rem;
  border: 0; text-align: left; font-family: var(--sans); }
button.rmsg.me { cursor: pointer; }
button.rmsg.me:hover { opacity: .88; }
.rmsg.typing { display: inline-flex; gap: 5px; padding: 10px 0; }
.rmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: dot 1s infinite ease-in-out; }
.rmsg.typing span:nth-child(2) { animation-delay: .15s; } .rmsg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; transform: translateY(-3px); } }
.rmsg.card { align-self: stretch; max-width: none; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.rchat-dock { margin-top: 18px; }
.rans .rfield { width: 100%; font: inherit; font-size: 1.25rem; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--ink); padding: 8px 0; }
.rans .rfield:focus { outline: none; border-bottom-width: 2px; }
.rerr { min-height: 1.3em; margin: 6px 0 0; color: var(--error); font-size: .95rem; }
.rrow { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.rok, .rbtn { display: inline-block; background: var(--ink); color: var(--paper); border: 0; padding: 12px 24px; font: inherit;
  font-weight: 500; cursor: pointer; text-decoration: none; }
.rbtn:visited { color: var(--paper); }
.rbtn.alt { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.rlink { background: none; border: 0; padding: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .95rem; }
.rchoices { display: grid; gap: 8px; }
.rchoice { text-align: left; padding: 12px 16px; background: var(--paper-raised); border: 1px solid var(--rule); font: inherit;
  font-size: 1.05rem; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.rchoice:hover, .rchoice:focus-visible { border-color: var(--ink); }
.rwait { color: var(--ink-soft); margin: 0; }
.rsmall { flex-basis: 100%; margin: 4px 0 0; font-size: .92rem; color: var(--ink-soft); }
.rs-friend-h { margin: 8px 0 14px; font-weight: 600; }
.rs-center { text-align: center; }
.heart-art { display: block; width: 70%; margin: 0 auto; mix-blend-mode: multiply; }
.rs-refer-page { min-height: 70vh; }
@media (prefers-reduced-motion: reduce) { .rmsg, .rmsg.typing span { animation: none; } }
