.archive-header,
.recipe-hero,
.not-found {
	padding: clamp(70px, 9vw, 120px) 0;
}

.recipe-hero {
	padding-bottom: 24px;
}

.archive-header h1,
.recipe-hero h1,
.not-found h1 {
	max-width: 900px;
	margin: 0;
	font-family: "Playfair Display", serif;
	font-size: clamp(2.8rem, 6vw, 5.8rem);
	line-height: 1;
}

.archive-description,
.recipe-intro,
.not-found p {
	max-width: 720px;
	margin-top: 24px;
	font-size: 1.12rem;
}

.recipe-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(40px, 7vw, 90px);
}

.recipe-hero__media {
	overflow: hidden;
	border-radius: 30px;
	box-shadow: var(--shadow);
}

.recipe-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.recipe-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 30px;
}

.recipe-actions button {
	font: inherit;
	cursor: pointer;
}

/*
 * Every recipe post uses one centred editorial column.
 * Keeping these rules in the theme means existing and future posts match
 * without page-specific Customizer CSS.
 */
.single-recipe .recipe-layout {
	display: block;
	width: min(92%, 980px);
	margin-inline: auto;
	padding-top: 36px;
	padding-bottom: 80px;
}

.single-recipe .recipe-content {
	width: 100%;
	max-width: 980px;
	min-width: 0;
	margin-inline: auto;
}

.single-recipe .recipe-content > * {
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.single-recipe .recipe-content h2,
.single-recipe .recipe-content h3 {
	font-family: "Playfair Display", serif;
	line-height: 1.15;
}

.single-recipe .recipe-content h2 {
	margin-top: 55px;
	margin-bottom: 20px;
	font-size: 42px;
	line-height: 1.08;
}

.single-recipe .recipe-content h3 {
	font-size: 30px;
}

.single-recipe .recipe-content p,
.single-recipe .recipe-content li {
	font-size: 18px;
	line-height: 1.75;
}

.single-recipe .recipe-content li {
	margin-bottom: 14px;
}

.single-recipe .recipe-content ul,
.single-recipe .recipe-content ol {
	padding-left: 1.4em;
}

.single-recipe .recipe-content a {
	color: var(--color-olive-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* All separator blocks share the article centre line and width. */
.single-recipe .recipe-content hr,
.single-recipe .recipe-content .wp-block-separator,
.single-recipe .recipe-content .wp-block-separator.is-style-wide {
	width: 100% !important;
	max-width: 100% !important;
	margin: 25px auto 30px !important;
	border-left: 0;
	border-right: 0;
}

.single-recipe .recipe-content hr + h2,
.single-recipe .recipe-content .wp-block-separator + h2 {
	margin-top: 35px;
}

/* Tighten automatically generated contents sections when present. */
.single-recipe .recipe-content #contents {
	margin-bottom: 20px;
}

.single-recipe .recipe-content #contents + ul,
.single-recipe .recipe-content #contents + ol {
	margin-bottom: 35px;
}

.recipe-sidebar {
	position: sticky;
	top: 120px;
}

.recipe-sidebar__card {
	padding: 28px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-white);
}

.pagination {
	margin-top: 54px;
}

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

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-white);
}

.pagination .current {
	border-color: var(--color-olive);
	background: var(--color-olive);
	color: white;
}

.search-form {
	display: flex;
	max-width: 660px;
	gap: 12px;
	margin-top: 32px;
}

.search-field {
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-white);
	font: inherit;
}

.search-submit {
	min-height: 54px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--color-olive);
	color: white;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.not-found {
	min-height: 65vh;
	display: grid;
	place-items: center;
}

.not-found__inner {
	text-align: center;
}

.not-found__inner h1,
.not-found__inner p,
.not-found__inner .search-form,
.not-found__inner .button-row {
	margin-inline: auto;
}

.not-found__inner .button-row {
	justify-content: center;
	margin-top: 24px;
}

@media (max-width: 900px) {
	.recipe-hero__grid {
		grid-template-columns: 1fr;
	}

	.recipe-sidebar {
		position: static;
	}
}

@media (max-width: 620px) {
	.search-form {
		align-items: stretch;
		flex-direction: column;
	}

	.single-recipe .recipe-layout {
		width: min(92%, 980px);
		padding-top: 28px;
		padding-bottom: 56px;
	}

	.single-recipe .recipe-content h2 {
		font-size: 34px;
	}

	.single-recipe .recipe-content h3 {
		font-size: 26px;
	}

	.single-recipe .recipe-content p,
	.single-recipe .recipe-content li {
		font-size: 17px;
	}
}

@media print {
	.site-header,
	.site-footer,
	.recipe-actions,
	.recipe-sidebar {
		display: none !important;
	}

	body {
		background: white;
		font-size: 12pt;
	}

	.single-recipe .recipe-layout {
		display: block;
		width: 100%;
		padding: 0;
	}
}
