.album-story-card {
  --story-accent: var(--lime, #d8ff3e);
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 26px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid color-mix(in srgb, var(--story-accent) 28%, #ffffff 6%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--story-accent) 16%, transparent), transparent 38%),
    linear-gradient(145deg, #141a18 0%, #0b0f14 54%, #080b0f 100%);
  box-shadow: 0 24px 70px #0000004a, inset 0 1px 0 #ffffff0b;
  color: var(--text, #f7f7f4);
  animation: album-story-enter 320ms cubic-bezier(.22, .8, .24, 1) both;
}

.album-story-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, #ffffff08 48%, transparent 66%);
  transform: translateX(-100%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.album-story-card:hover::before,
.album-story-card:focus-within::before {
  transform: translateX(100%);
}

.album-story-light {
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -45px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--story-accent) 17%, transparent);
  filter: blur(34px);
  opacity: .75;
  pointer-events: none;
}

.album-story-copy {
  max-width: 760px;
}

.album-story-copy small {
  display: block;
  margin-bottom: 12px;
  color: var(--story-accent);
  font: 800 11px/1.2 Manrope, sans-serif;
  letter-spacing: .16em;
}

.album-story-copy h3 {
  max-width: 18ch;
  margin: 0;
  font: 800 clamp(27px, 4.2vw, 50px)/.98 Manrope, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.album-story-copy p {
  max-width: 58ch;
  margin: 16px 0 0;
  color: #aeb6c2;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
}

.album-story-action {
  min-width: 190px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 14px 20px;
  border: 1px solid #ffffff19;
  border-radius: 15px;
  background: #f6f8f2;
  color: #080b0d;
  font: 800 14px/1 Manrope, sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 30px #0005;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.album-story-action svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.album-story-action:hover {
  background: var(--story-accent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--story-accent) 18%, transparent);
  transform: translateY(-2px);
}

.album-story-action:hover svg {
  transform: translateX(3px);
}

.album-story-action:active {
  transform: scale(.98);
}

.album-story-action:focus-visible {
  outline: 3px solid var(--story-accent);
  outline-offset: 3px;
}

.album-story-update { --story-accent: #76f2bd; }
.album-story-professional { --story-accent: #b7a7ff; }
.album-story-social { --story-accent: #77d7ff; }
.album-story-share { --story-accent: var(--lime, #d8ff3e); }

@keyframes album-story-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .album-story-card {
    min-height: 260px;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 22px;
    padding: 25px 20px 20px;
    border-radius: 20px;
  }

  .album-story-copy h3 {
    max-width: 15ch;
    font-size: clamp(28px, 9vw, 40px);
  }

  .album-story-copy p {
    margin-top: 13px;
    font-size: 14px;
  }

  .album-story-action {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }
}

@media (max-width: 350px) {
  .album-story-card {
    padding: 22px 17px 17px;
  }

  .album-story-copy h3 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .album-story-card {
    animation: none;
  }

  .album-story-card::before,
  .album-story-action,
  .album-story-action svg {
    transition: none;
  }
}
