.article-info-card,
.article-detail-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.article-info-card {
  min-height: 10rem;
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow:
    0 14px 30px rgb(15 23 42 / 0.14),
    inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.article-info-card::before,
.article-detail-card::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.13), transparent 42%),
    radial-gradient(circle at 92% 12%, rgb(255 255 255 / 0.2), transparent 34%);
}

.article-info-card::after,
.article-detail-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 10rem;
  height: 10rem;
  right: -4.25rem;
  bottom: -5.25rem;
  border-radius: 999px;
  pointer-events: none;
  background: rgb(255 255 255 / 0.12);
}

.article-info-card__copy {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 6.75rem);
}

.article-info-card__art {
  position: absolute;
  z-index: 1;
  right: 0.6rem;
  bottom: 0.45rem;
  width: 6.6rem;
  height: 6.6rem;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 12px rgb(15 23 42 / 0.2));
}

.article-info-card--light {
  border-color: rgb(148 163 184 / 0.28);
  box-shadow:
    0 12px 26px rgb(15 23 42 / 0.09),
    inset 0 1px 0 rgb(255 255 255 / 0.75);
}

.article-info-card--light::before {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.72), transparent 46%),
    radial-gradient(circle at 92% 12%, rgb(255 255 255 / 0.8), transparent 34%);
}

.article-info-card--light::after {
  background: rgb(255 255 255 / 0.44);
}

.article-info-card--compact {
  min-height: 8.6rem;
}

.article-detail-card {
  border-radius: 1rem;
  box-shadow:
    0 12px 28px rgb(15 23 42 / 0.09),
    inset 0 1px 0 rgb(255 255 255 / 0.72);
}

.article-detail-card__header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.article-detail-card__art {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 10px rgb(15 23 42 / 0.16));
}

.article-detail-card__badge {
  grid-column: 2;
  justify-self: start;
}

.article-detail-card > :not(.article-detail-card__header) {
  position: relative;
  z-index: 2;
}

@media (max-width: 379px) {
  .article-info-card__copy {
    max-width: calc(100% - 5.25rem);
  }

  .article-info-card__art {
    right: 0.35rem;
    bottom: 0.35rem;
    width: 5.1rem;
    height: 5.1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .article-info-card,
  .article-detail-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .article-info-card:hover,
  .article-detail-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 18px 38px rgb(15 23 42 / 0.14),
      inset 0 1px 0 rgb(255 255 255 / 0.72);
  }
}
