/* Section 5: the blog. Three equal cards (plain fill, 6px radius, cover at
   2:1) on the page's 12 column grid with the bento's gap. Lime marks the
   newest post only. */

.blog { position: relative; z-index: 2; }
.blog .frame { padding-block: 0 var(--s6); row-gap: var(--s4); }
.bl-host { grid-column: 1 / -1; min-width: 0; display: grid; gap: var(--s3); }
.bl-host .b-source a { color: var(--fg); text-decoration: underline; text-decoration-color: rgb(252 252 254 / 0.3); text-underline-offset: 3px; }
.bl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s2); }

.bl-card { grid-column: span 4; display: grid; grid-template-rows: auto 1fr; border-radius: 6px; background: var(--surface); overflow: hidden; color: inherit; text-decoration: none; transition: background-color 150ms ease; min-width: 0; }
.bl-card:hover { background: rgb(252 252 254 / 0.04); }
.bl-cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.bl-text { display: grid; align-content: start; gap: var(--s1); padding: var(--s3); }
.bl-card h3 { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--fg); text-wrap: balance; min-height: 48px; }
.bl-sum { font-size: 14px; line-height: 20px; color: var(--muted); }
/* Two lines each, so all three cards end on the same line. */
.bl-card h3, .bl-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Category, date and the newest post's marker, in one row. */
.bl-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; color: var(--muted); }
.bl-meta span { color: var(--fg); }
.bl-meta em { font-style: normal; font-weight: 500; color: var(--lime); }

@media (max-width: 860px) {
  .blog .frame { padding-bottom: var(--s5); }
  .bl-grid { grid-template-columns: 1fr; }
  .bl-card { grid-column: auto; }
}

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