/* ==========================================================================
   Omacu Skillet — recipe box styles
   ========================================================================== */

/* Fonts (self-hosted) ------------------------------------------------------ */
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces.woff2") format("woff2-variations"), url("../fonts/fraunces.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-italic.woff2") format("woff2-variations"), url("../fonts/fraunces-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}
@font-face { font-family: "Karla"; src: url("../fonts/karla-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

/* Tokens ------------------------------------------------------------------- */
:root {
	--paper: #f4eadb;
	--paper-2: #fbf6ec;
	--paper-3: #efe2cd;
	--ink: #2a1f1a;
	--ink-2: #5b4a3f;
	--ink-3: #7a685b;
	--skillet: #231a16;
	--paprika: #b23f25;
	--paprika-2: #8f2f19;
	--butter: #e9b44c;
	--butter-2: #f6dc9c;
	--okra: #4f6a3a;
	--line: #e0d0b6;
	--line-2: #cdb999;
	--cream: #fff4e2;

	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-body: "Karla", "Avenir Next", "Segoe UI", system-ui, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 18px;
	--shadow: 0 1px 0 rgba(42, 31, 26, .06), 0 10px 24px -12px rgba(42, 31, 26, .28);
	--shadow-lift: 0 2px 0 rgba(42, 31, 26, .06), 0 22px 40px -18px rgba(42, 31, 26, .42);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--paprika-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--paprika); }
:focus-visible { outline: 3px solid var(--paprika); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1.1em; }
::selection { background: var(--butter-2); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.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(--ink); color: var(--cream); border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--cream); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Shared bits -------------------------------------------------------------- */
.kicker {
	display: inline-flex; align-items: center; gap: .55em;
	margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--okra);
}
.kicker__dot { width: .62em; height: .62em; border-radius: 50%; background: var(--paprika); box-shadow: 0 0 0 4px rgba(178, 63, 37, .16); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 48px; padding: .7em 1.4em; border: 0; border-radius: 999px;
	font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; line-height: 1.2;
	transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--butter); }
.btn--ink:hover { color: var(--cream); background: var(--skillet); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--butter); }
.btn--paprika { background: var(--paprika); color: #fff; }
.btn--paprika:hover { background: var(--paprika-2); color: #fff; }

.chip {
	display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .4em .95em;
	border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent;
	font-size: .85rem; font-weight: 700; color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

.section-head { margin: 0 0 2.2rem; max-width: 46rem; }
.section-head__kicker {
	margin: 0 0 .5rem; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--paprika);
}
.section-head__title { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 650; font-variation-settings: "opsz" 144; }
.section-head--light .section-head__kicker { color: var(--butter); }
.section-head--light .section-head__title { color: var(--cream); }

/* Scalloped "pie crust" edges --------------------------------------------- */
.masthead::after,
.popular::before,
.popular::after,
.foot::before {
	content: ""; position: absolute; left: 0; right: 0; height: 14px; pointer-events: none;
	background-repeat: repeat-x; background-size: 28px 14px;
}

/* Header ------------------------------------------------------------------- */
.masthead { position: relative; z-index: 20; background: var(--paper-2); }
.masthead::after { bottom: -14px; background-image: radial-gradient(circle at 14px 0, var(--paper-2) 13px, transparent 13.5px); }
.masthead__gingham {
	height: 12px;
	background-color: #f7ede0;
	background-image:
		linear-gradient(90deg, rgba(178, 63, 37, .5) 50%, transparent 50%),
		linear-gradient(rgba(178, 63, 37, .5) 50%, transparent 50%);
	background-size: 16px 16px;
}
.masthead__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 92px; padding-block: 14px; }
.masthead__brand { display: flex; align-items: center; gap: 18px; min-width: 0; margin-right: auto; }
.brand { display: block; flex: none; line-height: 0; border-radius: 8px; }
.brand__img { width: auto; height: 52px; }
.masthead__tagline {
	margin: 0; padding-left: 18px; border-left: 1.5px solid var(--line-2);
	max-width: 15rem; font-family: var(--font-display); font-style: italic; font-size: .95rem; line-height: 1.3; color: var(--ink-2);
}

.nav__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav__list li { position: relative; }
.nav__link,
.nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
	font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none;
	transition: background-color .2s, color .2s;
}
.nav__list a:hover,
.nav__list .current-menu-item > a { background: var(--paper-3); color: var(--paprika-2); }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none;
	background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { width: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; }

.masthead__tools { display: flex; align-items: center; gap: 8px; }
.tool-btn {
	display: inline-flex; align-items: center; gap: .5em; min-width: 46px; min-height: 46px; padding: 0 14px;
	border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; font-size: .88rem;
	transition: background-color .2s, color .2s;
}
.tool-btn:hover,
.tool-btn[aria-expanded="true"] { background: var(--ink); color: var(--cream); }
.tool-btn--menu { display: none; justify-content: center; padding: 0; }

.search-drawer { border-top: 1px dashed var(--line-2); background: var(--paper-2); padding: 22px 0 30px; }
.search-form__label { display: block; margin-bottom: .5rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.search-form__row { display: flex; gap: 10px; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border: 1.5px solid var(--line-2); border-radius: 999px;
	background: #fff; font: inherit; font-size: 1.05rem; color: var(--ink);
}
.search-form__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(233, 180, 76, .45); }

/* Widgets that print code (Header / Footer code) should take no space */
.masthead + .textwidget,
.masthead + .widget_custom_html { display: contents; }

.site-main { display: block; padding-top: 14px; }

/* Front page: "On the stove" ---------------------------------------------- */
.stove {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
	gap: clamp(28px, 6vw, 80px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px);
}
.stove__media { position: relative; display: block; isolation: isolate; }
.stove__media::before {
	content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
	border-radius: 999px 999px 28px 28px; background: var(--butter);
	background-image: radial-gradient(rgba(42, 31, 26, .12) 1.2px, transparent 1.4px); background-size: 12px 12px;
}
.stove__media img,
.stove__media .card__tile {
	width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 999px 999px 28px 28px; border: 6px solid var(--paper-2);
	box-shadow: var(--shadow);
}
.stove__steam { position: absolute; top: -34px; left: 50%; display: flex; gap: 14px; transform: translateX(-50%); }
.stove__steam i {
	display: block; width: 10px; height: 40px; border-radius: 10px;
	border-left: 3px solid var(--ink-3); opacity: 0; animation: steam 3.6s ease-in-out infinite;
}
.stove__steam i:nth-child(2) { animation-delay: .9s; height: 50px; }
.stove__steam i:nth-child(3) { animation-delay: 1.8s; }
@keyframes steam {
	0% { opacity: 0; transform: translateY(14px) skewX(0); }
	40% { opacity: .55; }
	100% { opacity: 0; transform: translateY(-16px) skewX(-14deg); }
}
.stove__title { margin: 0 0 .45em; font-size: clamp(2.3rem, 5.2vw, 4.3rem); line-height: 1.02; font-weight: 640; font-variation-settings: "opsz" 144; letter-spacing: -.025em; }
.stove__title-link { color: inherit; text-decoration: none; background: linear-gradient(var(--butter-2), var(--butter-2)) 0 88% / 0 .28em no-repeat; transition: background-size .45s var(--ease); }
.stove__title-link:hover { color: inherit; background-size: 100% .28em; }
.stove__excerpt { max-width: 34rem; font-size: 1.15rem; color: var(--ink-2); }
.stove__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 1.6rem; font-size: .9rem; font-weight: 500; color: var(--ink-3); }
.stove__meta span { display: inline-flex; align-items: center; gap: .4em; }

.menu-card {
	position: relative; margin-top: 2.4rem; padding: 22px 24px 14px; border-radius: 6px;
	background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.menu-card::before {
	content: ""; position: absolute; inset: 7px; border: 1px dashed var(--line-2); border-radius: 3px; pointer-events: none;
}
.menu-card__title { margin: 0 0 .6rem; text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--paprika); }
.menu-card__list { margin: 0; padding: 0; list-style: none; counter-reset: menu; }
.menu-card__list li { counter-increment: menu; }
.menu-card__link {
	position: relative; display: flex; align-items: baseline; gap: 10px; padding: 10px 2px; color: var(--ink); text-decoration: none;
	border-top: 1px solid var(--line);
}
.menu-card__list li:first-child .menu-card__link { border-top: 0; }
.menu-card__link::before { content: counter(menu, upper-roman) "."; flex: none; width: 2.1em; font-family: var(--font-display); font-weight: 600; color: var(--ink-3); }
.menu-card__name { font-family: var(--font-display); font-weight: 560; font-size: 1.06rem; line-height: 1.3; }
.menu-card__dots { flex: 1; min-width: 18px; border-bottom: 2px dotted var(--line-2); transform: translateY(-4px); }
.menu-card__time { flex: none; font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.menu-card__link:hover .menu-card__name { color: var(--paprika-2); }

/* Listing headers ---------------------------------------------------------- */
.page-head { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head__title { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
.page-head__desc { max-width: 42rem; margin-top: 1rem; color: var(--ink-2); }

/* Recipe box grid ---------------------------------------------------------- */
.box { padding-bottom: clamp(56px, 8vw, 104px); }
.box__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 26px; }

.card { position: relative; padding-top: 16px; }
.card__link {
	position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px;
	background: var(--paper-2); border: 1px solid var(--line); border-radius: 0 16px 16px 16px;
	color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:nth-child(4n+2) .card__link { --tilt: .5deg; }
.card:nth-child(4n+3) .card__link { --tilt: -.6deg; }
.card__link:hover { color: var(--ink); transform: translateY(-5px) rotate(var(--tilt, -.4deg)); box-shadow: var(--shadow-lift); }
.card__tab {
	position: absolute; left: -1px; top: -27px; height: 28px; padding: 0 14px; display: inline-flex; align-items: center;
	background: var(--paper-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
	font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--paprika);
}
.card__media { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: var(--paper-3); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__link:hover .card__img { transform: scale(1.05); }
.card__body {
	display: flex; flex-direction: column; flex: 1; padding: 16px 8px 8px; margin-top: 10px;
	border-top: 2px solid rgba(178, 63, 37, .55);
	background-image: repeating-linear-gradient(transparent 0 27px, rgba(96, 140, 180, .16) 27px 28px);
	background-position: 0 12px;
}
.card__label { margin-bottom: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--okra); }
.card__title { display: block; margin-bottom: .5rem; font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; line-height: 1.2; font-variation-settings: "opsz" 48; }
.card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .9rem; font-size: .93rem; line-height: 28px; color: var(--ink-2); }
.card__meta { display: inline-flex; align-items: center; gap: .4em; margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--ink-3); }

/* Typographic tile when a post has no picture at all */
.card__tile { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 4 / 3; color: var(--cream); }
.card__tile span { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 5rem); font-style: italic; line-height: 1; text-shadow: 3px 3px 0 rgba(0, 0, 0, .15); }
.card__tile--1 { background: var(--paprika) radial-gradient(rgba(255, 255, 255, .14) 2px, transparent 2.5px) 0 0 / 16px 16px; }
.card__tile--2 { background: var(--okra) repeating-linear-gradient(45deg, rgba(255, 255, 255, .09) 0 8px, transparent 8px 16px); }
.card__tile--3 { background: var(--ink) radial-gradient(rgba(233, 180, 76, .25) 2px, transparent 2.5px) 0 0 / 14px 14px; }
.card__tile--4 { background-color: #c98a2b; background-image: linear-gradient(90deg, rgba(255, 255, 255, .14) 50%, transparent 50%), linear-gradient(rgba(255, 255, 255, .14) 50%, transparent 50%); background-size: 18px 18px; }

/* Pagination --------------------------------------------------------------- */
.pager { margin-top: 56px; }
.pager__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px;
	border: 1.5px solid var(--line-2); font-weight: 700; color: var(--ink); text-decoration: none; transition: .2s;
}
.pager a.page-numbers:hover { border-color: var(--ink); background: var(--paper-2); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pager .page-numbers.dots { border-color: transparent; }

/* Popular recipes: plates on a dark table --------------------------------- */
.popular {
	position: relative; margin: 14px 0; padding: clamp(64px, 8vw, 100px) 0 clamp(64px, 8vw, 96px);
	background: var(--ink); color: var(--cream);
	background-image: radial-gradient(rgba(255, 244, 226, .05) 1px, transparent 1.2px); background-size: 18px 18px;
}
.popular::before { top: -14px; background-image: radial-gradient(circle at 14px 14px, var(--ink) 13px, transparent 13.5px); }
.popular::after { bottom: -14px; background-image: radial-gradient(circle at 14px 0, var(--ink) 13px, transparent 13.5px); }
.popular .section-head { text-align: center; margin-inline: auto; }
.popular__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; margin: 0; padding: 0; list-style: none; }
.pop { min-width: 0; }
.pop__link { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; text-align: center; color: var(--cream); text-decoration: none; }
.pop__media {
	position: relative; display: block; width: min(100%, 230px); aspect-ratio: 1; padding: 10px; border-radius: 50%;
	background: var(--cream); box-shadow: 0 0 0 6px rgba(255, 244, 226, .12), 0 18px 30px -12px rgba(0, 0, 0, .7);
	transition: transform .5s var(--ease);
}
.pop__media::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(42, 31, 26, .12), inset 0 0 24px rgba(42, 31, 26, .25); pointer-events: none; }
.pop__media .card__img,
.pop__media .card__tile { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.pop__media .card__tile span { font-size: 3.2rem; }
.pop__link:hover .pop__media { transform: rotate(-8deg) scale(1.03); }
.pop__link:hover .card__img { transform: none; }
.pop__num {
	position: absolute; top: 4px; left: calc(50% - min(50%, 115px) + 4px); display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%; background: var(--butter); color: var(--ink);
	font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; box-shadow: 0 0 0 4px var(--ink); transform: rotate(-10deg);
}
.pop__title { display: block; margin-top: 18px; max-width: 16rem; font-family: var(--font-display); font-weight: 560; font-size: 1.12rem; line-height: 1.25; }
.pop__link:hover .pop__title { color: var(--butter-2); }
.pop__meta { margin-top: .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 244, 226, .6); }

/* Single recipe ------------------------------------------------------------ */
.recipe__head { max-width: calc(940px + var(--gutter) * 2); padding-top: clamp(40px, 6vw, 76px); padding-bottom: 28px; text-align: center; }
.recipe__head .kicker { justify-content: center; }
.recipe__title { margin: 0 auto .4em; max-width: 18em; font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.04; font-weight: 640; font-variation-settings: "opsz" 144; letter-spacing: -.025em; text-wrap: balance; }
.recipe__dek { margin: 0 auto 1.4em; max-width: 38rem; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }
.recipe__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; font-size: .92rem; font-weight: 500; color: var(--ink-3); }
.recipe__meta-item { display: inline-flex; align-items: center; gap: .4em; }
.recipe__actions { display: inline-flex; gap: 8px; }

.recipe__hero { margin: 8px auto clamp(36px, 5vw, 60px); max-width: calc(1120px + var(--gutter) * 2); }
.recipe__hero-img { width: 100%; max-height: 720px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px; border: 8px solid var(--paper-2); box-shadow: var(--shadow); }
.recipe__hero figcaption { margin-top: .7rem; text-align: center; font-size: .85rem; color: var(--ink-3); }

.recipe__layout { max-width: calc(760px + var(--gutter) * 2); padding-bottom: clamp(48px, 6vw, 80px); }
.recipe__layout.has-rail { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; max-width: calc(1046px + var(--gutter) * 2); }
.recipe__body { min-width: 0; }

.rail { position: relative; }
.rail__box { position: sticky; top: 24px; padding: 18px 18px 12px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.rail__title { cursor: pointer; list-style: none; margin-bottom: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--okra); }
.rail__title::-webkit-details-marker { display: none; }
.rail__list { margin: 0; padding: 0; list-style: none; counter-reset: rail; }
.rail__list li { counter-increment: rail; }
.rail__link {
	display: flex; gap: .6em; padding: 8px 0 8px 12px; border-left: 2px solid var(--line); font-size: .92rem; line-height: 1.35; color: var(--ink-2); text-decoration: none;
	transition: border-color .2s, color .2s;
}
.rail__link::before { content: counter(rail, decimal-leading-zero); font-weight: 700; font-size: .75rem; color: var(--ink-3); padding-top: .12em; }
.rail__link:hover,
.rail__link.is-active { border-color: var(--paprika); color: var(--ink); }

/* Ad / widget slots */
.slot { margin: 0 0 2rem; }
.slot--bottom { margin: 2.5rem 0 0; }
.slot-widget + .slot-widget { margin-top: 1rem; }
.slot-widget__title { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-bottom: .4rem; }

/* Entry content ------------------------------------------------------------ */
.entry { font-size: 1.125rem; line-height: 1.78; }
.entry > * { margin-top: 0; margin-bottom: 1.3em; }
.entry > p:first-of-type::first-letter {
	float: left; margin: .06em .12em 0 0; font-family: var(--font-display); font-weight: 700; font-size: 4.3em; line-height: .8; color: var(--paprika);
}
.entry h2 { position: relative; margin-top: 2.2em; padding-bottom: .35em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.entry h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; border-radius: 6px; background: var(--butter); background-image: radial-gradient(circle at 3px 3px, var(--paprika) 2.4px, transparent 2.8px); background-size: 14px 6px; background-repeat: repeat-x; }
.entry h3 { margin-top: 1.8em; font-size: 1.4rem; }
.entry h4 { margin-top: 1.6em; font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.entry a { color: var(--paprika-2); text-decoration-color: rgba(178, 63, 37, .45); text-decoration-thickness: 2px; }
.entry a:hover { text-decoration-color: currentColor; }
.entry img { border-radius: 16px; }
.entry figure { margin-inline: 0; }
.entry figcaption { margin-top: .5rem; font-size: .85rem; color: var(--ink-3); text-align: center; }
.entry .alignwide { margin-inline: calc(-1 * min(120px, 8vw)); max-width: none; }
.entry .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry .aligncenter { margin-inline: auto; }

.entry ul { padding-left: 0; list-style: none; }
.entry ul li { position: relative; padding-left: 1.6em; margin-bottom: .5em; }
.entry ul li::before { content: ""; position: absolute; left: .3em; top: .7em; width: .5em; height: .5em; border-radius: 50%; background: var(--paprika); }

.entry ol { padding-left: 0; list-style: none; counter-reset: step; }
.entry ol > li { position: relative; counter-increment: step; padding: .1em 0 .2em 3.1em; margin-bottom: 1.1em; min-height: 2.3em; }
.entry ol > li::before {
	content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%;
	background: var(--ink); color: var(--cream); font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1;
}

.entry ul.is-checklist { padding: 16px 20px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.entry ul.is-checklist li { cursor: pointer; padding: .35em 0 .35em 2.2em; margin: 0; border-bottom: 1px dashed var(--line); transition: color .2s; user-select: none; }
.entry ul.is-checklist li:last-child { border-bottom: 0; }
.entry ul.is-checklist li::before {
	left: 0; top: .62em; width: 1.15em; height: 1.15em; border-radius: 5px; background: #fff; border: 2px solid var(--line-2); transition: .2s;
}
.entry ul.is-checklist li.is-done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--paprika); }
.entry ul.is-checklist li.is-done::before {
	background: var(--okra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
	border-color: var(--okra);
}

.entry blockquote {
	position: relative; margin-inline: 0; padding: 22px 26px 22px 30px; border-radius: 4px 18px 18px 4px;
	background: var(--butter-2); border-left: 6px solid var(--butter); font-family: var(--font-display); font-size: 1.2rem; line-height: 1.55; font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .6em; font-family: var(--font-body); font-size: .85rem; font-style: normal; font-weight: 700; color: var(--ink-2); }
.entry hr { border: 0; height: 14px; margin: 2.6em auto; width: 120px; background: radial-gradient(circle, var(--line-2) 3px, transparent 3.5px) 0 50% / 20px 14px repeat-x; }
.entry table { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--paper-2); border-radius: 12px; overflow: hidden; }
.entry th, .entry td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry th { background: var(--paper-3); font-weight: 700; }
.entry pre, .entry code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.entry pre { padding: 16px; overflow-x: auto; background: var(--skillet); color: var(--cream); border-radius: 12px; }
.entry iframe { max-width: 100%; border-radius: 12px; }
.entry .wp-block-image img { height: auto; }
.page-links { margin-top: 2em; font-weight: 700; display: flex; gap: 8px; }

/* Previous / next */
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3rem; }
.neighbors__link {
	display: flex; flex-direction: column; gap: .3em; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line-2);
	color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s;
}
.neighbors__link:hover { border-color: var(--ink); background: var(--paper-2); color: var(--ink); }
.neighbors__link--next { text-align: right; grid-column: 2; }
.neighbors__dir { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--paprika); }
.neighbors__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }

/* Comments ----------------------------------------------------------------- */
.talk { max-width: calc(760px + var(--gutter) * 2); padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.comments__title { font-size: 1.7rem; }
.comments__list, .comments__list .children { margin: 0 0 2rem; padding: 0; list-style: none; }
.comments__list .children { margin: 1rem 0 0 1.6rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.comments__list .comment-body { padding: 18px 20px; margin-bottom: 1rem; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .8rem; margin: .2em 0 .6em; }
.comment-metadata a { color: var(--ink-3); text-decoration: none; }
.reply a { font-size: .85rem; font-weight: 700; }
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 700; font-size: .9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font: inherit; color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(233, 180, 76, .45); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--ink-3); }

/* Empty / 404 -------------------------------------------------------------- */
.empty { max-width: calc(720px + var(--gutter) * 2); padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); text-align: center; }
.empty .kicker { justify-content: center; }
.empty .search-form { margin-top: 1.8rem; text-align: left; }
.empty__big { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 .2em; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--ink); }
.empty__pan { position: relative; width: .8em; height: .8em; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 .1em #4a382e; }
.empty__pan::after { content: ""; position: absolute; top: 50%; right: -.45em; width: .5em; height: .12em; border-radius: .1em; background: var(--ink); transform: translateY(-50%); }

/* Footer ------------------------------------------------------------------- */
.foot { position: relative; margin-top: 14px; background: var(--skillet); color: rgba(255, 244, 226, .78); }
.foot::before { top: -14px; background-image: radial-gradient(circle at 14px 14px, var(--skillet) 13px, transparent 13.5px); }
/* When the popular block is the last thing on the page it runs straight into the footer */
.site-main > .popular:last-child { margin-bottom: 0; border-bottom: 1px solid rgba(255, 244, 226, .1); }
.site-main > .popular:last-child::after { display: none; }
.site-main:has(> .popular:last-child) + .foot { margin-top: 0; }
.site-main:has(> .popular:last-child) + .foot::before { display: none; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; padding-top: 64px; padding-bottom: 40px; }
.foot__brand { max-width: 26rem; }
.foot .brand__img { height: 48px; }
.foot__note { margin: 1rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.5; }
.foot-nav__list { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0; padding: 0; list-style: none; }
.foot-nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
	color: var(--cream); font-size: .92rem; font-weight: 500; text-decoration: none; text-transform: none; letter-spacing: 0;
	border: 1px solid rgba(255, 244, 226, .16); transition: background-color .2s, border-color .2s;
}
.foot-nav__list a:hover { color: var(--cream); background: rgba(255, 244, 226, .08); border-color: rgba(255, 244, 226, .4); }
.foot__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 244, 226, .12); font-size: .88rem; }
.foot__copy { margin: 0; }
.to-top {
	display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 16px; border-radius: 999px;
	border: 1px solid rgba(255, 244, 226, .25); background: transparent; color: var(--cream); font-size: .85rem; font-weight: 700;
}
.to-top:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.foot :focus-visible { outline-color: var(--butter); }
.popular :focus-visible { outline-color: var(--butter); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
	.box__grid,
	.popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.masthead__tagline { display: none; }
}

@media (max-width: 900px) {
	.stove { grid-template-columns: 1fr; }
	.stove__media { max-width: 520px; margin-inline: auto 22px; }
	.recipe__layout.has-rail { grid-template-columns: 1fr; gap: 24px; }
	.rail__box { position: static; }
	.rail__box:not([open]) { padding-bottom: 10px; }
}

@media (max-width: 820px) {
	.tool-btn--menu { display: inline-flex; }
	.tool-btn__label { display: none; }
	.tool-btn { padding: 0; justify-content: center; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 30; padding: 12px var(--gutter) 26px;
		background: var(--paper-2); border-top: 1px dashed var(--line-2); box-shadow: 0 20px 30px -20px rgba(42, 31, 26, .35);
		display: none;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__list a { width: 100%; font-size: 1rem; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
	.masthead__inner { min-height: 76px; }
	.brand__img { height: 42px; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.box__grid { grid-template-columns: 1fr; gap: 40px; }
	.popular__grid { gap: 36px 16px; }
	.pop__title { font-size: 1rem; }
	.pop__num { width: 38px; height: 38px; font-size: 1.05rem; }
	.entry { font-size: 1.06rem; }
	.entry .alignwide { margin-inline: 0; }
	.entry .alignleft, .entry .alignright { float: none; margin: 0 0 1em; }
	.neighbors { grid-template-columns: 1fr; }
	.neighbors__link--next { grid-column: auto; }
	.recipe__hero-img { border-width: 5px; border-radius: 20px; }
	.search-form__row { flex-direction: column; }
	.foot__base { flex-direction: column-reverse; align-items: flex-start; }
	.menu-card { padding: 18px 16px 10px; }
}

@media (max-width: 359px) {
	.popular__grid { grid-template-columns: 1fr; }
}

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

/* Print: just the recipe --------------------------------------------------- */
@media print {
	.masthead, .foot, .popular, .rail, .slot, .talk, .neighbors, .recipe__actions, .skip-link, .search-drawer { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.recipe__hero-img { max-height: 320px; border: 0; box-shadow: none; }
	.recipe__layout.has-rail { display: block; }
	.entry a { color: inherit; text-decoration: none; }
	.entry ul.is-checklist { border: 0; background: none; padding: 0; }
}
