/*
Theme Name: Ofole Ndop
Theme URI: https://ofole.com/
Author: ofole.com
Description: A warm editorial food theme for ofole.com, built around Cameroonian Ndop cloth patterns, palm-oil orange and arch-shaped photography. Popular Topics block with cached random picks, a raw "Header" widget area printed right after the header, self-hosted fonts. Google Auto Ads ready: no horizontal overflow, ads inside grids take a full row, unfilled slots collapse, no sticky header on mobile, metric-matched fallback fonts.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 7.1
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: ofole
Tags: blog, food-and-drink, custom-logo, custom-menu, featured-images, threaded-comments, wide-blocks
*/

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

/* Metric-matched fallbacks: while the web fonts load, the system font is resized so
   text occupies the same space and nothing jumps when Fraunces/Karla swap in (CLS).
   size-adjust values were measured against real text in Chromium (Georgia derived from
   the Times measurement via published font metrics). */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"), local("Georgia Regular"); font-weight: 400 500; font-style: normal; size-adjust: 102.07%; ascent-override: 95.82%; descent-override: 24.98%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 600 800; font-style: normal; size-adjust: 83.84%; ascent-override: 116.65%; descent-override: 30.42%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-weight: 400 600; font-style: italic; size-adjust: 96.78%; ascent-override: 101.06%; descent-override: 26.35%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback Noto"; src: local("Noto Serif"), local("NotoSerif"), local("NotoSerif-Regular"); font-weight: 400 500; font-style: normal; size-adjust: 94.50%; ascent-override: 103.49%; descent-override: 26.98%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback Noto"; src: local("Noto Serif Bold"), local("NotoSerif-Bold"); font-weight: 600 800; font-style: normal; size-adjust: 77.70%; ascent-override: 125.87%; descent-override: 32.82%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback Noto"; src: local("Noto Serif Italic"), local("NotoSerif-Italic"); font-weight: 400 600; font-style: italic; size-adjust: 92.50%; ascent-override: 105.73%; descent-override: 27.57%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback Times"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("LiberationSerif"); font-weight: 400 500; font-style: normal; size-adjust: 112.00%; ascent-override: 87.32%; descent-override: 22.77%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback Times"; src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold"), local("LiberationSerif-Bold"); font-weight: 600 800; font-style: normal; size-adjust: 92.00%; ascent-override: 106.30%; descent-override: 27.72%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback Times"; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("LiberationSerif-Italic"); font-weight: 400 600; font-style: italic; size-adjust: 106.20%; ascent-override: 92.09%; descent-override: 24.01%; line-gap-override: 0%; }
@font-face { font-family: "Karla Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("LiberationSans"); font-weight: 400 500; font-style: normal; size-adjust: 102.65%; ascent-override: 89.33%; descent-override: 24.55%; line-gap-override: 0%; }
@font-face { font-family: "Karla Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); font-weight: 600 800; font-style: normal; size-adjust: 99.80%; ascent-override: 91.88%; descent-override: 25.25%; line-gap-override: 0%; }
@font-face { font-family: "Karla Fallback"; src: local("Arial Italic"), local("Arial-ItalicMT"), local("Liberation Sans Italic"), local("LiberationSans-Italic"); font-weight: 400 600; font-style: italic; size-adjust: 92.70%; ascent-override: 98.92%; descent-override: 27.18%; line-gap-override: 0%; }
@font-face { font-family: "Karla Fallback Roboto"; src: local("Roboto"), local("Roboto-Regular"), local("Roboto Regular"); font-weight: 400 500; font-style: normal; size-adjust: 103.05%; ascent-override: 88.99%; descent-override: 24.45%; line-gap-override: 0%; }
@font-face { font-family: "Karla Fallback Roboto"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 800; font-style: normal; size-adjust: 106.30%; ascent-override: 86.27%; descent-override: 23.71%; line-gap-override: 0%; }
@font-face { font-family: "Karla Fallback Roboto"; src: local("Roboto Italic"), local("Roboto-Italic"); font-weight: 400 600; font-style: italic; size-adjust: 95.80%; ascent-override: 95.72%; descent-override: 26.30%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
	--cassava: #F5EEE2;
	--paper: #FBF7F0;
	--ink: #1B1A2B;
	--ink-soft: #4A4658;
	--indigo: #22306B;
	--indigo-deep: #161D45;
	--palm: #B23E15;
	--palm-bright: #E05A24;
	--plantain: #E9B949;
	--leaf: #3D6A4A;
	--line: rgba(27, 26, 43, .14);
	--line-light: rgba(245, 238, 226, .18);

	--f-display: "Fraunces", "Fraunces Fallback", "Fraunces Fallback Noto", "Fraunces Fallback Times", Georgia, serif;
	--f-body: "Karla", "Karla Fallback", "Karla Fallback Roboto", Arial, sans-serif;

	--wrap: 1240px;
	--measure: 720px;
	--gutter: clamp(16px, 4vw, 40px);
	--r: 18px;
	--arch: 999px 999px var(--r) var(--r);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--ndop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Crect width='40' height='14' fill='%2322306B'/%3E%3Cpath d='M10 2l5 5-5 5-5-5z' fill='%23F5EEE2'/%3E%3Cpath d='M30 4.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%23E9B949'/%3E%3Cpath d='M20 1v12' stroke='%23F5EEE2' stroke-width='1.2' stroke-dasharray='2 2'/%3E%3C/svg%3E");
	--ndop-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Crect width='40' height='14' fill='%23E9B949'/%3E%3Cpath d='M10 2l5 5-5 5-5-5z' fill='%2322306B'/%3E%3Cpath d='M30 4.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%23B23E15'/%3E%3Cpath d='M20 1v12' stroke='%2322306B' stroke-width='1.2' stroke-dasharray='2 2'/%3E%3C/svg%3E");
	--ndop-tall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='44' viewBox='0 0 48 44'%3E%3Crect width='48' height='44' fill='%2322306B'/%3E%3Cpath d='M12 4l8 8-8 8-8-8z' fill='%23F5EEE2'/%3E%3Cpath d='M12 8l4 4-4 4-4-4z' fill='%2322306B'/%3E%3Cpath d='M36 6l6 6-6 6-6-6z' fill='%23E05A24'/%3E%3Cpath d='M0 24h48v2H0z' fill='%23F5EEE2'/%3E%3Cpath d='M0 44l6-10 6 10 6-10 6 10 6-10 6 10 6-10 6 10z' fill='%23E9B949'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cassava);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
iframe, embed, object { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--palm); }
:focus-visible { outline: 3px solid var(--palm-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-variation-settings: "opsz" 96; }
p { margin: 0 0 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cassava); padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; color: var(--cassava); }

.kicker {
	display: inline-flex; align-items: center; gap: .6em;
	font: 700 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
	color: var(--palm); margin: 0 0 1rem;
}
.kicker::before { content: ""; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); flex: none; }
.kicker--light { color: var(--plantain); }

.btn, .search-form__btn, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 0 1.5em; border: 0; border-radius: 999px;
	background: var(--ink); color: var(--cassava);
	font: 700 .95rem/1 var(--f-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover, .search-form__btn:hover, input[type="submit"]:hover { background: var(--palm); color: #fff; transform: translateY(-1px); }

.chip, .tag {
	display: inline-block; padding: .45em 1em; border-radius: 999px;
	border: 1.5px solid var(--ink); font: 700 .78rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	transition: background .2s, color .2s;
}
.chip:hover, .tag:hover { background: var(--ink); color: var(--cassava); }

/* ---------- Ndop bands ---------- */
.ndop-band { height: 14px; background: var(--ndop) repeat-x left center / 40px 14px; }
.ndop-band--tall { height: 44px; background-image: var(--ndop-tall); background-size: 48px 44px; }

/* ---------- Header ---------- */
/* Not sticky on phones/tablets so it never fights Google's top anchor ad. */
.site-header {
	position: relative; z-index: 50;
	background: color-mix(in srgb, var(--cassava) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(27, 26, 43, .45); }
@media (min-width: 1025px) {
	html { scroll-padding-top: 96px; }
	.site-header { position: sticky; top: 0; }
	.admin-bar .site-header { top: 32px; }
}
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__img { display: block; height: 46px; width: auto; transition: transform .3s var(--ease); }
.brand:hover .brand__img { transform: rotate(-2deg) scale(1.02); }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: .7em 1em; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { background: var(--paper); color: var(--palm); }
.site-nav__list .sub-menu { display: none; }
.site-header__tools { display: flex; gap: 8px; margin-left: auto; }
.site-nav + .site-header__tools { margin-left: 8px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
	transition: background .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--cassava); }
.icon-btn--menu { display: none; }
.header-search { border-top: 1px solid var(--line); padding: 18px 0 22px; background: var(--paper); }

.search-form { display: flex; gap: 10px; width: 100%; max-width: 640px; min-width: 0; }
.search-form__input {
	flex: 1; width: 100%; min-width: 0; min-height: 52px; padding: 0 1.2em; border-radius: 999px;
	border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 400 1rem var(--f-body);
}
.search-form__input:focus { outline: none; border-color: var(--palm); box-shadow: 0 0 0 4px rgba(224, 90, 36, .18); }

@media (max-width: 860px) {
	.icon-btn--menu { display: inline-grid; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; margin: 0; }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; padding: 12px var(--gutter) 20px; }
	.site-nav__list a { border-radius: 12px; }
	.brand__img { height: 38px; }
	.site-nav + .site-header__tools { margin-left: auto; }
}

/* ---------- Arch frames ---------- */
.arch { position: relative; display: block; border-radius: var(--arch); overflow: hidden; background: var(--indigo); isolation: isolate; }
.arch__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.arch__img--empty, .disc__img--empty {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: var(--ndop-tall) center / 48px 44px; color: var(--cassava);
}
.arch__img--empty span, .disc__img--empty span {
	display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%;
	background: var(--palm-bright); font: 600 clamp(1.4rem, 3vw, 2.6rem)/1 var(--f-display);
}
a:hover .arch__img, .arch:hover .arch__img { transform: scale(1.05); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); position: relative; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.lead { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: end; }
.lead__media { aspect-ratio: 4 / 5; }
.arch--sun { overflow: visible; background: transparent; }
.arch--sun::before {
	content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%;
	background: var(--plantain); right: -12%; top: -6%;
}
.arch--sun .arch__img, .arch--sun .arch__img--empty { border-radius: var(--arch); }
.lead__title { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 650; line-height: 1.02; letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.lead__title a, .side__title a, .row__title a { text-decoration: none; background: linear-gradient(var(--palm-bright), var(--palm-bright)) 0 100% / 0 3px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.lead__title a:hover, .side__title a:hover, .row__title a:hover { background-size: 100% 3px; color: inherit; }
.lead__excerpt { color: var(--ink-soft); font-size: 1.1rem; max-width: 42ch; }

.hero__side { display: grid; gap: 22px; padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.side { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.side:last-child { border-bottom: 0; padding-bottom: 0; }
.side__media { aspect-ratio: 4 / 5; }
.side__meta { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .4em; }
.side__title { font-size: 1.35rem; margin: 0; }

@media (max-width: 1020px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__side { padding-left: 0; border-left: 0; grid-template-columns: 1fr 1fr; }
	.side { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 640px) {
	.lead { grid-template-columns: 1fr; }
	.lead__media { max-width: 82%; }
	.hero__side { grid-template-columns: 1fr; }
}

/* ---------- Popular Topics ---------- */
.popular { position: relative; background: var(--indigo); color: var(--cassava); padding: clamp(56px, 7vw, 96px) 0; margin: clamp(24px, 4vw, 48px) 0; }
.popular::before, .popular::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--ndop-cream) repeat-x center / 40px 14px; }
.popular::before { top: 0; }
.popular::after { bottom: 0; }
.popular__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.popular__head .kicker { order: 2; margin: 0; }
.popular__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; font-weight: 600; letter-spacing: -.03em; }
.popular__title::after { content: "."; color: var(--palm-bright); }
.popular__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px) clamp(14px, 2vw, 28px); counter-reset: none; }
.pcard { min-width: 0; }
.pcard__link { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--cassava); }
.pcard__link:hover { color: var(--cassava); }
.pcard__media { aspect-ratio: 5 / 6; background: var(--indigo-deep); box-shadow: 0 0 0 1px var(--line-light); }
.pcard__num {
	position: absolute; top: 12px; left: 12px; display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--palm-bright); color: #fff; font: 600 1rem/1 var(--f-display);
	box-shadow: 0 0 0 4px var(--indigo);
	transition: transform .35s var(--ease);
}
.pcard__link:hover .pcard__num { transform: rotate(-12deg) scale(1.08); }
.pcard__title { font: 600 1.18rem/1.2 var(--f-display); margin-top: 16px; letter-spacing: -.01em; }
.pcard__link:hover .pcard__title { text-decoration: underline; text-decoration-color: var(--plantain); text-decoration-thickness: 2px; }
.pcard__meta { margin-top: auto; padding-top: 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 238, 226, .7); }
@media (max-width: 960px) { .popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .pcard__title { font-size: 1.02rem; } .pcard__num { width: 36px; height: 36px; font-size: .9rem; } }

/* ---------- Section titles + rows ---------- */
.section-title { display: flex; align-items: center; gap: 18px; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: clamp(32px, 5vw, 64px) 0 clamp(16px, 2vw, 24px); }
.section-title::after { content: ""; flex: 1; height: 14px; background: var(--ndop) repeat-x center / 40px 14px; border-radius: 3px; opacity: .85; }
.journal { padding-bottom: clamp(40px, 6vw, 80px); }
.rows { border-top: 2px solid var(--ink); }
.row {
	display: grid; grid-template-columns: 96px minmax(0, 1fr) 132px; gap: clamp(16px, 3vw, 40px); align-items: center;
	padding: clamp(20px, 3vw, 32px) 0; border-bottom: 1px dashed var(--line);
}
.row__date { display: flex; flex-direction: column; align-items: flex-start; }
.row__day { font: 600 2.8rem/1 var(--f-display); color: var(--palm); font-variation-settings: "opsz" 144; }
.row__mon { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.row__title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin: 0 0 .35em; }
.row__excerpt { color: var(--ink-soft); margin: 0 0 .6em; max-width: 64ch; }
.row__more { font-weight: 700; font-size: .9rem; color: var(--palm); text-decoration: none; }
.row__more span { display: inline-block; transition: transform .25s var(--ease); }
.row__more:hover span { transform: translateX(4px); }
.row__media { display: block; width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--indigo); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line); }
.disc__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.row:hover .disc__img { transform: scale(1.07) rotate(2deg); }
@media (max-width: 720px) {
	.row { grid-template-columns: minmax(0, 1fr) 84px; }
	.row__date { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 10px; }
	.row__day { font-size: 1.6rem; }
	.row__media { width: 84px; grid-row: 2; grid-column: 2; align-self: start; }
	.row__body { grid-row: 2; }
}

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--cassava); }
a.page-numbers:hover { border-color: var(--palm); color: var(--palm); }
.page-numbers.dots { border: 0; }

/* Page head */
.page-head { padding: clamp(40px, 6vw, 80px) var(--gutter) 8px; }
.page-head__title { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.035em; margin: 0; }
.page-head__desc { max-width: 60ch; color: var(--ink-soft); margin-top: 1rem; }
.empty { padding: 40px 0; }

/* ---------- Single story ---------- */
.story__head { max-width: calc(var(--measure) + 2 * var(--gutter) + 160px); text-align: center; padding-top: clamp(40px, 6vw, 80px); }
.story__chips { margin-bottom: 18px; min-height: 1px; }
.story__title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 650; line-height: 1.03; letter-spacing: -.035em; font-variation-settings: "opsz" 144; text-wrap: balance; }
.story__dek { font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.45 var(--f-display); color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1rem; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.meta__dot { width: 6px; height: 6px; background: var(--palm-bright); transform: rotate(45deg); }
.story__hero { margin: clamp(28px, 4vw, 48px) auto 0; max-width: calc(1040px + 2 * var(--gutter)); }
.story__frame { aspect-ratio: 16 / 10; border-radius: 280px 280px var(--r) var(--r); }
.story__hero figcaption { text-align: center; font-style: italic; color: var(--ink-soft); font-size: .92rem; margin-top: 12px; }
.story__body { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 24px; }
.story__foot { padding-bottom: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag { text-transform: none; letter-spacing: 0; font-size: .85rem; border-color: var(--line); }
.after-post { padding-bottom: 24px; }

/* ---------- Prose ---------- */
/* The .prose box spans the full width; its children are held to the reading measure.
   Wide/full blocks simply relax that limit, so no 100vw math (which overflows by the
   scrollbar width on desktop) is needed. */
.prose { padding-inline: var(--gutter); font-size: 1.125rem; line-height: 1.75; }
.prose > * { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 0; }
.story:not(.story--page) .story__body > p:first-of-type::first-letter {
	float: left; font: 600 4.6em/.82 var(--f-display); margin: .06em .12em 0 0; color: var(--palm); font-variation-settings: "opsz" 144;
}
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-block: 2.2em .7em; display: flex; gap: .5em; align-items: baseline; }
.prose h2::before { content: ""; flex: none; width: .42em; height: .42em; background: var(--palm-bright); transform: rotate(45deg) translateY(-.08em); }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-block: 1.8em .6em; }
.prose h4 { font-size: 1.15rem; margin-block: 1.6em .5em; font-family: var(--f-body); font-weight: 700; letter-spacing: .02em; }
.prose a { color: var(--palm); text-decoration-color: rgba(178, 62, 21, .4); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--palm-bright); }
.prose ol li::marker { color: var(--palm); font-family: var(--f-display); font-weight: 600; }
.prose blockquote {
	margin-block: 2em; padding: 1.4em 1.6em 1.4em 1.8em; background: var(--paper); border-radius: 0 var(--r) var(--r) 0;
	border-left: 6px solid var(--indigo); font: italic 400 1.3rem/1.5 var(--f-display);
}
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--r); }
.prose figure { margin-block: 2em; }
.prose figcaption, .prose .wp-element-caption { font-size: .9rem; font-style: italic; color: var(--ink-soft); text-align: center; margin-top: .6em; }
.prose hr { border: 0; height: 14px; background: var(--ndop) repeat-x center / 40px 14px; margin-block: 3em; border-radius: 3px; }
/* Wide tables scroll inside their own box (core .wp-block-table, or .ofole-table-scroll added by the theme to classic tables). */
.prose .wp-block-table, .prose .ofole-table-scroll { max-width: min(100%, var(--measure)); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .ofole-table-scroll { margin-block: 0 1.6em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-block: 0 1.6em; }
.prose .ofole-table-scroll > table { margin: 0; }
.prose pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.prose .wp-block-preformatted, .prose .wp-block-verse { white-space: pre-wrap; }
.prose iframe { display: block; max-width: 100%; }
.prose th, .prose td { padding: .7em .8em; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 700; background: var(--paper); }
.prose code { background: var(--paper); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.prose > .alignwide { max-width: 1040px; }
.prose > .alignfull { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.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 > .alignleft { margin-left: max(0px, (100% - var(--measure)) / 2); max-width: min(50%, var(--measure) / 2); }
.prose > .alignright { margin-right: max(0px, (100% - var(--measure)) / 2); max-width: min(50%, var(--measure) / 2); }
.prose .aligncenter { margin-inline: auto; display: block; }
.prose .wp-block-button__link { background: var(--ink); color: var(--cassava); border-radius: 999px; text-decoration: none; padding: .8em 1.6em; font-weight: 700; }
.prose .wp-block-button__link:hover { background: var(--palm); }

/* Table-of-contents style lists (common TOC plugins + manual lists right after the intro) */
.prose #ez-toc-container, .prose .ez-toc-v2_0_17, .prose .lwptoc, .prose .rank-math-toc, .prose .wp-block-yoast-seo-table-of-contents, .prose .toc {
	background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1.2em 1.4em; margin-block: 2em; box-shadow: 6px 6px 0 var(--indigo);
}

/* Recipe cards (WP Recipe Maker, Tasty, generic) */
.prose .wprm-recipe-container, .prose .wprm-recipe, .prose .tasty-recipes {
	background: var(--paper) !important; border: 2px solid var(--ink) !important; border-radius: 24px !important;
	padding: clamp(18px, 3vw, 32px) !important; margin-block: 2.4em !important; position: relative; box-shadow: 8px 8px 0 var(--indigo);
}
.prose .wprm-recipe-name, .prose .tasty-recipes-title { font-family: var(--f-display) !important; font-weight: 650 !important; letter-spacing: -.02em; }
.prose .wprm-recipe-header, .prose .wprm-recipe-group-name { font-family: var(--f-display) !important; }
.prose .wprm-recipe-link, .prose .wprm-recipe-print, .prose .wprm-recipe-pin, .prose .wprm-recipe-jump {
	border-radius: 999px !important; background: var(--ink) !important; color: var(--cassava) !important; border-color: var(--ink) !important; text-decoration: none !important;
}
.prose .wprm-recipe-link:hover { background: var(--palm) !important; border-color: var(--palm) !important; }
.prose .wprm-recipe-ingredient::marker, .prose .wprm-recipe-instruction::marker { color: var(--palm-bright); }
.prose .wprm-rating-star svg path, .prose .wprm-rating-star svg polygon { fill: var(--plantain) !important; stroke: var(--palm) !important; }

/* ---------- Comments ---------- */
.comments { padding-top: 24px; padding-bottom: clamp(48px, 6vw, 80px); }
.comments__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 48px); border-left: 2px dashed var(--line); }
.comment__body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment__head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.comment__avatar { border-radius: 50%; }
.comment__author { display: block; font-size: 1rem; }
.comment__date { font-size: .82rem; color: var(--ink-soft); text-decoration: none; }
.comment__text { font-size: 1.02rem; }
.comment__reply a, .comment-reply-link { font-size: .85rem; font-weight: 700; color: var(--palm); text-decoration: none; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .85em 1em; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
.comment-form textarea { min-height: 160px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: clamp(48px, 8vw, 120px) var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
.lost > * { max-width: 100%; }
.lost__code { font: 700 clamp(6rem, 18vw, 12rem)/.9 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--indigo); margin: 0; background: var(--ndop-tall) center / 48px 44px; -webkit-background-clip: text; background-clip: text; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: var(--cassava); margin-top: clamp(24px, 4vw, 48px); }
.popular + .site-footer, .site-main:has(> .popular:last-child) + .site-footer { margin-top: 0; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 32px; align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 32px; }
.site-footer .brand__img { height: 54px; }
.site-footer__tag { margin: 16px 0 0; color: rgba(245, 238, 226, .72); max-width: 36ch; font-family: var(--f-display); font-style: italic; font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { display: inline-block; padding: 8px 0; color: var(--cassava); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--plantain); }
.to-top { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line-light); border-radius: 999px; color: var(--cassava); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.to-top:hover { border-color: var(--plantain); color: var(--plantain); }
.site-footer__legal { border-top: 1px solid var(--line-light); padding-top: 18px; padding-bottom: 28px; font-size: .88rem; color: rgba(245, 238, 226, .7); }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: inherit; text-decoration: none; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Popular band directly before footer: no gap, band merges into footer */
.site-main > .popular:last-child { margin-bottom: 0; }

/* ---------- Google Auto Ads ----------
   Auto Ads injects <div class="google-auto-placed"><ins class="adsbygoogle">…</ins></div>
   anywhere in the page. These rules keep the layout intact around it. */
.google-auto-placed { clear: both; }
/* Inside a grid the ad spans every column; inside a flex row it takes a full line. */
.google-auto-placed, ins.adsbygoogle { grid-column: 1 / -1; flex: 0 0 100%; min-width: 0; }
/* …and the grid backfills the cells around it, the flex row is allowed to wrap. */
:has(> .google-auto-placed, > ins.adsbygoogle) { grid-auto-flow: row dense; flex-wrap: wrap; }
/* Unfilled slots take no space (Google's recommended CSS). */
ins.adsbygoogle[data-ad-status="unfilled"],
.google-auto-placed:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
/* Phones: an ad box is never wider than the screen. */
@media (max-width: 767px) {
	ins.adsbygoogle { max-width: 100vw; }
}

/* ---------- Block / WP core ---------- */
.wp-caption { max-width: 100%; }
.sticky .row__title::before { content: "★ "; color: var(--plantain); }
.bypostauthor > .comment__body .comment__author::after { content: " · author"; color: var(--palm); font-weight: 400; font-size: .85em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .popular, .comments, .after-post { display: none !important; }
	body { background: #fff; }
}
