/*
Theme Name: Foleem Larder
Theme URI: https://foleem.com/
Author: Foleem
Description: A warm, kitchen-notebook theme made for Foleem's fuss-free comfort food recipes. Arched hero, recipe-card feed, plate-style Popular Topics, a raw "Header" widget area printed right after the header for Analytics/AdSense, and self-hosted fonts.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foleem
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, wide-blocks
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Karla";
	src: url("assets/fonts/karla-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "DM Mono";
	src: url("assets/fonts/dm-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	/* primitives */
	--c-paper: #f7f0e3;
	--c-paper-2: #efe3cc;
	--c-cream: #fffbf3;
	--c-ink: #221b16;
	--c-ink-soft: #4a3f35;
	--c-stone: #6e5f51;
	--c-terra: #b8461f;
	--c-terra-deep: #923514;
	--c-basil: #2f5d34;
	--c-basil-deep: #24482a;
	--c-butter: #f2c14e;

	/* semantic */
	--base-100: var(--c-paper);
	--base-200: var(--c-paper-2);
	--base-card: var(--c-cream);
	--base-content: var(--c-ink);
	--muted: var(--c-stone);
	--primary: var(--c-terra);
	--primary-strong: var(--c-terra-deep);
	--secondary: var(--c-basil);
	--accent: var(--c-butter);
	--line: var(--c-ink);

	--f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--f-body: "Karla", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 28px;
	--r-pill: 999px;
	--bw: 2px;
	--shadow-hard: 6px 6px 0 var(--line);

	--wrap: 1180px;
	--wrap-narrow: 740px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--base-100);
	color: var(--base-content);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-weight: 640;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--c-ink); border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--c-ink); color: var(--c-paper); border-radius: var(--r-pill); text-decoration: none;
}

.kicker {
	font-family: var(--f-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--primary-strong);
	margin: 0 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.kicker--light { color: var(--accent); }

.chip, .tag {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 3px 11px;
	font-family: var(--f-mono);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-ink);
	background: var(--base-200);
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
	transition: background-color .18s var(--ease);
}
.chip:hover, .tag:hover { background: var(--accent); }
.tag { text-transform: none; letter-spacing: 0; font-size: .8rem; }

.btn, .comments .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	font-family: var(--f-body);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	color: var(--c-cream);
	background: var(--primary);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-pill);
	box-shadow: 4px 4px 0 var(--line);
	cursor: pointer;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover, .comments .submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active, .comments .submit:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }

.meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--f-mono);
	font-size: .72rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}
.meta__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* Search pill */
.search {
	display: flex;
	align-items: center;
	width: 100%;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-pill);
	padding: 4px 4px 4px 18px;
	transition: box-shadow .18s var(--ease);
}
.search:focus-within { box-shadow: 4px 4px 0 var(--line); }
.search__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 8px 0;
	font-size: 1rem;
	outline: none;
}
.search__input::placeholder { color: var(--muted); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border: 0;
	border-radius: 50%;
	background: var(--primary);
	color: var(--c-cream);
	cursor: pointer;
	transition: background-color .18s var(--ease);
}
.search__btn:hover { background: var(--primary-strong); }

/* Placeholder art when a post has no image: gingham cloth + initial */
.ph {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	aspect-ratio: inherit;
	--g: var(--primary);
	background-color: var(--c-cream);
	background-image:
		linear-gradient(90deg, color-mix(in srgb, var(--g) 32%, transparent) 50%, transparent 50%),
		linear-gradient(color-mix(in srgb, var(--g) 32%, transparent) 50%, transparent 50%);
	background-size: 28px 28px;
}
.ph--2 { --g: var(--secondary); }
.ph--3 { --g: #c99a1a; }
.ph--4 { --g: var(--primary-strong); }
.ph, .ph span { text-decoration: none; }
.ph span {
	display: grid;
	place-items: center;
	width: 42%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--c-cream);
	border: var(--bw) solid var(--line);
	font-family: var(--f-display);
	font-variation-settings: "SOFT" 100, "WONK" 1;
	font-weight: 700;
	font-size: clamp(1.6rem, 4vw, 3rem);
	color: var(--c-ink);
}

/* ---------- Header ---------- */
.site-header {
	position: relative;
	background: var(--base-100);
	border-bottom: 6px solid var(--primary);
	z-index: 20;
}
.site-header::after {
	/* awning scallops */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -18px;
	height: 12px;
	background: radial-gradient(circle at 12px 0, var(--primary) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
	pointer-events: none;
}
.site-header__in {
	display: flex;
	align-items: center;
	gap: 18px 28px;
	padding-block: 18px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-ink); }
.brand svg, .brand__img { height: 46px; width: auto; }
.site-header__tag {
	margin: 0;
	padding-left: 22px;
	border-left: 2px dashed color-mix(in srgb, var(--c-ink) 35%, transparent);
	font-family: var(--f-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	max-width: 260px;
	line-height: 1.5;
}
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__link, .nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: var(--r-pill);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s var(--ease);
}
.nav__link:hover, .nav__list a:hover, .nav__list .current-menu-item > a { background: var(--base-200); }
.site-header__search { margin-left: auto; width: min(340px, 100%); }
.nav + .site-header__search { margin-left: 0; }

.site-main { padding-top: 18px; }

/* ---------- Section title ---------- */
.section-title {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0 0 28px;
}
.section-title::after {
	content: "";
	flex: 1;
	height: 0;
	border-top: 2px dashed color-mix(in srgb, var(--c-ink) 40%, transparent);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}
.hero__title {
	font-size: clamp(2.6rem, 6.2vw, 5rem);
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
	font-weight: 660;
	line-height: 1;
	letter-spacing: -0.03em;
	margin-bottom: 22px;
}
.hero__title em {
	font-style: italic;
	font-weight: 500;
	color: var(--primary);
}
.hero__lede { font-size: 1.2rem; color: var(--c-ink-soft); max-width: 34ch; margin-bottom: 28px; }
.hero__search { max-width: 440px; }

.feature { position: relative; padding-right: 14px; }
.feature::before {
	/* butter sun behind the arch */
	content: "";
	position: absolute;
	top: -26px;
	right: -6px;
	width: 34%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--accent);
	border: var(--bw) solid var(--line);
}
.feature__arch {
	position: relative;
	aspect-ratio: 5 / 5.2;
	border-radius: 999px 999px var(--r-lg) var(--r-lg);
	overflow: hidden;
	border: var(--bw) solid var(--line);
	background: var(--base-200);
	box-shadow: 12px 12px 0 var(--secondary);
}
.feature__arch a, .feature__arch img, .feature__arch .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature__arch img { transition: transform .6s var(--ease); }
.feature:hover .feature__arch img { transform: scale(1.04); }
.feature__card {
	position: relative;
	margin: -96px 0 0 -14px;
	width: min(88%, 460px);
	padding: 20px 22px 18px;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-hard);
}
.feature__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.feature__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.feature__title a { text-decoration: none; }
.feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.stamp {
	display: inline-block;
	padding: 4px 10px;
	transform: rotate(-4deg);
	background: var(--accent);
	border: 1.5px solid var(--line);
	border-radius: 6px;
	font-family: var(--f-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ---------- Just out of the oven ---------- */
.oven { padding-bottom: clamp(36px, 5vw, 56px); }
.oven__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--bw) solid var(--line);
	border-bottom: var(--bw) solid var(--line);
}
.oven__item {
	position: relative;
	display: grid;
	grid-template-columns: auto 84px 1fr;
	align-items: center;
	gap: 16px;
	padding: 20px 4px;
}
.oven__item + .oven__item { border-top: 2px dashed color-mix(in srgb, var(--c-ink) 30%, transparent); }
.oven__no {
	font-family: var(--f-display);
	font-style: italic;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--primary);
	min-width: 1.6em;
}
.oven__img {
	width: 84px;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	border: var(--bw) solid var(--line);
	background: var(--base-200);
}
.oven__img img, .oven__img .ph { width: 100%; height: 100%; object-fit: cover; }
.oven__img .ph span { font-size: 1.1rem; width: 56%; border-width: 1.5px; }
.oven__text { display: grid; gap: 6px; }
.oven__title { font-family: var(--f-display); font-weight: 620; font-size: 1.12rem; line-height: 1.2; }
.oven__title a { text-decoration: none; }
.oven__title a::after { content: ""; position: absolute; inset: 0; }
.oven__item:hover .oven__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* ---------- Feed / cards ---------- */
.feed { padding-bottom: 24px; }
.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	box-shadow: var(--shadow-hard);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--primary); }
.card__media { aspect-ratio: 4 / 3; border-bottom: var(--bw) solid var(--line); background: var(--base-200); overflow: hidden; }
.card__media a, .card__media img, .card__media .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media img { transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.card__top { min-height: 28px; }
.card__title { font-size: 1.32rem; line-height: 1.18; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__excerpt {
	margin: 0;
	color: var(--c-ink-soft);
	font-size: .98rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card .meta { margin-top: auto; padding-top: 6px; }

/* ---------- Pagination ---------- */
.pager { margin: 48px 0 8px; }
.pager .nav-links, .pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	white-space: nowrap;
	font-family: var(--f-mono);
	font-size: .85rem;
	text-decoration: none;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-pill);
	transition: background-color .18s var(--ease);
}
a.page-numbers:hover { background: var(--accent); }
.page-numbers.current { background: var(--c-ink); color: var(--c-paper); }
.page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Page head (archives/search) ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); max-width: 760px; }
.page-head__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.page-head__desc { font-size: 1.15rem; color: var(--c-ink-soft); }
.page-head__search { max-width: 460px; margin-top: 18px; }
.empty { padding: 32px 0; max-width: 520px; }

/* ---------- Popular Topics (plates) ---------- */
.pt {
	position: relative;
	margin-top: clamp(56px, 8vw, 96px);
	padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 96px);
	background: var(--secondary);
	color: var(--c-paper);
}
.pt::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
	background: radial-gradient(circle at 12px 12px, var(--secondary) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
}
.pt__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.pt__title {
	font-size: clamp(2.3rem, 5vw, 3.6rem);
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
	color: var(--c-paper);
	margin: 0;
}
.pt__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.plate { position: relative; }
.plate a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; }
.plate__img {
	position: relative;
	display: block;
	width: 100%;
	max-width: 230px;
	aspect-ratio: 1;
	padding: 9px;
	border-radius: 50%;
	background: var(--c-cream);
	box-shadow:
		inset 0 0 0 3px color-mix(in srgb, var(--c-ink) 10%, transparent),
		0 16px 0 -6px var(--c-basil-deep);
	transition: transform .5s var(--ease);
}
.plate__img img, .plate__img .ph {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	overflow: hidden;
}
.plate__img .ph span { width: 46%; font-size: clamp(1.2rem, 3vw, 2rem); }
.plate__no {
	position: absolute;
	top: 0;
	left: max(0px, calc(50% - 125px));
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--c-ink);
	border: var(--bw) solid var(--line);
	font-family: var(--f-mono);
	font-size: .78rem;
	transition: transform .3s var(--ease);
}
.plate__title {
	margin-top: 20px;
	font-family: var(--f-display);
	font-variation-settings: "SOFT" 100;
	font-weight: 600;
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.25;
	max-width: 24ch;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
	transition: text-decoration-color .2s var(--ease);
}
.plate a:hover .plate__img { transform: rotate(-8deg) scale(1.03); }
.plate a:hover .plate__no { transform: rotate(-10deg) scale(1.08); }
.plate a:hover .plate__title, .plate a:focus-visible .plate__title { text-decoration-color: var(--accent); }

/* ---------- Single ---------- */
.entry__head { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-family: var(--f-mono);
	font-size: .74rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.crumbs__link { color: var(--primary-strong); text-decoration: none; border-bottom: 2px solid transparent; }
.crumbs__link:hover { border-bottom-color: var(--accent); }
.crumbs__sep { color: var(--muted); }
.entry__title {
	font-size: clamp(2.3rem, 5.4vw, 4rem);
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
	letter-spacing: -0.025em;
	line-height: 1.03;
	margin-bottom: 18px;
}
.entry__dek { font-size: 1.25rem; color: var(--c-ink-soft); max-width: 60ch; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.byline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
}
.byline::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); }
.entry__hero { margin: 0 auto clamp(32px, 5vw, 56px); max-width: calc(1100px + var(--gutter) * 2); }
.entry__hero img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border: var(--bw) solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: 12px 12px 0 var(--primary);
}
.entry__hero figcaption { margin-top: 18px; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.entry--page .entry__head { padding-bottom: 8px; }

/* Prose */
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-of-type::first-letter {
	float: left;
	font-family: var(--f-display);
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
	font-weight: 700;
	font-size: 4.3em;
	line-height: .82;
	margin: .08em .1em 0 0;
	color: var(--primary);
}
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.prose h2::before {
	content: "";
	display: block;
	width: 44px;
	height: 6px;
	margin-bottom: 14px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--primary) 0 50%, var(--accent) 50% 100%);
}
.prose h3 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.2rem; margin-top: 1.4em; }
.prose a { color: var(--primary-strong); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--primary); font-size: 1.15em; }
.prose ol li::marker { color: var(--primary); font-family: var(--f-mono); font-weight: 500; }
.prose blockquote {
	margin-inline: 0;
	padding: 22px 26px;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-left: 8px solid var(--secondary);
	border-radius: var(--r-md);
	font-family: var(--f-display);
	font-style: italic;
	font-size: 1.3rem;
	line-height: 1.45;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--f-mono); font-style: normal; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.prose img { border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); text-align: center; }
.prose hr { border: 0; height: 12px; background: radial-gradient(circle, var(--primary) 3px, transparent 3.5px) center / 22px 12px repeat-x; margin-block: 2.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--base-card); border: var(--bw) solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 18%, transparent); text-align: left; }
.prose th { background: var(--base-200); font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--base-200); padding: 2px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; padding: 18px; background: var(--c-ink); color: var(--c-paper); border-radius: var(--r-sm); }
.prose pre code { background: none; padding: 0; }
.prose .alignwide { margin-inline: calc(-1 * min(120px, 6vw)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose .alignfull img { border-radius: 0; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose iframe { max-width: 100%; }
.prose .wp-block-button__link { background: var(--primary); color: var(--c-cream); border: var(--bw) solid var(--line); border-radius: var(--r-pill); box-shadow: 4px 4px 0 var(--line); text-decoration: none; font-weight: 700; }
.prose::after { content: ""; display: table; clear: both; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.after-post { margin-top: 40px; }
.after-post__title { font-size: 1.2rem; }
.page-links { margin-top: 24px; display: flex; gap: 8px; font-family: var(--f-mono); }

.neighbors {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 48px;
}
.neighbors__item {
	position: relative;
	padding: 18px 20px;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-md);
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.neighbors__item:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.neighbors__item .kicker { margin-bottom: 8px; }
.neighbors__item a { display: block; font-family: var(--f-display); font-weight: 620; font-size: 1.15rem; line-height: 1.25; text-decoration: none; }
.neighbors__item a::after { content: ""; position: absolute; inset: 0; }
.neighbors__item--next { text-align: right; }
.neighbors__item--next .kicker { flex-direction: row-reverse; }

/* ---------- Comments ---------- */
.comments-wrap { padding-top: clamp(48px, 7vw, 80px); }
.comments__title { font-size: 1.7rem; }
.comments__list, .comments__list .children { list-style: none; margin: 0 0 32px; padding: 0; }
.comments__list .children { margin: 14px 0 0 28px; }
.comment + .comment { margin-top: 14px; }
.comment__card { padding: 18px 20px; background: var(--base-card); border: var(--bw) solid var(--line); border-radius: var(--r-md); }
.comment__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment__avatar { border-radius: 50%; border: 1.5px solid var(--line); }
.comment__author { font-weight: 700; }
.comment__date { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.comment-reply-link { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-strong); }
.comment-respond { margin-top: 24px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--base-card);
	border: var(--bw) solid var(--line);
	border-radius: var(--r-sm);
}
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- 404 ---------- */
.lost { padding: clamp(40px, 8vw, 96px) 0 0; text-align: center; }
.lost .search { max-width: 460px; margin: 24px auto; }
.lost__code {
	margin: 0;
	font-family: var(--f-display);
	font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
	font-weight: 800;
	font-size: clamp(6rem, 22vw, 12rem);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 3px var(--primary);
}
.lost__title { font-size: clamp(2rem, 5vw, 3rem); }
.lost__text { color: var(--c-ink-soft); font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--c-ink);
	color: var(--c-paper);
	padding: clamp(48px, 7vw, 72px) 0 28px;
}
.pt + .site-footer, .pt + .comments-wrap + .site-footer { margin-top: 0; }
main > .pt:last-child { margin-bottom: 0; }
.site-main > :last-child:not(.pt) { margin-bottom: clamp(56px, 8vw, 96px); }
.site-footer__top { display: grid; gap: 32px; padding-bottom: 36px; }
.site-footer .brand { color: var(--c-paper); }
.site-footer .brand svg { height: 52px; }
.site-footer__tag { margin: 14px 0 0; max-width: 40ch; color: #c9bba8; }
.foot-nav__list { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.foot-nav__link, .foot-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 12px;
	border-radius: var(--r-pill);
	color: var(--c-paper);
	text-decoration: none;
	font-weight: 600;
	transition: background-color .18s var(--ease), color .18s var(--ease);
}
.foot-nav__link:hover, .foot-nav__list a:hover { background: var(--accent); color: var(--c-ink); }
.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px dashed rgba(247, 240, 227, .25);
	font-size: .92rem;
	color: #c9bba8;
}
.site-footer__base p { margin: 0; }
.to-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 18px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--c-ink);
	font-family: var(--f-mono);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	border: var(--bw) solid var(--c-paper);
}

/* ---------- Responsive ---------- */
@media (max-width: 819px) {
	.site-header__in { flex-wrap: wrap; }
	.site-header__tag { display: none; }
	.brand svg, .brand__img { height: 38px; }
	.site-header__search { order: 3; width: 100%; margin-left: 0; }
	.nav { order: 2; margin-left: 0; width: 100%; overflow-x: auto; }
	.nav__list { width: max-content; }
	.hero__search { display: none; }
}
@media (min-width: 640px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.neighbors { grid-template-columns: 1fr 1fr; }
	.neighbors__item--prev:only-child { grid-column: 1 / 2; }
	.neighbors__item--next:only-child { grid-column: 2 / 3; }
	.site-footer__top { grid-template-columns: 1fr auto; align-items: start; }
	.foot-nav__list { justify-content: flex-end; max-width: 560px; }
}
@media (min-width: 900px) {
	.hero__grid { grid-template-columns: 5fr 6fr; gap: 64px; }
	.oven__list { grid-template-columns: repeat(3, 1fr); }
	.oven__item + .oven__item { border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--c-ink) 30%, transparent); padding-left: 20px; }
	.pt__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; }
}
@media (min-width: 1040px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	.oven__item { grid-template-columns: auto 64px 1fr; gap: 12px; }
	.oven__img { width: 64px; }
	.pt__grid { gap: 28px 14px; }
	.plate__no { width: 36px; height: 36px; font-size: .7rem; }
	.feature__card { width: calc(100% - 6px); margin-left: 0; margin-top: -60px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.card:hover, .plate a:hover .plate__img, .plate a:hover .plate__no, .neighbors__item:hover, .btn:hover { transform: none; }
	.card:hover .card__media img, .feature:hover .feature__arch img { transform: none; }
}

@media print {
	.site-header, .site-footer, .pt, .comments-wrap, .neighbors, .after-post { display: none !important; }
	body { background: #fff; }
}
