/* Original Dancing Script font, SIL OFL 1.1; license alongside the font. */
@font-face{font-family:"Bajka Handwriting";src:url("./assets/fonts/DancingScript-Variable.ttf") format("truetype");font-weight:400 700;font-style:normal;font-display:swap}
[data-handwriting] em{font-family:var(--serif);font-style:italic;font-weight:500;letter-spacing:-.025em;line-height:1.12}
.handwriting-intro{display:inline-block;max-width:100%}
.handwriting-script{display:inline;max-width:100%}
.handwriting-word{position:relative;display:inline-block;white-space:nowrap;padding-inline:.04em;margin-inline:-.04em}
.handwriting-ready:not(.is-written) .handwriting-intro{opacity:0;transform:translateY(.14em)}
.handwriting-ready:not(.is-written) .handwriting-word{clip-path:inset(-.2em 100% -.22em -.06em)}
.handwriting-ready.is-written .handwriting-intro{animation:bajka-ink-intro 600ms cubic-bezier(.2,.7,.2,1) both}
.handwriting-ready.is-written .handwriting-word{animation:bajka-handwriting var(--ink-duration) linear var(--ink-delay) both}
.handwriting-word:after{content:"";position:absolute;top:.71em;left:0;width:.06em;height:.12em;background:currentColor;transform:rotate(32deg);border-radius:1px;opacity:0;pointer-events:none}
.handwriting-ready.is-written .handwriting-word:after{animation:bajka-pencil-tip var(--ink-duration) linear var(--ink-delay) both}
.handwriting-complete .handwriting-intro,.handwriting-complete .handwriting-word,.handwriting-complete .handwriting-word:after{animation:none!important;transform:none;clip-path:none;opacity:1}
.handwriting-complete .handwriting-word:after{display:none}
.document-hidden .handwriting-ready *,.document-hidden .handwriting-word:after{animation-play-state:paused!important}
@keyframes bajka-ink-intro{from{opacity:0;transform:translateY(.14em)}to{opacity:1;transform:none}}
@keyframes bajka-handwriting{from{clip-path:inset(-.2em 100% -.22em -.06em)}to{clip-path:inset(-.2em -.1em -.22em -.06em)}}
@keyframes bajka-pencil-tip{0%{left:0;opacity:0}8%{opacity:.65}88%{opacity:.65}100%{left:100%;opacity:0}}
@media(prefers-reduced-motion:reduce){.handwriting-ready .handwriting-intro,.handwriting-ready .handwriting-word{animation:none!important;opacity:1!important;transform:none!important;clip-path:none!important}.handwriting-word:after{display:none!important}}
