/*
Theme Name: Yarput Almanac
Theme URI: https://yarput.com/
Author: Yarput
Author URI: https://yarput.com/
Description: A garden-almanac theme for a vegetarian recipe blog. Arched "window" photography, a market-awning footer, self-hosted Fraunces + Figtree type, a randomised Popular Topics shelf (8+ cards under every post) and a Header widget area printed right after the closing header tag for Google Analytics / AdSense code.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yarput
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Fonts (self-hosted, SIL OFL)
   ========================================================================== */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }

/* ==========================================================================
   2. Tokens  (primitive → semantic, daisyUI-style naming)
   ========================================================================== */
:root {
	/* primitives */
	--oat: #F3ECDD;
	--oat-2: #EADFC8;
	--cream: #FBF7EE;
	--ink: #1E2A1F;
	--ink-soft: #4A5548;
	--beet: #8C2346;
	--beet-deep: #6B1A35;
	--leaf: #3E6B48;
	--turmeric: #E2A03F;
	--tomato: #C9532B;

	/* semantic */
	--color-base-100: var(--oat);
	--color-base-200: var(--oat-2);
	--color-base-300: #D9CBAE;
	--color-base-content: var(--ink);
	--color-primary: var(--beet);
	--color-primary-content: var(--cream);
	--color-secondary: var(--leaf);
	--color-accent: var(--turmeric);
	--color-neutral: var(--ink);
	--color-neutral-content: var(--oat);
	--muted: var(--ink-soft);
	--line: rgba(30, 42, 31, .16);

	/* type */
	--font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--step--1: clamp(.82rem, .8rem + .1vw, .88rem);
	--step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
	--step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
	--step-2: clamp(1.45rem, 1.25rem + .9vw, 1.95rem);
	--step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
	--step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);

	/* shape & space */
	--arch: 999px 999px 22px 22px;
	--radius: 18px;
	--gutter: clamp(16px, 4vw, 40px);
	--maxw: 1220px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--color-base-100) var(--grain);
	color: var(--color-base-content);
	font: 400 var(--step-0)/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--color-primary); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-accent); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--oat); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--oat); }

.eyebrow {
	font: 600 var(--step--1)/1 var(--font-body);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--color-primary);
	margin: 0 0 .9rem;
	display: inline-flex;
	align-items: center;
	gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 11px; background: currentColor; border-radius: 22px 22px 0 0; }

.btn {
	display: inline-flex; align-items: center; gap: .5em;
	min-height: 44px; padding: 0 1.15em;
	border-radius: 999px; border: 1.5px solid var(--ink);
	font: 600 .95rem/1 var(--font-body);
	text-decoration: none; cursor: pointer;
	background: transparent; color: var(--ink);
	transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--oat); }
.btn:active { transform: translateY(1px); }
.btn--beet { background: var(--beet); border-color: var(--beet); color: var(--cream); }
.btn--beet:hover { background: var(--beet-deep); border-color: var(--beet-deep); color: var(--cream); }
.btn--ghost { border-color: var(--line); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1.5px solid transparent; background: transparent; color: var(--ink);
	cursor: pointer; text-decoration: none;
	transition: background .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--color-base-200); color: var(--ink); }

.chip, .tag {
	display: inline-flex; align-items: center;
	font: 600 .74rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	padding: .5em .85em; border-radius: 999px;
	background: var(--color-base-200); color: var(--leaf);
	text-decoration: none;
}
.chip:hover, .tag:hover { background: var(--leaf); color: var(--cream); }

/* ==========================================================================
   4. Almanac strip + masthead
   ========================================================================== */
.almanac-strip { background: var(--ink); color: var(--oat); font-size: var(--step--1); }
.almanac-strip__inner { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.almanac-strip__season { background: var(--turmeric); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 3px 10px; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.almanac-strip__line { font-family: var(--font-display); font-style: italic; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.almanac-strip__date { margin-left: auto; opacity: .7; white-space: nowrap; }
@media (max-width: 560px) { .almanac-strip__date { display: none; } }

.masthead {
	position: sticky; top: 0; z-index: 40;
	border-bottom: 1px solid var(--ink);
	box-shadow: 0 3px 0 -2px var(--oat), 0 4px 0 -2px var(--ink);
}
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--oat) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead { top: 0; } }
.masthead__inner { display: flex; align-items: center; gap: 12px; min-height: 76px; }

.brand { margin: 0; line-height: 1; font-size: inherit; }
.brand__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__link:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; transition: transform .35s var(--ease); }
.brand__link:hover .brand__mark { transform: rotate(-6deg) translateY(-2px); }
.brand__word { font: 700 1.9rem/1 var(--font-display); letter-spacing: -.03em; }
.brand__img { max-height: 48px; width: auto; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list li { position: relative; }
.nav__link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
	font-weight: 600; font-size: .96rem; text-decoration: none; border-radius: 999px;
}
.nav__link:hover, .current-menu-item > .nav__link { background: var(--color-base-200); color: var(--ink); }
.nav__list .sub-menu { list-style: none; position: absolute; left: 0; top: 100%; min-width: 210px; padding: 8px; margin: 6px 0 0; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(30, 42, 31, .35); 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 .nav__link { width: 100%; }

.masthead__tools { display: flex; align-items: center; gap: 6px; }
.surprise .icon { color: var(--beet); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-grid; }
	.masthead__inner { min-height: 64px; }
	.brand { margin-right: auto; }
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); margin: 0;
		background: var(--cream); border-left: 1px solid var(--ink);
		padding: 92px 24px 24px; transform: translateX(100%);
		transition: transform .3s var(--ease), visibility 0s .3s; z-index: 60; overflow-y: auto; visibility: hidden;
	}
	.nav.is-open { visibility: visible; transition: transform .3s var(--ease); transform: none; box-shadow: -30px 0 60px -30px rgba(0,0,0,.35); }
	.nav__list { flex-direction: column; }
	.nav__link { font: 600 1.4rem/1.2 var(--font-display); padding: 10px 0; }
	.nav__link:hover { background: none; color: var(--beet); }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
	.surprise span { display: none; }
	.surprise { width: 44px; padding: 0; justify-content: center; border-color: transparent; }
	.nav-scrim { position: fixed; inset: 0; background: rgba(30,42,31,.35); z-index: 55; }
	body.nav-open .masthead { z-index: 65; }
	body.nav-open { overflow: hidden; }
}

/* Search sheet */
.search-sheet { border: 0; padding: 0; width: min(100% - 32px, 720px); margin: 12vh auto auto; background: var(--cream); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(30,42,31,.5); color: var(--ink); }
.search-sheet::backdrop { background: rgba(30, 42, 31, .55); backdrop-filter: blur(3px); }
.search-sheet__inner { position: relative; padding: 32px clamp(20px, 5vw, 44px) 36px; }
.search-sheet__close { position: absolute; right: 12px; top: 12px; margin: 0; }

.searchform { display: flex; align-items: center; gap: 8px; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 5px 5px 18px; max-width: 520px; }
.searchform .icon { flex: none; color: var(--muted); }
.searchform__input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 44px; outline: none; font-size: 1rem; }
.searchform__btn { border: 0; background: var(--ink); color: var(--oat); border-radius: 999px; min-height: 44px; padding: 0 20px; font-weight: 600; cursor: pointer; transition: background .2s; }
.searchform__btn:hover { background: var(--beet); }
.searchform:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--turmeric) 45%, transparent); }

/* Reading progress */
.read-progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--leaf), var(--turmeric), var(--beet)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ==========================================================================
   5. Home cover
   ========================================================================== */
.cover { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .cover { grid-template-columns: 1.05fr 1fr; } }
.cover__headline { font: 400 var(--step-4)/1.02 var(--font-display); letter-spacing: -.03em; margin: 0 0 28px; max-width: 14ch; }
.cover__headline::first-line { font-style: italic; color: var(--beet); }

.cover__lead { position: relative; padding-bottom: 72px; }
.cover__media { display: block; position: relative; aspect-ratio: 4 / 5; max-width: 470px; margin-left: auto; }
.cover__media::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1.5px solid var(--ink); border-radius: var(--arch); }
.cover__media .card__img, .cover__media .card__placeholder { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); }
.cover__card {
	position: absolute; left: 0; bottom: 0; width: min(92%, 400px);
	background: var(--cream); border: 1.5px solid var(--ink); border-radius: 22px;
	padding: 26px 24px 20px; box-shadow: 8px 8px 0 var(--ink);
}
.cover__title { font-size: var(--step-2); margin-bottom: .4em; }
.cover__title a { text-decoration: none; }
.cover__excerpt { color: var(--muted); font-size: .96rem; margin-bottom: .8em; }
.stamp {
	position: absolute; top: -18px; right: 18px; transform: rotate(4deg);
	background: var(--turmeric); color: var(--ink);
	font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
	padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--ink);
}

/* Pantry chips */
.pantry { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 8px 12px; border-block: 1px dashed var(--line); }
.pantry__label { font: italic 400 1.05rem/1 var(--font-display); color: var(--muted); }
.pantry__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pantry__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.pantry__chip:hover { background: var(--ink); color: var(--oat); }
.pantry__count { font-size: .72rem; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--color-base-200); color: var(--ink); }

/* ==========================================================================
   6. Ledger grid + card
   ========================================================================== */
.ledger { padding-block: clamp(36px, 6vw, 72px) 24px; }
.ledger__head { margin-bottom: clamp(24px, 4vw, 44px); display: grid; gap: 4px; }
.ledger__title { font-size: var(--step-3); margin: 0; }
.ledger__desc { color: var(--muted); max-width: 60ch; margin-top: 10px; }

.grid { display: grid; gap: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; gap: 16px; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; isolation: isolate; }
@media (max-width: 619px) { .card__media { aspect-ratio: 1 / 1; } }
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: var(--arch); border: 1.5px solid var(--ink); transform: translate(8px, 8px); z-index: -1; transition: transform .35s var(--ease); }
.card__img, .card__placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: var(--arch); background: var(--color-base-200); transition: transform .45s var(--ease); }
.card:hover .card__img, .card:hover .card__placeholder { transform: translate(-3px, -3px); }
.card:hover .card__media::after { transform: translate(12px, 12px); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__no { font: italic 400 1rem/1 var(--font-display); color: var(--beet); }
.card__title { font-size: var(--step-1); margin: 0; }
.card__title a { text-decoration: none; background: linear-gradient(var(--turmeric), var(--turmeric)) 0 92% / 0 30% no-repeat; transition: background-size .35s var(--ease); }
.card__title a:hover { color: var(--ink); background-size: 100% 30%; }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; }

.meta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* Placeholder art when a post has no image */
.card__placeholder { display: grid; place-items: center; position: relative; overflow: hidden; }
.card__placeholder.tone-beet { background: var(--beet); color: var(--oat); }
.card__placeholder.tone-leaf { background: var(--leaf); color: var(--oat); }
.card__placeholder.tone-turmeric { background: var(--turmeric); color: var(--ink); }
.card__placeholder.tone-tomato { background: var(--tomato); color: var(--cream); }
.card__sprout { width: 46%; opacity: .9; }
.card__initial { position: absolute; right: 10%; bottom: 6%; font: italic 400 3rem/1 var(--font-display); opacity: .35; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(36px, 5vw, 60px); }
.pager .page-numbers { white-space: nowrap; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); color: var(--oat); border-color: var(--ink); }
.pager .dots { border: 0; }

.empty { padding: 40px 0; }

/* ==========================================================================
   7. Popular Topics shelf
   ========================================================================== */
.popular {
	position: relative;
	margin-block: clamp(40px, 7vw, 88px);
	padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 48px);
	background: var(--beet);
	color: var(--cream);
	border-radius: 48px 48px 28px 28px;
	overflow: hidden;
}
.popular::before {
	content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 300px;
	border: 1.5px solid rgba(251, 247, 238, .25); border-radius: var(--arch); transform: rotate(14deg); pointer-events: none;
}
.popular__head { position: relative; margin-bottom: clamp(20px, 3vw, 32px); }
.popular .eyebrow { color: var(--turmeric); }
.popular__title { font-size: var(--step-3); color: var(--cream); margin: 0; }
.popular__grid {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 12px;
}
/* flex + grow: the last row always stretches, so there is never an empty slot */
.pop { flex: 1 1 calc(25% - 12px); min-width: min(100%, 250px); display: flex; }
.pop__link {
	flex: 1; display: flex; align-items: center; gap: 14px;
	padding: 12px 16px 12px 12px; min-height: 96px;
	background: var(--cream); color: var(--ink); text-decoration: none;
	border-radius: 18px; border: 1.5px solid transparent;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pop__link:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--turmeric); border-color: var(--ink); }
.pop__media { flex: none; width: 68px; height: 80px; }
.pop__media .card__img, .pop__media .card__placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 10px 10px; }
.pop__media .card__initial { display: none; }
.pop__media .card__sprout { width: 70%; }
.pop__text { display: grid; gap: 4px; min-width: 0; }
.pop__no { font: italic 400 .95rem/1 var(--font-display); color: var(--beet); }
.pop__title { font: 600 1rem/1.25 var(--font-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop__time { font-size: .75rem; color: var(--muted); font-weight: 500; }
@media (max-width: 560px) {
	.popular { border-radius: 32px 32px 20px 20px; }
	.popular__grid { gap: 10px; }
	.pop { flex-basis: calc(50% - 5px); min-width: 0; }
	.pop__link { flex-direction: column; align-items: flex-start; padding: 10px 10px 14px; gap: 10px; }
	.pop__media { width: 100%; height: auto; aspect-ratio: 1 / 1; }
	.pop__title { font-size: .95rem; }
}

/* ==========================================================================
   8. Single entry
   ========================================================================== */
.entry__head { max-width: 900px; text-align: center; padding-block: clamp(28px, 5vw, 64px) clamp(20px, 3vw, 36px); }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.crumbs__link { text-decoration: none; color: var(--leaf); }
.crumbs__sep { color: var(--muted); }
.entry__title { font-size: var(--step-4); letter-spacing: -.03em; line-height: 1.02; }
.entry__lede { font: italic 400 var(--step-1)/1.45 var(--font-display); color: var(--muted); max-width: 46ch; margin: 0 auto 1.2em; }
.entry__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; padding-top: 18px; border-top: 1px dashed var(--line); margin-top: 18px; }
.entry__tools { display: flex; align-items: center; gap: 4px; }

.entry__hero { margin: 0 auto clamp(28px, 5vw, 56px); }
.entry__img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: clamp(80px, 22vw, 320px) clamp(80px, 22vw, 320px) 28px 28px; }

.entry__body { max-width: 760px; }
.entry--page .entry__head { text-align: left; max-width: 760px; }

.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin: 0; }
.prose > p:first-of-type::first-letter {
	float: left; font: 700 4.4em/.8 var(--font-display); color: var(--beet);
	padding: .08em .1em 0 0;
}
.prose h2 { font-size: var(--step-2); margin-top: 2em; padding-top: .6em; border-top: 1.5px solid var(--ink); }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; color: var(--leaf); }
.prose a { color: var(--beet); text-decoration-color: color-mix(in srgb, var(--beet) 40%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.7em; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .5em; width: .72em; height: .72em; border-radius: 50%; background: var(--turmeric); border: 1.5px solid var(--ink); }
.prose ol { list-style: none; padding-left: 0; counter-reset: step; }
.prose ol > li { position: relative; counter-increment: step; padding-left: 3.1em; margin-bottom: 1em; min-height: 2.3em; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: -.1em; width: 2.2em; height: 2.4em; display: grid; place-items: center; font: 700 1em/1 var(--font-display); color: var(--cream); background: var(--beet); border-radius: 999px 999px 8px 8px; }
.prose img, .prose figure img { border-radius: 22px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .6em; }
.prose blockquote { margin-inline: 0; padding: 28px 30px; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 120px 120px 22px 22px; text-align: center; font: italic 400 var(--step-1)/1.45 var(--font-display); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 12px; background: radial-gradient(circle, var(--ink) 1.5px, transparent 2px) center / 18px 12px repeat-x; margin-block: 2.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6em .4em; text-align: left; }
.prose .alignwide { width: min(100vw - 2 * var(--gutter), 1100px); margin-inline: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; margin-inline: 50%; transform: translateX(-50%); border-radius: 0; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose pre { overflow-x: auto; background: var(--ink); color: var(--oat); padding: 18px; border-radius: 16px; font-size: .9rem; }
.page-links { display: flex; gap: 8px; margin-top: 24px; }

.entry__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line); }
.entry__tags-label { font: italic 400 1rem/1 var(--font-display); color: var(--muted); margin-right: 6px; }

.slot-area { margin-block: 28px; }
.slot { text-align: center; }
.widget__title { font-size: var(--step-1); }

.sibling { max-width: 980px; display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 700px) { .sibling { grid-template-columns: 1fr 1fr; } }
.sibling__link { display: grid; gap: 6px; padding: 20px 24px; border: 1.5px solid var(--ink); border-radius: 22px; text-decoration: none; background: var(--cream); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.sibling__link:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--leaf); }
.sibling__link--next { text-align: right; }
.sibling__dir { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--beet); }
.sibling__title { font: 600 var(--step-1)/1.2 var(--font-display); }

/* Comments */
.talk { max-width: 760px; padding-bottom: clamp(32px, 6vw, 72px); }
.talk__title { font-size: var(--step-2); }
.talk__list, .talk__list .children { list-style: none; margin: 0; padding: 0; }
.talk__list .children { padding-left: clamp(16px, 4vw, 44px); border-left: 1.5px dashed var(--line); }
.note__body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.note__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.note__avatar { border-radius: 999px 999px 10px 10px; }
.note__author { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.note__time { font-size: .8rem; color: var(--muted); }
.note__pending { font-style: italic; color: var(--tomato); }
.comment-reply-link { font-weight: 700; font-size: .85rem; color: var(--beet); text-decoration: none; }
.comment-respond { margin-top: 36px; padding: clamp(20px, 4vw, 36px); background: var(--cream); border: 1.5px solid var(--ink); border-radius: 28px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .wpforms-field input, .wpforms-field textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus, .wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turmeric) 40%, transparent); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.wpcf7 input[type="submit"] { background: var(--beet); color: var(--cream); border: 0; border-radius: 999px; min-height: 46px; padding: 0 22px; font-weight: 600; cursor: pointer; }

/* 404 */
.lost { text-align: center; padding-block: clamp(48px, 8vw, 110px) 10px; display: grid; justify-items: center; }
.lost__mark { width: 110px; height: 110px; margin-bottom: 18px; }
.lost__title { font-size: var(--step-4); }
.lost__text { color: var(--muted); max-width: 46ch; }
.lost .searchform { margin: 10px auto 24px; width: 100%; }

/* ==========================================================================
   9. Footer (market awning)
   ========================================================================== */
.colophon { position: relative; margin-top: clamp(48px, 8vw, 96px); background: var(--ink); color: var(--oat); padding-top: 64px; }
.colophon__arch {
	position: absolute; left: 0; right: 0; top: 0; height: 56px;
	background: repeating-linear-gradient(90deg, var(--beet) 0 40px, var(--oat) 40px 80px);
	-webkit-mask: linear-gradient(#000 0 0) top / 100% 36px no-repeat, radial-gradient(circle 20px at 20px 0, #000 98%, #0000) 0 100% / 40px 20px repeat-x;
	mask: linear-gradient(#000 0 0) top / 100% 36px no-repeat, radial-gradient(circle 20px at 20px 0, #000 98%, #0000) 0 100% / 40px 20px repeat-x;
	transform: translateY(-1px);
}
.colophon__inner { display: grid; gap: 36px; padding-block: 48px 36px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .colophon__inner { grid-template-columns: 1.3fr 1fr; } .colophon__widgets { grid-column: 1 / -1; } }
.colophon__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--oat); }
.colophon__logo:hover { color: var(--oat); }
.colophon__mark { width: 52px; height: 52px; }
.colophon__word { font: 700 2.4rem/1 var(--font-display); letter-spacing: -.03em; }
.colophon__bio { margin-top: 18px; max-width: 46ch; opacity: .82; }
.foot-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 860px) { .foot-nav { justify-self: end; } }
.foot-nav__link { display: inline-flex; min-height: 40px; align-items: center; font: italic 400 1.2rem/1 var(--font-display); text-decoration: none; color: var(--oat); }
.foot-nav__link:hover { color: var(--turmeric); }
.colophon__widgets { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.colophon__widgets a { color: var(--oat); }
.colophon__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 30px; border-top: 1px solid rgba(243, 236, 221, .18); font-size: var(--step--1); }
.colophon__base p { margin: 0; opacity: .7; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--oat); text-decoration: none; font-weight: 600; min-height: 44px; }
.to-top:hover { color: var(--turmeric); }

/* ==========================================================================
   10. Plugins: WP Recipe Maker / Tasty Recipes
   ========================================================================== */
.wprm-recipe-container .wprm-recipe, .tasty-recipes {
	background: var(--cream) !important; border: 1.5px solid var(--ink) !important;
	border-radius: 140px 140px 28px 28px !important; padding: 56px clamp(18px, 4vw, 40px) 32px !important;
	font-family: var(--font-body) !important;
}
.wprm-recipe-name, .tasty-recipes h2 { font-family: var(--font-display) !important; text-align: center; }
.wprm-recipe-header, .tasty-recipes h3 { font-family: var(--font-display) !important; color: var(--leaf) !important; }
.wprm-recipe a.wprm-recipe-link, .tasty-recipes-buttons a { background: var(--beet) !important; color: var(--cream) !important; border-radius: 999px !important; border: 0 !important; }

/* ==========================================================================
   11. Block editor bits
   ========================================================================== */
.wp-block-button__link { background: var(--beet); color: var(--cream); border-radius: 999px; padding: .8em 1.4em; text-decoration: none; }
.has-text-align-center { text-align: center; }
.wp-block-image img { height: auto; }
.wp-block-separator { border: 0; border-top: 1.5px solid var(--ink); }

/* ==========================================================================
   12. Motion + print
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(min(var(--i, 0), 8) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.almanac-strip, .masthead, .colophon, .popular, .sibling, .talk, .entry__tools, .slot-area, .read-progress, .crumbs { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.entry__img { max-height: 40vh; border-radius: 12px; }
}
