/* ==========================================================================
   Marin Homestead — design system
   Warm Northern-California homestead: garden green, clay, cream, ink.
   ========================================================================== */

:root {
	/* Palette */
	--cream:        #faf6ee;
	--cream-2:      #f3ecde;
	--paper:        #fffdf8;
	--ink:          #24211b;
	--ink-soft:     #55503f;
	--muted:        #857e6b;
	--line:         #e6ddca;
	--line-soft:    #efe8d8;

	--green:        #38583f;   /* primary — garden green */
	--green-deep:   #2a4531;
	--green-bright: #4f7a55;
	--sage:         #8ba07c;
	--clay:         #c0623a;   /* accent — terracotta */
	--clay-deep:    #a24f2d;
	--honey:        #e0a339;
	--berry:        #8a2f43;

	/* Semantic */
	--bg:           var(--cream);
	--surface:      var(--paper);
	--text:         var(--ink);
	--text-muted:   var(--ink-soft);
	--accent:       var(--clay);
	--accent-deep:  var(--clay-deep);
	--primary:      var(--green);

	/* Type */
	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono:    ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;

	/* Fluid type scale */
	--step--1: clamp(0.83rem, 0.79rem + 0.19vw, 0.94rem);
	--step-0:  clamp(1rem, 0.95rem + 0.24vw, 1.15rem);
	--step-1:  clamp(1.2rem, 1.11rem + 0.44vw, 1.5rem);
	--step-2:  clamp(1.44rem, 1.29rem + 0.75vw, 1.95rem);
	--step-3:  clamp(1.73rem, 1.49rem + 1.2vw, 2.55rem);
	--step-4:  clamp(2.07rem, 1.7rem + 1.85vw, 3.3rem);
	--step-5:  clamp(2.49rem, 1.94rem + 2.75vw, 4.3rem);

	/* Space */
	--gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
	--wrap: 1220px;
	--wrap-narrow: 760px;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(40,35,20,.04), 0 8px 24px -12px rgba(40,35,20,.18);
	--shadow-lg: 0 2px 6px rgba(40,35,20,.05), 0 24px 48px -20px rgba(40,35,20,.28);
	--transition: 180ms cubic-bezier(.2,.6,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--transition); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--honey); color: var(--ink); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.35em; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--wrap-narrow)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .7em 1.2em; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 100;
	backdrop-filter: saturate(1.1);
}
.header-bar { display: flex; align-items: center; gap: 1.4rem; padding: .85rem 0; }
.site-branding { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.site-branding .custom-logo-link img { border-radius: 10px; }
.site-title { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); font-weight: 600; line-height: 1; margin: 0; letter-spacing: -.02em; }
.site-title a { color: var(--green-deep); text-decoration: none; }
.site-title a:hover { color: var(--clay); }
.site-description { margin: .25rem 0 0; font-size: var(--step--1); color: var(--muted); font-style: italic; }

/* Brand mark (leaf) */
.brand-mark { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; background: var(--green); border-radius: 12px; color: var(--cream); }
.brand-mark svg { width: 26px; height: 26px; }

/* ---------- Primary nav ---------- */
.primary-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; }
.primary-nav a {
	display: block; padding: .55rem .8rem; color: var(--ink-soft); text-decoration: none;
	font-weight: 550; font-size: .96rem; border-radius: 8px; position: relative;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a {
	color: var(--green-deep); background: var(--cream-2);
}
.primary-nav .sub-menu { display: none; position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .4rem; min-width: 200px; box-shadow: var(--shadow); z-index: 50; }
.primary-nav li { position: relative; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { white-space: nowrap; }

.nav-toggle, .search-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: .5rem; cursor: pointer; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-search { position: relative; }
.header-search .search-field { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .9rem; width: 190px; transition: width var(--transition), border-color var(--transition); }
.header-search .search-field:focus { width: 230px; border-color: var(--sage); outline: none; }
.header-search .search-submit { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: none; background: none; cursor: pointer; padding: .35rem; color: var(--green); }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem; box-shadow: var(--shadow-lg); max-height: 80vh; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); }
	.primary-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
	.primary-nav ul { flex-direction: column; gap: .1rem; }
	.primary-nav a { padding: .8rem 1rem; font-size: 1.05rem; }
	.primary-nav .sub-menu { position: static; display: block; border: none; box-shadow: none; padding-left: 1rem; }
	.header-search .search-field { width: 150px; }
}

/* In-menu search (shown inside the mobile dropdown on phones) */
.primary-nav__search { display: none; position: relative; margin-bottom: .8rem; }
.primary-nav__search input { width: 100%; font: inherit; padding: .75rem 2.7rem .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); }
.primary-nav__search input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent); }
.primary-nav__search button { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: none; background: none; padding: .45rem; color: var(--green); cursor: pointer; }

/* Phone header: drop tagline + bar search, bigger hamburger pinned far right */
@media (max-width: 680px) {
	.site-description { display: none; }
	.header-actions { display: none; }
	.header-bar { gap: .8rem; }
	.nav-toggle { padding: .55rem .65rem; }
	.primary-nav__search { display: block; }
}

/* ---------- Buttons / pills ---------- */
.btn, .more-link, .wp-block-button__link, button.mh-btn {
	display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem;
	padding: .7rem 1.3rem; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
	background: var(--green); color: var(--cream); transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover, .more-link:hover, button.mh-btn:hover { background: var(--green-deep); color: var(--cream); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--green-deep); border-color: var(--line); }
.btn--ghost:hover { background: var(--cream-2); color: var(--green-deep); }
.btn--clay { background: var(--clay); } .btn--clay:hover { background: var(--clay-deep); }

/* ---------- Category chips ---------- */
.cat-chip, .entry-cats a, .post-categories a {
	display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: .3rem .65rem; border-radius: 999px; text-decoration: none; background: var(--green); color: var(--cream); transition: background var(--transition);
}
.cat-chip:hover, .entry-cats a:hover, .post-categories a:hover { background: var(--clay); color: var(--cream); }
.post-categories { list-style: none; display: inline-flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }

/* ---------- Main grid layout ---------- */
.site-main { padding: var(--gap) 0 3.5rem; }
.content-grid { display: grid; gap: clamp(1.6rem, 1rem + 2.5vw, 3.2rem); }
@media (min-width: 1000px) {
	.has-sidebar .content-grid { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
}

/* ---------- Post cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(1.2rem, .8rem + 1.4vw, 2rem); }
.p-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.p-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--cream-2); }
.p-card__imglink { display: block; width: 100%; height: 100%; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__media .post-categories { position: absolute; left: .7rem; top: .7rem; }
.p-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.p-card__title { font-size: var(--step-1); margin: 0; line-height: 1.18; }
.p-card__title a { color: var(--ink); text-decoration: none; }
.p-card__title a:hover { color: var(--clay-deep); }
.p-card__excerpt { color: var(--text-muted); font-size: .95rem; margin: 0; }
.p-card__meta { margin-top: auto; font-size: .8rem; color: var(--muted); display: flex; gap: .8rem; align-items: center; padding-top: .3rem; }

/* No-image card fallback */
.p-card--noimg .p-card__media { display: grid; place-items: center; background: linear-gradient(135deg, var(--cream-2), #e6ecdd); }
.p-card__placeholder { color: var(--sage); opacity: .9; }
.p-card__placeholder svg { width: 54px; height: 54px; }

/* ---------- Hero / featured (homepage) ---------- */
.home-hero { display: grid; gap: 1.4rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 860px) { .home-hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
	.home-hero > .hero-card--lg { grid-row: 1 / span 2; } }
.hero-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: block; box-shadow: var(--shadow); background: var(--cream-2); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 600ms ease; }
.hero-card:hover img { transform: scale(1.04); }
.hero-card__overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(20,17,10,.85) 0%, rgba(20,17,10,.3) 45%, rgba(20,17,10,0) 78%); }
.hero-card__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem; color: #fff; z-index: 1; }
.hero-card__content .post-categories { position: relative; z-index: 3; }
.hero-card--lg { min-height: 420px; }
.hero-card__title { display: block; color: #fff; margin: .5rem 0 0; font-family: var(--font-display); font-weight: 560; line-height: 1.14; font-size: var(--step-2); text-decoration: none; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-card__title:hover { color: #fff; }
.hero-card__title::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* stretched link */
.hero-card--lg .hero-card__title { font-size: var(--step-3); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.6rem 0 1.2rem; }
.section-head h2 { margin: 0; font-size: var(--step-2); position: relative; padding-bottom: .35rem; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 3px; border-radius: 3px; background: var(--clay); }
.section-head .see-all { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--green-deep); white-space: nowrap; }
.section-head .see-all:hover { color: var(--clay); }

/* ---------- Single post ---------- */
.entry-header { text-align: center; max-width: 760px; margin: 1.5rem auto 2rem; }
.entry-header .post-categories { justify-content: center; margin-bottom: 1rem; }
.entry-title { font-size: var(--step-4); margin: 0 0 .6rem; }
.entry-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; justify-content: center; align-items: center; }
.entry-meta a { color: var(--muted); text-decoration: none; } .entry-meta a:hover { color: var(--clay); }
.entry-featured { margin: 0 0 2.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry-featured img { width: 100%; }

.entry-content { font-size: 1.12rem; line-height: 1.78; }
.entry-content > * { max-width: var(--wrap-narrow); margin-inline: auto; }
.entry-content .alignwide { max-width: 1000px; }
.entry-content .alignfull { max-width: none; }
.entry-content img { border-radius: var(--radius-sm); margin-block: 1.2em; }
.entry-content figure img { box-shadow: var(--shadow); }
.entry-content h2 { font-size: var(--step-2); margin-top: 1.8em; }
.entry-content h3 { font-size: var(--step-1); margin-top: 1.6em; }
.entry-content a { color: var(--clay-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--clay) 40%, transparent); }
.entry-content a:hover { text-decoration-color: var(--clay); }
.entry-content blockquote {
	border-left: 4px solid var(--clay); background: var(--cream-2); padding: 1rem 1.4rem; border-radius: 0 10px 10px 0;
	font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--green-deep);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content code { font-family: var(--font-mono); font-size: .9em; background: var(--cream-2); padding: .15em .4em; border-radius: 5px; }
.entry-content pre { background: var(--ink); color: var(--cream); padding: 1.1rem; border-radius: 10px; overflow: auto; }
.entry-content hr { border: none; height: 1px; background: var(--line); margin: 2.5em auto; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; font-style: italic; margin-top: .5rem; }

.entry-footer { max-width: var(--wrap-narrow); margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.entry-tags a { font-size: .82rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); background: var(--paper); }
.entry-tags a:hover { border-color: var(--sage); color: var(--green-deep); background: var(--cream-2); }

/* Author box */
.author-box { max-width: var(--wrap-narrow); margin: 2.2rem auto 0; display: flex; gap: 1.1rem; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem; }
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-box h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.author-box p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* Post navigation */
.post-nav { max-width: var(--wrap-narrow); margin: 2rem auto 0; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--paper); transition: border-color var(--transition), background var(--transition); }
.post-nav a:hover { border-color: var(--sage); background: var(--cream-2); }
.post-nav .nav-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.post-nav .nav-title { color: var(--green-deep); font-weight: 600; font-family: var(--font-display); }
.post-nav .nav-next { text-align: right; }
@media (max-width: 620px) { .post-nav { grid-template-columns: 1fr; } }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 84px; }
.widget { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.widget-title { font-size: 1.05rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--cream-2); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 38px; height: 2px; background: var(--clay); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: .4rem 0; border-bottom: 1px dashed var(--line-soft); }
.widget ul li:last-child { border-bottom: none; }
.widget a { text-decoration: none; color: var(--ink-soft); }
.widget a:hover { color: var(--clay); }
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.widget_tag_cloud a { font-size: .82rem !important; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }

/* About / bio card in sidebar */
.about-card { text-align: center; }
.about-card__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; border: 3px solid var(--cream-2); }
.about-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { margin: 3rem 0 0; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.pagination .page-numbers:hover { border-color: var(--sage); color: var(--green-deep); }
.pagination .page-numbers.current { background: var(--green); color: var(--cream); border-color: var(--green); }
.pagination .dots { border: none; background: none; }

/* ---------- Comments ---------- */
.comments-area { max-width: var(--wrap-narrow); margin: 3rem auto 0; }
.comments-title, .comment-reply-title { font-size: var(--step-2); margin-bottom: 1.4rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol { list-style: none; padding-left: clamp(1rem, 3vw, 2.5rem); }
.comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--line-soft); }
.comment-author { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--green-deep); }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.reply a { font-size: .82rem; font-weight: 600; color: var(--clay-deep); text-decoration: none; }
.comment-respond { margin-top: 2rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea,
.search-field, .wp-block-search__input {
	width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); color: var(--ink);
}
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 25%, transparent); }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: baseline; }
.comment-form-cookies-consent label { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Page header (archive/search/page) ---------- */
.page-hero { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: var(--cream); padding: clamp(2.2rem, 1.5rem + 3vw, 3.6rem) 0; margin-bottom: var(--gap); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 90% -10%, rgba(224,163,57,.22), transparent 45%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--cream); margin: 0; }
.page-hero .archive-description, .page-hero .subtitle { color: color-mix(in srgb, var(--cream) 82%, transparent); margin: .6rem 0 0; max-width: 620px; }
.breadcrumbs { font-size: .85rem; margin-bottom: .6rem; color: color-mix(in srgb, var(--cream) 75%, transparent); }
.breadcrumbs a { color: color-mix(in srgb, var(--cream) 88%, transparent); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { opacity: .5; margin: 0 .4rem; }

/* Page content (About etc.) */
.page-content { max-width: var(--wrap-narrow); margin-inline: auto; font-size: 1.1rem; line-height: 1.78; }
.page-content img { border-radius: var(--radius-sm); }

/* ---------- 404 / no results ---------- */
.notfound { text-align: center; padding: 3rem 0; max-width: 560px; margin-inline: auto; }
.notfound .big { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 7rem); color: var(--sage); line-height: 1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: color-mix(in srgb, var(--cream) 80%, transparent); margin-top: 3rem; }
.footer-top { display: grid; gap: 2rem 1.6rem; padding: 3rem 0 2.4rem; grid-template-columns: 1.7fr repeat(4, 1fr); align-items: start; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .site-title, .footer-brand h3 { color: var(--cream); font-size: 1.4rem; margin: 0 0 .5rem; }
.footer-brand p { color: color-mix(in srgb, var(--cream) 68%, transparent); max-width: 34ch; margin: 0; }
.site-footer h2, .site-footer .widget-title { color: var(--cream); font-size: 1rem; border: none; padding: 0; margin-bottom: .55rem; }
.site-footer .widget-title::after { display: none; }
.site-footer .widget { background: none; border: none; padding: 0; }
.site-footer a { color: color-mix(in srgb, var(--cream) 80%, transparent); text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li, .site-footer li { padding: 0; margin: 0; font-size: .92rem; line-height: 1.3; border: none; }
.site-footer .widget li a { display: inline-block; padding: 0; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--cream); transition: background var(--transition); }
.footer-social a:hover { background: var(--clay); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-bottom a { color: color-mix(in srgb, var(--cream) 88%, transparent); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sticky-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--clay-deep); }

/* WP core alignment / captions */
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.wp-caption { max-width: 100%; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1rem auto; } }


/* ==========================================================================
   Advertising — tasteful AdSense slots (manual placements)
   ========================================================================== */
.mh-ad {
	margin: 2rem auto; text-align: center; max-width: 100%;
	display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.mh-ad__label {
	font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted); opacity: .7;
}
.mh-ad ins { display: block; width: 100%; }
/* Reserve height so ads don't cause layout shift (CLS) */
.mh-ad--incontent, .mh-ad--belowpost { min-height: 100px; max-width: var(--wrap-narrow); }
.mh-ad--belowpost { margin-top: 2.4rem; }
.mh-ad--sidebar { min-height: 250px; margin: 0; }
.mh-ad--sidebar .mh-ad__label { margin-bottom: .1rem; }

/* ==========================================================================
   Recipe card (theme-native)
   ========================================================================== */
.mh-recipe {
	max-width: var(--wrap-narrow); margin: 0 auto 2.4rem; background: var(--paper);
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.mh-recipe__head { display: flex; gap: 1.2rem; padding: 1.4rem 1.5rem; align-items: flex-start; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.mh-recipe__img img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; }
.mh-recipe__intro { flex: 1; min-width: 0; }
.mh-recipe__eyebrow { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: .3rem; }
.mh-recipe__title { font-size: var(--step-2); margin: 0 0 .4rem; line-height: 1.15; }
.mh-recipe__summary { margin: 0 0 .8rem; color: var(--text-muted); font-size: .95rem; }
.mh-recipe__print { padding: .45rem 1rem; font-size: .85rem; }

.mh-recipe__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.mh-recipe__meta li { flex: 1 1 auto; min-width: 110px; padding: .8rem 1rem; text-align: center; border-right: 1px solid var(--line-soft); }
.mh-recipe__meta li:last-child { border-right: none; }
.mh-recipe__meta-label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.mh-recipe__meta-value { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--green-deep); }

.mh-recipe__cols { display: grid; gap: 0; }
@media (min-width: 720px) { .mh-recipe__cols { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); } }
.mh-recipe__ingredients, .mh-recipe__steps { padding: 1.3rem 1.5rem; }
@media (min-width: 720px) { .mh-recipe__ingredients { border-right: 1px solid var(--line-soft); } }
.mh-recipe h3 { font-size: 1.15rem; margin: 0 0 .7rem; padding-bottom: .35rem; border-bottom: 2px solid var(--cream-2); position: relative; }
.mh-recipe h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 34px; height: 2px; background: var(--clay); }
.mh-recipe__group { font-size: .95rem; margin: 1rem 0 .35rem; color: var(--green-deep); }
.mh-recipe__ingredients ul { list-style: none; margin: 0; padding: 0; }
.mh-recipe__ingredients li { padding: .35rem 0 .35rem 1.1rem; position: relative; font-size: .95rem; line-height: 1.45; border-bottom: 1px dashed var(--line-soft); }
.mh-recipe__ingredients li:last-child { border-bottom: none; }
.mh-recipe__ingredients li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.mh-recipe__steps ol { margin: 0; padding-left: 1.2rem; }
.mh-recipe__steps li { margin-bottom: .7rem; font-size: .97rem; line-height: 1.6; }
.mh-recipe__steps li::marker { color: var(--clay); font-weight: 700; }
.mh-recipe__notes { padding: 1.1rem 1.5rem; background: var(--cream-2); border-top: 1px solid var(--line); }
.mh-recipe__notes p { margin: 0; font-size: .93rem; color: var(--text-muted); }

/* Print: recipe only */
@media print {
	body * { visibility: hidden; }
	.mh-recipe, .mh-recipe * { visibility: visible; }
	.mh-recipe { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: none; }
	.mh-recipe__print { display: none; }
}

/* ---------- Homepage intro / welcome ---------- */
.home-intro { text-align: center; max-width: 660px; margin: 1.2rem auto 2.4rem; }
.home-intro__mark { display: inline-grid; place-items: center; width: 46px; height: 46px; background: var(--green); color: var(--cream); border-radius: 12px; margin-bottom: .7rem; }
.home-intro__mark svg { width: 26px; height: 26px; }
.home-intro__heading { font-size: var(--step-3); margin: 0 0 .5rem; color: var(--green-deep); }
.home-intro__text { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; margin: 0 auto; max-width: 60ch; }
@media (max-width: 600px) { .home-intro { margin: .4rem auto 1.8rem; } .home-intro__text { font-size: 1rem; } }

/* ---------- Contact form ---------- */
.mh-cform { max-width: var(--wrap-narrow); margin: 1.4rem 0 0; }
.mh-cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mh-cform__row { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1.1rem; }
.mh-cform__row label { font-weight: 600; font-size: .92rem; color: var(--green-deep); }
.mh-cform input[type="text"], .mh-cform input[type="email"], .mh-cform textarea {
	width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); color: var(--ink);
}
.mh-cform input:focus, .mh-cform textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent); }
.mh-cform textarea { resize: vertical; min-height: 140px; }
.mh-cform .cf-turnstile { margin-bottom: 1.1rem; }
.mh-cform__notice { padding: .9rem 1.2rem; border-radius: 10px; margin: 0 0 1.4rem; font-size: .96rem; max-width: var(--wrap-narrow); }
.mh-cform__notice--ok { background: color-mix(in srgb, var(--green) 12%, var(--cream)); border: 1px solid var(--sage); color: var(--green-deep); }
.mh-cform__notice--err { background: #fdeee7; border: 1px solid var(--clay); color: var(--clay-deep); }

/* ---------- Image lightbox (floating modal, page stays visible) ---------- */
.entry-content a:has(> img), .entry-content img { cursor: zoom-in; }
.mh-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
	padding: clamp(1rem, 4vw, 3rem); background: rgba(36,33,27,.3); backdrop-filter: blur(4px); }
.mh-lb.open { display: flex; animation: mh-lb-in .16s ease; }
@keyframes mh-lb-in { from { opacity: 0; } to { opacity: 1; } }
.mh-lb__modal { position: relative; margin: 0; background: var(--paper); border-radius: 14px; padding: .55rem;
	box-shadow: 0 30px 80px rgba(20,17,10,.4); max-width: min(94vw, 1100px); max-height: 92vh; display: flex; flex-direction: column; }
.mh-lb__img { max-width: 100%; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.mh-lb__cap { color: var(--text-muted); font-size: .86rem; text-align: center; padding: .5rem .4rem .1rem; }
.mh-lb__ctrl { border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
	border-radius: 50%; display: grid; place-items: center; line-height: 1; box-shadow: var(--shadow); transition: background var(--transition), color var(--transition); }
.mh-lb__ctrl:hover { background: var(--cream-2); color: var(--clay-deep); }
.mh-lb__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; font-size: 1.5rem; z-index: 2; }
.mh-lb__prev, .mh-lb__next { position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.9rem; }
.mh-lb__prev { left: clamp(.6rem, 2vw, 1.6rem); }
.mh-lb__next { right: clamp(.6rem, 2vw, 1.6rem); }
@media (max-width: 560px) { .mh-lb__prev, .mh-lb__next { width: 42px; height: 42px; font-size: 1.6rem; } }
