.ink-word { display: inline-block; white-space: nowrap; }
.ink-letter {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: .012em var(--title);
  background: repeating-linear-gradient(48deg, var(--title) 0 .038em, transparent .038em .105em);
  -webkit-background-clip: text;
  background-clip: text;
  transform-origin: 50% 90%;
}
.ink-letter::after {
  content: attr(data-ink);
  position: absolute;
  inset: 0;
  color: var(--title);
  clip-path: inset(0);
  pointer-events: none;
}
.ink-letter.engraved::after { content: none; }
.ink-letter.ink-reply::after { clip-path: inset(0 0 100%); }
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .ink-letter {
    animation: ink-arrive .47s cubic-bezier(.16,.84,.24,1) backwards,
               ink-wave 4.8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 24ms), calc(1.25s + var(--i) * 85ms);
  }
  body:not(.motion-paused) .ink-letter::after { transition: clip-path .23s ease-out; }
  body:not(.motion-paused) .ink-letter:nth-child(3n+1)::after {
    animation: ink-peel 4.8s ease-in-out infinite;
    animation-delay: calc(1.25s + var(--i) * 85ms);
  }
  body:not(.motion-paused) .ink-letter.ink-reply::after { animation: none; }
}
@keyframes ink-arrive {
  from { opacity: 0; translate: 0 .36em; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes ink-wave {
  0%, 17%, 100% { transform: none; }
  7% { transform: translateY(-.075em) rotate(-3deg); }
}
@keyframes ink-peel {
  0%, 24%, 100% { clip-path: inset(0); }
  8%, 15% { clip-path: inset(0 0 100%); }
}
@media (forced-colors: active) {
  .ink-letter { color: CanvasText; -webkit-text-stroke: 0; }
}
