:root {
	--ys-color-bg: #f8f7f3;
	--ys-color-surface: #ffffff;
	--ys-color-surface-alt: #f1eee6;
	--ys-color-text: #1d1b18;
	--ys-color-text-soft: #5f5951;
	--ys-color-brand: #c95f24;
	--ys-color-brand-strong: #9f4618;
	--ys-color-border: #ded9cf;
	--ys-shadow-soft: 0 8px 24px rgba(29, 27, 24, 0.08);
	--ys-radius-sm: 8px;
	--ys-radius-md: 14px;
	--ys-radius-lg: 22px;
	--ys-space-1: 0.25rem;
	--ys-space-2: 0.5rem;
	--ys-space-3: 0.75rem;
	--ys-space-4: 1rem;
	--ys-space-5: 1.5rem;
	--ys-space-6: 2rem;
	--ys-space-7: 3rem;
	--ys-max-width: 1180px;
	--ys-font-display: "Playfair Display", Georgia, serif;
	--ys-font-body: "Source Sans 3", "Helvetica Neue", sans-serif;
}

body {
	background: var(--ys-color-bg);
	color: var(--ys-color-text);
	font-family: var(--ys-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ys-font-display);
	line-height: 1.2;
}

.ys-container {
	max-width: var(--ys-max-width);
	margin-inline: auto;
	padding-inline: var(--ys-space-4);
}

.ys-surface {
	background: var(--ys-color-surface);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	box-shadow: var(--ys-shadow-soft);
}

.ys-focus-ring:focus-visible {
	outline: 3px solid rgba(201, 95, 36, 0.55);
	outline-offset: 2px;
}

html[data-theme="dark"] {
	--ys-color-bg: #12110e;
	--ys-color-surface: #1f1d18;
	--ys-color-surface-alt: #29261f;
	--ys-color-text: #f1eadb;
	--ys-color-text-soft: #c0b8aa;
	--ys-color-border: #3a362d;
	--ys-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

#navigation-wrapper {
	position: sticky;
	top: 0;
	z-index: 30;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.home #wrapper {
	width: min(var(--ys-max-width), calc(100% - (var(--ys-space-4) * 2)));
	background: transparent;
	overflow: visible;
	padding-bottom: var(--ys-space-7);
	margin-top: var(--ys-space-6);
	margin-bottom: var(--ys-space-6);
}

.home #main.ys-home-main {
	width: 100%;
	float: none;
	overflow: visible;
	clear: none;
}

.home #sidebar {
	display: none;
}

.ys-home-hero {
	padding: var(--ys-space-6);
	margin-bottom: var(--ys-space-7);
	background: var(--ys-color-surface);
}

.ys-home-kicker {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ys-color-text-soft);
	margin-bottom: var(--ys-space-3);
}

.ys-home-hero h1 {
	font-size: clamp(2rem, 6vw, 3.5rem);
	margin-bottom: var(--ys-space-4);
	max-width: 17ch;
	color: var(--ys-color-text);
}

.ys-home-intro {
	margin-bottom: var(--ys-space-5);
	font-size: 1.06rem;
	line-height: 1.6;
	max-width: 56ch;
	color: var(--ys-color-text-soft);
}

.ys-hero-search {
	display: flex;
	gap: var(--ys-space-3);
	align-items: center;
	flex-wrap: wrap;
}

.ys-hero-search input {
	flex: 1 1 320px;
	min-height: 58px;
	padding: 0 var(--ys-space-5);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	font-size: 1.05rem;
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
	box-sizing: border-box;
}

.ys-hero-search select {
	min-height: 58px;
	padding: 0 var(--ys-space-4);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	font-size: 0.98rem;
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
	box-sizing: border-box;
}

.ys-hero-search button {
	min-height: 58px;
	padding: 0 var(--ys-space-6);
	border: 1px solid transparent;
	border-radius: var(--ys-radius-md);
	background: var(--ys-color-brand);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ys-hero-search button:hover {
	background: var(--ys-color-brand-strong);
}

.ys-home-section {
	margin-bottom: var(--ys-space-7);
}

.ys-home-taxonomy {
	padding: var(--ys-space-5);
	margin-bottom: var(--ys-space-7);
}

.ys-home-taxonomy h2 {
	font-size: 1.35rem;
	margin-bottom: var(--ys-space-4);
	color: var(--ys-color-text);
}

.ys-taxonomy-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
}

.ys-taxonomy-links a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid var(--ys-color-border);
	background: var(--ys-color-surface-alt);
	color: var(--ys-color-text);
	font-size: 0.9rem;
	text-decoration: none;
}

.ys-taxonomy-links a:hover {
	background: var(--ys-color-surface);
	text-decoration: none;
}

.ys-search-toolbar {
	margin-bottom: var(--ys-space-5);
	padding: var(--ys-space-4);
	position: relative;
	z-index: 12;
}

.ys-search-toolbar-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
	align-items: center;
}

.ys-search-toolbar-form input,
.ys-search-toolbar-form select {
	min-height: 46px;
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	padding: 0 var(--ys-space-3);
	box-sizing: border-box;
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
}

.ys-search-toolbar-form input {
	flex: 1 1 260px;
}

.ys-search-toolbar-form button {
	min-height: 46px;
	padding: 0 var(--ys-space-5);
	border: 1px solid transparent;
	border-radius: var(--ys-radius-sm);
	background: var(--ys-color-brand);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.ys-search-toolbar-form button:hover {
	background: var(--ys-color-brand-strong);
}

.ys-home-section h3 {
	font-size: 1.45rem;
	text-transform: none;
	color: var(--ys-color-text);
	border: 0;
	background: none;
	margin-bottom: var(--ys-space-5);
	padding: 0;
}

.ys-recipe-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: var(--ys-space-5);
}

.home .post-item-grid.ys-card {
	width: 100%;
	height: auto;
	margin: 0;
	padding: var(--ys-space-3);
	position: relative;
	background: var(--ys-color-surface);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-md);
	box-shadow: var(--ys-shadow-soft);
	box-sizing: border-box;
}

.ys-search-toolbar + .post-block .post-item-small {
	position: relative;
	padding-right: 56px;
}

.home .post-item-grid.ys-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	margin: 0 0 var(--ys-space-4) 0;
	float: none;
	padding: 0;
	border: 0;
	border-radius: var(--ys-radius-sm);
	display: block;
}

.home .post-item-grid.ys-card h2 {
	font-size: 1.2rem;
	line-height: 1.3;
	margin-bottom: var(--ys-space-3);
}

.home .post-item-grid.ys-card h2 a {
	color: var(--ys-color-text);
}

.home .post-item-grid.ys-card .post-item-meta {
	padding-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-2) var(--ys-space-3);
	color: var(--ys-color-text-soft);
	font-size: 0.9rem;
}

.ys-live-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	background: var(--ys-color-surface);
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	box-shadow: var(--ys-shadow-soft);
	max-height: 340px;
	overflow: auto;
	display: none;
	z-index: 50;
}

.ys-live-results.is-open {
	display: block;
}

.ys-live-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ys-live-list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ys-color-border);
}

.ys-live-list li:last-child {
	border-bottom: 0;
}

.ys-live-list a {
	display: flex;
	align-items: center;
	gap: var(--ys-space-3);
	padding: 10px var(--ys-space-3);
	text-decoration: none;
	color: var(--ys-color-text);
}

.ys-live-list a:hover {
	background: var(--ys-color-surface-alt);
	text-decoration: none;
}

.ys-live-list img {
	width: 44px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.ys-live-title {
	font-size: 0.95rem;
	line-height: 1.3;
	flex: 1;
}

.ys-live-time {
	font-size: 0.8rem;
	color: var(--ys-color-text-soft);
	white-space: nowrap;
}

.ys-live-empty {
	padding: var(--ys-space-4);
	color: var(--ys-color-text-soft);
	font-size: 0.9rem;
}

.ys-theme-toggle {
	float: right;
	margin-top: 10px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	cursor: pointer;
}

.ys-favorite-toggle {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--ys-color-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #6d665e;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}

.ys-favorite-toggle.is-favorite {
	background: #c95f24;
	color: #fff;
	border-color: #c95f24;
}

.ys-single-actions {
	margin-top: var(--ys-space-4);
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
}

.ys-single-actions .ys-favorite-toggle {
	position: static;
	width: auto;
	height: auto;
	padding: 10px 14px;
	border-radius: var(--ys-radius-sm);
	font-size: 0.88rem;
}

.ys-jump-link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--ys-radius-sm);
	border: 1px solid var(--ys-color-border);
	color: var(--ys-color-text);
	background: var(--ys-color-surface);
	text-decoration: none;
	font-size: 0.88rem;
}

.ys-mobile-quick-actions {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	gap: 8px;
	padding: 10px;
	background: rgba(20, 18, 14, 0.92);
	backdrop-filter: blur(8px);
	z-index: 70;
}

.ys-mobile-quick-actions a,
.ys-mobile-quick-actions button {
	flex: 1;
	min-height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.ys-phase6-tools,
.ys-shopping-list,
.ys-step-viewer {
	padding: var(--ys-space-5);
	margin-top: var(--ys-space-5);
}

.ys-phase6-tools h3,
.ys-shopping-list h3,
.ys-step-viewer h3 {
	margin-bottom: var(--ys-space-3);
	font-size: 1.25rem;
}

.ys-phase6-actions,
.ys-shopping-actions,
.ys-step-viewer-controls {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ys-space-3);
	align-items: center;
}

.ys-phase6-actions button,
.ys-shopping-actions button,
.ys-step-viewer-controls button {
	min-height: 42px;
	padding: 0 12px;
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	background: var(--ys-color-surface-alt);
	color: var(--ys-color-text);
	font-weight: 600;
	cursor: pointer;
}

.ys-phase6-status {
	margin-top: var(--ys-space-3);
	font-size: 0.9rem;
	color: var(--ys-color-text-soft);
	min-height: 1.2em;
}

.ys-step-viewer-body {
	font-size: 1.08rem;
	line-height: 1.65;
	padding: var(--ys-space-4);
	background: var(--ys-color-surface-alt);
	border-radius: var(--ys-radius-sm);
	margin-bottom: var(--ys-space-3);
	min-height: 82px;
}

.ys-step-hint {
	margin-top: var(--ys-space-3);
	font-size: 0.85rem;
	color: var(--ys-color-text-soft);
}

.note-content label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.note-content .ys-ingredient-check {
	margin-top: 4px;
	flex-shrink: 0;
}

.note-content .ys-ingredient-check:checked + span {
	text-decoration: line-through;
	opacity: 0.7;
}

body.ys-cooking-mode {
	background: #11100d;
	color: #f3ecdf;
}

body.ys-cooking-mode #wrapper,
body.ys-cooking-mode #title-wrapper,
body.ys-cooking-mode .ys-surface,
body.ys-cooking-mode .post-content,
body.ys-cooking-mode .comment-box {
	background: #1f1d18;
	color: #f3ecdf;
	border-color: #3d382f;
}

body.ys-cooking-mode .post-content p,
body.ys-cooking-mode .post-content li {
	font-size: 1.12rem;
	line-height: 1.85;
}

body.ys-cooking-mode .note-content .ys-ingredient-check:checked + span {
	opacity: 0.55;
}

html[data-theme="dark"] {
	color-scheme: dark;
}

html[data-theme="dark"] #wrapper,
html[data-theme="dark"] .post-item-small,
html[data-theme="dark"] .post-item-big,
html[data-theme="dark"] .post-item-grid,
html[data-theme="dark"] #title-wrapper {
	background-color: var(--ys-color-surface);
	border-color: var(--ys-color-border);
	color: var(--ys-color-text);
}

html[data-theme="dark"] a,
html[data-theme="dark"] .home .post-item-grid.ys-card h2 a,
html[data-theme="dark"] .ys-jump-link {
	color: var(--ys-color-text);
}

.ys-hero-search,
.ys-search-toolbar-form,
#searchform {
	position: relative;
}

#searchform {
	display: flex;
	align-items: center;
	gap: var(--ys-space-2);
	min-width: 220px;
}

#searchform input[type="search"] {
	position: static;
	height: 38px;
	width: 100%;
	max-width: 260px;
	border: 1px solid var(--ys-color-border);
	border-radius: var(--ys-radius-sm);
	padding: 0 var(--ys-space-3);
	background: var(--ys-color-surface);
	color: var(--ys-color-text);
	box-sizing: border-box;
}

#searchform #search-button {
	position: static;
	height: 38px;
	width: 38px;
	border: 0;
	padding: 0;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.ys-recipe-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ys-recipe-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	#top-header,
	#header,
	#navigation,
	#footer,
	#footer-bottom {
		width: min(var(--ys-max-width), calc(100% - (var(--ys-space-4) * 2)));
	}

	#top-navigation {
		display: none;
	}

	#search-wrapper {
		float: none;
		width: 100%;
	}

	#searchform input {
		position: static;
		height: 42px;
		width: calc(100% - 62px);
	}

	#searchform #search-button {
		position: static;
		height: 42px;
		width: 42px;
	}

	#header-wrapper {
		height: auto;
		padding: var(--ys-space-4) 0;
	}

	#logo,
	#header-banner {
		float: none;
		padding: 0;
	}

	#navigation-wrapper,
	#navigation,
	#navigation ul,
	#navigation li,
	#navigation li a {
		height: auto;
	}

	#navigation li {
		margin-right: 12px;
	}

	#navigation li a {
		line-height: 1.8;
		display: block;
		padding: 8px 0;
	}

	.ys-theme-toggle {
		float: none;
		margin: 8px 0 0;
	}

	.ys-home-hero {
		padding: var(--ys-space-5);
	}

	.ys-hero-search button {
		width: 100%;
	}

	.ys-hero-search select {
		width: 100%;
	}

	.ys-search-toolbar-form button,
	.ys-search-toolbar-form select {
		width: 100%;
	}

	body.single .ys-mobile-quick-actions {
		display: flex;
	}

	body.single {
		padding-bottom: 70px;
	}

	.ys-phase6-actions button,
	.ys-shopping-actions button,
	.ys-step-viewer-controls button {
		width: 100%;
	}
}
