/* The post card. Consumers: Blog (grid), Other Posts (track). Width,
   flex and snap belong to the consumer. The course card's box (flat 20
   radius, 427/265 cover, the frame's 20 on the cover) turned over —
   author row and title on top, cover at the bottom. Sizes and
   proportions are the frame's, flat — her call; only the 1440 frame
   exists. */
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--color-cards-bg);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 29.34px 40px;
}
.post-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-card__avatar {
  flex: none;
  width: 36.62px;
  height: 36.62px;
  border-radius: 50%;
  object-fit: cover;
}
.post-card__author-text {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.25; /* the frame's auto: 10 on 8, 15 on 12 */
}
.post-card__label {
  font-size: 8px;
}
.post-card__name {
  font-size: 12px;
}
.post-card__title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 400; /* the frame's Regular, her call over the course card's Medium */
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 337px; /* the frame's text box: long titles wrap to 3 lines, short stay 2 */
  text-wrap: balance;
}
.post-card__media {
  flex: none;
  width: 100%;
  aspect-ratio: 427 / 265;
  border-radius: 20px;
  overflow: hidden;
}
/* Desktop: the cover sits 8 in from the card's sides and bottom (her
   call), its radius concentric with the card's — 20 − 8. Flush again
   below the desktop line, as the hover. */
@media (min-width: 989px) {
  .post-card__media {
    width: auto;
    margin: 0 8px 8px;
    border-radius: 12px;
  }
}
.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
/* Added interaction, as the course card: the cover grows a little under the pointer. */
@media (hover: hover) and (pointer: fine) and (min-width: 989px) {
  .post-card:hover .post-card__media img {
    transform: scale(1.05);
  }
}
