/*
 * Blog: post listings, single articles, table of contents, author box.
 * Loaded on the blog index, archives, search and single posts.
 */

.post-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.post-card__media {
	aspect-ratio: 16 / 9;
	background: var(--color-gray-200);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: var(--space-m);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-xs);
	margin-bottom: var(--space-xs);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.listing-search {
	margin-bottom: var(--space-l);
}

/* Single article */
.article__header {
	padding-block: var(--space-m) var(--space-l);
}

.article__title {
	font-size: var(--text-2xl);
}

.article__header .post-meta {
	margin: 0;
}

.article__featured {
	margin: 0 0 var(--space-l);
}

.article__featured img {
	width: 100%;
	border-radius: var(--radius-m);
}

/* Author box */
.author-box {
	display: flex;
	gap: var(--space-s);
	align-items: flex-start;
	margin-top: var(--space-l);
}

.author-box img {
	flex-shrink: 0;
	border-radius: 50%;
}

.author-box__name {
	margin-bottom: var(--space-2xs);
	font-weight: 700;
}

.author-box p:last-child {
	margin: 0;
}
