/* Blog: article cards, list and article page. */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 3rem clamp(1.25rem, 5vw, 4.5rem); }

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__title { font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.post-card__title a { color: var(--color-text); }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__media { display: block; overflow: hidden; border-radius: var(--radius-media); }
.post-card__image { width: 100%; aspect-ratio: 413 / 300; object-fit: cover; transition: transform 0.4s ease; }
.post-card__media:hover .post-card__image { transform: scale(1.03); }

.post-card--teaser .post-card__title { margin-top: 0.75rem; padding-inline: 0.5rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); font-weight: 400; text-align: center; }

.post-card--list { overflow: hidden; }
.post-card--list .post-card__title { padding: 0.9375rem 0.9375rem 1.25rem; font-size: var(--text-h3); font-weight: 500; line-height: 1.15; }
.post-card--list .post-card__title a { color: var(--color-ink); }
.post-card--list .post-card__media { border-radius: 0; }
.post-card--list .post-card__image { aspect-ratio: 10 / 9; }
.post-card--list .post-card__excerpt { padding: 1.25rem 0.9375rem 0; font-size: 1.0625rem; }
.post-card--list .post-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding: 1rem 0.9375rem 0.9375rem; color: var(--color-ink); font-size: 0.875rem; font-weight: 500; }
.post-card--list .post-card__more:hover { color: var(--color-primary); }

/* Article */
.article-page { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section); }
.article-page__inner { display: grid; align-items: start; gap: 2.5rem; }
.article { min-width: 0; }
.article__title { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 500; }
.article__image { width: 100%; margin-bottom: 2rem; border-radius: var(--radius-media); }

.author { padding: 1.5rem; text-align: center; }
.author__image { width: 7.5rem; height: 7.5rem; margin-inline: auto; border-radius: 50%; object-fit: cover; }
.author__name { margin-block: 1rem 0.5rem; color: var(--color-primary); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.author__bio { font-size: 1rem; }
.author__social { justify-content: center; margin-top: 1.25rem; }
@media (min-width: 64em) {
  .article-page__inner { grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 5rem; }
  .author { position: sticky; top: calc(var(--header-height) + 1.5rem); }
}
