:root {
	color-scheme: light;
	--ink: #292d28;
	--muted: #73786f;
	--paper: #f7f5ef;
	--surface: #fff;
	--line: #e9e5da;
	--green: #2f6549;
	--green-dark: #204a34;
	--orange: #e58a4d;
	--shadow: 0 12px 32px rgba(44, 48, 37, .08);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	padding-bottom: 6.75rem;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1180px;
	margin: auto;
	padding: .8rem 1.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
	width: 2.65rem;
	height: 2.65rem;
	display: block;
	flex: 0 0 auto;
}
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-family: Georgia, serif; font-size: 1.1rem; }
.brand small { margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.desktop-link { color: var(--muted); font-size: .84rem; }

.page-shell { width: min(100% - 2rem, 1180px); margin: 0 auto; }
.hero {
	position: relative;
	overflow: hidden;
	margin: .6rem 0 2.2rem;
	padding: clamp(1.8rem, 5vw, 3.6rem);
	border-radius: 1.8rem;
	background: radial-gradient(ellipse at 90% 10%, rgba(255, 255, 255, .55), transparent 36%), linear-gradient(125deg, #e6eddb, #f3e4d2);
}
.hero::after {
	position: absolute;
	right: -2rem;
	bottom: -5rem;
	width: 16rem;
	height: 16rem;
	border: 1px solid rgba(47, 101, 73, .14);
	border-radius: 50%;
	box-shadow: 0 0 0 2rem rgba(47, 101, 73, .035), 0 0 0 4rem rgba(47, 101, 73, .025);
	content: "";
	pointer-events: none;
}
.eyebrow {
	margin: 0 0 .35rem;
	color: var(--green);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.hero h1, .page-intro h1 {
	max-width: 700px;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.1rem, 7vw, 4.25rem);
	font-weight: 500;
	letter-spacing: -.045em;
	line-height: 1.03;
}
.hero > p:not(.eyebrow) { max-width: 34rem; margin: 1rem 0 1.5rem; color: #555b50; }
.hero-search, .search-form {
	position: relative;
	z-index: 1;
	display: flex;
	max-width: 34rem;
	gap: .5rem;
	padding: .4rem;
	border: 1px solid rgba(41, 45, 40, .08);
	border-radius: .9rem;
	background: #fff;
	box-shadow: 0 8px 24px rgba(44, 48, 37, .08);
}
.hero-search input, .search-form input { flex: 1; min-width: 0; padding: .65rem .8rem; border: 0; outline: 0; background: transparent; }
.hero-search button, .search-form button, .filter-panel button, .button-primary {
	padding: .7rem 1rem;
	border: 0;
	border-radius: .65rem;
	background: var(--green);
	color: #fff;
	font-weight: 700;
}
.hero-search button:hover, .search-form button:hover, .filter-panel button:hover, .button-primary:hover { background: var(--green-dark); }

.content-section, .featured-section { margin: 2.6rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2, .ingredient-panel h2, .steps-panel h2, .search-suggestions h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.45rem, 4vw, 2rem);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.2;
}
.text-link { color: var(--green); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--green-dark); }

.featured-card {
	position: relative;
	display: block;
	overflow: hidden;
	height: clamp(18rem, 38vw, 27rem);
	border-radius: 1.25rem;
	background: #d7d4c9;
	box-shadow: var(--shadow);
}
.featured-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 28, 21, .78), rgba(17, 28, 21, .04)); }
.featured-copy { position: absolute; left: clamp(1.2rem, 5vw, 2.5rem); bottom: clamp(1.2rem, 5vw, 2.5rem); display: grid; max-width: 32rem; gap: .4rem; color: white; }
.featured-copy strong { font: 500 clamp(1.8rem, 5vw, 3rem)/1.08 Georgia, serif; }
.featured-label { color: #f5d1ac; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.featured-copy > span:last-child { margin-top: .5rem; font-weight: 700; }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.category-group {
	min-width: 0;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--surface);
}
.category-group h3 { margin: 0 0 .65rem; color: var(--green-dark); font: 600 1.12rem/1.3 Georgia, serif; }
.category-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .85rem; margin: 0; padding: 0; list-style: none; }
.category-group li a { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .42rem 0; border-top: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.category-group li a:hover { color: var(--green); }
.category-group li a span { flex: 0 0 auto; color: var(--orange); }

.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: 0 5px 18px rgba(44, 48, 37, .035); }
.recipe-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #ebe8df; }
.recipe-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.recipe-card:hover .recipe-card-image img { transform: scale(1.035); }
.recipe-card-content { padding: 1rem; }
.recipe-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.22; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: .35rem .7rem; margin: .55rem 0; color: var(--muted); font-size: .78rem; }
.recipe-card .text-link { display: inline-block; margin-top: .15rem; font-size: .82rem; }
.empty-state { padding: 1rem; border-radius: .8rem; background: #fff; color: var(--muted); }
.community-section { margin: 2.6rem 0; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.community-card { min-width: 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.community-quote { margin: 0; color: #50564d; white-space: pre-line; }
.community-byline { margin: .85rem 0 0; color: var(--muted); font-size: .82rem; }
.community-byline a { color: var(--green); font-weight: 700; }
.guestbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guestbook-add { display: inline-block; margin-top: 1rem; }
.review-list { display: grid; gap: .8rem; }
.recipe-reviews { margin-top: 2rem; }
.form-panel { display: grid; gap: 1rem; max-width: 48rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.form-field { display: grid; gap: .35rem; color: var(--ink); font-size: .88rem; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.form-field textarea { min-height: 10rem; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.form-actions .button-primary, .form-actions .button-secondary { display: inline-block; min-height: 2.8rem; padding: .65rem 1rem; border-radius: .7rem; font: inherit; font-weight: 700; text-align: center; }
.form-actions .button-primary { border: 0; }
.form-actions .button-secondary { flex: 0 0 auto; }
.success-message, .error-message { padding: .9rem 1rem; border-radius: .7rem; }
.success-message { background: #e7eee5; color: var(--green-dark); }
.error-message { background: #fff0ec; color: #8c3020; }
.error-message ul { margin: 0; padding-left: 1.2rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--green); font-weight: 700; }
.page-intro { margin: 2.2rem 0 1.4rem; }
.page-intro h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page-intro > p:last-child { margin: .65rem 0 0; color: var(--muted); }
.filter-panel {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: .65rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: #fff;
}
.filter-panel label { display: grid; gap: .25rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.filter-panel select { min-width: 7rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .55rem; background: #fff; color: var(--ink); }
.filter-panel button { padding: .55rem .85rem; }
.filter-reset { padding: .55rem .4rem; color: var(--muted); font-size: .85rem; }
.result-count { color: var(--muted); font-size: .85rem; }
.search-form { max-width: none; margin: 1.25rem 0 1.75rem; }
.search-suggestions { margin-top: 2.4rem; }
.search-suggestions h2 { font-size: 1.4rem; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.suggestion-chips a { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 2rem; background: #fff; color: var(--green); font-size: .88rem; font-weight: 700; }
.search-results-heading { margin-top: 2rem; }
.search-results-heading h2 { font-size: 1.25rem; }

.recipe-detail { margin-bottom: 2rem; }
.recipe-hero { position: relative; overflow: hidden; height: clamp(22rem, 40vw, 30rem); border-radius: 1.3rem; background: #ddd9cd; }
.recipe-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-hero::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 30, 23, .78), rgba(20, 30, 23, 0) 78%); content: ""; }
.recipe-hero-copy { position: absolute; z-index: 1; right: 1.4rem; bottom: 1.4rem; left: 1.4rem; color: #fff; }
.recipe-hero-copy .eyebrow { color: #ffcf9b; }
.recipe-hero-copy h1 { max-width: 48rem; margin: 0; font: 500 clamp(2rem, 7vw, 3.6rem)/1.04 Georgia, serif; letter-spacing: -.04em; }
.recipe-hero-copy > p:last-child { margin: .5rem 0 0; color: rgba(255, 255, 255, .85); }
.recipe-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1rem 0; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.recipe-facts > div { display: grid; gap: .1rem; padding: .9rem 1rem; }
.recipe-facts > div + div { border-left: 1px solid var(--line); }
.recipe-facts span { color: var(--muted); font-size: .75rem; }
.recipe-facts strong { font-size: .95rem; }
.recipe-badges { display: flex; flex-wrap: wrap; gap: .45rem; }
.recipe-badges span { padding: .35rem .65rem; border-radius: 2rem; background: #e7eee5; color: var(--green-dark); font-size: .78rem; font-weight: 700; }
.recipe-actions { display: flex; gap: .6rem; margin: 1rem 0 1.6rem; }
.recipe-actions button { min-height: 2.8rem; padding: .65rem 1rem; border-radius: .7rem; font-weight: 700; }
.button-primary { flex: 1; }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.recipe-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); align-items: start; gap: 1.2rem; }
.ingredient-panel, .steps-panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.servings-note { margin: .35rem 0; color: var(--muted); font-size: .85rem; }
.ingredient-list, .step-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.ingredient-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ingredient-list li span { color: var(--muted); }
.ingredient-list li strong { text-align: right; font-weight: 650; }
.step-list { display: grid; gap: 1rem; counter-reset: steps; }
.step-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .7rem; }
.step-list li > div { min-width: 0; }
.step-number { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #e7eee5; color: var(--green-dark); font-weight: 800; }
.step-list p { margin: .15rem 0 .6rem; white-space: normal; }
.step-text.has-bold { font-weight: 700; }
.step-text.has-italic { font-style: italic; }
.step-text.has-underline { text-decoration: underline; }
.step-text .recipe-reference { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .16em; }
.step-text .recipe-reference:hover { color: var(--green); text-decoration-color: var(--green); }
.step-text .recipe-reference:focus-visible { border-radius: .15rem; outline: 2px solid var(--orange); outline-offset: 2px; }
.step-image { display: block; width: min(100%, 28rem); max-height: 22rem; border-radius: .75rem; object-fit: cover; }
.recipe-credit { margin: 1.3rem 0 0; color: var(--muted); font-size: .8rem; text-align: right; }
.site-footer { display: flex; justify-content: center; gap: 1.25rem; max-width: 1180px; margin: 0 auto; padding: 1rem 1rem 2rem; color: var(--muted); font-size: .82rem; }

.bottom-nav {
	position: fixed;
	z-index: 5;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: .45rem max(1rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	border-top: 1px solid rgba(41, 45, 40, .1);
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(14px);
}
.bottom-nav a { display: grid; justify-items: center; gap: .05rem; color: var(--muted); font-size: .68rem; font-weight: 650; }
.bottom-nav a span { font-size: 1.35rem; line-height: 1.2; }
.bottom-nav a.is-active { color: var(--green); }
.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.bottom-nav { position: static; max-width: 1180px; margin: 1rem auto 0; padding: .8rem; border: 1px solid var(--line); border-radius: 1rem; }
	.bottom-nav a { display: flex; justify-content: center; align-items: center; gap: .4rem; font-size: .85rem; }
	.bottom-nav a span { font-size: 1.2rem; }
}

@media (min-width: 900px) {
	.recipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.category-grid, .category-group ul { grid-template-columns: 1fr; }
	.community-grid, .guestbook-grid { grid-template-columns: 1fr; }
	.recipe-grid { grid-template-columns: 1fr; gap: .75rem; }
	.recipe-card { display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr); min-height: 8.2rem; }
	.recipe-card-image { height: 100%; min-height: 8.2rem; aspect-ratio: auto; }
	.recipe-card-content { display: flex; flex-direction: column; justify-content: center; padding: .8rem; }
	.recipe-card h3 { font-size: 1rem; }
	.recipe-card .text-link { margin-top: auto; padding-top: .2rem; }
	.recipe-meta { margin: .3rem 0; font-size: .7rem; }
	.recipe-columns { grid-template-columns: 1fr; }
	.ingredient-panel, .steps-panel { padding: 1rem; }
	.recipe-hero { height: 20rem; }
}

@media (max-width: 420px) {
	.page-shell { width: min(100% - 1.25rem, 1060px); }
	.site-header { padding-right: .7rem; padding-left: .7rem; }
	.desktop-link { font-size: .75rem; }
	.hero { padding: 1.4rem 1.1rem; border-radius: 1.2rem; }
	.hero-search { flex-direction: column; }
	.hero-search button { width: 100%; }
	.featured-card { height: 16rem; }
	.recipe-facts > div { padding: .75rem .55rem; }
	.recipe-facts span { font-size: .68rem; }
	.recipe-facts strong { font-size: .84rem; }
	.filter-panel { align-items: stretch; }
	.filter-panel label { flex: 1; }
	.filter-panel select { width: 100%; min-width: 0; }
	.site-footer { gap: .85rem; font-size: .75rem; }
}

@media print {
	@page { margin: 1.25cm; }
	.site-header, .bottom-nav, .site-footer, .breadcrumbs, .recipe-actions { display: none; }
	body { padding: 0; background: #fff; }
	.page-shell { width: 100%; }
	.recipe-hero { height: auto; min-height: 0; padding: 0; border-radius: 0; background: #fff; box-shadow: none; }
	.recipe-hero > img, .recipe-hero::after { display: none; }
	.recipe-hero-copy { position: static; color: #000; }
	.recipe-hero-copy .eyebrow { color: #000; }
	.recipe-columns { display: block; }
	.ingredient-panel, .steps-panel { width: 100%; margin: 0 0 1rem; padding: .5rem 0; border: 0; background: #fff; }
	.ingredient-list { columns: 2; column-gap: 2rem; }
	.ingredient-list li { break-inside: avoid; padding: .3rem 0; }
	.step-list { display: block; }
	.step-list li { grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; margin: 0 0 .8rem; break-inside: avoid; }
	.step-list li > div { width: 100%; }
	.step-text .recipe-reference { color: #000; text-decoration-color: #000; }
	.step-image { width: auto; max-width: 100%; max-height: 12rem; object-fit: contain; }
	.community-section { display: none; }
	a { color: inherit; text-decoration: none; }
}
