/*
Theme Name: Sovuh Market
Theme URI: https://sovuh.com/
Author: sovuh
Description: A market-stall recipe theme for sovuh.com: striped awning edges, plates instead of boxes, a menu-style recipe list with dotted leaders, perforated stamp images and a random Popular Topics band. Fully responsive, no page builder required.
Version: 1.0.0
Requires at least: 6.3
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: sovuh
Tags: blog, food-and-drink, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--rice: #f1eee2;
	--rice-2: #e7e2d1;
	--aubergine: #2a1433;
	--aubergine-2: #3d2148;
	--ink: #2a1433;
	--ink-soft: #5c4a63;
	--pomegranate: #c8243c;
	--saffron: #f2a900;
	--pickle: #6c7c1c;
	--line: rgba(42, 20, 51, .22);

	--f-display: "Gloock", "Georgia", "Times New Roman", serif;
	--f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1240px;
	--prose: 720px;
	--stripe: 22px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	background: var(--rice);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--pomegranate); }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }

::selection { background: var(--saffron); color: var(--aubergine); }

.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: 10px 16px;
	background: var(--aubergine);
	color: var(--rice);
	font: 600 .8rem var(--f-mono);
	text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--rice); }

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

.kicker {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	margin: 0 0 1.1rem;
	font: 600 .72rem/1 var(--f-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pomegranate);
}
.kicker__dot {
	width: .8em; height: .8em;
	border-radius: 50%;
	background: var(--saffron);
	box-shadow: 0 0 0 3px var(--rice), 0 0 0 4.5px var(--aubergine);
}

.chip {
	font: 600 .68rem/1 var(--f-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--pickle);
	padding-bottom: 3px;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
}
.chip:hover { color: var(--pomegranate); }

.cta {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font: 600 .95rem/1 var(--f-body);
	color: var(--aubergine);
	text-decoration: none;
	padding: .25em 0;
	background: linear-gradient(var(--saffron), var(--saffron)) left 92% / 100% .42em no-repeat;
	transition: background-size .3s var(--ease), color .2s;
}
.cta:hover { color: var(--aubergine); background-size: 100% 100%; }

/* ==========================================================================
   Awning edge (striped, scalloped)
   ========================================================================== */
.awning {
	height: calc(var(--stripe) * 1.1 + var(--stripe) / 2);
	background: repeating-linear-gradient(90deg, var(--pomegranate) 0 var(--stripe), var(--rice) var(--stripe) calc(var(--stripe) * 2));
	-webkit-mask:
		linear-gradient(#000 0 0) top / 100% calc(var(--stripe) * 1.1) no-repeat,
		radial-gradient(circle at 50% 0, #000 calc(var(--stripe) / 2 - .5px), transparent calc(var(--stripe) / 2)) bottom left / var(--stripe) calc(var(--stripe) / 2) repeat-x;
	mask:
		linear-gradient(#000 0 0) top / 100% calc(var(--stripe) * 1.1) no-repeat,
		radial-gradient(circle at 50% 0, #000 calc(var(--stripe) / 2 - .5px), transparent calc(var(--stripe) / 2)) bottom left / var(--stripe) calc(var(--stripe) / 2) repeat-x;
	border-top: 6px solid var(--aubergine);
}
.awning--up {
	border-top: 0;
	border-bottom: 6px solid var(--aubergine);
	-webkit-mask:
		linear-gradient(#000 0 0) bottom / 100% calc(var(--stripe) * 1.1 + 6px) no-repeat,
		radial-gradient(circle at 50% 100%, #000 calc(var(--stripe) / 2 - .5px), transparent calc(var(--stripe) / 2)) top left / var(--stripe) calc(var(--stripe) / 2) repeat-x;
	mask:
		linear-gradient(#000 0 0) bottom / 100% calc(var(--stripe) * 1.1 + 6px) no-repeat,
		radial-gradient(circle at 50% 100%, #000 calc(var(--stripe) / 2 - .5px), transparent calc(var(--stripe) / 2)) top left / var(--stripe) calc(var(--stripe) / 2) repeat-x;
	height: calc(var(--stripe) * 1.1 + var(--stripe) / 2 + 6px);
}

/* ==========================================================================
   Header (masthead)
   ========================================================================== */
.mast { position: relative; z-index: 20; }

.mast__bar {
	display: flex;
	align-items: center;
	gap: 1.25rem 2rem;
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 1rem var(--gutter) 1.1rem;
	border-bottom: 1px solid var(--line);
}

.brand { display: block; flex: none; line-height: 0; }
.brand__img { height: 58px; width: auto; transition: transform .4s var(--ease); }
.brand:hover .brand__img { transform: rotate(-2deg) scale(1.03); }

.mast__tagline {
	margin: 0;
	max-width: 17ch;
	font: 400 .66rem/1.45 var(--f-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
	border-left: 1px solid var(--line);
	padding-left: 1rem;
}

.mast__nav { margin-left: auto; }

.mast__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .2rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mast__menu > li { position: relative; display: flex; align-items: center; }
.mast__menu > li + li::before {
	content: "\2733";
	font-size: .62rem;
	color: var(--pomegranate);
	margin: 0 .85rem;
}
.mast__menu .nav-link {
	font: 600 .74rem/1 var(--f-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: .55rem 0;
	background: linear-gradient(var(--saffron), var(--saffron)) left 78% / 0 .5em no-repeat;
	transition: background-size .3s var(--ease);
}
.mast__menu .nav-link:hover,
.mast__menu .current-menu-item > .nav-link { color: var(--aubergine); background-size: 100% .5em; }

.mast__menu .sub-menu {
	position: absolute;
	top: 100%; left: 1.5rem;
	min-width: 13rem;
	margin: 0; padding: .6rem 0;
	list-style: none;
	background: var(--rice);
	border-top: 3px solid var(--aubergine);
	border-bottom: 1px solid var(--line);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: .2s var(--ease);
}
.mast__menu li:hover > .sub-menu,
.mast__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mast__menu .sub-menu .nav-link { display: block; padding: .6rem 1rem; }

.mast__tools { display: flex; align-items: center; gap: .4rem; }

.tool {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-width: 44px; min-height: 44px;
	justify-content: center;
	padding: 0 .5rem;
	border: 0;
	background: none;
	color: var(--aubergine);
	font: 600 .72rem/1 var(--f-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 50%;
	transition: background .2s, color .2s;
}
.tool:hover { background: var(--aubergine); color: var(--rice); }
.tool--menu { display: none; border-radius: 0; }
.tool--menu:hover { background: none; color: var(--pomegranate); }
.tool__bars { display: grid; gap: 4px; width: 22px; }
.tool__bars i { display: block; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.tool__bars i:nth-child(2) { width: 70%; }
.nav-open .tool__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .tool__bars i:nth-child(2) { opacity: 0; }
.nav-open .tool__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mast__search {
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 1.4rem var(--gutter) 1.6rem;
	border-bottom: 1px solid var(--line);
}

.header-widget-title { margin: 0; font: 600 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   Search form
   ========================================================================== */
.find { max-width: 640px; }
.find__label {
	display: block;
	margin-bottom: .4rem;
	font-family: var(--f-display);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.find__row { display: flex; align-items: stretch; border-bottom: 3px solid var(--aubergine); }
.find__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 400 1.05rem var(--f-body);
	padding: .8rem 0;
}
.find__input::placeholder { color: var(--ink-soft); opacity: .75; }
.find__input:focus { outline: none; }
.find__row:focus-within { border-color: var(--pomegranate); }
.find__go,
.btn,
.comment-form .submit {
	border: 0;
	background: var(--aubergine);
	color: var(--rice);
	font: 600 .74rem/1 var(--f-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 0 1.3rem;
	min-height: 48px;
	cursor: pointer;
	transition: background .2s;
}
.find__go:hover,
.btn:hover,
.comment-form .submit:hover { background: var(--pomegranate); }

/* ==========================================================================
   Main
   ========================================================================== */
.main { display: block; padding-top: clamp(1.5rem, 4vw, 3.5rem); }

/* Hero */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: clamp(1.5rem, 5vw, 5rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero__title {
	font-size: clamp(2.6rem, 6.4vw, 5.6rem);
	line-height: .96;
	letter-spacing: -.025em;
	margin-bottom: 1.4rem;
}
.hero__link { text-decoration: none; }
.hero__link:hover { color: var(--aubergine); text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: .08em; text-underline-offset: .1em; }
.hero__deck { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.hero__time { font: 400 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.hero__ring {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	font: 600 13px var(--f-mono);
	letter-spacing: .32em;
	fill: var(--aubergine);
	animation: spin 48s linear infinite;
}
.hero__plate { position: absolute; inset: 15%; display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Plates (circular images) */
.plate {
	display: block;
	position: relative;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--rice-2);
	box-shadow: 0 0 0 7px var(--rice), 0 0 0 9px var(--aubergine);
	transition: transform .5s var(--ease);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate--xl { width: 100%; height: 100%; box-shadow: 0 0 0 14px var(--rice), 0 0 0 17px var(--aubergine), 0 0 0 30px var(--rice), 0 0 0 31px var(--line); }
.plate--sm { width: 100%; box-shadow: 0 0 0 4px var(--rice), 0 0 0 5.5px var(--aubergine); }
.plate--empty {
	background:
		radial-gradient(circle, var(--saffron) 0 22%, transparent 22.5%),
		radial-gradient(circle, transparent 0 34%, var(--aubergine) 34.5% 35.5%, transparent 36%),
		var(--rice-2);
}
a:hover .plate { transform: rotate(-6deg) scale(1.03); }

/* Menu list (recipe index) */
.menu-list { border-top: 3px double var(--aubergine); }
.menu-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 2rem;
	padding: 1.6rem 0 .6rem;
}
.menu-list__title { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }
.menu-list__note { margin: 0; font: 400 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.row {
	display: grid;
	grid-template-columns: 3.4rem minmax(0, 1fr) 120px;
	gap: 0 clamp(1rem, 3vw, 2.6rem);
	align-items: start;
	padding: clamp(1.4rem, 3vw, 2.2rem) 0;
	border-bottom: 1px dashed var(--line);
}
.row__num {
	font: 600 .82rem/1 var(--f-mono);
	color: var(--pomegranate);
	padding-top: .9rem;
}
.row__title { font-size: clamp(1.5rem, 3vw, 2.35rem); margin: 0; }
.row__link { text-decoration: none; }
.row__link:hover { color: var(--pomegranate); }
.row__leader { display: flex; align-items: baseline; gap: .8rem; margin: .5rem 0 .9rem; }
.row__dots { flex: 1; height: 0; border-bottom: 2px dotted var(--aubergine); opacity: .55; transform: translateY(-.25em); }
.row__time { font: 600 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.row__excerpt { margin: 0 0 .8rem; color: var(--ink-soft); max-width: 62ch; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; font: 400 .7rem var(--f-mono); letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.row__thumb { display: block; padding: 6px; }
.row:nth-child(even) .plate--sm { transform: rotate(4deg); }

/* Archive header */
.ahead { padding: clamp(.5rem, 2vw, 1.5rem) 0 clamp(1.5rem, 3vw, 2.4rem); max-width: 900px; }
.ahead__title { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0; }
.ahead__desc { margin-top: 1rem; color: var(--ink-soft); max-width: 60ch; }

/* Pagination */
.pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	padding: 2.5rem 0 1rem;
	font: 600 .78rem var(--f-mono);
}
.pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; min-height: 44px;
	padding: 0 .7rem;
	text-decoration: none;
	border-radius: 50%;
}
.pager a.page-numbers:hover { background: var(--saffron); color: var(--aubergine); }
.pager .current { background: var(--aubergine); color: var(--rice); }
.pager .prev, .pager .next { border-radius: 0; white-space: nowrap; text-transform: uppercase; letter-spacing: .1em; }
.pager .prev:hover, .pager .next:hover { background: none !important; color: var(--pomegranate) !important; }

/* Empty / 404 */
.empty, .lost { padding: 2rem 0 4rem; max-width: 640px; }
.empty__big { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--f-display); }
.lost__code {
	display: flex; align-items: center; gap: .1em;
	font: 400 clamp(6rem, 22vw, 13rem)/1 var(--f-display);
	margin: 0 0 1rem;
	color: var(--aubergine);
}
.plate--inline { width: .78em; height: .78em; flex: none; margin: 0 .06em; }
.lost__title { font-size: clamp(2rem, 4.4vw, 3rem); }
.lost .find { margin: 1.5rem 0 2rem; }

/* ==========================================================================
   Single / page
   ========================================================================== */
.entry__head { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.entry__head > * { max-width: 980px; }
.crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
	margin-bottom: 1.4rem;
	font: 600 .7rem/1 var(--f-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
}
.crumb { text-decoration: none; color: var(--ink-soft); }
.crumb:hover { color: var(--pomegranate); }
.crumbs__sep { color: var(--pomegranate); }

.entry__title { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; letter-spacing: -.025em; margin-bottom: 1.2rem; }
.entry__deck { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 52ch; }
.meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
	margin: 1.4rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	font: 400 .72rem/1.4 var(--f-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}
.meta__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pomegranate); }
.meta__cats { display: inline-flex; flex-wrap: wrap; gap: .8rem; }

/* Perforated stamp around featured images */
.entry__media { margin-top: 0; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.stamp {
	--r: 7px;
	padding: calc(var(--r) * 2.2);
	background: #fffdf6;
	-webkit-mask:
		radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
		linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
	mask:
		radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
		linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
	filter: drop-shadow(0 1px 0 var(--line));
	transform: rotate(-.6deg);
}
.stamp img { width: 100%; max-height: 72vh; object-fit: cover; }
.entry__media figcaption { margin-top: .8rem; font: 400 .72rem var(--f-mono); color: var(--ink-soft); text-align: right; }

.entry__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--prose)) minmax(0, 1fr);
	gap: 0 clamp(1.5rem, 4vw, 3.5rem);
}
.entry__layout > .prose { grid-column: 2; }
.toc { grid-column: 1; grid-row: 1; justify-self: end; width: 100%; max-width: 230px; }
.toc[hidden] { display: none; }
.toc__title { margin: 0 0 .8rem; font: 600 .7rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pomegranate); }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; position: sticky; top: 1.5rem; }
.toc__list li { counter-increment: toc; display: grid; grid-template-columns: 1.8rem 1fr; padding: .45rem 0; border-top: 1px dashed var(--line); font-size: .9rem; line-height: 1.35; }
.toc__list li::before { content: counter(toc, decimal-leading-zero); font: 600 .66rem/1.9 var(--f-mono); color: var(--ink-soft); }
.toc__link { text-decoration: none; }
.toc__link:hover { color: var(--pomegranate); }

.entry__foot { padding-top: 2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.entry__foot > * { max-width: var(--prose); margin-inline: auto; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; padding-bottom: 2rem; }
.tag-link { font: 600 .74rem var(--f-mono); text-decoration: none; color: var(--pickle); }
.tag-link:hover { color: var(--pomegranate); }

.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 3px double var(--aubergine); padding-top: 1.4rem; }
.pnav__link { display: grid; gap: .4rem; text-decoration: none; }
.pnav__link--next { grid-column: 2; text-align: right; }
.pnav__label { font: 600 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pomegranate); }
.pnav__title { font: 400 clamp(1.1rem, 2vw, 1.4rem)/1.2 var(--f-display); }
.pnav__link:hover .pnav__title { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; }

/* ==========================================================================
   Prose (post content)
   ========================================================================== */
.prose { font-size: 1.125rem; line-height: 1.75; min-width: 0; }
.prose > * + * { margin-top: 0; }
.prose > p:first-of-type::first-letter {
	float: left;
	font: 400 4.6em/.8 var(--f-display);
	margin: .06em .1em 0 0;
	color: var(--pomegranate);
}
.prose a { color: var(--aubergine); text-decoration-color: var(--pomegranate); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--pomegranate); }
.prose h2 {
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	margin: 2.4em 0 .8em;
	padding-bottom: .5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M2 6c10-6 18 4 28 0s18-6 28 0 18 4 28 0 18-6 28 0' fill='none' stroke='%23f2a900' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 120px 10px no-repeat;
}
.prose h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2em 0 .6em; }
.prose h4 { font: 600 .82rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin: 2em 0 .8em; color: var(--pomegranate); }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.5em; list-style: none; }
.prose li { position: relative; margin-bottom: .55em; }
.prose ul > li { padding-left: 1.6em; }
.prose ul > li::before {
	content: "";
	position: absolute; left: .2em; top: .62em;
	width: .5em; height: .5em;
	border-radius: 50%;
	background: var(--pomegranate);
	box-shadow: .18em -.12em 0 -.08em var(--saffron);
}
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; padding-left: 2.8em; min-height: 2em; }
.prose ol > li::before {
	content: counter(step);
	position: absolute; left: 0; top: .05em;
	width: 1.9em; height: 1.9em;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--aubergine);
	color: var(--rice);
	font: 600 .8rem/1 var(--f-mono);
}
.prose blockquote {
	position: relative;
	margin: 2.2em 0;
	padding: 0 0 0 clamp(2.4rem, 5vw, 3.6rem);
	font: 400 clamp(1.35rem, 2.6vw, 1.7rem)/1.35 var(--f-display);
	border: 0;
}
.prose blockquote::before {
	content: "\201C";
	position: absolute; left: 0; top: -.15em;
	font: 400 4em/1 var(--f-display);
	color: var(--pomegranate);
}
.prose blockquote cite { display: block; margin-top: .8rem; font: 600 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--ink-soft); }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: .6rem; font: 400 .74rem/1.5 var(--f-mono); color: var(--ink-soft); }
.prose img { border-radius: 2px; }
.prose hr { border: 0; height: 12px; margin: 3em auto; width: 120px; background: radial-gradient(circle, var(--aubergine) 3px, transparent 3.5px) 0 50% / 24px 12px repeat-x; }
.prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .98rem; }
.prose th { font: 600 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-align: left; padding: .7rem .6rem; border-bottom: 3px double var(--aubergine); }
.prose td { padding: .7rem .6rem; border-bottom: 1px dotted var(--line); }
.prose .wp-block-table { overflow-x: auto; }
.prose pre, .prose code { font-family: var(--f-mono); font-size: .86em; }
.prose pre { overflow-x: auto; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose iframe { width: 100%; }
.page-links { margin: 2rem 0; font: 600 .78rem var(--f-mono); display: flex; gap: .8rem; }

/* Recipe card plugins (WP Recipe Maker, Tasty Recipes, Create): keep them in the theme's voice */
.prose .wprm-recipe-container,
.prose .tasty-recipes,
.prose .mv-create-card {
	margin: 3rem 0;
	padding: 2rem 0;
	border-top: 6px solid var(--aubergine);
	border-bottom: 3px double var(--aubergine);
	background: transparent !important;
	box-shadow: none !important;
}
.prose .wprm-recipe,
.prose .tasty-recipes { border: 0 !important; background: transparent !important; padding: 0 !important; font-family: var(--f-body) !important; }
.prose .wprm-recipe-name,
.prose .tasty-recipes-title,
.prose .mv-create-title { font-family: var(--f-display) !important; font-weight: 400 !important; }
.prose .wprm-recipe-header,
.prose .tasty-recipes h3 { font-family: var(--f-display) !important; font-weight: 400 !important; }
.prose .wprm-recipe a.wprm-recipe-link,
.prose .tasty-recipes-buttons a { border-radius: 0 !important; }
.prose .wprm-recipe ul > li::before,
.prose .wprm-recipe ol > li::before,
.prose .tasty-recipes ul > li::before,
.prose .tasty-recipes ol > li::before { content: none; }
.prose .wprm-recipe ul > li,
.prose .wprm-recipe ol > li { padding-left: 0; }

/* ==========================================================================
   Popular Topics (scalloped tablecloth band)
   ========================================================================== */
.pt {
	--s: 26px;
	position: relative;
	margin: clamp(1rem, 3vw, 2rem) 0 0;
	padding: calc(var(--s) + clamp(2.5rem, 6vw, 4.5rem)) 0 calc(var(--s) + clamp(2.5rem, 6vw, 4.5rem));
	color: var(--rice);
	background:
		repeating-linear-gradient(0deg, rgba(241, 238, 226, .045) 0 18px, transparent 18px 36px),
		repeating-linear-gradient(90deg, rgba(241, 238, 226, .045) 0 18px, transparent 18px 36px),
		var(--aubergine);
	-webkit-mask:
		radial-gradient(circle at 50% 100%, #000 calc(var(--s) / 2 - .5px), transparent calc(var(--s) / 2)) top left / var(--s) calc(var(--s) / 2) repeat-x,
		linear-gradient(#000 0 0) 0 calc(var(--s) / 2 - 1px) / 100% calc(100% - var(--s) + 2px) no-repeat,
		radial-gradient(circle at 50% 0, #000 calc(var(--s) / 2 - .5px), transparent calc(var(--s) / 2)) bottom left / var(--s) calc(var(--s) / 2) repeat-x;
	mask:
		radial-gradient(circle at 50% 100%, #000 calc(var(--s) / 2 - .5px), transparent calc(var(--s) / 2)) top left / var(--s) calc(var(--s) / 2) repeat-x,
		linear-gradient(#000 0 0) 0 calc(var(--s) / 2 - 1px) / 100% calc(100% - var(--s) + 2px) no-repeat,
		radial-gradient(circle at 50% 0, #000 calc(var(--s) / 2 - .5px), transparent calc(var(--s) / 2)) bottom left / var(--s) calc(var(--s) / 2) repeat-x;
}
.pt__inner {
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.pt__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.pt__kicker { margin: 0 0 .9rem; font: 600 .7rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); }
.pt__title {
	margin: 0;
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	color: var(--rice);
	padding-bottom: .9rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='12' viewBox='0 0 160 12'%3E%3Cpath d='M2 7c13-7 24 5 37 0s24-7 37 0 24 5 37 0 24-7 37 0' fill='none' stroke='%23f2a900' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / 160px 12px no-repeat;
}

.pt__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 4vw, 3.4rem) clamp(1.2rem, 3vw, 2.6rem);
}
.pt__grid--few { display: flex; flex-wrap: wrap; justify-content: center; }
.pt__grid--few .pt__item { flex: 0 1 calc(50% - 1.3rem); max-width: 260px; }

.pt__item { min-width: 0; }
.pt__link {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: .75rem;
	text-decoration: none;
	color: var(--rice);
}
.pt__link:hover { color: var(--saffron); }
.pt__plate {
	position: relative;
	display: block;
	width: min(100%, 220px);
	aspect-ratio: 1;
	margin-bottom: .7rem;
	border-radius: 50%;
	overflow: hidden;
	background: var(--aubergine-2);
	box-shadow: 0 0 0 8px var(--rice), 0 0 0 10px var(--saffron), 0 18px 30px -12px rgba(0, 0, 0, .55);
	transition: transform .55s var(--ease), box-shadow .3s;
}
.pt__plate img { width: 100%; height: 100%; object-fit: cover; }
.pt__item:nth-child(odd) .pt__plate { transform: rotate(-3deg); }
.pt__item:nth-child(even) .pt__plate { transform: rotate(3deg); }
.pt__link:hover .pt__plate { transform: rotate(-12deg) scale(1.04); box-shadow: 0 0 0 8px var(--rice), 0 0 0 10px var(--pomegranate), 0 22px 34px -12px rgba(0, 0, 0, .6); }
.pt__plate--empty { display: grid; place-items: center; background: radial-gradient(circle, var(--saffron) 0 30%, var(--aubergine-2) 30.5%); }
.pt__initial { font: 400 clamp(2.4rem, 6vw, 3.4rem)/1 var(--f-display); color: var(--aubergine); }
.pt__num { font: 600 .68rem/1 var(--f-mono); letter-spacing: .14em; color: var(--saffron); }
.pt__name {
	font: 400 clamp(1.02rem, 1.6vw, 1.25rem)/1.22 var(--f-display);
	max-width: 22ch;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.notes { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.notes__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.notes__list, .notes__list .children { list-style: none; margin: 0; padding: 0; }
.notes__list .children { padding-left: clamp(1rem, 4vw, 2.5rem); border-left: 2px dotted var(--line); }
.note { padding: 1.4rem 0; border-bottom: 1px dashed var(--line); }
.note__head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: .6rem; }
.note__avatar img { border-radius: 50%; box-shadow: 0 0 0 3px var(--rice), 0 0 0 4.5px var(--aubergine); }
.note__who { font-weight: 600; }
.note__who a { text-decoration: none; }
.note__when { font: 400 .7rem var(--f-mono); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.note__wait { font: 600 .74rem var(--f-mono); color: var(--pomegranate); }
.note__reply a, .comment-reply-link { font: 600 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--pomegranate); text-decoration: none; }
.comment-respond { margin-top: 2.5rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font: 600 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 0;
	border-bottom: 2px solid var(--aubergine);
	background: transparent;
	color: var(--ink);
	padding: .6rem 0;
	font: 400 1rem var(--f-body);
	border-radius: 0;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--pomegranate); }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font: 400 .9rem var(--f-body); }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { margin-top: 0; overflow: hidden; }
.pt + .foot, .wrap + .foot { margin-top: clamp(2rem, 5vw, 4rem); }
.foot__inner {
	max-width: calc(var(--max) + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 1.6rem;
}
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: start; }
.foot__line { margin: 0; font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.15 var(--f-display); max-width: 18ch; }
.foot__menu { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.foot__menu li { break-inside: avoid; border-top: 1px dashed var(--line); }
.foot__menu .nav-link {
	display: flex; align-items: center; justify-content: space-between;
	padding: .85rem 0;
	font: 600 .74rem/1.3 var(--f-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
}
.foot__menu .nav-link::after { content: "\2192"; color: var(--pomegranate); transition: transform .25s var(--ease); }
.foot__menu .nav-link:hover::after { transform: translateX(4px); }

.foot__word {
	margin: clamp(2rem, 5vw, 3.5rem) 0 0;
	font: 400 clamp(5rem, 24vw, 22rem)/.95 var(--f-display);
	letter-spacing: -.04em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--aubergine);
	text-align: center;
	user-select: none;
	white-space: nowrap;
	overflow: hidden;
	padding-bottom: .04em;
}
.foot__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	margin-top: 1.6rem;
	padding-top: 1rem;
	border-top: 3px double var(--aubergine);
	font: 400 .7rem var(--f-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.foot__up { text-decoration: none; color: var(--pomegranate); }

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignnone { margin: 1.5em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font: 400 .74rem var(--f-mono); color: var(--ink-soft); }
.sticky .row__title::after { content: " \2605"; color: var(--saffron); }
.bypostauthor > .note__head .note__who::after { content: " \2022 author"; font: 600 .66rem var(--f-mono); color: var(--pickle); text-transform: uppercase; }
.wp-block-button__link { border-radius: 0; background: var(--aubergine); color: var(--rice); font: 600 .78rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.wp-block-button__link:hover { background: var(--pomegranate); color: var(--rice); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 760px) {
	.pt__grid--full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pt__grid--few .pt__item { flex-basis: calc(25% - 2rem); }
}

@media (max-width: 1100px) {
	.mast__tagline { display: none; }
}

@media (max-width: 1039px) {
	.entry__layout { grid-template-columns: minmax(0, 1fr); }
	.entry__layout > .prose { grid-column: 1; max-width: var(--prose); width: 100%; margin-inline: auto; }
	.toc { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: var(--prose); margin: 0 auto 2rem; width: 100%; }
	.toc__list { position: static; }
	.prose .alignwide { margin-inline: 0; }
}

@media (max-width: 900px) {
	.tool--menu { display: inline-flex; }
	.mast__bar { flex-wrap: wrap; position: relative; }
	.mast__tools { margin-left: auto; }
	.mast__nav {
		order: 10;
		flex-basis: 100%;
		margin: 0;
		display: none;
	}
	.nav-open .mast__nav { display: block; }
	.mast__menu { flex-direction: column; align-items: stretch; padding: .5rem 0 .4rem; }
	.mast__menu > li { display: block; border-top: 1px dashed var(--line); }
	.mast__menu > li + li::before { content: none; }
	.mast__menu .nav-link {
		display: block;
		padding: .95rem 0;
		font: 400 1.6rem/1.1 var(--f-display);
		letter-spacing: -.01em;
		text-transform: none;
		background: none;
	}
	.mast__menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 .6rem 1rem; background: none; }
	.mast__menu .sub-menu .nav-link { font-size: 1.15rem; padding: .5rem 0; }

	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero__visual { order: -1; max-width: 400px; }

	.foot__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	:root { --stripe: 18px; }
	body { font-size: 1rem; }
	.brand__img { height: 46px; }
	.row { position: relative; grid-template-columns: minmax(0, 1fr); }
	.row__num { padding: 0 0 .6rem; }
	.row__title, .row__leader { padding-right: 96px; }
	.row__thumb { position: absolute; right: 0; top: calc(clamp(1.4rem, 3vw, 2.2rem) + 1.2rem); width: 84px; padding: 4px; }
	.row__excerpt { font-size: .95rem; }
	.prose { font-size: 1.06rem; }
	.prose .alignleft, .prose .alignright { float: none; margin: 1.5em 0; max-width: 100%; }
	.pt { --s: 20px; }
	.pt__plate { box-shadow: 0 0 0 5px var(--rice), 0 0 0 7px var(--saffron), 0 12px 22px -10px rgba(0, 0, 0, .55); }
	.pt__link:hover .pt__plate { box-shadow: 0 0 0 5px var(--rice), 0 0 0 7px var(--pomegranate); }
	.pnav { grid-template-columns: minmax(0, 1fr); }
	.pnav__link--next { grid-column: 1; }
	.foot__menu { columns: 1; }
	.stamp { --r: 5px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.mast__tools, .mast__nav, .awning, .pt, .foot, .comment-respond, .toc { display: none !important; }
	body { background: #fff; }
	.stamp { -webkit-mask: none; mask: none; padding: 0; transform: none; }
}
