/*
Theme Name: Hearth & Herb
Author: Pursae
Version: 1.0.0
License: GPL-2.0-or-later
Fonts: SIL Open Font License 1.1 (see readme.md)
*/

@font-face { font-family: "Bitter"; src: url("fonts/bitter.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("fonts/bitter-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
	--bg: #f4efe6;
	--surface: #ebe3d4;
	--paper: #fbf8f2;
	--text: #2b2420;
	--heading: #221b17;
	--muted: #6a5d53;
	--accent: #3f6b3a;
	--accent-ink: #ffffff;
	--accent-hover: #2a4927;
	--wood: #8a5a3b;
	--forest: #22341f;
	--tomato: #c4522f;
	--line: #d9cdb9;
	--field-bg: #fffdf8;
	--font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
	--font-head: "Bitter", "Rockwell", "Roboto Slab", Georgia, serif;
	--radius: 6px;
	--radius-sm: 4px;
	--btn-radius: 4px;
	--wrap: 1240px;
	--content: 720px;
	--single: 800px;
	--gap: 2.5rem 2rem;
}

/* ==========================================================================
   Base: reset, typography, accessibility, layout, blocks, widgets, comments.
   The theme layer below sets the look; hh- is the theme's class prefix.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.18; margin: 1.6em 0 .55em; color: var(--heading, var(--text)); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p, ul, ol, figure, blockquote, table, pre, dl { margin: 0 0 1.25em; }
a { color: var(--link, var(--accent)); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
figure { margin-left: 0; margin-right: 0; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em auto; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .65em .8em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 700; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--surface); padding: 1em 1.2em; overflow: auto; border-radius: var(--radius-sm, 6px); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 2px; }
input, textarea, select, button { font: inherit; color: inherit; }

/* Accessibility */
.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:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	top: 12px; left: 12px; padding: 14px 22px; background: var(--text); color: var(--bg);
	font-weight: 700; text-decoration: none; border-radius: 4px;
}
.site-main:focus { outline: 0; }

/* Layout */
.wrap { width: min(100% - 2.5rem, var(--wrap, 1200px)); margin-inline: auto; }
.wrap--content { width: min(100% - 2.5rem, var(--content, 720px)); }
.layout { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
.hh-sidebar-right .layout:has(> .widget-area) { grid-template-columns: minmax(0, 1fr) 300px; }
.hh-sidebar-left .layout:has(> .widget-area) { grid-template-columns: 300px minmax(0, 1fr); }
.hh-sidebar-left .layout > .widget-area { order: -1; }
.hh-sidebar-none .layout > .widget-area { display: none; }
.layout--single .site-main { min-width: 0; }
@media (max-width: 900px) {
	.hh-sidebar-right .layout:has(> .widget-area), .hh-sidebar-left .layout:has(> .widget-area) { grid-template-columns: minmax(0, 1fr); }
	.hh-sidebar-left .layout > .widget-area { order: 0; }
}

/* Single posts without a sidebar keep a reading width */
.layout--single:not(:has(> .widget-area)) > .site-main, .hh-sidebar-none .layout--single > .site-main { width: 100%; max-width: var(--single, 780px); margin-inline: auto; }

/* Header & navigation mechanics */
.site-branding { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.site-logo img { max-height: 64px; width: auto; }
.site-title { margin: 0; line-height: 1.1; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 0; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a { text-decoration: none; color: inherit; display: block; }
.main-navigation li { position: relative; }
.menu-toggle {
	display: none; align-items: center; gap: .55rem; background: transparent; border: 1px solid currentColor;
	border-radius: 999px; padding: .5rem 1rem; cursor: pointer; line-height: 1; font-size: .9rem;
}
.menu-toggle__icon { position: relative; width: 18px; height: 12px; display: inline-block; }
.menu-toggle__icon::before, .menu-toggle__icon::after, .menu-toggle__icon span {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon span { top: 5px; }
.menu-toggle__icon::after { top: 10px; }
.menu-open .menu-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle__icon span { opacity: 0; }
.menu-open .menu-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 901px) {
	.main-navigation .menu, .main-navigation .primary-menu, .main-navigation .primary-menu-wrap > div > ul, .main-navigation .primary-menu-wrap > ul { display: flex; flex-wrap: wrap; align-items: center; }
	.main-navigation .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px; z-index: 50; display: block;
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
	}
	.main-navigation .sub-menu .sub-menu { top: 0; left: 100%; }
	.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }
	.main-navigation .primary-menu-wrap { display: none; }
	.main-navigation.toggled .primary-menu-wrap {
		display: block; position: absolute; left: -1.25rem; right: -1.25rem; top: 100%; z-index: 60;
		padding: 1rem 1.25rem 1.5rem; max-height: calc(100vh - 80px); overflow: auto;
	}
	.main-navigation .sub-menu { position: static; min-width: 0; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 0 0 1rem !important; }
	.main-navigation .sub-menu::before { display: none; }
}

/* Posts */
.post-list { display: grid; gap: var(--gap, 2rem); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.post-thumbnail img { width: 100%; }
body:not(.hh-thumbs) .post-thumbnail, body:not(.hh-thumbs) .card__media { display: none; }
body:not(.hh-author) .byline, body:not(.hh-author) .card__author { display: none; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .9rem; color: var(--muted); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--accent); }
.entry-footer { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.5rem; }
.tags-links { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tags-links a { text-decoration: none; font-size: .85rem; padding: .25em .8em; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.tags-links a:hover { border-color: var(--accent); color: var(--accent); }
.tags-links__label { font-size: .85rem; color: var(--muted); margin-right: .25rem; }
.sticky-badge { display: inline-block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.author-info, .author-bio { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 3rem; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); }
.author-info img, .author-bio img { border-radius: 50%; flex: none; }

/* Entry content blocks */
.entry-content { overflow-wrap: break-word; }
.entry-content > * { max-width: var(--content, 720px); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wrap, 1200px); }
.entry-content > .alignfull { max-width: none; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry--single .entry-content > *, .entry--single .entry-content > .alignwide { max-width: none; }
.wp-block-image img { height: auto; }
.wp-block-image figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: .6em; text-align: center; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 2rem; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } .wp-block-column { flex-basis: 100% !important; } }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25em; }
.wp-block-buttons.is-content-justification-center { justify-content: center; }
.wp-block-button__link, .button, .search-submit, input[type="submit"], .wp-block-search__button, .comment-form .submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em; cursor: pointer;
	background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
	padding: .72em 1.5em; border-radius: var(--btn-radius, 999px); text-decoration: none; font-weight: 600; line-height: 1.2;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.wp-block-button__link:hover, .button:hover, .search-submit:hover, input[type="submit"]:hover, .wp-block-search__button:hover {
	background: var(--accent-hover, var(--text)); border-color: var(--accent-hover, var(--text)); color: var(--bg); text-decoration: none;
}
.is-style-outline .wp-block-button__link { background: transparent; color: var(--text); border-color: currentColor; }
.is-style-outline .wp-block-button__link:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.wp-block-gallery { display: grid; gap: .8rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); padding: 0; }
.wp-block-gallery.columns-2 { --cols: 2; }
.wp-block-gallery.columns-4 { --cols: 4; }
.wp-block-gallery .wp-block-image { margin: 0; }
.wp-block-gallery.is-cropped .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 600px) { .wp-block-gallery { --cols: 2 !important; } }
.wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.wp-block-media-text__media img { width: 100%; }
@media (max-width: 781px) { .wp-block-media-text { grid-template-columns: 1fr; } .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 0; } }
.wp-block-table { overflow-x: auto; }
.wp-block-pullquote { margin-block: 2.5em; text-align: center; }
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-latest-posts { list-style: none; padding: 0; margin-left: 0; }
.wp-block-latest-posts.is-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-block-latest-posts.is-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-latest-posts.is-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 781px) { .wp-block-latest-posts.is-grid, .wp-block-latest-posts.is-grid.columns-2, .wp-block-latest-posts.is-grid.columns-4 { grid-template-columns: minmax(0, 1fr); } }
.wp-block-latest-posts.is-grid li { width: auto !important; margin: 0 !important; }
.wp-block-latest-posts__post-date { display: block; font-size: .85rem; color: var(--muted); }
.wp-block-spacer { clear: both; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; max-width: 100%; padding: .7em .9em; background: var(--field-bg, #fff); border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); color: var(--text);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: 2px solid transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.search-form, .wp-block-search__inside-wrapper { display: flex; gap: .5rem; }
.search-form .search-field, .wp-block-search__input { flex: 1; min-width: 0; }
.wp-block-search__label { display: block; font-weight: 700; margin-bottom: .4rem; }

/* Pagination & post navigation */
.pagination, .posts-navigation { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--btn-radius, 999px); text-decoration: none; color: var(--text); }
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }
.page-numbers.dots { border: 0; }
.post-navigation { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { text-decoration: none; color: var(--text); display: block; }
.post-navigation a:hover .post-title { color: var(--accent); }
.post-navigation .meta-nav, .post-navigation .nav-subtitle { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.post-navigation .post-title { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; } }

/* Comments */
.comments-area { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-left: clamp(1rem, 4vw, 2.5rem); }
.comment-list > li, .comment-list .children > li { margin: 0 0 1.25rem; }
.comment-body { padding: 1.25rem 1.4rem; background: var(--surface); border-radius: var(--radius); }
.comment-meta, .comment-metadata { font-size: .85rem; color: var(--muted); }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-author { display: flex; align-items: center; gap: .6rem; font-size: 1rem; color: var(--text); }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-author .says { display: none; }
.comment-content { margin-top: .6rem; }
.comment-content p:last-child { margin-bottom: 0; }
.reply { font-size: .85rem; margin-top: .5rem; }
.comment-reply-link { font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.4rem; margin-top: 0; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }
.bypostauthor > .comment-body { box-shadow: inset 3px 0 0 var(--accent); }

/* Widgets */
.widget { margin-bottom: 2.5rem; font-size: .95rem; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.widget-title, .widget h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.wp-block-tag-cloud a { font-size: .85rem !important; padding: .2em .75em; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.wp-block-latest-comments { padding: 0; list-style: none; }
.wp-block-latest-comments__comment { margin-bottom: .8rem; line-height: 1.45; }

/* 404 & no results */
.error-404 { text-align: center; padding-block: clamp(3rem, 10vw, 7rem); }
.error-404 .search-form { max-width: 460px; margin: 2rem auto 0; }
.error-404__code { font-family: var(--font-head); font-size: clamp(4.5rem, 3rem + 8vw, 9rem); line-height: 1; margin: 0; color: var(--accent); }
.no-results { padding: 2rem 0; }

/* Edit links */
.edit-link a { font-size: .85rem; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	html { scroll-behavior: auto; }
}

/* Print */
@media print {
	.site-header, .site-footer, .widget-area, .comments-area, .post-navigation, .menu-toggle, .wp-block-buttons, .skip-link, #wpadminbar { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	a { color: #000; text-decoration: none; }
	.layout { display: block; padding: 0; }
}


/* ==========================================================================
   Hearth & Herb
   ========================================================================== */

.hh-font-serif { --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif; --font-body: "Work Sans", sans-serif; }
.hh-font-system { --font-head: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.hh-font-system h1, .hh-font-system h2, .hh-font-system h3 { font-weight: 800; }

/* Utility bar & header */
.utility-bar { background: var(--forest); color: #e9e4d6; font-size: .85rem; }
.utility-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.utility-bar__text { margin: 0; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-search { display: flex; align-items: center; background: rgba(255,255,255,.1); border-radius: 999px; padding: 0 .3rem 0 .9rem; }
.header-search input[type="search"] { background: transparent; border: 0; color: #fff; padding: .35rem 0; width: 13rem; font-size: .85rem; }
.header-search input::placeholder { color: rgba(255,255,255,.7); }
.header-search input:focus { box-shadow: none; }
.header-search:focus-within { outline: 2px solid #c9dfb9; }
.header-search button { background: transparent; border: 0; color: #fff; padding: .4rem; cursor: pointer; display: flex; }
.site-header { background: var(--paper); position: relative; z-index: 40; }
.hh-sticky .site-header { position: sticky; top: 0; }
.admin-bar.hh-sticky .site-header { top: 32px; }
.hh-sticky.is-scrolled .site-header { box-shadow: 0 6px 20px -12px rgba(0,0,0,.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 92px; position: relative; }
.leaf-mark { color: var(--accent); flex: none; }
.site-branding .leaf-mark { width: 34px; height: 34px; }
.site-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem); letter-spacing: -.02em; }
.site-description { font-size: .85rem; color: var(--muted); font-style: italic; font-family: var(--font-head); }
.main-navigation .primary-menu-wrap > div > ul > li > a, .main-navigation .primary-menu-wrap > ul > li > a { padding: .6rem .95rem; font-weight: 600; font-size: .95rem; border-radius: 4px; }
.main-navigation .primary-menu-wrap > div > ul > li > a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { color: var(--accent); background: var(--surface); }
.main-navigation .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: .5rem; }
.main-navigation .sub-menu { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: .5rem 0; box-shadow: 0 16px 30px -18px rgba(0,0,0,.4); }
.main-navigation .sub-menu a { padding: .5rem 1.1rem; font-size: .93rem; }
.main-navigation .sub-menu a:hover { background: var(--surface); color: var(--accent); }
.plank { height: 14px; background:
	repeating-linear-gradient(90deg, transparent 0 180px, rgba(0,0,0,.18) 180px 182px, transparent 182px 420px),
	repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 2px, transparent 2px 5px),
	linear-gradient(var(--wood), color-mix(in srgb, var(--wood) 75%, #000)); }
@media (max-width: 900px) {
	.site-header__inner { min-height: 72px; }
	.menu-toggle { border-radius: 4px; border-color: var(--line); background: var(--surface); }
	.main-navigation.toggled .primary-menu-wrap { background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.4); }
	.main-navigation .primary-menu-wrap a { padding: .7rem .2rem; border-bottom: 1px solid var(--line); font-weight: 600; }
	.header-search input[type="search"] { width: 9rem; }
}
@media (max-width: 520px) { .utility-bar__text { display: none; } .utility-bar__inner { justify-content: center; } .header-search { width: 100%; } .header-search input[type="search"] { width: 100%; } .site-description { display: none; } }

/* Page headers */
.page-header { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.page-header.has-banner { background: linear-gradient(90deg, rgba(20,28,18,.88), rgba(20,28,18,.45)), var(--banner) center / cover; color: #fff; border: 0; }
.page-header.has-banner .page-title, .page-header.has-banner .page-header__kicker, .page-header.has-banner .archive-description { color: #fff; }
.page-header__kicker { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: .6rem; }
.page-header__kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.page-title { margin: 0; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); font-weight: 800; }
.archive-description, .page-header__lead { max-width: 640px; margin-top: .8rem; color: var(--muted); font-size: 1.08rem; }
.archive-description p, .page-header__lead p { margin: 0; }
.page-header__search { max-width: 520px; margin-top: 1.4rem; }
.search-term { color: var(--tomato); }
.page-header.has-banner .search-term { color: #f6c79d; }

/* Cards */
.post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hh-sidebar-right .layout:has(> .widget-area) .post-list, .hh-sidebar-left .layout:has(> .widget-area) .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 18px 30px -26px rgba(40, 30, 20, .55); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 26px 40px -26px rgba(40, 30, 20, .6); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.hh-ratio-square .card__media { aspect-ratio: 1; }
.hh-ratio-tall .card__media { aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__cats { margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.card__cats a { background: var(--accent); color: #fff; text-decoration: none; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 2px; }
.card__cats a:nth-child(n+2) { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.card__cats a:hover { background: var(--heading); color: #fff; }
.sticky-badge { background: var(--tomato); color: #fff; padding: .28rem .6rem; border-radius: 2px; font-weight: 700; font-size: .7rem; }
.card__title { font-size: 1.35rem; margin: 0 0 .5rem; font-weight: 700; }
.card__title a { color: var(--heading); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--muted); font-size: .96rem; }
.card__excerpt p { margin: 0 0 .8rem; }
.card__meta { margin: auto 0 .7rem; font-size: .82rem; color: var(--muted); display: flex; gap: .3rem 1rem; flex-wrap: wrap; }
.card__author { font-weight: 600; color: var(--text); }
.card__more { font-weight: 700; color: var(--accent); text-decoration: none; font-size: .92rem; border-top: 1px dashed var(--line); padding-top: .8rem; }
.card__more:hover { color: var(--tomato); }

/* Feature layout: the first post spans the row */
@media (min-width: 782px) {
	.hh-layout-feature .post-list > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
	.hh-layout-feature .post-list > .card:first-child .card__media { aspect-ratio: auto; min-height: 420px; height: 100%; }
	.hh-layout-feature .post-list > .card:first-child .card__body { padding: clamp(1.5rem, 3vw, 3rem); justify-content: center; }
	.hh-layout-feature .post-list > .card:first-child .card__title { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 800; }
	.hh-layout-feature .post-list > .card:first-child .card__excerpt { font-size: 1.08rem; }
	.hh-layout-feature .post-list > .card:first-child .card__meta { margin-top: .5rem; }
}
.hh-layout-list .post-list, .hh-layout-list.hh-sidebar-right .layout:has(> .widget-area) .post-list, .hh-layout-list.hh-sidebar-left .layout:has(> .widget-area) .post-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
	.hh-layout-list .card { display: grid; grid-template-columns: minmax(200px, 38%) 1fr; }
	.hh-layout-list .card__media { aspect-ratio: auto; height: 100%; min-height: 240px; }
	.hh-layout-list:not(.hh-thumbs) .card { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-list, .hh-sidebar-right .layout:has(> .widget-area) .post-list, .hh-sidebar-left .layout:has(> .widget-area) .post-list { grid-template-columns: minmax(0, 1fr); } }

/* Single */
.entry--single .entry-header { margin-bottom: 2rem; }
.entry-cats { margin: 0 0 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.entry-cats a { background: var(--accent); color: #fff; text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 2px; }
.entry--single .entry-title { margin: 0 0 1rem; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 800; }
.entry-standfirst { font-size: 1.2rem; color: var(--muted); font-family: var(--font-head); font-style: italic; font-weight: 500; }
.entry-standfirst p { margin: 0 0 1rem; }
.entry--single .entry-meta { padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-meta__label { color: var(--muted); }
.byline .author { font-weight: 700; color: var(--text); }
.entry--single .post-thumbnail { margin: 0 0 2.5rem; }
.entry--single .post-thumbnail img { border-radius: var(--radius); }
.entry-content h2 { font-weight: 800; }
.entry-content h2::before { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); margin-bottom: .6rem; border-radius: 2px; }
.entry-content .wp-block-image img { border-radius: var(--radius); }
.entry-content ul:not([class]) li::marker, .entry-content ul.wp-block-list:not(.ingredients):not(.recipe-facts) li::marker { color: var(--accent); }
.wp-block-quote { margin-block: 2.5rem; padding: .4rem 0 .4rem 1.6rem; border-left: 4px solid var(--wood); font-family: var(--font-head); font-size: 1.3rem; font-style: italic; font-weight: 500; color: var(--heading); }
.wp-block-quote cite { display: block; margin-top: .4rem; font-family: var(--font-body); font-style: normal; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.wp-block-pullquote { border-top: 4px solid var(--accent); border-bottom: 4px solid var(--accent); padding: 1.6rem 1rem; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.tip-box { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--tomato); padding: 1.2rem 1.4rem !important; border-radius: var(--radius); }
.tip-box h3 { margin-top: 0; font-size: 1.1rem; }

/* Printable recipe card */
.recipe-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-block: 3rem !important; padding: 0 !important; overflow: hidden; box-shadow: 0 24px 40px -32px rgba(40, 30, 20, .6); }
.recipe-card > * { padding-inline: clamp(1.2rem, 3vw, 2rem); }
.recipe-card > h2:first-child { background: var(--forest); color: #fff; margin: 0; padding-block: 1.3rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.recipe-card > h2:first-child::before { content: "Printable recipe"; display: block; width: auto; height: auto; background: none; margin: 0 0 .2rem; font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #b9d3a6; }
.recipe-facts { list-style: none; margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-bottom: 1px dashed var(--line); padding-block: 0 !important; }
.recipe-facts li { padding: .9rem .4rem; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; border-right: 1px dashed var(--line); }
.recipe-facts li:last-child { border-right: 0; }
.recipe-facts strong { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.recipe-card .wp-block-columns { padding-block: 1.6rem .4rem; gap: 2.5rem; }
.recipe-card h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; color: var(--accent); }
.ingredients { list-style: none; padding: 0; }
.ingredients li { position: relative; padding: .4rem 0 .4rem 1.9rem; border-bottom: 1px solid var(--surface); }
.ingredients li::before { content: ""; position: absolute; left: 0; top: .65rem; width: 15px; height: 15px; border: 2px solid var(--accent); border-radius: 3px; }
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1rem 2.9rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--wood); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.recipe-note { background: var(--surface); margin: 0 !important; padding-block: 1rem !important; font-size: .95rem; }
.recipe-note::before { content: "Cook\2019s note: "; font-weight: 700; color: var(--tomato); }
.recipe-card .wp-block-buttons { padding-block: 1.2rem; margin: 0; border-top: 1px dashed var(--line); }
.recipe-card .wp-block-button__link { background: var(--wood); border-color: var(--wood); color: #fff; }
.recipe-card .wp-block-button__link::before { content: "\2399"; font-size: 1.1em; }
.recipe-card .wp-block-button__link:hover { background: var(--forest); border-color: var(--forest); }

/* Pages */
.entry--page .entry-content { padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 4rem; }
.page-thumbnail { margin-top: 2.5rem; }
.page-thumbnail img { border-radius: var(--radius); max-height: 520px; object-fit: cover; }
.entry--page .entry-content > .alignfull { margin-inline: -1.25rem; padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; }
.band-green { background: var(--forest); color: #ece6d8; }
.band-green h2, .band-green h3 { color: #fff; }
.band-green a { color: #c9dfb9; }
.cat-tiles { gap: 1rem !important; }
.cat-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-tile .wp-block-image { margin: 0; }
.cat-tile .wp-block-image img { border-radius: 0 !important; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cat-tile h3 { margin: 0; padding: .9rem 1rem .2rem; font-size: 1.15rem; }
.cat-tile h3 a { color: var(--heading); text-decoration: none; }
.cat-tile h3 a:hover { color: var(--accent); }
.cat-tile p { padding: 0 1rem 1rem; margin: 0; color: var(--muted); font-size: .9rem; }
.meal-plan td:first-child { font-weight: 700; color: var(--accent); white-space: nowrap; }
.meal-plan thead th { background: var(--forest); color: #fff; }

/* Widgets */
.widget-area .widget { background: var(--paper); padding: 1.4rem; border-radius: var(--radius); border-top: 4px solid var(--accent); }
.widget-title, .widget h2 { font-size: .85rem !important; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; color: var(--accent); }
.widget h2::before { display: none !important; }
.widget li a { color: var(--text); font-weight: 500; }
.widget li a:hover { color: var(--accent); }
.widget .about-cooks img { border-radius: var(--radius); margin-bottom: .8rem; }

/* Pagination */
.page-numbers { border-radius: 4px; background: var(--paper); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Comments */
.comment-body { background: var(--paper); border: 1px solid var(--line); }

/* 404 */
.error-404__pot { color: var(--wood); margin: 0 auto 1rem; }
.error-404__code { color: var(--accent); font-weight: 800; }

/* Footer */
.site-footer { margin-top: 4rem; background: var(--forest); color: #d9d3c4; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 3rem; padding-block: 3.5rem 2.5rem; }
.footer-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #fff; margin: 0 0 .6rem; }
.footer-title .leaf-mark { color: #9cc58a; --bg: var(--forest); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }
.site-footer .widget-title, .site-footer .widget h2 { color: #b9d3a6; }
.site-footer .widget li { border-color: rgba(255,255,255,.12); }
.site-footer a, .site-footer .widget li a { color: #fff; }
.social-navigation ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-navigation a { display: inline-block; border: 1px solid rgba(255,255,255,.3); padding: .3rem .8rem; border-radius: 4px; text-decoration: none; font-size: .85rem; }
.social-navigation a:hover { background: #fff; color: var(--forest); }
.site-info { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.3rem; font-size: .85rem; }
.site-info p { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
@media (max-width: 781px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Printing a recipe: the recipe card is what matters */
@media print {
	.utility-bar, .plank, .page-header, .entry-footer, .post-thumbnail { display: none !important; }
	.recipe-card { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
	.recipe-card > h2:first-child { background: #fff; color: #000; border-bottom: 2px solid #000; }
	.steps li::before { background: #fff; color: #000; border: 1px solid #000; }
}
