.str8-story-preview {
  margin: clamp(36px, 7vw, 80px) auto;
  padding: 22px 16px;
  text-align: center;
}

.str8-story-preview-link {
  display: inline-grid;
  width: min(100%, 355px);
  gap: 10px;
  justify-items: center;
  color: #fff;
  text-decoration: none;
}

.str8-story-preview-link:focus-visible {
  outline: 2px solid #ffb0d4;
  outline-offset: 10px;
  border-radius: 8px;
}

.str8-story-preview-cover {
  position: relative;
  display: block;
  width: min(100%, 290px);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #e7a3bd;
  border-radius: 7px;
  box-shadow: 0 0 23px #fd91be65, 0 0 45px #ffce8f30;
  animation: str8-story-float 5.4s ease-in-out infinite;
}

.str8-story-preview-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.str8-story-preview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 42%, #ffe5c971 50%, transparent 58%) 130% 0 / 270% 100% no-repeat;
  pointer-events: none;
  animation: str8-story-shine 6.6s ease-in-out infinite;
}

.str8-story-preview-title { font: 700 clamp(1.5rem, 4vw, 2rem)/1.15 Georgia, serif; }
.str8-story-preview-action { color: #ffc0dd; text-decoration: underline; text-underline-offset: 4px; }

@keyframes str8-story-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); box-shadow: 0 0 31px #fd91be98, 0 0 56px #ffce8f45; }
}

@keyframes str8-story-shine {
  0%, 18% { background-position: 130% 0; }
  64%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .str8-story-preview-cover,
  .str8-story-preview-cover::after { animation: none; }
}
