/* ==========================================================================
   Satisfy Recipes: design system and layout
   Tokens > base > layout > components > templates > utilities > print
   ========================================================================== */

/* Fonts (self-hosted, OFL; licences in assets/fonts) ---------------------- */
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* Tokens ------------------------------------------------------------------ */
:root {
	--sr-bg: #fffdf8;
	--sr-surface: #fff;
	--sr-ink: #292b27;
	--sr-ink-soft: #4a4c46;
	--sr-muted: #74766f;
	--sr-primary: #244b3c;
	--sr-primary-dark: #1b3a2e;
	--sr-sage: #dce6d8;
	--sr-sage-soft: #eef3ec;
	--sr-accent: #c87552;
	--sr-accent-ink: #a4553a;
	--sr-accent-soft: #f6e7dd;
	--sr-line: #e7e3d8;

	--sr-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sr-font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--sr-radius-sm: 6px;
	--sr-radius-md: 12px;
	--sr-radius-pill: 999px;

	--sr-container: 1240px;
	--sr-article: 720px;
	--sr-wide: 1080px;
	--sr-gutter: 20px;

	--sr-space-section: clamp(3rem, 2rem + 4vw, 5.5rem);
	--sr-ratio: 3 / 4; /* 9:12 portrait for all recipe imagery */
	--sr-header-h: 64px;
}

@media (min-width: 768px) {
	:root {
		--sr-gutter: 32px;
		--sr-header-h: 76px;
	}
}

/* Base -------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--sr-header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--sr-bg);
	color: var(--sr-ink);
	font: 400 1.0625rem/1.65 var(--sr-font-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

:where(h1, h2, h3, h4) {
	font-family: var(--sr-font-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.005em;
	color: var(--sr-ink);
	margin: 0 0 0.5em;
	text-wrap: balance;
}

:where(p, ul, ol, dl, figure, blockquote) {
	margin: 0 0 1.1em;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--sr-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--sr-primary-dark);
	text-decoration-color: var(--sr-accent);
}

:focus-visible {
	outline: 3px solid var(--sr-accent-ink);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: var(--sr-sage);
	color: var(--sr-ink);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 0.7rem 1.1rem;
	background: var(--sr-primary);
	color: #fff;
	border-radius: var(--sr-radius-sm);
	font-weight: 600;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

.site-main:focus {
	outline: none;
}

/* Layout ------------------------------------------------------------------ */
.container {
	width: min(100% - 2 * var(--sr-gutter), var(--sr-container));
	margin-inline: auto;
}

.container--article {
	width: min(100% - 2 * var(--sr-gutter), var(--sr-article));
}

.container--wide {
	width: min(100% - 2 * var(--sr-gutter), var(--sr-wide));
}

.section {
	padding-block: var(--sr-space-section) 0;
}

.section--tight {
	padding-block: 2rem 0;
}

.site-main {
	padding-bottom: var(--sr-space-section);
	min-height: 50vh;
}

/* Buttons, chips, links --------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0.65rem 1.35rem;
	border-radius: var(--sr-radius-pill);
	border: 1px solid transparent;
	font: 600 0.975rem/1.2 var(--sr-font-sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.btn[hidden] {
	display: none;
}

.btn--primary {
	background: var(--sr-primary);
	color: #fff;
}

.btn--primary:hover {
	background: var(--sr-primary-dark);
	color: #fff;
}

.btn--outline {
	background: transparent;
	color: var(--sr-primary);
	border-color: var(--sr-primary);
}

.btn--outline:hover {
	background: var(--sr-sage-soft);
	color: var(--sr-primary-dark);
}

.btn:active {
	transform: translateY(1px);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	color: var(--sr-primary);
	white-space: nowrap;
}

.text-link:hover {
	text-decoration: underline;
}

.text-link .icon {
	transition: transform 0.15s ease;
}

.text-link:hover .icon {
	transform: translateX(3px);
}

.link-btn {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0.35rem 0.95rem;
	border-radius: var(--sr-radius-pill);
	background: var(--sr-sage-soft);
	color: var(--sr-primary);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.15s ease;
}

.chip:hover {
	background: var(--sr-sage);
	color: var(--sr-primary-dark);
}

.chip--outline {
	background: transparent;
	border-color: var(--sr-line);
	color: var(--sr-ink);
}

.chip--outline:hover {
	border-color: var(--sr-primary);
	background: transparent;
}

.chip.is-active {
	background: var(--sr-primary);
	border-color: var(--sr-primary);
	color: #fff;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: transparent;
	color: var(--sr-ink);
	cursor: pointer;
}

.icon-btn:hover {
	background: var(--sr-sage-soft);
	color: var(--sr-primary);
}

/* Announcement bar -------------------------------------------------------- */
.announce {
	background: var(--sr-primary);
	color: #fff;
	font-size: 0.875rem;
	text-align: center;
}

.announce p,
.announce a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.55rem 0;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.announce a:hover {
	text-decoration: underline;
	color: #fff;
}

/* Header ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--sr-bg);
	border-bottom: 1px solid var(--sr-line);
}

.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 0.5rem;
	height: var(--sr-header-h);
}

.site-header__brand {
	justify-self: center;
	min-width: 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--sr-primary);
	text-decoration: none;
	white-space: nowrap;
}

.brand:hover {
	color: var(--sr-primary);
}

.brand__mark {
	flex: none;
	color: var(--sr-primary);
}

.brand__name {
	font-family: var(--sr-font-serif);
	font-size: 1.45rem;
	line-height: 1;
	letter-spacing: -0.01em;
}

.brand__first {
	font-weight: 600;
}

.brand__rest {
	font-style: italic;
	font-weight: 400;
	color: var(--sr-accent-ink);
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.nav-toggle__close {
	display: none;
}

.nav-open .nav-toggle__open {
	display: none;
}

.nav-open .nav-toggle__close {
	display: inline-flex;
}

.nav-toggle__open {
	display: inline-flex;
}

/* Mobile navigation panel */
.site-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--sr-bg);
	border-bottom: 1px solid var(--sr-line);
	padding: 0.5rem var(--sr-gutter) 1.25rem;
	display: none;
	max-height: calc(100vh - var(--sr-header-h));
	overflow-y: auto;
}

.nav-open .site-nav {
	display: block;
}

.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--sr-line);
	font-family: var(--sr-font-serif);
	font-size: 1.35rem;
	color: var(--sr-ink);
	text-decoration: none;
}

.site-nav__list li:last-child a {
	border-bottom: 0;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a {
	color: var(--sr-primary);
}

html.nav-locked {
	overflow: hidden;
}

/* No-JS: show the menu inline below the header bar */
.no-js .site-nav {
	position: static;
	display: block;
	grid-column: 1 / -1;
	border: 0;
	padding: 0 0 0.75rem;
}

.no-js .nav-toggle {
	visibility: hidden;
}

.no-js .site-header__inner {
	height: auto;
	min-height: var(--sr-header-h);
}

.no-js .site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
}

.no-js .site-nav__list a {
	border: 0;
	font-size: 1rem;
	padding: 0.25rem 0;
}

/* Search panel */
.site-search {
	display: none;
	border-top: 1px solid var(--sr-line);
	background: var(--sr-bg);
	padding: 1rem 0;
}

.site-search.is-open {
	display: block;
}

@media (min-width: 960px) {
	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 2rem;
	}

	.site-header__brand {
		justify-self: start;
		order: -1;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav,
	.no-js .site-nav {
		position: static;
		display: block;
		padding: 0;
		border: 0;
		background: transparent;
		max-height: none;
		overflow: visible;
		grid-column: auto;
		justify-self: end;
	}

	.site-nav__list,
	.no-js .site-nav__list {
		display: flex;
		align-items: center;
		gap: 0.25rem;
	}

	.site-nav__list a,
	.no-js .site-nav__list a {
		position: relative;
		padding: 0.55rem 0.8rem;
		border: 0;
		font-family: var(--sr-font-sans);
		font-size: 0.975rem;
		font-weight: 600;
		border-radius: var(--sr-radius-pill);
	}

	.site-nav__list a:hover {
		background: var(--sr-sage-soft);
	}

	.site-nav__list a[aria-current="page"]::after,
	.site-nav__list .current-menu-item > a::after {
		content: "";
		position: absolute;
		left: 0.8rem;
		right: 0.8rem;
		bottom: 0.2rem;
		height: 2px;
		background: var(--sr-accent);
		border-radius: 2px;
	}

	.brand__name {
		font-size: 1.65rem;
	}
}

/* Search form ------------------------------------------------------------- */
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 620px;
	padding: 5px;
	background: var(--sr-surface);
	border: 1px solid var(--sr-line);
	border-radius: var(--sr-radius-pill);
	transition: border-color 0.15s ease;
}

.search-form:focus-within {
	border-color: var(--sr-primary);
}

.search-form__icon {
	display: inline-flex;
	padding-left: 0.85rem;
	color: var(--sr-muted);
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 1rem;
	outline: none;
}

.search-form__input::placeholder {
	color: var(--sr-muted);
	opacity: 1;
}

.search-form__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.search-form__submit {
	min-height: 44px;
	padding-inline: 1.15rem;
}

.search-form:has(.search-form__input:focus-visible) {
	outline: 3px solid var(--sr-accent-ink);
	outline-offset: 2px;
}

/* Section headings -------------------------------------------------------- */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.75rem;
}

.section-title {
	font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
	margin: 0;
}

.section-intro {
	margin: 0.5rem 0 0;
	color: var(--sr-ink-soft);
	max-width: 56ch;
}

/* Hero -------------------------------------------------------------------- */
.hero {
	padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) 0;
}

.hero__grid {
	display: grid;
	gap: 1.75rem;
	align-items: center;
}

.hero__grid > * {
	min-width: 0;
}

@media (max-width: 359px) {
	.search-form__icon {
		display: none;
	}

	.search-form__input {
		padding-left: 0.75rem;
	}
}

.hero__title {
	font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--sr-primary);
}

.hero__title em {
	font-style: italic;
	font-weight: 400;
	color: var(--sr-accent-ink);
	padding-right: 0.04em;
}

.hero__intro {
	font-size: 1.125rem;
	color: var(--sr-ink-soft);
	max-width: 44ch;
	margin-bottom: 1.5rem;
}

.hero__popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.1rem;
}

.hero__popular-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--sr-ink-soft);
}

.hero__media {
	margin: 0;
	border-radius: var(--sr-radius-md);
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--sr-sage);
}

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

@media (min-width: 900px) {
	.hero__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 3.5rem;
	}

	.hero__media {
		aspect-ratio: 4 / 3.4;
	}
}

/* Category tiles ---------------------------------------------------------- */
.cat-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cat-tile a {
	display: block;
	text-decoration: none;
	color: var(--sr-ink);
}

.cat-tile__media {
	display: block;
	aspect-ratio: var(--sr-ratio);
	border-radius: var(--sr-radius-md);
	overflow: hidden;
	background: var(--sr-sage);
	margin-bottom: 0.65rem;
}

.cat-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cat-tile a:hover img {
	transform: scale(1.03);
}

.cat-tile__name {
	display: block;
	font-family: var(--sr-font-serif);
	font-size: 1.15rem;
	line-height: 1.2;
}

.cat-tile a:hover .cat-tile__name {
	color: var(--sr-primary);
	text-decoration: underline;
	text-decoration-color: var(--sr-accent);
	text-underline-offset: 0.18em;
}

.cat-tile__count {
	display: block;
	font-size: 0.8rem;
	color: var(--sr-muted);
}

@media (min-width: 900px) {
	.cat-tiles {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

/* Recipe cards ------------------------------------------------------------ */
.card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1rem;
}

.card-grid__full {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.25rem 1.5rem;
	}
}

@media (min-width: 1000px) {
	.card-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Horizontal scroll row on small screens */
@media (max-width: 639px) {
	.card-grid--scroll {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 62%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.75rem;
		margin-inline: calc(-1 * var(--sr-gutter));
		padding-inline: var(--sr-gutter);
		scroll-padding-inline: var(--sr-gutter);
	}

	.card-grid--scroll > * {
		scroll-snap-align: start;
	}
}

.card {
	position: relative;
	min-width: 0;
}

.card__media {
	display: block;
	aspect-ratio: var(--sr-ratio);
	border-radius: var(--sr-radius-md);
	overflow: hidden;
	background: var(--sr-sage);
	margin-bottom: 0.85rem;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card__cat {
	margin: 0 0 0.3rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--sr-accent-ink);
}

.card__cat a {
	color: inherit;
	text-decoration: none;
}

.card__cat a:hover {
	text-decoration: underline;
}

.card__title {
	font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
	line-height: 1.2;
	margin: 0 0 0.4rem;
}

.card__title a {
	color: var(--sr-ink);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--sr-primary);
	text-decoration: underline;
	text-decoration-color: var(--sr-accent);
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.5rem;
	margin: 0;
	font-size: 0.85rem;
	color: var(--sr-muted);
}

.card__meta .icon {
	color: var(--sr-primary);
}

.card__meta > svg + span {
	margin-left: -0.15rem;
}

.card__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
}

/* Compact row card */
.row-card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 1rem;
	align-items: center;
}

.row-card__media {
	display: block;
	aspect-ratio: var(--sr-ratio);
	border-radius: var(--sr-radius-md);
	overflow: hidden;
	background: var(--sr-sage);
}

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

.row-card__title {
	font-size: 1.15rem;
	line-height: 1.22;
	margin: 0 0 0.3rem;
}

.row-card__title a {
	color: var(--sr-ink);
	text-decoration: none;
}

.row-card__title a:hover {
	color: var(--sr-primary);
	text-decoration: underline;
	text-decoration-color: var(--sr-accent);
}

@media (min-width: 600px) {
	.row-card {
		grid-template-columns: 120px minmax(0, 1fr);
	}
}

/* Featured ---------------------------------------------------------------- */
.featured {
	display: grid;
	gap: 2rem;
}

.featured__media {
	display: block;
	aspect-ratio: var(--sr-ratio);
	border-radius: var(--sr-radius-md);
	overflow: hidden;
	background: var(--sr-sage);
	margin-bottom: 1.1rem;
}

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

.featured__title {
	font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem);
	line-height: 1.1;
	margin: 0 0 0.6rem;
}

.featured__title a {
	color: var(--sr-ink);
	text-decoration: none;
}

.featured__title a:hover {
	color: var(--sr-primary);
	text-decoration: underline;
	text-decoration-color: var(--sr-accent);
}

.featured__excerpt {
	color: var(--sr-ink-soft);
	max-width: 60ch;
	margin-bottom: 0.75rem;
}

.featured__side {
	display: grid;
	gap: 1.5rem;
	align-content: start;
}

.featured__side .row-card + .row-card {
	padding-top: 1.5rem;
	border-top: 1px solid var(--sr-line);
}

/* Lead feature: portrait photo beside its text. */
@media (min-width: 700px) {
	.featured__lead {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 1.75rem;
		align-items: center;
	}

	.featured__media {
		margin-bottom: 0;
	}
}

@media (min-width: 900px) {
	.featured {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 3rem;
		align-items: start;
	}

	.featured__side {
		padding-top: 0.25rem;
	}

	.featured__side .row-card {
		grid-template-columns: 140px minmax(0, 1fr);
	}
}

/* Seasonal band ----------------------------------------------------------- */
.section--band {
	margin-top: var(--sr-space-section);
	padding-block: var(--sr-space-section);
	background: var(--sr-sage-soft);
}

.section--band + .section {
	padding-top: var(--sr-space-section);
}

/* Curated ----------------------------------------------------------------- */
.curated {
	display: grid;
	gap: 2rem;
	padding-top: var(--sr-space-section);
	border-top: 1px solid var(--sr-line);
}

.section--curated {
	padding-top: var(--sr-space-section);
}

.curated__intro .btn {
	margin-top: 1.25rem;
}

.curated__list {
	display: grid;
	gap: 1.25rem 2rem;
}

@media (min-width: 700px) {
	.curated__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.curated {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 3.5rem;
	}
}

/* About ------------------------------------------------------------------- */
.about {
	display: grid;
	gap: 2rem;
	align-items: center;
	background: var(--sr-accent-soft);
	border-radius: var(--sr-radius-md);
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
}

.about__media {
	margin: 0;
	aspect-ratio: var(--sr-ratio);
	max-width: 380px;
	width: 100%;
	border-radius: var(--sr-radius-md);
	overflow: hidden;
	background: var(--sr-sage);
}

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

.about__text p {
	max-width: 58ch;
	color: var(--sr-ink-soft);
	font-size: 1.075rem;
}

.about__text .btn {
	margin-top: 0.5rem;
}

@media (min-width: 900px) {
	.about {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		gap: 4rem;
	}
}

/* Newsletter -------------------------------------------------------------- */
.news {
	display: grid;
	gap: 1.5rem;
	padding: clamp(1.5rem, 1rem + 3vw, 3rem);
	border-radius: var(--sr-radius-md);
	background: var(--sr-primary);
	color: #fff;
}

.news .section-title {
	color: #fff;
}

.news .section-intro {
	color: rgba(255, 255, 255, 0.85);
}

.news__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.news__row input {
	flex: 1 1 220px;
	min-height: 48px;
	padding: 0 1.1rem;
	border-radius: var(--sr-radius-pill);
	border: 1px solid transparent;
	background: #fff;
	color: var(--sr-ink);
}

.news .btn--primary {
	background: var(--sr-accent-soft);
	color: var(--sr-primary-dark);
}

.news .btn--primary:hover {
	background: #fff;
}

.news__note {
	margin: 0.75rem 0 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.85);
}

.news__note a {
	color: #fff;
}

@media (min-width: 900px) {
	.news {
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}
}

/* Page and archive headers ------------------------------------------------ */
.page-head {
	padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem) 0;
}

.page-head__title {
	font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: var(--sr-primary);
	margin: 0 0 0.75rem;
}

.page-head__page {
	font-size: 0.45em;
	font-family: var(--sr-font-sans);
	font-weight: 600;
	color: var(--sr-muted);
	vertical-align: middle;
	margin-left: 0.4rem;
	letter-spacing: 0;
}

.page-head__intro {
	font-size: 1.1rem;
	color: var(--sr-ink-soft);
	max-width: 62ch;
}

.page-head__intro p:last-child {
	margin-bottom: 0;
}

.page-head__count {
	font-size: 0.9rem;
	color: var(--sr-muted);
	margin: 0.5rem 0 1.25rem;
}

.page-head__search {
	margin: 1.25rem 0;
}

.cat-nav,
.filters {
	margin-top: 1rem;
}

.filters .chip {
	font-size: 0.85rem;
	min-height: 36px;
}

/* Breadcrumbs */
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	font-size: 0.85rem;
	color: var(--sr-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin: 0 0.5rem;
	color: var(--sr-line);
	color: #c6c2b6;
}

.breadcrumbs a {
	color: var(--sr-ink-soft);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--sr-primary);
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	color: var(--sr-muted);
}

/* Pagination */
.pagination {
	margin-top: 3rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.85rem;
	border-radius: var(--sr-radius-pill);
	border: 1px solid var(--sr-line);
	color: var(--sr-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.pagination a.page-numbers:hover {
	border-color: var(--sr-primary);
	color: var(--sr-primary);
}

.pagination .page-numbers.current {
	background: var(--sr-primary);
	border-color: var(--sr-primary);
	color: #fff;
}

.pagination .dots {
	border: 0;
}

/* Empty state */
.empty-state {
	max-width: 640px;
	padding: 2.5rem 0;
}

.empty-state__title {
	font-size: 1.75rem;
}

.empty-state .search-form {
	margin: 1.25rem 0;
}

/* Single post ------------------------------------------------------------- */
.entry-header {
	padding-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}

.entry-header__cat {
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.entry-header__cat a {
	color: var(--sr-accent-ink);
	text-decoration: none;
}

.entry-title {
	font-size: clamp(2.2rem, 1.55rem + 2.8vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	color: var(--sr-ink);
	margin: 0 0 0.85rem;
}

.entry-dek {
	font-size: 1.15rem;
	color: var(--sr-ink-soft);
	margin-bottom: 1rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	font-size: 0.875rem;
	color: var(--sr-muted);
	margin-bottom: 1.25rem;
}

.entry-meta a {
	color: var(--sr-ink);
	font-weight: 600;
}

.recipe-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1rem 0;
	border-top: 1px solid var(--sr-line);
	border-bottom: 1px solid var(--sr-line);
	margin-bottom: 1.75rem;
}

.recipe-bar__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
}

.recipe-bar__facts dt {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sr-muted);
}

.recipe-bar__facts dd {
	margin: 0;
	font-weight: 600;
}

.recipe-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.entry-hero {
	margin-top: 0;
	margin-bottom: 2.25rem;
}

/* Portrait recipe photo: kept to a readable width so it does not push the recipe too far down. */
.entry-hero.container--wide {
	width: min(100% - 2 * var(--sr-gutter), 640px);
}

.entry-hero img {
	width: 100%;
	aspect-ratio: var(--sr-ratio);
	object-fit: cover;
	border-radius: var(--sr-radius-md);
	background: var(--sr-sage);
}

.entry-hero figcaption {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--sr-muted);
}

/* Article typography */
.entry-content {
	font-size: 1.0625rem;
}

.entry-content > :not(.sr-card):not(.alignwide):not(.alignfull) {
	max-width: 100%;
}

.entry-content :where(h2) {
	font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem);
	margin: 2.25rem 0 0.75rem;
}

.entry-content :where(h3) {
	font-size: 1.35rem;
	margin: 1.75rem 0 0.5rem;
}

.entry-content :where(ul, ol):not(.sr-ingredients):not(.sr-steps):not(.chips) {
	padding-left: 1.25rem;
}

.entry-content :where(li) {
	margin-bottom: 0.4rem;
}

.entry-content li::marker {
	color: var(--sr-accent);
}

.entry-content img {
	border-radius: var(--sr-radius-md);
}

.entry-content figure {
	margin: 2rem 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	font-size: 0.85rem;
	color: var(--sr-muted);
	margin-top: 0.5rem;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 3px solid var(--sr-accent);
	font-family: var(--sr-font-serif);
	font-size: 1.3rem;
	line-height: 1.4;
}

.entry-content .alignwide {
	width: min(100vw - 2 * var(--sr-gutter), var(--sr-wide));
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull img,
.entry-content .alignwide img {
	width: 100%;
}

/* The recipe card breaks out of the reading column so ingredients and method sit side by side. */
@media (min-width: 900px) {
	.entry-content .sr-card {
		--sr-card-w: min(100vw - 2 * var(--sr-gutter), 980px);
		width: var(--sr-card-w);
		margin-left: calc((100% - var(--sr-card-w)) / 2);
		margin-right: 0;
	}
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 0.6rem;
	border-bottom: 1px solid var(--sr-line);
	text-align: left;
}

.entry-footer {
	margin-top: 2.5rem;
}

.entry-tags {
	padding-top: 1.75rem;
	border-top: 1px solid var(--sr-line);
}

.entry-tags__title,
.author-box__title {
	font-family: var(--sr-font-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--sr-muted);
	margin-bottom: 0.85rem;
}

.author-box {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--sr-line);
	border-radius: var(--sr-radius-md);
	background: var(--sr-surface);
}

.author-box p {
	color: var(--sr-ink-soft);
}

.section--related {
	margin-top: var(--sr-space-section);
	padding-block: var(--sr-space-section);
	background: var(--sr-sage-soft);
}

.page-links {
	margin: 2rem 0;
	font-weight: 600;
}

/* Pages */
.page-head--page {
	padding-bottom: 1.5rem;
}

.entry--page .entry-content {
	padding-bottom: 1rem;
}

/* Comments ---------------------------------------------------------------- */
.comments {
	margin-top: var(--sr-space-section);
	padding-top: 2rem;
	border-top: 1px solid var(--sr-line);
}

.comments__title {
	font-size: 1.75rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 1.25rem;
	border-left: 2px solid var(--sr-sage);
}

.comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--sr-line);
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

.comment-metadata a {
	color: var(--sr-muted);
	text-decoration: none;
}

.comment-content p {
	margin-bottom: 0.6rem;
}

.reply a {
	font-size: 0.875rem;
	font-weight: 600;
}

.comment-awaiting-moderation {
	font-size: 0.85rem;
	color: var(--sr-accent-ink);
}

.comment-reply-title {
	font-size: 1.4rem;
}

.comment-notes,
.logged-in-as {
	font-size: 0.9rem;
	color: var(--sr-muted);
}

/* Forms ------------------------------------------------------------------- */
.comment-form label,
.sr-form label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.sr-form input[type="text"],
.sr-form input[type="email"],
.sr-form select,
.sr-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.9rem;
	border: 1px solid #cfcabd;
	border-radius: 8px;
	background: var(--sr-surface);
	font-size: 1rem;
}

.comment-form textarea,
.sr-form textarea {
	min-height: 150px;
	resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.sr-form input:focus,
.sr-form select:focus,
.sr-form textarea:focus {
	border-color: var(--sr-primary);
	outline: 3px solid rgba(36, 75, 60, 0.18);
	outline-offset: 0;
}

.comment-form-cookies-consent,
.sr-form__check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.comment-form-cookies-consent label,
.sr-form__check label {
	font-weight: 400;
	font-size: 0.9rem;
}

.comment-form-cookies-consent input,
.sr-form__check input {
	width: 20px;
	height: 20px;
	margin-top: 0.15rem;
	flex: none;
	accent-color: var(--sr-primary);
}

.sr-form__check {
	flex-wrap: wrap;
}

.sr-form__check .sr-field-error {
	flex-basis: 100%;
}

.sr-form {
	margin: 1.5rem 0 2.5rem;
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	border: 1px solid var(--sr-line);
	border-radius: var(--sr-radius-md);
	background: var(--sr-surface);
}

.sr-form__row {
	display: grid;
	gap: 0 1rem;
}

@media (min-width: 640px) {
	.sr-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.sr-form__field {
	margin-bottom: 1.1rem;
}

.sr-form [aria-invalid="true"] {
	border-color: #b3261e;
}

.sr-field-error {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: #b3261e;
	font-weight: 600;
}

.sr-form-status {
	padding: 0.9rem 1.1rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.sr-form-status--error {
	background: #fdecea;
	color: #8c1d18;
	border: 1px solid #f3c1bc;
}

.sr-form-status--ok {
	background: var(--sr-sage-soft);
	color: var(--sr-primary-dark);
	border: 1px solid var(--sr-sage);
	margin: 1.5rem 0 2.5rem;
}

.sr-form .button,
.sr-button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.65rem 1.5rem;
	border-radius: var(--sr-radius-pill);
	border: 0;
	background: var(--sr-primary);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.sr-form .button:hover {
	background: var(--sr-primary-dark);
}

.sr-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sr-services {
	padding-left: 1.25rem;
}

/* Ad placements ----------------------------------------------------------- */
.sr-ad {
	display: block;
	clear: both;
	min-height: var(--sr-ad-min-m, 280px);
	margin: 2rem auto;
	max-width: var(--sr-wide);
	text-align: center;
}

.sr-ad--after_header,
.sr-ad--before_footer {
	width: min(100% - 2 * var(--sr-gutter), var(--sr-container));
}

.sr-ad__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sr-muted);
}

.sr-ad:has(ins[data-ad-status="unfilled"]) {
	display: none;
}

.sr-ad--preview {
	display: grid;
	place-items: center;
	padding: 1rem;
	border: 2px dashed var(--sr-accent);
	border-radius: var(--sr-radius-md);
	color: var(--sr-accent-ink);
	font-size: 0.85rem;
	background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(200, 117, 82, 0.06) 10px, rgba(200, 117, 82, 0.06) 20px);
}

@media (max-width: 767px) {
	.sr-ad--desktop-only {
		display: none;
	}
}

@media (min-width: 768px) {
	.sr-ad {
		min-height: var(--sr-ad-min-d, 250px);
	}
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
	background: var(--sr-primary);
	color: rgba(255, 255, 255, 0.86);
	padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
	font-size: 0.95rem;
	--brand-vein: var(--sr-primary);
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
	text-decoration-color: var(--sr-accent);
	color: #fff;
}

.site-footer :focus-visible {
	outline-color: #f0c9b5;
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__brand {
	grid-column: 1 / -1;
	max-width: 36ch;
}

.site-footer .brand,
.site-footer .brand__mark {
	color: #fff;
}

.site-footer .brand__rest {
	color: #f0c9b5;
}

.site-footer__brand p {
	margin: 1rem 0 1.25rem;
	line-height: 1.6;
}

.site-footer__title {
	font-family: var(--sr-font-sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c9d8cf;
	margin-bottom: 1rem;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__list li {
	margin-bottom: 0.15rem;
}

.site-footer__list a {
	display: inline-block;
	padding: 0.3rem 0;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.social-links a:hover {
	border-color: #fff;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: 3rem;
	padding: 1.5rem 0 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer .link-btn {
	color: #fff;
	font-size: 0.85rem;
	min-height: 24px;
}

@media (min-width: 800px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
		gap: 3rem;
	}

	.site-footer__brand {
		grid-column: auto;
	}
}

/* Placeholders ------------------------------------------------------------ */
img.is-placeholder {
	object-fit: cover;
	background: var(--sr-sage);
}

/* Block editor content compatibility -------------------------------------- */
.wp-block-image img {
	height: auto;
}

.wp-block-button__link {
	border-radius: var(--sr-radius-pill);
	background: var(--sr-primary);
	color: #fff;
	padding: 0.7rem 1.4rem;
	text-decoration: none;
	font-weight: 600;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--sr-line);
	margin: 2.5rem 0;
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.card:hover .card__media img,
	.cat-tile a:hover img {
		transform: none;
	}
}

/* Print ------------------------------------------------------------------- */
@media print {
	@page {
		margin: 16mm 14mm;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.site-header,
	.announce,
	.site-footer,
	.skip-link,
	.breadcrumbs,
	.recipe-bar__actions,
	.section--related,
	.comments,
	.sr-ad,
	.entry-tags,
	.author-box,
	.sr-demo-notice,
	.search-form {
		display: none !important;
	}

	.container,
	.container--article,
	.container--wide {
		width: 100%;
		max-width: none;
	}

	.entry-hero img {
		max-height: 70mm;
		width: auto;
	}

	a {
		color: #000;
		text-decoration: none;
	}

	.entry-title {
		font-size: 22pt;
	}

	.sr-card,
	.entry-content .sr-card {
		break-before: auto;
		width: auto;
		margin: 0;
	}
}
