/*
Theme Name: Ogarz Kitchen
Theme URI: https://ogarz.com/
Author: Ogarz
Description: A warm, made-from-scratch theme for Ogarz comfort food recipes. Enamel-pot colours, gingham tablecloth edges, arched "oven window" photos, a recipe-box card grid and a Popular Topics block under every post. Includes a "Header" widget area printed right after </header> for Google Analytics / AdSense code.
Version: 1.0.0
Requires at least: 6.0
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: ogarz
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, two-columns
*/

/* ---------- Fonts (bundled, SIL OFL) ---------- */
@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-latin-wght-italic.woff2") format("woff2-variations"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--oat: #F4ECDD;
	--oat-2: #EADFCB;
	--cream: #FFFAF1;
	--ink: #231B16;
	--ink-2: #54473D;
	--paprika: #B83A24;
	--paprika-dk: #8F2B19;
	--mustard: #D99A1E;
	--mustard-lt: #F2C76B;
	--herb: #3E5B45;
	--plum: #6B3A4B;

	--f-display: "Young Serif", "Georgia", serif;
	--f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 10px;
	--line: 2px solid var(--ink);
	--lift: 6px 6px 0 var(--ink);
	--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(--oat);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mustard-lt); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.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; background: var(--ink); color: var(--oat); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.eyebrow {
	font-family: var(--f-mono);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--paprika);
	margin: 0 0 .9rem;
	display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow__no { color: var(--ink-2); letter-spacing: .06em; }

.btn, .search-form__btn, .comment-form .submit {
	display: inline-flex; align-items: center; gap: .5rem;
	font: 600 1rem/1 var(--f-body);
	background: var(--paprika); color: var(--cream);
	border: var(--line); border-radius: 999px;
	padding: .95rem 1.4rem;
	box-shadow: 4px 4px 0 var(--ink);
	cursor: pointer; text-decoration: none;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover, .search-form__btn:hover, .comment-form .submit:hover,
a:hover > .btn { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--paprika-dk); }

/* ---------- Tablecloth (gingham edge) ---------- */
.tablecloth {
	height: 14px;
	background-color: var(--cream);
	background-image:
		linear-gradient(90deg, rgba(184, 58, 36, .5) 50%, transparent 50%),
		linear-gradient(rgba(184, 58, 36, .5) 50%, transparent 50%);
	background-size: 14px 14px;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--oat); border-bottom: var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__img { width: auto; height: 46px; }
.primary-nav { margin-left: .5rem; }
.primary-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-weight: 600; padding: .35rem 0; background: linear-gradient(var(--paprika), var(--paprika)) 0 100% / 0 2px no-repeat; transition: background-size .2s var(--ease); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background-size: 100% 2px; }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.pill {
	display: inline-flex; align-items: center; gap: .45rem;
	min-height: 44px; padding: 0 1.05rem;
	border: var(--line); border-radius: 999px;
	font-weight: 700; font-size: .95rem; text-decoration: none;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pill--pop { background: var(--mustard); color: var(--ink); }
.pill--pop svg { color: var(--paprika); }
.pill:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center;
	background: var(--cream); color: var(--ink);
	border: var(--line); border-radius: 50%; cursor: pointer;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.search-drawer { border-top: 2px dashed rgba(35, 27, 22, .25); background: var(--oat-2); padding: 1.25rem 0; }
.search-form { display: flex; gap: .6rem; max-width: 720px; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 52px;
	font: 500 1.05rem var(--f-body); color: var(--ink);
	background: var(--cream); border: var(--line); border-radius: 999px; padding: 0 1.25rem;
}
.search-form__input::placeholder { color: #85776b; }

/* ---------- Hero ---------- */
.hero {
	display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
	gap: clamp(2rem, 5vw, 5rem);
	padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.hero__title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.04; margin-bottom: 1.25rem; }
.hero__title a { text-decoration: none; background: linear-gradient(var(--mustard-lt), var(--mustard-lt)) 0 88% / 0 .32em no-repeat; transition: background-size .35s var(--ease); }
.hero__title a:hover { background-size: 100% .32em; }
.hero__excerpt { font-size: 1.18rem; color: var(--ink-2); max-width: 36ch; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; }
.hero__actions > a { text-decoration: none; }
.hero__meta { font-family: var(--f-mono); font-size: .85rem; color: var(--ink-2); }
.hero__media { position: relative; justify-self: center; width: min(100%, 480px); }
.hero__media > a { display: block; text-decoration: none; }
.arch {
	display: block; position: relative; overflow: hidden;
	aspect-ratio: 4 / 5;
	border: 3px solid var(--ink);
	border-radius: 999px 999px var(--r-lg) var(--r-lg);
	box-shadow: 12px 12px 0 var(--mustard), 12px 12px 0 3px var(--ink);
	background: var(--oat-2);
}
.arch img, .arch .thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hero__media a:hover .arch img { transform: scale(1.04); }
.hero__stamp {
	position: absolute; left: -22px; bottom: 34px;
	width: 112px; height: 112px; border-radius: 50%;
	display: grid; place-items: center; text-align: center;
	background: var(--paprika); color: var(--cream);
	border: 3px solid var(--ink);
	font: 500 .72rem/1.25 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
	transform: rotate(-14deg);
	outline: 2px dashed var(--cream); outline-offset: -11px;
}
.hero__stamp span { width: 76px; }

/* ---------- Section head ---------- */
.feed { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head__title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .35rem; }
.section-head__desc { color: var(--ink-2); max-width: 60ch; }
.squiggle { width: 120px; color: var(--paprika); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.card > a {
	display: flex; flex-direction: column; height: 100%;
	text-decoration: none; color: inherit;
	background: var(--cream);
	border: var(--line); border-radius: var(--r-lg);
	padding: 12px;
	box-shadow: var(--lift);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card > a:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card__media {
	display: block; overflow: hidden; aspect-ratio: 5 / 4;
	border-radius: 220px 220px var(--r-md) var(--r-md);
	background: var(--oat-2);
	border: 2px solid var(--ink);
}
.card__media img, .card__media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card > a:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem .6rem .5rem; flex: 1; }
.card__no { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; color: var(--paprika); }
.card__title { font-family: var(--f-display); font-size: 1.38rem; line-height: 1.18; text-wrap: balance; }
.card > a:hover .card__title { text-decoration: underline wavy var(--paprika) 1.5px; text-underline-offset: 5px; }
.card__excerpt { color: var(--ink-2); font-size: .98rem; }
.card__meta {
	margin-top: auto; padding-top: .85rem;
	border-top: 2px dashed rgba(35, 27, 22, .18);
	display: flex; justify-content: space-between; gap: 1rem;
	font-family: var(--f-mono); font-size: .76rem; color: var(--ink-2);
}

/* While photos load, media boxes show a dotted cloth instead of a flat block. */
.card__media, .ticket__media, .arch {
	background-color: var(--oat-2);
	background-image: radial-gradient(rgba(184, 58, 36, .16) 2px, transparent 2.5px);
	background-size: 14px 14px;
}

/* Placeholder for posts without a featured image (never an empty box). */
.thumb-fallback {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%;
	color: var(--cream);
	background-image: radial-gradient(rgba(255, 250, 241, .18) 2px, transparent 2.5px);
	background-size: 16px 16px;
}
.thumb-fallback span { font: 400 clamp(3rem, 8vw, 5rem)/1 var(--f-display); }
.thumb-fallback--paprika { background-color: var(--paprika); }
.thumb-fallback--mustard { background-color: var(--mustard); color: var(--ink); }
.thumb-fallback--herb { background-color: var(--herb); }
.thumb-fallback--plum { background-color: var(--plum); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pager .page-numbers {
	min-width: 46px; height: 46px; padding: 0 .9rem;
	display: inline-grid; place-items: center;
	border: var(--line); border-radius: 999px;
	background: var(--cream); text-decoration: none; font-weight: 700;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pager a.page-numbers:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.pager .current { background: var(--ink); color: var(--oat); }
.pager .dots { border-style: dashed; }

/* ---------- Popular Topics ---------- */
.popular {
	position: relative;
	background: var(--ink); color: var(--oat);
	border-radius: 44px 44px 0 0;
	padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(3rem, 6vw, 5rem);
	margin-top: clamp(1rem, 3vw, 2rem);
}
.popular::before {
	content: ""; position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
	width: 92px; height: 18px; border-radius: 9px;
	background: var(--mustard); border: 2px solid var(--ink);
}
.popular__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.popular__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.popular .eyebrow { color: var(--mustard); justify-content: center; }
.popular .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.popular__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--cream); margin: 0; }
.popular__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem);
}
.ticket > a {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--cream); color: var(--ink); text-decoration: none;
	border-radius: var(--r-md);
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.ticket > a:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--mustard); }
.ticket__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--oat-2); }
.ticket__media img, .ticket__media .thumb-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ticket > a:hover .ticket__media img { transform: scale(1.06); }
.ticket__body {
	position: relative; flex: 1;
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: .75rem;
	padding: 1rem 1rem 1.05rem;
	border-top: 2px dashed rgba(35, 27, 22, .3);
}
/* punched notches on the perforation line */
.ticket__body::before, .ticket__body::after {
	content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
}
.ticket__body::before { left: -9px; }
.ticket__body::after { right: -9px; }
.ticket__num {
	grid-row: 1 / span 2;
	font: 500 .78rem/1 var(--f-mono);
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--paprika); color: var(--cream);
}
.ticket__title { font-family: var(--f-display); font-size: 1.06rem; line-height: 1.25; text-wrap: balance; }
.ticket__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); margin-top: .45rem; align-self: end; }

/* ---------- Single ---------- */
.entry { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.entry__head { width: min(100% - 2 * var(--gutter), 900px); margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.entry__kicker { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.entry__no { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; color: var(--paprika); }
.chip {
	display: inline-flex; align-items: center; min-height: 32px; padding: 0 .85rem;
	border: 2px solid var(--ink); border-radius: 999px;
	background: var(--herb); color: var(--cream);
	font: 500 .74rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.chip:hover { background: var(--ink); }
.entry__title { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.06; margin-bottom: 1rem; }
.entry__lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; margin: 0 auto 1.25rem; }
.entry__meta {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem;
	font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2);
}
.entry__meta li + li::before { content: "✦"; color: var(--mustard); margin-right: 1.5rem; margin-left: -.1rem; font-size: .7rem; }
.entry__meta li span { color: var(--paprika); }
.entry__media { width: min(100% - 2 * var(--gutter), 1080px); margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); }
.entry__media img {
	width: 100%; max-height: 640px; object-fit: cover;
	border: 3px solid var(--ink); border-radius: 260px 260px var(--r-lg) var(--r-lg);
	box-shadow: 12px 12px 0 var(--herb), 12px 12px 0 3px var(--ink);
}
.entry__media figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); text-align: center; margin-top: 1.25rem; }
.entry--page .entry__head { margin-bottom: 2rem; }

/* ---------- Prose ---------- */
.prose { width: min(100% - 2 * var(--gutter), 740px); margin-inline: auto; font-size: 1.125rem; line-height: 1.78; }
.prose > * { margin-top: 0; margin-bottom: 1.3em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 2.2em; padding-top: .9em; position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 6px; border-radius: 3px; background: var(--paprika); box-shadow: 64px 0 0 var(--mustard), 128px 0 0 var(--herb); }
.prose h3 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h4 { font-family: var(--f-body); font-weight: 800; font-size: 1.1rem; margin-top: 1.6em; }
.prose a { color: var(--paprika-dk); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-style: wavy; }
.prose img { border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); margin-top: .6rem; text-align: center; }
.prose ul { padding-left: 1.35em; }
.prose ul li::marker { color: var(--paprika); content: "● "; font-size: .8em; }
.prose ol { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 3.1rem; margin-bottom: .9em; min-height: 2.2rem; }
.prose ol > li::before {
	content: counter(step); position: absolute; left: 0; top: .1rem;
	width: 2.1rem; height: 2.1rem; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: var(--mustard-lt);
	font: 500 .9rem/1 var(--f-mono);
}
.prose li { margin-bottom: .45em; }
.prose blockquote {
	margin-inline: 0; padding: 1.25rem 1.5rem;
	background: var(--cream); border: var(--line); border-left: 10px solid var(--herb); border-radius: var(--r-md);
	font-family: var(--f-display); font-size: 1.25rem; line-height: 1.5;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; background: var(--cream); border: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.prose th, .prose td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--oat-2); }
.prose th { background: var(--ink); color: var(--oat); font-weight: 700; }
.prose hr { border: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M0 7c5-6 10-6 15 0s10 6 15 0 7-4 10-2' fill='none' stroke='%23B83A24' stroke-width='2.5'/%3E%3C/svg%3E") center / 40px 14px repeat-x; max-width: 240px; margin: 2.5em auto; }
.prose pre, .prose code { font-family: var(--f-mono); font-size: .92em; }
.prose code { background: var(--oat-2); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--ink); color: var(--oat); padding: 1.1rem 1.25rem; border-radius: var(--r-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose .alignwide { width: min(100vw - 2 * var(--gutter), 1080px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.wp-caption-text, .wp-element-caption { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); }
.page-links { font-family: var(--f-mono); }

.below-post { width: min(100% - 2 * var(--gutter), 740px); margin: 2rem auto 0; }

.post-nav {
	width: min(100% - 2 * var(--gutter), 900px); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
	display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.post-nav__item > a {
	display: flex; flex-direction: column; gap: .4rem; height: 100%;
	padding: 1.15rem 1.35rem; text-decoration: none;
	background: var(--cream); border: var(--line); border-radius: var(--r-md);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-nav__item > a:hover { transform: translate(-3px, -3px); box-shadow: var(--lift); }
.post-nav__item--next { text-align: right; grid-column: 2; }
.post-nav__label { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paprika); }
.post-nav__title { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.25; }

/* ---------- Comments ---------- */
.comments { width: min(100% - 2 * var(--gutter), 740px); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.single .comments, .page .comments { background: transparent; }
.comments__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(1rem, 4vw, 2.5rem); border-left: 2px dashed rgba(35, 27, 22, .2); margin-left: 1.25rem; }
.comment__card { background: var(--cream); border: var(--line); border-radius: var(--r-md); padding: 1.15rem 1.25rem; margin-bottom: 1rem; }
.comment__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.comment__avatar { border-radius: 50%; border: 2px solid var(--ink); }
.comment__author { display: block; font-weight: 800; }
.comment__date { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.comment__text p:last-child { margin-bottom: 0; }
.comment__moderation { font-family: var(--f-mono); font-size: .8rem; color: var(--paprika); }
.comment__reply a { font-family: var(--f-mono); font-size: .8rem; color: var(--paprika-dk); text-transform: uppercase; letter-spacing: .08em; }
.comment-respond { margin-top: 2.5rem; }
.comment-form label { display: block; font-weight: 700; margin-bottom: .35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: 1rem var(--f-body); color: var(--ink);
	background: var(--cream); border: var(--line); border-radius: var(--r-sm); padding: .8rem 1rem;
}
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Empty / 404 ---------- */
.empty { padding: clamp(3rem, 8vw, 6rem) 0; max-width: 720px; }
.empty .search-form { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--oat); }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -39px; width: 100%; height: 40px; color: var(--ink); }
.popular + .site-footer .site-footer__wave, .popular ~ .site-footer .site-footer__wave { display: none; }
.site-footer__inner {
	display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem;
	padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
	border-bottom: 2px dashed rgba(244, 236, 221, .2);
}
.site-footer .brand__img { height: 50px; }
.site-footer__tag { margin: 1rem 0 0; color: #cfc3b2; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--oat); }
.footer-links a:hover { color: var(--mustard-lt); text-decoration: underline wavy; text-underline-offset: 5px; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1.25rem 0 1.5rem; font-family: var(--f-mono); font-size: .78rem; color: #cfc3b2; }
.tablecloth--bottom { background-color: var(--ink); background-image: linear-gradient(90deg, rgba(217, 154, 30, .55) 50%, transparent 50%), linear-gradient(rgba(217, 154, 30, .55) 50%, transparent 50%); }

/* main + footer spacing when the last block is not the dark Popular band */
.site-main > :last-child:not(.popular) { margin-bottom: 40px; }
.single .site-main > .comments:last-child { margin-bottom: 40px; }

/* ---------- WordPress bits ---------- */
.sticky .card__no::after { content: " · Pinned"; }
.bypostauthor > .comment__card { border-color: var(--paprika); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.popular__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.hero { grid-template-columns: 1fr; }
	.hero__media { order: -1; width: min(100%, 420px); }
	.primary-nav { display: none; }
}
@media (max-width: 760px) {
	.popular__grid { grid-template-columns: repeat(2, 1fr); }
	.ticket__body { grid-template-columns: 1fr; padding: .85rem .8rem .9rem; }
	.ticket__num { grid-row: auto; width: 28px; height: 28px; font-size: .7rem; margin-bottom: .45rem; }
	.ticket__title { font-size: .98rem; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { grid-column: auto; }
	.entry__media img { border-radius: 160px 160px var(--r-md) var(--r-md); box-shadow: 7px 7px 0 var(--herb), 7px 7px 0 3px var(--ink); }
}
@media (max-width: 620px) {
	.cards { grid-template-columns: 1fr; }
	.site-header__bar { min-height: 70px; gap: .75rem; }
	.brand__img { height: 36px; }
	.pill--pop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pill--pop { width: 44px; padding: 0; justify-content: center; }
	.hero__stamp { width: 92px; height: 92px; left: -6px; font-size: .62rem; }
	.hero__stamp span { width: 62px; }
	.search-form { flex-direction: column; }
	.prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 0 0 1.3em; }
}

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

@media print {
	.site-header, .popular, .site-footer, .comments, .post-nav, .tablecloth { display: none !important; }
	body { background: #fff; }
}
