/* PREVIEW ONLY */
/* message sent: clouds pour up and fill the screen, then the thank-you arrives on them (sent.js) */
.sent { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none; }
.sent.is-on { pointer-events: auto; }
.sent__clouds { position: absolute; inset: 0; overflow: hidden; }
.sent__puff { position: absolute; left: var(--x); bottom: 0; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(closest-side, #fff8f8 0, #fbe5ea 46%, rgba(246, 214, 226, .85) 70%, rgba(240, 206, 222, 0) 100%);
  transform: translateY(110%) scale(.4); opacity: 0; transition: transform 1.6s cubic-bezier(.22, .8, .24, 1) var(--d), opacity .6s ease var(--d); }
.sent.is-on .sent__puff { transform: translateY(calc(-1 * (100vh - var(--s) * .35) * var(--k, 1))) scale(1.9); opacity: 1; }
.sent__puff:nth-child(odd) { --k: .55; }
.sent__puff:nth-child(3n) { --k: .2; }
.sent.is-on .sent__clouds { background: rgba(250, 232, 236, 0); animation: sentFill 1.4s ease .9s forwards; }
@keyframes sentFill { to { background: rgba(250, 232, 236, .96); } }
.sent__msg { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; max-width: 30ch; padding: 0 24px; text-align: center; color: var(--wine);
  opacity: 0; transform: translateY(30px); transition: opacity .9s ease 1.5s, transform 1.2s cubic-bezier(.22, 1, .36, 1) 1.5s; }
.sent.is-on .sent__msg { opacity: 1; transform: none; }
.sent__k { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.sent__h { margin: 0; font-family: var(--serif); font-weight: 500; font-style: italic; text-transform: none; font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.03em; }
.sent__h em { display: block; color: var(--cherry, #8e1f2f); font-size: .55em; margin-top: .3em; letter-spacing: -.01em; }
.sent__p { margin: 4px 0 10px; font-size: 18px; }
.sent__close { border: 0; background: none; color: inherit; font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sent.is-off .sent__puff { transform: translateY(-140vh) scale(2.2); opacity: 0; transition: transform .9s ease-in, opacity .7s ease; }
.sent.is-off .sent__msg, .sent.is-off .sent__clouds { opacity: 0; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) {
  .sent__puff { display: none; }
  .sent.is-on .sent__clouds { animation: none; background: rgba(250, 232, 236, .97); }
  .sent__msg { transition: opacity .3s ease; transform: none; }
}
