/* posts — newest posts as a list of cards (picture beside the text on a wide screen). */

.s-posts__list { display: grid; gap: var(--s-grid-gap); }

.s-posts__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-space-4);
  padding-bottom: var(--s-space-5);
  border-bottom: var(--s-border-w) var(--s-rule-style) var(--s-border);
}
.s-posts__item:last-child { border-bottom: 0; }
@container (min-width: 40rem) {
  .s-posts__item:has(.s-posts__cover) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}

.s-posts__cover {
  display: block;
  aspect-ratio: var(--s-ratio-hero);
  overflow: hidden;
  border-radius: var(--s-radius-md);
  background: var(--s-bg-sunken);
}
.s-posts__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.s-posts__meta {
  margin: 0 0 var(--s-space-2);
  font-family: var(--s-font-mono);
  font-size: var(--s-text-xs);
  letter-spacing: var(--s-tracking-wide);
  text-transform: uppercase;
  color: var(--s-fg-muted);
  display: flex; flex-wrap: wrap; gap: var(--s-space-3);
}
.s-posts__title {
  margin: 0 0 var(--s-space-2);
  font-family: var(--s-font-display);
  font-size: var(--s-text-xl);
  line-height: var(--s-leading-tight);
}
.s-posts__title a { color: var(--s-fg); text-decoration: none; }
.s-posts__title a:hover { color: var(--s-accent); }
.s-posts__excerpt { margin: 0 0 var(--s-space-3); color: var(--s-fg-muted); line-height: var(--s-leading-normal); max-width: 68ch; }
.s-posts__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-space-2); }
.s-posts__tags a { text-decoration: none; }
.s-posts__more { margin: var(--s-space-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-space-3); }
