.motion-art {
  display: block;
  height: auto;
}
.motion-art[role="button"] {
  cursor: pointer;
  touch-action: manipulation;
}
.motion-art[role="button"]:focus-visible {
  outline: 3px solid #234f8d;
  outline-offset: 3px;
  border-radius: .35rem;
}
.motion-art .timer-digits {
  font-family: Allo, sans-serif;
  font-variant-numeric: tabular-nums;
}
.motion-art .book-red,
.motion-art .book-blue,
.motion-art .book-green,
.motion-art .sheet-front,
.motion-art .sheet-back {
  transform-box: fill-box;
  transform-origin: center 85%;
}
.motion-art[data-artwork="essays"] { --back-fold: translate(-63px, -7px) rotate(-10deg); --front-fold: translate(32px, 0) rotate(4deg); }
.motion-art[data-artwork="compost"] { --back-fold: translate(-27px, -5px) rotate(-5deg); --front-fold: translate(9px, 0) rotate(2deg); }
.motion-art.folded .sheet-back { transform: var(--back-fold); }
.motion-art.folded .sheet-front { transform: var(--front-fold); }

.motion-art.books-raised .book-red,
.motion-art.books-raised .book-blue,
.motion-art.books-raised .book-green {
  transform: translateY(-10px);
}

@media (prefers-reduced-motion: no-preference) {
  .motion-art .book-red,
  .motion-art .book-blue,
  .motion-art .book-green {
    transition: transform 340ms cubic-bezier(.22,.8,.23,1);
  }
  .motion-art.books-raised .book-blue { transition-delay: 160ms; }
  .motion-art.books-raised .book-green { transition-delay: 320ms; }
  .motion-art .sheet-front,
  .motion-art .sheet-back {
    transition: transform 470ms cubic-bezier(.22,.8,.23,1);
  }
  .motion-art.art-entered:not(.folded) .sheet-front {
    animation: art-open-front 720ms cubic-bezier(.16,.82,.26,1) both;
  }
  .motion-art.art-entered:not(.folded) .sheet-back {
    animation: art-open-back 760ms cubic-bezier(.16,.82,.26,1) both;
  }
  @keyframes art-open-front {
    from { transform: var(--front-fold); }
    to { transform: none; }
  }
  @keyframes art-open-back {
    from { transform: var(--back-fold); }
    to { transform: none; }
  }
  .motion-art.art-entered .bubble-first,
  .motion-art.art-entered .bubble-second,
  .motion-art.art-entered .bubble-third {
    animation: art-bubble-arrives 490ms cubic-bezier(.18,.82,.33,1) both;
  }
  .motion-art.art-entered .bubble-second { animation-delay: 240ms; }
  .motion-art.art-entered .bubble-third { animation-delay: 490ms; }
  @keyframes art-bubble-arrives {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}
