/* Micro Animations */

@keyframes movearrow {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .download svg {
    overflow: visible;
  }
  .download:hover .download__arrow,
  .download:focus .download__arrow {
    animation-duration: 0.5s;
    animation-name: movearrow;
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }

  .lightbox__link:hover svg,
  .lightbox__link:focus svg {
    transition: transform 0.2s linear, opacity 0.2s linear;
    transform: scale(1.2);
  }
}

#site-logo {
  animation-timeline: scroll(root);
  animation-name: logosize;
  animation-range: 43px 73px;
  animation-fill-mode: both;
  animation-duration: 1ms; /* Firefox requires this to apply the animation */
}

@keyframes logosize {
  from {
    height: 74px;
    bottom: 26px;
  }

  to {
    height: 50px;
    bottom: 15px;
  }
}
