/* The write-out (src/write-out.mjs): the back of a box of your own words once it is saved,
   your words and then the instruction Murmur writes from them, as Sky dot-words. And the
   brand's Writing dots, for every wait while Murmur writes. Linked before the page's own
   sheets, so a screen places and sizes them. */

/* The back face's ground: the app's lilac panel. */
.wo-face { background: var(--lilac); }

/* The dots fill their face row after row and stop at its foot, the last rows fading out,
   so what is written reads as more than fits. */
.wo {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px 10px;
  height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}
.wo-w { display: inline-flex; gap: 5px; }
.wo i { display: block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }

/* The brand's Writing dots: three small Sky dots, 9 px from centre to centre (the app's). */
.writing { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.writing i { display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

/* ---------------------------------------------------------------- motion */
/* Pouring (js/write-out.js): a run shows as its turn comes. */
.motion .wo.is-pouring .wo-w { opacity: 0; }
.motion .wo.is-pouring .wo-w.is-on { opacity: 1; transition: opacity 0.12s ease; }

/* Each Writing dot pulses in turn; with reduced motion they stand still. */
.motion .writing i { animation: wo-writing 0.9s ease-in-out infinite backwards; }
.motion .writing i:nth-of-type(2) { animation-delay: 0.15s; }
.motion .writing i:nth-of-type(3) { animation-delay: 0.3s; }
@keyframes wo-writing { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
