/**
 * NewMetro
 * Blog listing, single post and 404.
 */


/* ==========================
   Listing (blog, archives, search)
========================== */

.listing__head {
	padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px);
}

.listing__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.375rem, 4.1vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: var(--fascia);
}

.post-rows {
	margin: 0 0 var(--section);
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--mist-deep);
}

.post-row {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 16px 40px;
	padding-block: 28px;
	border-bottom: 1px solid var(--mist-deep);
	text-decoration: none;
}

.post-row:not(:has(.post-row__image)) {
	grid-template-columns: minmax(0, 1fr) 24px;
}

.post-row__image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

.post-row__text {
	display: grid;
	gap: 6px;
}

.post-row__date {
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	color: var(--ink-soft);
}

.post-row__title {
	font-family: var(--serif);
	font-size: clamp(1.375rem, 2vw, 1.75rem);
	line-height: 1.2;
	color: var(--fascia);
	text-wrap: balance;
}

.post-row__excerpt {
	max-width: 68ch;
	color: var(--ink-soft);
}

.post-row__arrow {
	color: var(--fascia);
	transition: transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.post-row:hover .post-row__title {
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-decoration-color: var(--gold);
		text-underline-offset: 0.18em;
	}

	.post-row:hover .post-row__arrow {
		transform: translateX(4px);
	}
}

.listing__empty {
	padding-bottom: var(--section);
	color: var(--ink-soft);
}

.navigation.pagination {
	margin-top: -48px;
	padding-bottom: var(--section);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mist-deep);
	border-radius: var(--radius);
	color: var(--fascia);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.nav-links .page-numbers.current {
	background: var(--fascia);
	border-color: var(--fascia);
	color: var(--on-fascia);
}

@media (max-width: 720px) {
	.post-row,
	.post-row:not(:has(.post-row__image)) {
		grid-template-columns: minmax(0, 1fr) 24px;
	}

	.post-row__image {
		grid-column: 1 / -1;
	}
}


/* ==========================
   Single post
========================== */

.article__head {
	max-width: calc(68ch + 2 * var(--gutter));
	padding-block: 0 clamp(32px, 4vw, 48px);
}

.article__title {
	margin-top: clamp(24px, 4vw, 48px);
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.25rem, 3.8vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--fascia);
	text-wrap: balance;
}

.article__meta {
	margin-top: 16px;
	font-size: 0.9375rem;
	color: var(--ink-soft);
}

.article__image {
	max-width: calc(960px + 2 * var(--gutter));
	margin-bottom: clamp(32px, 4vw, 56px);
}

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

.article__body {
	padding-bottom: var(--section);
}


/* ==========================
   404
========================== */

.not-found {
	padding-block: clamp(72px, 12vw, 160px);
}

.not-found__title {
	max-width: 18ch;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.375rem, 4.1vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: var(--fascia);
	text-wrap: balance;
}

.not-found__text {
	max-width: 52ch;
	margin-top: 24px;
	font-size: 1.1875rem;
	color: var(--ink-soft);
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 36px;
}
