/*
Theme Name: Kulinarno
Theme URI: https://www.kulinarno-joana.com
Author: Valentin Likyov and Underscores.me
Author URI: https://twitter.com/valix
Description: Modernized Kulinarno classic theme with clean vanilla CSS, fluid typography, and zero library dependencies.
Version: 5.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kulinarno
Copyright: (c) 2016-2026 Valentin Likyov
*/

/* ==========================================================================
   # Design Tokens: Color System
   ========================================================================== */
:root {
	/* Base Neutrals (H, S, L values for dynamic alpha composition) */
	--color-neutral-dark-hsl: 0 0% 0%;
	/* Base dark / black */
	--color-neutral-light-hsl: 0 0% 100%;
	/* Base light / white */

	/* Semantic Text Colors */
	--text-main: hsl(var(--color-neutral-dark-hsl));
	--text-alt: hsl(var(--color-neutral-dark-hsl) / 0.75);
	--text-inverted: hsl(var(--color-neutral-light-hsl));
	--text-link: hsl(360, 75%, 35%);
	--text-link-hover: hsl(360, 100%, 50%);
	--text-link-visited: hsl(335, 40%, 35%);

	/* Semantic Background Colors */
	--background-main: hsl(var(--color-neutral-light-hsl));
	--background-alt: hsl(var(--color-neutral-dark-hsl) / 0.04);
	--background-highlight: hsl(55, 100%, 87%);

	/* Semantic Borders & Dividers */
	--border-main: hsl(var(--color-neutral-dark-hsl) / 0.20);
	--border-subtle: hsl(var(--color-neutral-dark-hsl) / 0.08);

	/* Interactive Buttons & Actions */
	--btn-submit: hsl(215, 75%, 50%);
	--btn-submit-hover: hsl(215, 75%, 60%);
	--btn-submit-active: hsl(215, 75%, 40%);
	--btn-edit: hsl(215, 15%, 50%);

	/* Typography Tokens: Font Families */
	--font-serif: kulinarno_serif, "Source Serif 4", Cambria, Georgia, serif;
	--font-sans: kulinarno_sans_serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

	/* Fluid Typography Scale */
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.85rem;
	--font-size-base: 1rem;
	--font-size-md: 1.125rem;
	--font-size-lg: clamp(1.2rem, 2vw, 1.45rem);
	--font-size-xl: clamp(1.4rem, 2.5vw, 1.85rem);
	--font-size-2xl: clamp(1.85rem, 3.5vw, 2.4rem);

	/* Line Heights */
	--line-height-tight: 1.25;
	--line-height-snug: 1.4;
	--line-height-normal: 1.65;
	--line-height-reading: 1.75;

	/* ==========================================================================
	   # Design Tokens: Layout Geometry & Spacing Scale
	   ========================================================================== */
	--space-xs: 0.25rem;
	/* 4px  - micro gaps, badges, tight borders */
	--space-sm: 0.5rem;
	/* 8px  - form control padding, meta gaps, list items */
	--space-md: 1rem;
	/* 16px - card padding, standard gap, compact section */
	--space-lg: 1.5rem;
	/* 24px - prose paragraphs, sidebar cards, social bar */
	--space-xl: 2.25rem;
	/* 36px - heading top clearance, article section gap */
	--space-2xl: 3.5rem;
	/* 56px - major page sections, comments, footer top */

	/* Fluid Layout & Container Bounds */
	--gap-layout: clamp(1rem, 2.5vw, 2rem);
	--container-max: 1240px;
	--container-narrow: 100ch;
	--measure-prose: 70ch;
	--header-height: 4rem;

	--radius-sm: .5rem;
	--radius-md: 1rem;
	--radius-lg: 1.5rem;
	--radius-pill: 9999px;

	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
	--shadow-sharp: 0 1px 3px hsla(0, 0%, 0%, 0.7);

	--transition-fast: 0.15s ease;
	--transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 1s ease;
}

/* ==========================================================================
   # Design Tokens: Dark Mode
   ========================================================================== */
@media (prefers-color-scheme: dark) {
	:root {
		--text-main: hsl(var(--color-neutral-light-hsl) / 0.98);
		--text-alt: hsl(var(--color-neutral-light-hsl) / 0.75);
		--text-inverted: hsl(var(--color-neutral-dark-hsl));
		--text-link: hsl(360, 90%, 70%);
		--text-link-hover: hsl(360, 100%, 50%);
		--text-link-visited: hsl(335, 40%, 70%);

		--background-main: hsl(var(--color-neutral-dark-hsl));
		--background-alt: hsl(var(--color-neutral-light-hsl) / 0.08);

		--border-main: hsl(var(--color-neutral-light-hsl) / 0.28);
		--border-subtle: hsl(var(--color-neutral-light-hsl) / 0.15);

		--shadow-sm: 0 1px 3px hsla(0, 0%, 0%, 0.4);
		--shadow-md: 0 4px 14px hsla(0, 0%, 0%, 0.6);
		--shadow-lg: 0 12px 30px hsla(0, 0%, 0%, 0.8);
	}
}

/* ==========================================================================
   # Decorative background (blobs + line art) for all pages except .fancy
   ========================================================================== */
:root {
	/* Culinary palette: tomato, butter, basil */
	--hue-tomato: 5;
	--hue-butter: 48;
	--hue-basil: 100;
	--blob-1: hsl(var(--hue-tomato) 85% 82% / 0.55);
	--blob-2: hsl(var(--hue-butter) 90% 82% / 0.60);
	--blob-3: hsl(var(--hue-basil) 45% 78% / 0.35);
	--line-art-opacity: 0.10;
}

/* Deeper, quieter blobs and light line art on dark backgrounds */
@media (prefers-color-scheme: dark) {
	:root {
		--blob-1: hsl(var(--hue-tomato) 65% 40% / 0.30);
		--blob-2: hsl(var(--hue-butter) 65% 40% / 0.24);
		--blob-3: hsl(var(--hue-basil) 40% 35% / 0.26);
		--line-art-opacity: 0.12;
	}
}

body:not(.fancy)::before,
body:not(.fancy)::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

/* Soft colour blobs: radial gradients fading to transparent (no blur filter needed) */
body:not(.fancy)::before {
	background:
		radial-gradient(circle at 0% 0%, var(--blob-1) 0, transparent 25vw),
		radial-gradient(circle at 50% 160%, var(--blob-2) 0, transparent 75vw),
		radial-gradient(circle at 100% 30%, var(--blob-3) 0, transparent 30vw)
}

/* Faint line art on the left and right edges (desktop only) */
body:not(.fancy)::after {
	opacity: var(--line-art-opacity);
	background-repeat: no-repeat;
	background-position: right center, left center;
	background-size: 18vw 100vh, 18vw 100vh;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 900' preserveAspectRatio='xMidYMid meet' fill='none' stroke='%231f2937' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(10,0)'%3E%3Cpath d='M30,40 C75,90 55,170 95,220 C120,250 110,295 85,320'/%3E%3Cpath d='M58,110 C85,95 115,105 125,130 C100,140 75,130 58,110 Z M58,110 L105,122'/%3E%3Cpath d='M55,125 C30,115 10,130 8,155 C30,162 50,148 55,125 Z M55,125 L22,145'/%3E%3Cg transform='translate(105,195)'%3E%3Cpath d='M0,18 C-22,18 -34,38 -28,62 C-22,86 -8,106 0,110 C8,106 22,86 28,62 C34,38 22,18 0,18 Z'/%3E%3Cpath d='M-18,16 C-10,8 -4,12 0,18 C4,12 10,8 18,16 C12,22 6,22 0,18 C-6,22 -12,22 -18,16 Z M0,4 L0,18'/%3E%3Cpath d='M-10,42 L-8,46 M10,42 L8,46 M0,56 L0,60 M-14,68 L-12,72 M14,68 L12,72 M-6,84 L-5,88 M6,84 L5,88'/%3E%3C/g%3E%3Cg transform='translate(42,235)'%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Cpath d='M0,-5 C-8,-18 8,-18 0,-5 M5,0 C18,-8 18,8 5,0 M0,5 C8,18 -8,18 0,5 M-5,0 C-18,8 -18,-8 -5,0'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(20,350)'%3E%3Cpath d='M40,220 C55,160 85,95 115,20'/%3E%3Cpath d='M62,170 C30,165 12,140 20,115 C45,115 65,140 62,170 Z M62,170 L32,132'/%3E%3Cpath d='M72,145 C105,150 130,130 128,102 C102,98 78,118 72,145 Z M72,145 L110,116'/%3E%3Cpath d='M86,105 C56,95 42,70 52,46 C76,50 92,76 86,105 Z M86,105 L62,64'/%3E%3Cpath d='M96,82 C126,86 148,68 146,42 C122,40 102,58 96,82 Z M96,82 L130,56'/%3E%3Cpath d='M115,20 C105,-2 125,-18 135,2 C142,16 125,24 115,20 Z'/%3E%3C/g%3E%3Cg transform='translate(25,620)'%3E%3Cpath d='M25,240 C45,175 75,100 120,20'/%3E%3Cpath d='M48,180 C38,160 44,142 58,150 C58,166 52,175 48,180 Z'/%3E%3Cpath d='M52,172 C72,170 82,156 68,146 C58,152 54,164 52,172 Z'/%3E%3Cpath d='M65,142 C55,122 62,104 75,112 C75,128 69,137 65,142 Z'/%3E%3Cpath d='M70,134 C90,132 100,118 86,108 C76,114 72,126 70,134 Z'/%3E%3Cpath d='M84,104 C74,84 80,66 94,74 C94,90 88,99 84,104 Z'/%3E%3Cpath d='M88,96 C108,94 118,80 104,70 C94,76 90,88 88,96 Z'/%3E%3Cpath d='M102,68 C94,50 100,34 112,42 C112,56 106,63 102,68 Z'/%3E%3Cpath d='M106,60 C124,58 134,46 120,36 C112,42 108,52 106,60 Z'/%3E%3Cpath d='M58,150 L68,128 M86,108 L104,88 M94,74 L106,50 M112,42 L126,16 M120,36 L142,14 M120,20 L136,-4'/%3E%3C/g%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 900' preserveAspectRatio='xMidYMid meet' fill='none' stroke='%231f2937' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(125,185) rotate(-28)'%3E%3Crect x='-7' y='30' width='14' height='95' rx='6'/%3E%3Ccircle cx='0' cy='115' r='3.5'/%3E%3Cpath d='M-9,30 L9,30 M-8,24 L8,24'/%3E%3Cpath d='M-6,24 C-48,-55 -28,-125 0,-125 C28,-125 48,-55 6,24'/%3E%3Cpath d='M-4,24 C-30,-60 -15,-130 0,-130 C15,-130 30,-60 4,24'/%3E%3Cpath d='M-2,24 C-14,-62 -6,-126 0,-126 C6,-126 14,-62 2,24'/%3E%3C/g%3E%3Cg transform='translate(115,465) rotate(25)'%3E%3Cellipse cx='0' cy='-85' rx='26' ry='38'/%3E%3Cpath d='M-14,-95 C-8,-110 8,-110 14,-95'/%3E%3Cpath d='M-5,-47 L-4,95 C-4,102 4,102 4,95 L5,-47'/%3E%3C/g%3E%3Cg transform='translate(125,475) rotate(-32)'%3E%3Crect x='-12' y='-80' width='24' height='160' rx='4'/%3E%3Cpath d='M-5,-80 L-5,-112 C-5,-120 5,-120 5,-112 L5,-80 M-5,80 L-5,112 C-5,120 5,120 5,112 L5,80'/%3E%3C/g%3E%3Cg transform='translate(120,760)'%3E%3Cpath d='M-65,0 L65,0 C62,52 38,82 0,82 C-38,82 -62,52 -65,0 Z'/%3E%3Cpath d='M-72,0 L72,0 M-28,82 L28,82'/%3E%3Cpath d='M-65,14 C-84,14 -84,36 -62,38 M65,14 C84,14 84,36 62,38'/%3E%3Cpath d='M-28,-18 C-38,-42 -16,-62 -26,-86 C-34,-106 -18,-122 -24,-138'/%3E%3Cpath d='M0,-24 C-10,-50 14,-72 2,-98 C-8,-118 8,-136 2,-154'/%3E%3Cpath d='M28,-18 C18,-42 40,-62 30,-86 C22,-106 38,-122 32,-138'/%3E%3C/g%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
	body:not(.fancy)::after {
		filter: invert(1);
	}
}

@media (max-width: 900px) {
	body:not(.fancy)::after {
		display: none;
	}
}

/* ==========================================================================
   # Image backgrounds
   ========================================================================== */

body.fancy {
	background: var(--bg-image, none) fixed, var(--background-main);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center top;
}

.fancy #masthead {
	margin-bottom: min(55vh);
}

/* ==========================================================================
   # Modern Normalize & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

html {
	font: normal clamp(105%, 1vw + 0.5rem, 120%) / var(--line-height-normal) serif;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	scrollbar-color: var(--border-main) transparent;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: clip;
	color: var(--text-main);
	background: var(--background-main);
	font-family: var(--font-serif);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* ==========================================================================
   # Typography
   ========================================================================== */
@font-face {
	font-family: kulinarno_serif;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('Source Serif 4'), local('Source Serif'), url('fonts/SourceSerif4-Regular.ttf.woff2') format('woff2');
}

@font-face {
	font-family: kulinarno_sans_serif;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('ADYS Regular'), local('ADYS'), url('fonts/ADYS-Regular-V5-4.woff2') format('woff2');
}

button,
input,
select,
textarea {
	color: var(--text-main);
	font-family: var(--font-sans);
	font-size: var(--font-size-base);
	line-height: var(--line-height-snug);
}

.alt-font,
.main-navigation,
.posts-navigation,
.menu,
.edit-link,
.reply,
label,
.comment-form,
.comment-meta,
#cancel-comment-reply-link,
.wp-caption-text,
figcaption,
.chip-list,
.entry-meta,
.list-footer {
	font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-weight: 400;
	color: var(--text-main);
	line-height: var(--line-height-tight);
}

h1 {
	font-size: var(--font-size-2xl);
}

h2,
.home-front #primary>.widget-title,
.page-header h2 {
	font-size: var(--font-size-xl);
}

h3 {
	font-size: var(--font-size-lg);
}

h4 {
	font-size: var(--font-size-md);
}

p {
	margin-top: 0;
	margin-bottom: var(--space-md);
}

dfn,
cite,
em,
i {
	font-style: italic;
}

b,
strong {
	font-weight: 600;
}

small {
	font-size: 0.85em;
}

mark {
	background: var(--background-highlight);
	color: var(--text-main);
	padding: 0.1em 0.3em;
	border-radius: 2px;
}

blockquote {
	border-left: 3px solid var(--text-link);
	padding: var(--space-md) var(--space-lg);
	margin: var(--space-xl) 0;
	font-style: italic;
	color: var(--text-alt);
	background: var(--background-alt);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

figure {
	margin: 0;
}

figcaption,
.wp-caption-text {
	font-size: var(--font-size-sm);
	color: var(--text-alt);
	text-align: center;
}

.tight,
figcaption {
	line-height: normal;
}

hr {
	border: 0;
	height: 1px;
	margin: var(--space-xl) 0;
	background: linear-gradient(to right, transparent, var(--border-main), transparent);
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: visible;
}

.deco:after {
	content: "\a7";
	padding: 0 var(--space-sm);
	background: var(--background-main);
	color: var(--border-main);
	font-size: var(--font-size-md);
}

/* ==========================================================================
   # Links
   ========================================================================== */
a {
	color: var(--text-link);
	text-decoration: none;
	transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

a:visited {
	color: var(--text-link-visited);
}

a:hover,
a:focus,
a:active {
	color: var(--text-link-hover);
	text-decoration: underline;
}

/* ==========================================================================
   # 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;
}

.screen-reader-text:focus {
	background-color: var(--background-main);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
	clip: auto !important;
	clip-path: none;
	color: var(--text-link);
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 600;
	height: auto;
	left: 1rem;
	top: 1rem;
	line-height: normal;
	padding: var(--space-sm) var(--space-md);
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   # Header & Navigation
   ========================================================================== */
/* Pure CSS Mobile Menu Checkbox */
.mobile-menu-checkbox {
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
	margin: 0;
}

#masthead {
	position: sticky;
	top: 0;
	z-index: 1000;
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	padding: var(--space-md) var(--gap-layout);
	background: transparent;
	backdrop-filter: blur(3rem);
	transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

#masthead:hover {
	background: hsla(0, 0%, 100%, 0.9);
}

.fancy #masthead svg {
	filter: drop-shadow(var(--shadow-sharp));
}

.fancy #masthead:hover {
	background: hsla(0, 0%, 0%, 0.5);
}

@media (prefers-color-scheme: dark) {
	#masthead:hover {
		background: hsla(0, 0%, 0%, 0.5);
	}
}

/* Off-screen Content Performance Optimization */
.singular-footer-articles,
.home-recent-comments {
	content-visibility: auto;
	contain-intrinsic-size: 0 400px;
}

.identity {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	min-width: 0;
	flex-shrink: 1;
}

.identity .logo {
	width: 1.85rem;
	height: 1.85rem;
	flex-shrink: 0;
}

.site-title {
	font-size: var(--font-size-md);
	margin: 0;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-title a {
	color: var(--text-main);
	text-decoration: none;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-title .title-short {
	display: none;
}

.fancy .site-title a {
	color: var(--text-inverted);
	text-shadow: var(--shadow-sharp);
}

.site-title a:hover {
	color: var(--text-link-hover);
}

.fancy .site-title a:hover {
	color: hsl(var(--color-neutral-light-hsl) / 0.85);
}

/* Desktop Navigation (Central placement in Header) */

.desktop-navigation ul {
	display: flex;
	justify-content: end;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0 var(--space-md);
}

.desktop-navigation li {
	margin: 0;
}

.desktop-navigation a {
	color: var(--text-main);
}

.fancy .desktop-navigation a {
	color: var(--text-inverted);
	text-shadow: var(--shadow-sharp);
}

.desktop-navigation a:hover,
.desktop-navigation .current-menu-item>a {
	color: var(--text-link-hover);
	text-decoration: none;
}

.fancy .desktop-navigation a:hover,
.fancy .desktop-navigation .current-menu-item>a {
	color: hsl(var(--color-neutral-light-hsl) / 0.75);
}

/* Footer Navigation (Top Row inside #colophon on Mobile only) */
.footer-navigation {
	display: none !important;
}

/* Header utility buttons */
.header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-shrink: 0;
}

.header-actions .header-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	color: var(--text-main);
	text-decoration: none;
	transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.header-btn:hover {
	color: var(--text-link-hover);
	text-decoration: none;
}

.header-btn svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.fancy .header-btn {
	color: var(--text-inverted);
}

.fancy .header-btn:hover {
	color: hsl(var(--color-neutral-light-hsl) / 0.75);
}


/* Menu toggle button (visible on all screens to toggle sidebar drawer) */
.mobile-menu-toggle {
	display: inline-flex;
	cursor: pointer;
}

.mobile-menu-toggle .close-icon {
	display: none;
}

.mobile-menu-toggle .hamburger-icon {
	display: block;
}

/* Pure CSS Checkbox Drawer & Icon Control */
.mobile-menu-checkbox:checked~#masthead .hamburger-icon {
	display: none;
}

.mobile-menu-checkbox:checked~#masthead .close-icon {
	display: block;
}

/* Lock page scroll while the drawer is open */
html:has(.mobile-menu-checkbox:checked) {
	overflow: hidden;
}

/* Full-Width Flyout Sidebar (#secondary) */
#secondary {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100dvh - var(--header-height));
	background: hsla(0, 0%, 100%, 0.85);
	backdrop-filter: blur(32px);
	box-shadow: var(--shadow-lg);
	z-index: 999;
	padding: var(--space-xl);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(1rem);
	transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
	display: flex;
	flex-direction: column;
	margin: 0;
	border: none;
	border-radius: var(--radius-md);
}

@media (prefers-color-scheme: dark) {
	#secondary {
		background: hsla(0, 0%, 0%, 0.85);
	}
}

.mobile-menu-checkbox:checked~#content #secondary {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Individual widgets inside flyout flow horizontally and wrap */
#secondary .menu {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-sm);
}


/* Responsive Breakpoints */
@media (max-width: 780px) {
	.desktop-navigation {
		display: none;
	}

	.footer-navigation {
		display: block !important;
		margin-bottom: var(--space-md);

	}

	.footer-navigation ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: var(--space-sm);
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.footer-navigation li {
		margin: 0;
	}

	.footer-navigation a {
		display: inline-block;
		padding: var(--space-xs) var(--space-md);
		text-decoration: none;
		border-radius: var(--radius-pill);
		background: var(--background-main);
		border: 1px solid var(--border-subtle);
		box-shadow: var(--shadow-sm);
		transition: all var(--transition-fast);
	}

	.footer-navigation a:hover,
	.footer-navigation .current-menu-item>a {
		color: var(--text-link-hover);
		border-color: var(--text-link-hover);
		text-decoration: none;
		box-shadow: var(--shadow-md);
	}

	.fancy #content {
		border-radius: 0;
	}
}

@media (max-width: 600px) {
	.site-title .title-full {
		display: none;
	}

	.site-title .title-short {
		display: inline;
	}

	#secondary {
		padding: var(--space-md);
	}
}

/* ==========================================================================
   # Main Layout Grid
   ========================================================================== */
#content {
	padding: var(--gap-layout);
}

.fancy #content {
	background-color: var(--background-main);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#primary {
	width: 100%;
	min-width: 0;
}

/* ==========================================================================
   # Post Lists & Cards
   ========================================================================== */
.list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--gap-layout);
	margin-bottom: var(--space-xl);
}

.list-article {
	display: flex;
	flex-direction: column;
}

.list-article .list-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--background-alt);
	border-radius: var(--radius-md);
}

.list-article .list-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.list-article:hover .list-link img {
	transform: scale(1.25);
}

.list-article .entry-header {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-sm);
}

.list-article .entry-title {
	font-size: var(--font-size-md);
	line-height: 1.35;
	margin: 0;
	font-weight: 400;
}

.list-article .list-footer {
	font-size: var(--font-size-xs);
	color: var(--text-alt);
}

#local-nav li+li::before,
.comments-link:before,
.postviews:before,
.posted-on:before {
	content: "\2022";
	padding: 0 var(--space-sm);
	color: var(--text-alt);
}

.posted-on:first-child:before {
	content: "";
	padding: 0;
}

/* Thumbnail articles (150px style for seasonal & popular snippets) */
.list-article-150 {
	display: flex;
	flex-direction: column;
	flex: 0 0 150px;
}

.list-article-150 a,
.comment-post-image a {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-md);
	aspect-ratio: 1 / 1;
	background: var(--background-alt);
}

.list-article-150 img,
.comment-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.list-article-150:hover img,
.comment-post-image:hover img {
	transform: scale(1.25);
}

.list-article-150 figcaption {
	padding: var(--space-sm);
	text-align: left;
}

/* Seasonal & Popular sections */
#klnMostPopularPostsThisSeason,
#klnMostPopularPostsThisWeek {
	margin: var(--space-xl) 0;
}

/* ==========================================================================
   # Single Post & Page Experience
   ========================================================================== */
.single .site-main,
.page .site-main {
	max-width: var(--container-narrow);
	margin: 0 auto;
}

.page .site-main.full-width {
	max-width: none;
}

.single .entry-header {
	margin-bottom: var(--space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.single .entry-title,
.page .entry-title {
	font-size: var(--font-size-2xl);
	line-height: var(--line-height-tight);
}

.single .entry-meta,
.page .entry-meta {
	color: var(--text-alt);
}

.single .entry-content,
.page .entry-content {
	font-size: var(--font-size-md);
	line-height: var(--line-height-reading);
}

.single .entry-content p,
.page .entry-content p {
	margin-bottom: var(--space-lg);
}

/* Heading vertical rhythm in article body */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: var(--space-xl);
	margin-bottom: var(--space-sm);
}

.single .entry-content ul,
.single .entry-content ol,
.page .entry-content ul,
.page .entry-content ol {
	margin: var(--space-lg) 0;
	padding-left: var(--space-lg);
	line-height: var(--line-height-reading);
}

.single .entry-content li,
.page .entry-content li {
	margin-bottom: var(--space-md);
	line-height: normal;
}

.single .entry-content ol,
.page .entry-content ol {
	list-style: decimal;
}

.single .entry-content img,
.page .entry-content img {
	border-radius: var(--radius-md);
	margin: 0 auto;
	box-shadow: var(--shadow-sm);
}

/* Responsive Recipe & Nutrition Tables */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--space-lg) 0;
	font-size: var(--font-size-sm);
	line-height: var(--line-height-normal);
}

.entry-content th,
.entry-content td {
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--border-subtle);
	text-align: left;
}

.entry-content th {
	background: var(--background-alt);
	font-weight: 600;
	color: var(--text-main);
}

.entry-content tr:nth-child(even) td {
	background: var(--background-alt);
}

/* Long link wrapping protection in content */
.entry-content a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Social Sharing Bar */
.socialbar-container {
	display: grid;
	padding: var(--space-lg);
	background: var(--background-alt);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	text-align: center;
}

.socialbar-title {
	color: var(--text-alt);
}

.socialbar-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-md);
}

.socialbar-links .social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.socialbar-links .social-icon:hover {
	box-shadow: var(--shadow-md);
	opacity: 0.92;
	text-decoration: none;
}

.socialbar-links .social-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

.socialbar-links .facebook {
	background-color: #1877F2;
}

.socialbar-links .pinterest {
	background-color: #E60023;
}

.socialbar-links .email {
	background-color: #EA4335;
}

.socialbar-links .native-share-btn {
	background-color: var(--text-link);
}

/* Edit link & Reply buttons */
.edit-link,
.reply,
#cancel-comment-reply-link {
	display: inline-block;
	background: var(--btn-edit);
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
	color: var(--text-inverted);
	text-decoration: none;
	transition: background-color var(--transition-fast);
}

.edit-link a,
.reply a {
	color: var(--text-inverted);
	text-decoration: none;
}

.reply {
	background: var(--text-link);
}

.reply:hover {
	background: var(--text-link-hover);
}

/* ==========================================================================
   # Comments Section
   ========================================================================== */
.home-recent-comments .comments-area {
	margin-top: 0;
	border: none;
}

.home-recent-comments .comments-area.flex {
	gap: var(--space-2xl);
}

.home-recent-comments .comment-excerpt {
	flex: 1 1 clamp(20rem, 31%, 100%);
	display: flex;
	gap: var(--space-md);
}

.home-recent-comments .comment-content {
	font-size: var(--font-size-sm);
}

.comment-post-image {
	flex: 0 0 150px;
}

.comments-area {
	margin-top: var(--space-2xl);
	padding-top: var(--space-xl);
	border-top: 1px solid var(--border-main);
}

.comments-title {
	text-align: center;
	font-size: var(--font-size-xl);
	margin-bottom: var(--space-xl);
}

.comment-list {
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}

.comment-body {
	padding: var(--space-lg);
	background: var(--background-alt);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.bypostauthor>.comment-body {
	background: url(img/floral-dark-trans-o.png) no-repeat top center, var(--background-main);
	border-color: var(--border-main);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-sm);
	color: var(--text-alt);
	flex-wrap: wrap;
}

.comment-meta .avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.comment-content {
	font-size: var(--font-size-base);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.comment-content a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.comment-list .children {
	list-style: none;
	padding: 0 var(--space-sm) 0 var(--space-lg);
}

.comment-list .children .comment-body {
	border-radius: 0;
}

.comment-list .children>li:last-child>.comment-body {
	border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* Comment Form */
.comment-respond {
	background: var(--background-alt);
	padding: var(--space-lg);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	margin-top: var(--space-xl);
}

@media (prefers-color-scheme: dark) {

	.bypostauthor>.comment-body,
	.comment-respond {
		background: url(img/floral-light-trans-o.png) top center no-repeat, var(--background-alt);
	}
}

.comment-reply-title {
	font-size: var(--font-size-lg);
	margin-bottom: var(--space-md);
}

.comment-form p {
	margin-bottom: var(--space-md);
}

.comment-form label {
	display: block;
	font-size: var(--font-size-sm);

	margin-bottom: var(--space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--border-main);
	border-radius: var(--radius-sm);
	background: var(--background-main);
	color: var(--text-main);
	font-size: var(--font-size-base);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--text-link);
	box-shadow: 0 0 0 2px hsl(215 75% 50% / 0.2);
}

.form-submit input[type="submit"],
button.submit {
	background: var(--btn-submit);
	color: var(--text-inverted);
	border: none;
	padding: var(--space-sm) var(--space-lg);
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: var(--font-size-base);
	cursor: pointer;
	transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.form-submit input[type="submit"]:hover,
button.submit:hover {
	background: var(--btn-submit-hover);
	transform: translateY(-1px);
}

.form-submit input[type="submit"]:active,
button.submit:active {
	background: var(--btn-submit-active);
	transform: translateY(0);
}

/* ==========================================================================
   # Pagination & Navigation
   ========================================================================== */
.posts-navigation,
.post-navigation {
	background: var(--background-alt);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	overflow: hidden;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-direction: row-reverse;
	padding: var(--space-md) var(--space-lg);
	font-size: var(--font-size-sm);

}

.nav-links a {
	text-decoration: none;
	transition: color var(--transition-fast);
}

/* ==========================================================================
   # Widgets & Menus
   ========================================================================== */
.widget {
	margin-bottom: var(--space-lg);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul:not(.menu) li a {
	display: block;
	padding: var(--space-xs) var(--space-sm);
	transition: color var(--transition-normal), background-color var(--transition-normal);
}

.widget ul:not(.menu) li a:hover {
	color: var(--text-link-hover);
	background-color: var(--background-main);
}

/* Flex helper for categories & widgets */
.flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-md);
}

.list-menus {
	flex: 1 1 200px;
	margin: var(--space-sm);
}

/* ==========================================================================
   # Footer
   ========================================================================== */
#colophon {
	background-color: var(--background-main);
	background-image: linear-gradient(var(--background-alt), var(--background-alt));
	border-top: 1px solid var(--border-subtle);
	padding: var(--space-xl) var(--space-md);
	text-align: center;
}

.follow-section {
	display: grid;
	gap: var(--space-md);
}

.icon-bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--space-md);
}

.follow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: var(--background-main);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	color: var(--text-link);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.follow-icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: currentColor;
}

.follow-icon:hover {
	border-color: var(--text-link-hover);
	color: var(--text-link-hover);
	box-shadow: var(--shadow-md);
}

#pwa-install {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	width: auto;
	padding: var(--space-sm) var(--space-lg);
	margin: 0 auto;
	font-size: var(--font-size-sm);

	border-radius: var(--radius-pill);
}

.site-info {
	font-size: var(--font-size-sm);
	color: var(--text-alt);
	max-width: 75ch;
	margin: 0 auto;
	line-height: 1.6;
}

.site-info hr {
	margin: var(--space-lg) 0;
}

/* ==========================================================================
   # Mosaic & Special Pages
   ========================================================================== */
/* Local Nav & Table of Contents */
#local-nav {
	border-bottom: 1px solid var(--border-main);
	background-color: hsl(var(--color-neutral-light-hsl) / 0.8);
	text-align: center;
	padding: var(--space-sm);
	position: sticky;
	top: var(--header-height);
	z-index: 10;
	backdrop-filter: blur(8px);
}

@media (prefers-color-scheme: dark) {
	#local-nav {
		background-color: hsl(var(--color-neutral-dark-hsl) / 0.8);
	}
}

#local-nav ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

#local-nav li a {
	transition: all var(--transition-fast);
}

#local-nav li a:hover {
	text-decoration: none;
}

.anchor {
	scroll-margin-top: calc(var(--header-height) + 6rem);
}

@media (max-width: 780px) {
	#local-nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	#local-nav ul {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		width: max-content;
		margin: 0 auto;
	}

	#local-nav li {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.anchor {
		scroll-margin-top: calc(var(--header-height) + 3.5rem);
	}
}

.tocols {
	column-gap: var(--space-2xl);
	column-width: 18rem;
}

.tocols>li {
	break-inside: avoid-column;
}

.mosaic-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
}

.mosaic-list a {
	flex: 0 1 280px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.mosaic-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.mosaic-list a:hover .mosaic-image {
	transform: scale(1.25);
}

/* Search form */
.search-form {
	display: flex;
	gap: var(--space-sm);
	margin: var(--space-lg) 0;
	background: var(--background-alt);
	padding: var(--space-md);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
}

.search-form label {
	flex-grow: 1;
}

.search-field {
	width: 100%;
	padding: var(--space-sm) var(--space-md);
	border: 1px solid var(--border-main);
	border-radius: var(--radius-sm);
	background: var(--background-main);
	color: var(--text-main);
}

.search-submit {
	background: var(--btn-submit);
	color: var(--text-inverted);
	border: none;
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
}

/* Chip List */
.chip-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
	color: var(--text-alt);
}

.chip-list ul {
	display: contents;
	list-style: none;
}

#tags-filter {
	margin-bottom: var(--space-xl);
}

.chip-list a,
#secondary .menu a {
	display: inline-block;
	padding: 0 var(--space-sm);
	background: var(--background-alt);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	color: var(--text-main);
	text-decoration: none;
	transition: all var(--transition-fast);
}

.chip-list a:hover,
#secondary .menu a:hover {
	background: var(--text-link);
	color: var(--text-inverted);
	border-color: var(--text-link);
	text-decoration: none;
}

/* ==========================================================================
   # Print Styles
   ========================================================================== */
@media print {
	@page {
		size: A4;
		margin: 15mm;
	}

	#secondary,
	#socialbar,
	#comments,
	#masthead,
	#colophon,
	.icon-bar,
	.posts-navigation,
	.chip-list,
	.header-actions {
		display: none !important;
	}

	body {
		background: none;
		color: #000;
		font-family: Georgia, serif;
		font-size: 11pt;
	}

	#primary {
		max-width: 100% !important;
	}

	a {
		color: #000;
		text-decoration: underline;
	}
}