.post-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 30px;
	margin: 30px 0 40px;
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background-color: #FFF;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgb(0 0 0 / .12);
	transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover,
.post-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgb(0 0 0 / .18);
}

.post-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background-color: #f3f3f3;
	overflow: hidden;
}

.post-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.post-card:hover .post-card__image img {
	transform: scale(1.04);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px 22px 22px;
}

.post-card__date {
	font-size: .85rem;
	color: #767676;
}

.post-card__title {
	margin: 6px 0 10px;
	font-size: 1.3rem;
	line-height: 1.3;
}

.post-card__title a {
	color: #313131;
	text-decoration: none;
}

/* Make the whole card clickable through the title link. */
.post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.post-card__title a:focus-visible {
	outline: none;
}

.post-card:focus-within {
	outline: 2px solid #009444;
	outline-offset: 2px;
}

.post-card__excerpt {
	margin: 0 0 16px;
	color: #404040;
}

.post-card__more {
	margin-top: auto;
	font-weight: 700;
	color: #009444;
}

.post-card:hover .post-card__more {
	text-decoration: underline;
}

.archive .pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}

.archive .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 6px;
	background-color: #f3f3f3;
	color: #313131;
	text-decoration: none;
}

.archive .pagination .page-numbers.current,
.archive .pagination a.page-numbers:hover {
	background-color: #009444;
	color: #FFF;
}

@media screen and (max-width: 1480px) {
	.archive .site-main {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media screen and (max-width: 700px) {
	.post-cards {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
