/* The official wordmark is painted on the cover, then the cover opens onto the calendar. */
.brand-curtain { display: none; }

@media screen and (prefers-reduced-motion: no-preference) {
  .paint-cover .brand-curtain {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    background: #fff8eb;
    animation: open-paper 580ms cubic-bezier(.49,.03,.28,1) 1450ms both;
  }

  .cover-art {
    display: block;
    width: min(79%, clamp(235px, 40vw, 435px));
    height: 81%;
    overflow: visible;
  }

  .paint-stroke {
    stroke-dasharray: 1 1.05;
    stroke-dashoffset: 1.04;
    animation: lay-ink 680ms cubic-bezier(.3,.07,.42,1) both;
  }
  .paint-stroke.lettering { animation-duration: 850ms; animation-delay: 290ms; }
  .ink-settle { animation: finish-fill 120ms ease-out 1070ms both; }
  .cover-art image { animation: lift-stencil 1ms step-end 1190ms forwards; }
  .paint-flecks {
    transform-origin: center;
    animation: finish-ink 400ms ease-out 620ms both;
  }
  @keyframes lay-ink {
    from { stroke-dashoffset: 1.04; }
    to { stroke-dashoffset: 0; }
  }
  @keyframes finish-ink {
    from { opacity: 0; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes finish-fill {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes lift-stencil { to { mask: none; } }
  @keyframes open-paper {
    from { visibility: visible; clip-path: polygon(0 0,100% 0,100% 115%,84% 110%,68% 116%,48% 109%,32% 113%,17% 108%,0 116%); }
    to { visibility: hidden; clip-path: polygon(0 0,100% 0,100% -9%,84% -14%,68% -8%,48% -15%,32% -11%,17% -16%,0 -8%); }
  }
}
