/* ==========================================================================
   Pint-sized Treasures — main stylesheet
   1. Tokens
   2. Base & typography
   3. Layout
   4. Header & navigation
   5. Buttons & pills
   6. Entry content (posts & pages)
   7. Sidebar
   8. Cards & grids
   9. Recipe hero
   10. Archive & home
   11. Comments & forms
   12. Footer
   13. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--pst-primary: #DA5782;
	--pst-primary-dark: #C13D6B;
	--pst-secondary: #A54F90;
	--pst-accent: #19998B;
	--pst-accent-dark: #13786D;
	--pst-ink: #3A3A3A;
	--pst-muted: #5B5B5B;
	--pst-line: #EADFE4;
	--pst-blush: #FBEFF3;
	--pst-cream: #FBF8F4;
	--pst-surface: #FFFFFF;
	--pst-star: #E8A33D;

	--pst-font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--pst-font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--pst-content: 720px;
	--pst-wide: 1200px;
	--pst-gutter: clamp(1rem, 4vw, 2rem);
	--pst-sidebar: 336px; /* holds a 300px ad with breathing room */

	--pst-radius: 14px;
	--pst-radius-lg: 22px;
	--pst-shadow: 0 6px 24px rgba(91, 91, 91, 0.10);
	--pst-shadow-lg: 0 14px 40px rgba(165, 79, 144, 0.16);
	--pst-transition: 0.2s ease;
}

/* 2. Base & typography ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--pst-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--pst-ink);
	background: var(--pst-surface);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pst-font-head);
	font-weight: 600;
	line-height: 1.2;
	color: #2B2B2B;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }

p { margin: 0 0 1.25rem; }

a { color: var(--pst-primary-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--pst-transition); }
a:hover { color: var(--pst-secondary); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--pst-blush); }

:focus-visible { outline: 3px solid var(--pst-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link:focus { z-index: 100000; }

/* 3. Layout ---------------------------------------------------------------- */
.site-content__inner {
	max-width: var(--pst-wide);
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 3.5rem) var(--pst-gutter);
}
.site-content__inner.is-full { display: block; }

/* Full-width header zone (recipe hero, or title + featured image) on singles. */
.single-wrap .entry-hero { margin-bottom: clamp(2rem, 4vw, 3rem); }
.single-wrap .entry-hero .recipe-hero { margin-bottom: 0; }
.single-wrap .entry-hero .entry-featured-image { margin-bottom: 0; }

/* Story + sidebar grid, sitting below the full-width header zone. */
.entry-layout.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--pst-sidebar);
	gap: clamp(2rem, 4vw, 3rem);
	align-items: start;
}

.site-main { min-width: 0; }

/* Center body copy in posts but let wide/full blocks breathe. */
.entry-content > * { max-width: var(--pst-content); margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--pst-wide); }
.entry-content > .alignfull { max-width: none; margin-inline: 0; }
.has-sidebar .entry-content > * { margin-inline: 0; }

/* Pages run full width — no narrow reading cap (great for Gutenberg layouts). */
.entry--page .entry-content > * { max-width: none; margin-inline: 0; }

/* 4. Header & navigation --------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.1) blur(6px);
	border-bottom: 1px solid var(--pst-line);
}
.site-header__inner {
	max-width: var(--pst-wide);
	margin-inline: auto;
	padding: 0.75rem var(--pst-gutter);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.site-branding { flex: 0 0 auto; }
.custom-logo, .custom-logo img { display: block; height: auto; max-width: 100%; }
.site-title { font-family: var(--pst-font-head); font-size: 1.4rem; margin: 0; }
.site-title a { color: var(--pst-secondary); text-decoration: none; }
.site-description { margin: 0; font-size: 0.8rem; color: var(--pst-muted); }

.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; align-items: center; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 0.5rem 0.9rem;
	color: var(--pst-ink);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: 999px;
	transition: background var(--pst-transition), color var(--pst-transition);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: var(--pst-blush); color: var(--pst-primary-dark); }

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	flex-direction: column;
	gap: 0;
	background: var(--pst-surface);
	border: 1px solid var(--pst-line);
	border-radius: var(--pst-radius);
	box-shadow: var(--pst-shadow);
	padding: 0.4rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all var(--pst-transition);
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu-toggle { display: none; }

.site-header__actions { flex: 0 0 auto; }
.header-search-toggle {
	border: 0; background: transparent; color: var(--pst-ink);
	width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
	display: grid; place-items: center; transition: background var(--pst-transition);
}
.header-search-toggle:hover { background: var(--pst-blush); color: var(--pst-primary-dark); }

.header-search { border-bottom: 1px solid var(--pst-line); background: var(--pst-cream); }
.header-search__inner { max-width: var(--pst-wide); margin-inline: auto; padding: 1rem var(--pst-gutter); }

/* Headline 4-tile category nav (replaces the text primary menu). */
.cat-nav { margin-left: auto; }
.cat-nav__grid { display: flex; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.cat-nav__item { display: flex; }
.cat-nav__tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	min-width: 90px; padding: 9px 14px;
	border: 1px solid var(--pst-line); border-radius: 14px; background: var(--pst-cream);
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-nav__icon { display: block; line-height: 0; color: var(--pst-secondary); transition: color 0.2s ease; }
.cat-nav__svg { display: block; width: 26px; height: 26px; }
.cat-nav__label { font-family: var(--pst-font-head); font-size: 0.95rem; font-weight: 600; line-height: 1; color: #2B2B2B; transition: color 0.2s ease; }
.cat-nav__tile:hover,
.cat-nav__tile:focus-visible,
.cat-nav__tile.is-current {
	background: linear-gradient(150deg, var(--pst-primary), var(--pst-secondary));
	border-color: transparent;
	transform: translateY(-2px);
	box-shadow: var(--pst-shadow-lg);
}
.cat-nav__tile:hover .cat-nav__icon, .cat-nav__tile:focus-visible .cat-nav__icon, .cat-nav__tile.is-current .cat-nav__icon,
.cat-nav__tile:hover .cat-nav__label, .cat-nav__tile:focus-visible .cat-nav__label, .cat-nav__tile.is-current .cat-nav__label { color: #fff; }

/* Mobile-panel version: 2x2 grid, icon beside label. */
.cat-nav--mobile { margin: 0 0 0.9rem; }
.cat-nav--mobile .cat-nav__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cat-nav--mobile .cat-nav__item { display: block; }
.cat-nav--mobile .cat-nav__tile { width: 100%; flex-direction: row; justify-content: flex-start; gap: 10px; min-width: 0; }

.menu-toggle { display: none; }

/* Mobile panel (shown only on mobile, toggled by the hamburger). */
.mobile-nav { background: var(--pst-cream); border-bottom: 1px solid var(--pst-line); }
.mobile-nav__inner { max-width: var(--pst-wide); margin-inline: auto; padding: 1rem var(--pst-gutter) 1.25rem; }
.mobile-nav__search { margin-bottom: 0.85rem; }
.mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
.mobile-navigation li { position: relative; border-bottom: 1px solid var(--pst-line); }
.mobile-navigation li:last-child { border-bottom: 0; }
.mobile-navigation a { display: block; padding: 0.8rem 0.3rem; color: var(--pst-ink); font-weight: 700; text-decoration: none; }
.mobile-navigation a:hover { color: var(--pst-primary-dark); }
.mobile-navigation .current-menu-item > a { color: var(--pst-primary-dark); }
.mobile-navigation .sub-menu { list-style: none; margin: 0; padding: 0 0 0.4rem 1rem; display: none; }
.mobile-navigation .submenu-open > .sub-menu { display: block; }
.mobile-navigation .submenu-toggle {
	display: inline-flex; position: absolute; right: 0; top: 0.2rem;
	border: 0; background: transparent; color: var(--pst-ink); cursor: pointer;
	width: 44px; height: 44px; align-items: center; justify-content: center;
}
.mobile-navigation .submenu-open > .submenu-toggle { transform: rotate(180deg); }
@media (min-width: 861px) { .mobile-nav { display: none !important; } }

/* 5. Buttons & pills ------------------------------------------------------- */
.pst-btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.4rem;
	font-family: var(--pst-font-body);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--pst-transition);
}
.pst-btn--primary, .wp-block-button__link, button[type="submit"], input[type="submit"] {
	background: var(--pst-primary); color: #fff;
}
.pst-btn--primary:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	background: var(--pst-primary-dark); color: #fff; transform: translateY(-1px);
}
.pst-btn--ghost {
	background: #fff; color: var(--pst-secondary); border-color: var(--pst-line);
}
.pst-btn--ghost:hover { border-color: var(--pst-secondary); color: var(--pst-secondary); }
.pst-btn--pin { background: var(--pst-accent); color: #fff; }
.pst-btn--pin:hover { background: var(--pst-accent-dark); color: #fff; transform: translateY(-1px); }
.pst-btn__icon { flex: 0 0 auto; display: block; }

.pst-cat-pill {
	display: inline-block;
	padding: 0.25rem 0.8rem;
	background: var(--pst-secondary);
	color: #fff;
	font-family: var(--pst-font-body);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 999px;
}
.pst-cat-pill:hover { background: var(--pst-primary); color: #fff; }

/* Category eyebrow — shared by cards and single-post title areas. */
.pst-cat-eyebrow {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
}
.pst-cat-eyebrow.is-recipe { color: var(--pst-primary); }
.pst-cat-eyebrow.is-recipe:hover { color: var(--pst-primary-dark); }
.pst-cat-eyebrow.is-other { color: var(--pst-accent-dark); }
.pst-cat-eyebrow.is-other:hover { color: var(--pst-secondary); }
/* A touch larger in the post title area. */
.entry-header .pst-cat-eyebrow,
.recipe-hero__body .pst-cat-eyebrow { display: block; font-size: 0.8rem; margin-bottom: 0.5rem; }

/* Category trail (e.g. RECIPES / DESSERTS) in post headers. */
.pst-cat-trail {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
	font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	margin-bottom: 0.6rem;
}
.pst-cat-trail__item { color: var(--pst-muted); text-decoration: none; }
.pst-cat-trail__item:hover { color: var(--pst-primary-dark); }
.pst-cat-trail__item.is-current { color: var(--pst-primary); }
.pst-cat-trail__item.is-current:hover { color: var(--pst-primary-dark); }
.pst-cat-trail__sep { color: var(--pst-muted); opacity: 0.55; }

/* 6. Entry content --------------------------------------------------------- */
.entry-header { margin-bottom: 1.75rem; }
.entry-header .pst-cat-pill { margin-bottom: 0.9rem; }
.entry-title { margin: 0.3rem 0 0.6rem; }
.entry-header--page { text-align: center; margin-bottom: 2rem; }

.entry-meta { color: var(--pst-muted); font-size: 0.9rem; }
.entry-meta a { color: var(--pst-muted); font-weight: 700; }
.entry-meta a:hover { color: var(--pst-primary-dark); }
.meta-sep { opacity: 0.5; margin: 0 0.15rem; }

.entry-featured-image { margin: 0 0 2rem; border-radius: var(--pst-radius-lg); overflow: hidden; box-shadow: var(--pst-shadow); }
.entry-featured-image img { width: 100%; }

.entry-content { font-size: 1.075rem; }
.entry-content h2 { margin-top: 2.2rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: var(--pst-radius); }
.entry-content blockquote {
	margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem;
	border-left: 4px solid var(--pst-primary);
	font-family: var(--pst-font-head); font-size: 1.2rem; font-style: italic; color: var(--pst-secondary);
}
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content hr { border: 0; height: 1px; background: var(--pst-line); margin: 2.5rem auto; }

.entry-footer { margin-top: 2rem; }
.entry-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.entry-tags a {
	display: inline-block; padding: 0.2rem 0.7rem; background: var(--pst-cream);
	border: 1px solid var(--pst-line); border-radius: 999px;
	font-size: 0.82rem; color: var(--pst-muted); text-decoration: none;
}
.entry-tags a:hover { border-color: var(--pst-primary); color: var(--pst-primary-dark); }

/* 7. Sidebar --------------------------------------------------------------- */
/* min-width:0 + wrapping keep long unbroken strings (URLs, pasted code) from
   blowing the fixed sidebar column past the page width. */
.widget-area { width: 100%; min-width: 0; }
.widget-area__sticky { position: sticky; top: 90px; display: grid; gap: 1.75rem; min-width: 0; }
.widget-area__sticky, .widget-area__sticky * { min-width: 0; overflow-wrap: anywhere; }
.widget {
	background: var(--pst-cream);
	border: 1px solid var(--pst-line);
	border-radius: var(--pst-radius);
	padding: 1.4rem 1rem; /* slim sides so a 300px ad fits the column */
}
/* Ad widgets should sit flush (no card chrome) so the unit isn't boxed in. */
.widget.widget_media_image,
.widget.ad-widget {
	background: transparent;
	border: 0;
	padding: 0;
	text-align: center;
}
.widget-title {
	font-size: 1.05rem; margin: 0 0 0.9rem; padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--pst-blush);
}

/* Author card (top of sidebar) */
.author-card {
	background: var(--pst-surface);
	border: 1px solid var(--pst-line);
	border-radius: var(--pst-radius-lg);
	overflow: hidden;
	text-align: center;
	padding-bottom: 1.5rem;
}
.author-card__banner { height: 84px; background: linear-gradient(135deg, var(--pst-primary), var(--pst-secondary)); }
.author-card__avatar {
	width: 104px; height: 104px; margin: -52px auto 0.85rem;
	border-radius: 50%; border: 4px solid #fff; overflow: hidden;
	box-shadow: var(--pst-shadow); background: #fff;
}
.author-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-card__eyebrow {
	font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--pst-secondary); margin: 0 0 0.15rem;
}
.author-card__name { font-family: var(--pst-font-head); font-size: 1.45rem; color: #2B2B2B; margin: 0 0 0.6rem; padding: 0 1.2rem; }
.author-card__bio { font-size: 0.92rem; line-height: 1.6; color: var(--pst-muted); margin: 0 1.3rem 1.1rem; }
.author-card__link {
	display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase;
	color: var(--pst-primary-dark); text-decoration: none;
}
.author-card__link:hover { color: var(--pst-secondary); }
.author-card__social { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.35rem 0; border-bottom: 1px solid var(--pst-line); }
.widget li:last-child { border-bottom: 0; }

/* 8. Cards & grids --------------------------------------------------------- */
/* Default grid: 4 across on desktop, 2x2 on tablets, 1 column on phones. */
.card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }
/* Optional 3-up variant. (--4 now matches the default and is kept for clarity.) */
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	background: var(--pst-surface);
	border: 1px solid var(--pst-line);
	border-radius: var(--pst-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--pst-transition), box-shadow var(--pst-transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--pst-shadow-lg); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--pst-blush); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--pst-blush), var(--pst-cream)); }

.card__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card__title { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.card__title a { color: #2B2B2B; text-decoration: none; }
.card__title a:hover { color: var(--pst-primary-dark); }
.card__excerpt { font-size: 0.92rem; color: var(--pst-muted); margin: 0; }
.card__more { margin-top: auto; font-weight: 800; font-size: 0.85rem; color: var(--pst-primary-dark); }
.card__rating { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--pst-muted); }
.card__rating-count { font-weight: 700; }

/* 9. Recipe hero ----------------------------------------------------------- */
/* Info on the left, photo on the right; photo stretches to the info's height. */
.recipe-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: stretch;
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--pst-line);
}
.recipe-hero.has-media { grid-template-columns: 1fr 0.7fr; }
.recipe-hero__media {
	position: relative;
	border-radius: var(--pst-radius-lg);
	overflow: hidden;
	box-shadow: var(--pst-shadow);
	min-height: 320px;
}
.recipe-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.recipe-hero__body { display: flex; flex-direction: column; gap: 1rem; }
.recipe-hero__title { margin: 0.4rem 0 0; font-size: clamp(2rem, 4vw, 2.9rem); }

.recipe-hero__byline { display: flex; align-items: center; gap: 0.6rem; color: var(--pst-muted); font-size: 0.9rem; }
.recipe-hero__avatar { border-radius: 50%; width: 44px; height: 44px; }
.recipe-hero__byline a { color: var(--pst-secondary); font-weight: 700; }

.recipe-hero__rating { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--pst-muted); font-size: 0.92rem; width: fit-content; }
.recipe-hero__rating-text strong { color: var(--pst-ink); }
.recipe-hero__rating:hover .recipe-hero__rating-text { color: var(--pst-primary-dark); }

.pst-stars { display: inline-flex; gap: 1px; color: var(--pst-star); font-size: 1.05rem; line-height: 1; }
.pst-star { color: #DAD2D6; position: relative; }
.pst-star.is-full { color: var(--pst-star); }
.pst-star.is-half { color: #DAD2D6; }
.pst-star.is-half > span { position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--pst-star); }

.recipe-hero__summary { font-size: 1.05rem; margin: 0; color: var(--pst-ink); }
.recipe-hero__note {
	margin: 0; padding: 0.9rem 1.1rem; background: var(--pst-blush);
	border-radius: var(--pst-radius); font-size: 0.96rem; color: var(--pst-secondary);
}
.recipe-hero__note-label { font-weight: 800; display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

.recipe-hero__stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	gap: 0.5rem; margin: 0.25rem 0 0;
	background: var(--pst-cream); border: 1px solid var(--pst-line);
	border-radius: var(--pst-radius); padding: 1rem 0.5rem;
}
.recipe-hero__stat { text-align: center; padding: 0 0.5rem; }
.recipe-hero__stat + .recipe-hero__stat { border-left: 1px solid var(--pst-line); }
.recipe-hero__stat dt { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pst-accent-dark); margin: 0 0 0.2rem; }
.recipe-hero__stat dd { margin: 0; font-family: var(--pst-font-head); font-size: 1.1rem; color: var(--pst-ink); }

.pst-recipe-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }

/* 10. Archive & home ------------------------------------------------------- */
.archive-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.archive-header__title { margin: 0 0 0.6rem; }
.archive-header__title span { color: var(--pst-primary); }
.archive-header__desc { color: var(--pst-muted); font-size: 1.05rem; }
.archive-header--recipe {
	background: var(--pst-blush);
	border-radius: var(--pst-radius-lg);
	padding: clamp(2rem, 5vw, 3rem) 1.5rem;
	max-width: none;
}

/* Homepage --------------------------------------------------------------- */
.home > section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.home > section:last-child { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* Constrained sections get a responsive gutter via min(); bands stay full-bleed. */
.home-section,
.home-featured,
.home-about { width: min(var(--pst-wide), 100% - 2 * var(--pst-gutter)); margin-inline: auto; }

/* 1. Search band */
.home-search { background: var(--pst-blush); padding: clamp(2.5rem, 6vw, 4.5rem) var(--pst-gutter); text-align: center; }
.home-search__inner { max-width: 720px; margin-inline: auto; }
.home-search__eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.8rem; color: var(--pst-secondary); margin: 0 0 0.5rem; }
.home-search__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 1.3rem; }
.home-search__form .search-form { max-width: 520px; margin: 0 auto; }
.home-search__form input[type="search"] { box-shadow: var(--pst-shadow); }
.home-search__links { margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; justify-content: center; align-items: center; }
.home-search__links span { font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; color: var(--pst-muted); }
.home-search__links a { color: var(--pst-primary-dark); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.home-search__links a:hover { color: var(--pst-secondary); }

/* Section heads */
.home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.home-section__title { margin: 0; }
.home-section__sub { color: var(--pst-muted); margin: 0; flex-basis: 100%; }
.home-section__more { font-weight: 800; font-size: 0.85rem; color: var(--pst-primary-dark); text-decoration: none; white-space: nowrap; }
.home-section__more:hover { color: var(--pst-secondary); }
.home-section--alt { background: var(--pst-cream); border-radius: var(--pst-radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }

/* 2. Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(0.9rem, 2vw, 1.4rem); }
.cat-tile {
	position: relative; aspect-ratio: 4 / 3; border-radius: var(--pst-radius-lg); overflow: hidden;
	display: flex; align-items: flex-end; justify-content: center; text-decoration: none;
	background-size: cover; background-position: center; box-shadow: var(--pst-shadow);
}
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,43,43,0) 35%, rgba(43,43,43,0.7) 100%); transition: background var(--pst-transition); }
.cat-tile--noimg { background: linear-gradient(135deg, var(--pst-primary), var(--pst-secondary)); }
.cat-tile--noimg::after { background: rgba(0,0,0,0.1); }
.cat-tile__label { position: relative; z-index: 1; color: #fff; font-family: var(--pst-font-head); font-size: 1.25rem; font-weight: 600; padding: 0 0.7rem 0.95rem; text-align: center; }
.cat-tile:hover::after { background: linear-gradient(180deg, rgba(218,87,130,0.25) 0%, rgba(43,43,43,0.78) 100%); }

/* 3. Featured recipe */
.home-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.home-featured__media { border-radius: var(--pst-radius-lg); overflow: hidden; box-shadow: var(--pst-shadow); aspect-ratio: 3 / 2; }
.home-featured__media a { display: block; width: 100%; height: 100%; }
.home-featured__media img, .home-featured__media .card__placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-featured__flag { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; font-size: 0.72rem; color: var(--pst-accent-dark); margin: 0 0 0.4rem; }
.home-featured__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0.3rem 0 0.6rem; }
.home-featured__title a { color: #2B2B2B; text-decoration: none; }
.home-featured__title a:hover { color: var(--pst-primary-dark); }
.home-featured__excerpt { color: var(--pst-muted); margin: 0.6rem 0 1.2rem; }

/* 5. Email opt-in band */
.home-optin { background: linear-gradient(135deg, var(--pst-primary), var(--pst-secondary)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) var(--pst-gutter); text-align: center; }
/* Flodesk variant: neutral container so Flodesk's own form design shows through. */
.home-optin--flodesk { background: var(--pst-cream); color: var(--pst-ink); }
.home-optin--flodesk .home-optin__inner { max-width: 680px; }
.home-optin__inner { max-width: 600px; margin-inline: auto; }
.home-optin__eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; font-size: 0.78rem; opacity: 0.9; margin: 0 0 0.4rem; }
.home-optin__title { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.6rem; }
.home-optin__text { opacity: 0.92; margin: 0 0 1.4rem; }
.home-optin__form { display: flex; gap: 0.6rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.home-optin__form input { flex: 1 1 220px; border: 0; }
.home-optin__form .pst-btn { background: #fff; color: var(--pst-primary-dark); }
.home-optin__form .pst-btn:hover { background: var(--pst-cream); color: var(--pst-primary-dark); }
.home-optin__note { font-size: 0.8rem; opacity: 0.8; margin: 0.9rem 0 0; }
.pst-subscribe-msg.is-success { opacity: 1; font-weight: 800; font-size: 1rem; }
.pst-subscribe-msg.is-error { opacity: 1; font-weight: 700; }
/* Honeypot — hidden from people, visible to dumb bots. */
.pst-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 6. Meet the author */
.home-about { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; background: var(--pst-cream); border-radius: var(--pst-radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); }
.home-about__img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; box-shadow: var(--pst-shadow); }
.home-about__eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; font-size: 0.75rem; color: var(--pst-secondary); margin: 0 0 0.3rem; }
.home-about__name { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.6rem; }
.home-about__text { color: var(--pst-muted); margin: 0 0 1.2rem; max-width: 60ch; }

.pagination, .comments-pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 0.6rem;
	border: 1px solid var(--pst-line); border-radius: 999px; text-decoration: none;
	color: var(--pst-ink); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--pst-primary); color: #fff; border-color: var(--pst-primary); }
.pagination a.page-numbers:hover { border-color: var(--pst-primary); color: var(--pst-primary-dark); }

.no-results { text-align: center; max-width: 560px; margin: 3rem auto; }
.error-404 h1 { font-size: clamp(2rem, 5vw, 3rem); }
.error-404__links { margin-top: 1.5rem; }

/* 11. Comments & forms ----------------------------------------------------- */
.comments-area { max-width: var(--pst-content); margin: 3rem auto 0; }
.has-sidebar .comments-area { margin-inline: 0; }
.comments-title, .comment-reply-title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--pst-line); }
.comment-author { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.82rem; color: var(--pst-muted); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1px solid var(--pst-line);
	border-radius: var(--pst-radius);
	font-family: var(--pst-font-body);
	font-size: 1rem;
	background: #fff;
	color: var(--pst-ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--pst-primary); outline: none; box-shadow: 0 0 0 3px var(--pst-blush); }

.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-form .search-submit { flex: 0 0 auto; }

.wp-block-search__inside-wrapper { gap: 0.5rem; }

/* 11b. Top bar, byline, author box, related ------------------------------- */
.top-bar {
	background: var(--pst-cream);
	border-bottom: 1px solid var(--pst-line);
	font-size: 0.72rem;
}
.top-bar__inner {
	max-width: var(--pst-wide);
	margin-inline: auto;
	padding: 0.4rem var(--pst-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.top-bar-menu { list-style: none; display: flex; gap: 0.2rem; margin: 0; padding: 0; flex-wrap: wrap; }
.top-bar-menu a {
	display: block; padding: 0.25rem 0.6rem;
	color: var(--pst-secondary);
	font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
	text-decoration: none; border-radius: 999px;
}
.top-bar-menu a:hover { color: var(--pst-primary-dark); background: var(--pst-blush); }

/* Social icons: outline line-style, plum, NO circle — same everywhere. */
.social-menu { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.social-menu { line-height: 0; }
.social-menu a { display: flex; align-items: center; justify-content: center; color: var(--pst-secondary); background: none; border: 0; border-radius: 0; padding: 0; line-height: 0; transition: color var(--pst-transition); }
.social-menu li { display: flex; align-items: center; }
.social-menu a:hover { color: var(--pst-primary); background: none; }
.pst-social-icon { display: block; width: 22px; height: 22px; }
/* Top bar: larger, vertically centred icons. */
.top-bar__social { display: flex; align-items: center; }
.social-menu--top { gap: 0.85rem; align-items: center; }
.social-menu--top .pst-social-icon { width: 24px; height: 24px; }

/* Date-above-title + byline */
.entry-dates {
	font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
	color: var(--pst-primary); text-transform: uppercase;
	margin-bottom: 0.4rem;
}
.entry-dates__updated { color: var(--pst-muted); font-weight: 700; margin-left: 0.4rem; }
.entry-header .entry-dates { margin-top: 0.6rem; }

.entry-byline { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; color: var(--pst-muted); font-size: 0.92rem; }
.entry-byline__avatar { border-radius: 50%; width: 40px; height: 40px; }
.entry-byline__text a { color: var(--pst-secondary); font-weight: 700; }
.entry-byline__text a:hover { color: var(--pst-primary-dark); }

/* Breadcrumbs */
.pst-breadcrumbs { font-size: 0.8rem; color: var(--pst-muted); margin: 0 0 1.1rem; }
.pst-breadcrumbs a { color: var(--pst-muted); font-weight: 700; text-decoration: none; }
.pst-breadcrumbs a:hover { color: var(--pst-primary-dark); }
.pst-breadcrumbs .sep { margin: 0 0.45rem; opacity: 0.6; }
.pst-breadcrumbs .breadcrumb_last { color: var(--pst-ink); font-weight: 700; }

/* Author bio box */
.author-bio {
	display: flex; gap: 1.4rem; align-items: flex-start;
	margin: 3rem 0 0;
	padding: 1.6rem;
	background: var(--pst-blush);
	border-radius: var(--pst-radius-lg);
}
.has-sidebar .author-bio { margin-inline: 0; }
.author-bio__img { border-radius: 50%; width: 96px; height: 96px; }
.author-bio__avatar { flex: 0 0 auto; }
.author-bio__eyebrow { margin: 0; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pst-secondary); }
.author-bio__name { margin: 0.1rem 0 0.5rem; font-size: 1.4rem; }
.author-bio__text { margin: 0 0 1rem; font-size: 0.96rem; color: var(--pst-ink); }
.author-bio__links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.author-bio__site { font-weight: 700; font-size: 0.9rem; }

/* Related posts */
.related-posts { margin-top: 3.5rem; }
.has-sidebar .related-posts { margin-inline: 0; }
.related-posts__title { text-align: center; margin-bottom: 1.6rem; position: relative; }
.related-posts__title::after {
	content: ""; display: block; width: 60px; height: 3px; border-radius: 3px;
	background: var(--pst-primary); margin: 0.6rem auto 0;
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer { background: var(--pst-cream); color: var(--pst-ink); margin-top: 4rem; border-top: 1px solid var(--pst-line); }
.site-footer a { color: var(--pst-primary-dark); }
.site-footer a:hover { color: var(--pst-secondary); }
.site-footer__widgets {
	max-width: var(--pst-wide); margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 3.5rem) var(--pst-gutter);
	display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer__widgets .widget { min-width: 0; margin: 0; }
.site-footer .widget-title { font-family: var(--pst-font-head); font-size: 1.05rem; font-weight: 600; color: #2B2B2B; margin: 0 0 0.9rem; border: 0; padding: 0; }
.site-footer__widgets .widget ul { list-style: none; padding: 0; margin: 0; }
.site-footer__widgets .widget li { padding: 0.3rem 0; border: 0; }
.site-footer__widgets .widget a { color: var(--pst-muted); font-weight: 700; text-decoration: none; }
.site-footer__widgets .widget a:hover { color: var(--pst-primary-dark); text-decoration: underline; }
.site-footer__widgets .widget p { color: var(--pst-muted); font-size: 0.95rem; margin: 0 0 0.8rem; }
.site-footer .custom-logo, .site-footer .custom-logo img { max-height: 44px; width: auto; }
.site-footer__legal { border-top: 1px solid var(--pst-line); text-align: center; padding: 1.2rem; font-size: 0.85rem; color: var(--pst-muted); }
.site-footer__legal p { margin: 0; }

/* Footer color schemes (Customizer → Pint-sized Treasures → Footer color).
   Cream is the base above; these set the backgrounds + dark-mode overrides. */
.site-footer--plum { background: var(--pst-secondary); }
.site-footer--charcoal { background: #2B2B2B; }
.site-footer--teal { background: var(--pst-accent-dark); }
.site-footer--dark { color: #fff; border-top: 0; }
.site-footer--dark a { color: #fff; }
.site-footer--dark a:hover { color: var(--pst-blush); }
.site-footer--dark .widget-title { color: #fff; }
.site-footer--dark .site-footer__widgets .widget p { color: rgba(255, 255, 255, 0.85); }
.site-footer--dark .site-footer__widgets .widget a { color: rgba(255, 255, 255, 0.9); }
.site-footer--dark .site-footer__widgets .widget a:hover { color: #fff; }
.site-footer--dark .social-menu a { color: rgba(255, 255, 255, 0.85); }
.site-footer--dark .social-menu a:hover { color: #fff; }
.site-footer--dark .site-footer__legal { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); }
.site-footer--dark .custom-logo { filter: brightness(0) invert(1); }

/* Sticky-sidebar toggle (Customizer). */
.pst-no-sticky .widget-area__sticky { position: static; }

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.entry-layout.has-sidebar { grid-template-columns: 1fr; }
	.widget-area { margin-top: 2rem; }
	.widget-area__sticky { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 860px) {
	.recipe-hero, .recipe-hero.has-media { grid-template-columns: 1fr; }
	.recipe-hero__media { order: -1; min-height: 0; aspect-ratio: 3 / 2; }

	.home-featured { grid-template-columns: 1fr; }
	.home-featured__media { order: -1; }
	.home-about { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.home-about__text { margin-inline: auto; }
	.cat-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

	.menu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		margin-left: auto; width: 44px; height: 44px;
		border: 1px solid var(--pst-line); background: #fff; border-radius: var(--pst-radius); cursor: pointer;
	}
	.menu-toggle__bars { display: grid; gap: 4px; }
	.menu-toggle__bars span { display: block; width: 22px; height: 2px; background: var(--pst-ink); border-radius: 2px; }

	/* On mobile the dedicated panel replaces the desktop tile-nav + the magnifier. */
	.site-header__inner > .cat-nav,
	.site-header__actions { display: none; }

	.site-footer__widgets { grid-template-columns: 1fr; text-align: center; }
	.social-menu { justify-content: center; }

	.top-bar__inner { justify-content: center; }
	.top-bar__menu { display: none; }

	.author-bio { flex-direction: column; align-items: center; text-align: center; }
	.author-bio__links { justify-content: center; }
}

@media (max-width: 480px) {
	body { font-size: 1rem; }
	.recipe-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
	.recipe-hero__stat + .recipe-hero__stat { border-left: 0; }
	.recipe-hero__stat:nth-child(even) { border-left: 1px solid var(--pst-line); }
	.pst-recipe-actions .pst-btn { flex: 1 1 100%; justify-content: center; }
}

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

/* Print: hide chrome, show content */
@media print {
	.site-header, .site-footer, .widget-area, .pst-recipe-actions, .menu-toggle, .header-search { display: none !important; }
	.entry-layout.has-sidebar { grid-template-columns: 1fr; }
}
