html:has(#message-scroll[open]) {overflow:hidden}
#message-scroll {
  --scroll-art:url("palace-assets/message-scroll.webp");
  inset:0;width:100%;height:100%;margin:0;border:0;padding:0;background:transparent;color:#414832;
  max-width:none;max-height:none;overflow:hidden;text-align:center;
}
#message-scroll[open]{display:grid;place-items:center}
#message-scroll::backdrop {background:#061021a8;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.scroll-paper {position:relative;isolation:isolate;width:min(96vw,32rem);height:min(70rem,122vw,72dvh)}
.scroll-paper::before,.scroll-paper::after {
  content:"";position:absolute;inset:0;background:var(--scroll-art) center/100% 100% no-repeat;pointer-events:none;
}
.scroll-paper::before {clip-path:inset(0 0 9%);z-index:-1}
.scroll-paper::after {clip-path:inset(91% 0 0)}
.scroll-copy {position:absolute;inset:13% 16% 12%;overflow:auto;overscroll-behavior:contain;align-content:safe center;padding:.4rem .15rem;scrollbar-width:thin}
.scroll-copy p,.scroll-copy h2 {margin:0;text-wrap:balance}
.scroll-copy {font:400 clamp(1rem,2.35vw,1.2rem)/1.38 Spectral,Georgia,serif}
.scroll-copy .scroll-heading,.scroll-copy .scroll-name {font:400 clamp(1.9rem,7.2vw,3.4rem)/1.05 "Pinyon Script",cursive;color:#5b603e}
.scroll-copy .scroll-heading {font-size:clamp(2.4rem,9.5vw,4.5rem);margin:.12em 0}
.scroll-copy .scroll-intro {font-size:.78em;text-transform:uppercase;letter-spacing:.12em}
.scroll-copy .scroll-blessing {font:400 clamp(1.25rem,4.3vw,1.7rem)/1.5 Amiri,serif;color:#786031}
.scroll-copy .scroll-and {color:#816936;margin:.17em 0}
.scroll-copy .scroll-date,.scroll-copy .scroll-venue {margin-top:.65em;font-weight:600}
#message-scroll form {margin:0}
@media(prefers-reduced-motion:no-preference){
  #message-scroll[open] .scroll-paper::before {animation:unfurl-paper .62s cubic-bezier(.2,.68,.25,1) both}
  #message-scroll[open] .scroll-paper::after {animation:unfurl-rod .62s cubic-bezier(.2,.68,.25,1) both}
  #message-scroll[open] .scroll-copy {animation:reveal-message .35s .32s both}
  @keyframes unfurl-paper {from{clip-path:inset(0 0 80%)}}
  @keyframes unfurl-rod {from{transform:translateY(-71%)}}
  @keyframes reveal-message {from{opacity:0}to{opacity:1}}
}
.reveal-petals {position:absolute;inset:0;pointer-events:none;overflow:hidden;contain:strict}
.reveal-petals i {position:absolute}
