/* Subtle interaction layer. The original site background is intentionally untouched. */
#recent-posts > .recent-post-item {
  animation: amy-card-in 0.65s both cubic-bezier(0.2, 0.7, 0.2, 1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

#recent-posts > .recent-post-item:nth-child(2) {
  animation-delay: 0.08s;
}

#recent-posts > .recent-post-item:nth-child(3) {
  animation-delay: 0.16s;
}

#recent-posts > .recent-post-item:nth-child(4) {
  animation-delay: 0.24s;
}

#recent-posts > .recent-post-item:hover {
  transform: translateY(-5px);
}

#recent-posts > .recent-post-item .post_cover img.post-bg {
  filter: saturate(0.88) contrast(0.97);
  transition: transform 0.65s ease, filter 0.4s ease;
}

#recent-posts > .recent-post-item:hover .post_cover img.post-bg {
  filter: saturate(1) contrast(1);
  transform: scale(1.04);
}

#aside-content .card-widget {
  animation: amy-aside-in 0.68s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

#aside-content .card-widget:nth-child(2) {
  animation-delay: 0.1s;
}

#aside-content .card-widget:nth-child(3) {
  animation-delay: 0.18s;
}

#aside-content .avatar-img img {
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#aside-content .avatar-img:hover img {
  transform: rotate(-3deg) scale(1.055);
}

#article-container img {
  animation: amy-image-in 0.72s both ease-out;
  transition: transform 0.42s ease, box-shadow 0.42s ease;
}

#article-container img:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(39, 53, 47, 0.14);
}

#rightside > div > button,
#pagination .page-number,
#pagination .extend {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#rightside > div > button:active,
#pagination .page-number:active,
#pagination .extend:active {
  transform: scale(0.92);
}

#nav .site-page::after {
  transform-origin: center;
  transition: transform 0.28s ease;
}

@keyframes amy-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes amy-aside-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes amy-image-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
