.download-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 360px));
  justify-content: center;
}

.download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.download-card:hover {
  border-color: #b7a6d2;
  box-shadow: 0 18px 38px -22px rgba(62, 33, 56, 0.34);
  transform: translateY(-2px);
}

.download-card__cover {
  align-items: center;
  aspect-ratio: 1 / 1.08;
  background: var(--color-lavender);
  display: flex;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
  padding: 1.15rem 1rem;
}

.download-card__cover picture,
.download-card__cover img {
  display: block;
}

.download-card__cover img {
  border-radius: 5px;
  box-shadow: var(--shadow-cover);
  height: min(100%, 300px);
  max-height: 100%;
  max-width: min(78%, 210px);
  object-fit: contain;
  transform: rotate(1deg);
  width: auto;
}

.download-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.05rem;
}

.download-card h3 {
  color: var(--color-ink);
  line-height: 1.22;
  margin: 0.45rem 0;
}

.download-card__body > p:not(.eyebrow) {
  color: #7a6a72;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.download-card__action {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
}

.download-card__action span {
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
}

.download-card__action a {
  align-items: center;
  background: var(--color-brand);
  border-radius: 6px;
  color: var(--color-paper);
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 44px;
  padding: 0.62rem 0.95rem;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .download-card {
    transition: none;
  }

  .download-card:hover {
    transform: none;
  }
}
