.post-card {
  min-width: 0;
  height: 100%;
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background-color: white;
  text-decoration: none;
  color: inherit;
  transition: border-color 400ms;
}

.post-card__link:hover,
.post-card__link:focus,
.post-card__link:active {
  border-color: var(--text);
  color: inherit;
}

.post-card__media {
  position: relative;
  width: 100%;
  height: 13.75rem;
  overflow: hidden;
  background-color: var(--bg-gray);
}

.post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.post-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.post-card__date {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

.post-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

/* Archive / horizontal card */

.post-card--archive .post-card__link {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  border-radius: 1.25rem;
}

.post-card--archive .post-card__media {
  flex: 0 0 11.5rem;
  width: 11.5rem;
  height: auto;
  min-height: 11.5rem;
  align-self: stretch;
  border-radius: 1.25rem;
}

.post-card--archive .post-card__media--empty {
  background: linear-gradient(135deg, var(--bg-gray), #ececec);
}

.post-card--archive .post-card__content {
  position: relative;
  flex: 1 1 auto;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 3.25rem;
  min-width: 0;
}

.post-card--archive .post-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.post-card--archive .post-card__title {
  flex: 1 1 auto;
  font-size: 1.125rem;
  line-height: 1.35;
  min-width: 0;
}

.post-card--archive .post-card__views {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gray);
}

.post-card--archive .post-card__views-icon {
  display: inline-flex;
  color: var(--gray);
}

.post-card--archive .post-card__views-icon svg {
  display: block;
}

.post-card--archive .post-card__reading,
.post-card--archive .post-card__date {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray);
}

.post-card--archive .post-card__category {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

@media (max-width: 700px) {
  .post-card--archive .post-card__link {
    flex-direction: column;
  }

  .post-card--archive .post-card__media {
    flex: none;
    width: 100%;
    height: 12rem;
    min-height: 0;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .post-card--archive .post-card__content {
    padding-bottom: 3.25rem;
  }
}
