/* Blog index, tag and author pages, and the post cards they share */
.blog-head {
	padding-block: 56px 24px;
}
.blog-head h1 {
	margin: 0;
	font-size: 44px;
	line-height: 52px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.blog-head p {
	max-width: 56ch;
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 18px;
	line-height: 28px;
}
.tabs {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
	border-block: 1px solid var(--rule);
}
.tabs ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
}
.tabs a {
	display: block;
	padding: 12px;
	color: var(--muted);
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}
.tabs a:hover,
.tabs a.nav-current {
	color: var(--ink);
}
.tabs a.nav-current {
	box-shadow: inset 0 -2px var(--ink);
}
.chip {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--rule);
	border-radius: 999px;
	color: var(--ink);
	font-size: 12px;
	line-height: 20px;
	text-decoration: none;
}
.card-img {
	display: block;
	overflow: hidden;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--tint);
}
.card-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	object-fit: cover;
}
.card-img-empty {
	display: grid;
	place-items: center;
	aspect-ratio: 1200 / 630;
	color: var(--muted);
	font-weight: 500;
}
.featured {
	display: grid;
	gap: 24px;
	margin-bottom: 40px;
	color: inherit;
	text-decoration: none;
}
.featured-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
}
.featured h2 {
	margin: 0;
	font-size: 28px;
	line-height: 36px;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.featured:hover h2,
.post-card:hover h2 {
	color: var(--primary-text);
}
.excerpt {
	margin: 0;
	color: var(--muted);
}
.post-meta {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 20px;
}
.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px 24px;
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}
.post-grid > li {
	display: flex;
}
.post-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}
.post-card h2 {
	margin: 4px 0 0;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.post-card .excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
}
.related {
	max-width: 1392px;
	padding-block: 24px 16px;
	border-top: 1px solid var(--rule);
}
.related > h2 {
	margin: 24px 0;
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 900px) {
	.featured {
		grid-template-columns: 7fr 5fr;
		gap: 40px;
	}
	.featured h2 {
		font-size: 32px;
		line-height: 40px;
	}
}
@media (min-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 64px;
	color: var(--muted);
	font-size: 14px;
}
.pagination a {
	padding: 8px 16px;
	border: 1px solid var(--rule);
	border-radius: 8px;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}
.pagination a:hover {
	background: var(--tint);
}
