/*
Theme Name: MyRecipes
Description: Адаптивная тема для личной кулинарной тетради.
Version: 1.7.3
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: myrecipes
*/

:root {
	color-scheme: light;
	--paper: #f6f1eb;
	--white: #fffaf5;
	--ink: #33322e;
	--muted: #5d564e;
	--post-meta-color: #746d64;
	--green: #304634;
	--leaf: #45604b;
	--line: #e3d9cf;
	--control-border: #8e8377;
	--search-focus-border: #d5cdc2;
	--accent: #dce9da;
	--accent-hover: #c8dec8;
	--highlight: #f1dacf;
	--heading-accent: #854938;
	--menu-highlight: #96543f;
	--seasonal: #e6ecdc;
	--footer: #dde7da;
	--focus: #866041;
	--shadow: #57433420;
	--site-font: "Fira Sans", system-ui, sans-serif;
	--heading-font: "Lora", Georgia, serif;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--paper: #202622;
	--white: #2b332e;
	--ink: #f1eee6;
	--muted: #c6c1b6;
	--post-meta-color: #b9b3a9;
	--green: #d4e8d3;
	--leaf: #b2d0b4;
	--line: #46534a;
	--control-border: #87978a;
	--search-focus-border: #c3d2c6;
	--accent: #3c5646;
	--accent-hover: #4b6655;
	--highlight: #59483e;
	--heading-accent: #efb49b;
	--menu-highlight: #ffd4c0;
	--seasonal: #2d3b31;
	--footer: #28342d;
	--focus: #e8c5a2;
	--shadow: #00000045;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + var(--wp-admin--admin-bar--height, 0px)); }
body {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 1rem/1.55 var(--site-font);
}
img { display: block; max-width: 100%; height: auto; }
a {
	color: inherit;
	text-decoration-color: currentColor;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: .18em;
}
a:hover, a:focus-visible { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: no-preference) {
	:where(a, button, summary, input[type="button"], input[type="submit"]),
	.card-indicator, .archive-entry-link h2 {
		transition: background-color .22s ease, color .22s ease, text-decoration-color .22s ease;
	}
}
p { margin: 0 0 1rem; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); color: var(--heading-accent); }
h1, h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4.1vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
h3 { margin: 0; font-size: 1rem; line-height: 1.25; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
a:focus-visible { outline: none; box-shadow: inset 0 -2px var(--focus); }
.wrap { width: min(91%, 76rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; left: 1rem; transform: translateY(-150%); background: var(--white); padding: .75rem; }
.skip-link:focus { transform: translateY(0); }
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: .65rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 99rem;
	background: var(--accent);
	color: var(--green);
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.button:hover { background: var(--accent-hover); }
.eyebrow {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin-bottom: .75rem;
	color: var(--leaf);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.eyebrow::after { content: ""; flex: 0 0 2rem; height: 1px; background: currentColor; opacity: .65; }
.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 5;
	background: var(--paper);
	box-shadow: 0 1px 0 var(--line);
	transition: transform .3s ease;
}
.site-header.is-hidden {
	transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px)));
}
.site-header.is-hidden:focus-within { transform: none; }
@supports selector(:has(:focus-visible)) {
	.site-header.is-hidden:focus-within:not(:has(:focus-visible)) {
		transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px)));
	}
}
.menu-toggle { display: none; }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; white-space: nowrap; }
.brand-mark { flex: none; width: 2.4rem; height: 2.4rem; object-fit: contain; }
.brand strong { display: block; font: 700 clamp(1.35rem, 2.3vw, 2rem)/1.1 var(--heading-font); color: var(--heading-accent); letter-spacing: -.045em; }
.brand small { display: block; margin-top: .05rem; font-size: .75rem; line-height: 1.35; letter-spacing: .09em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .35rem clamp(.75rem, 2.7vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding-block: .45rem; color: var(--heading-accent); text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--menu-highlight); }
.site-nav a:focus-visible { background: var(--accent); color: var(--menu-highlight); box-shadow: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; order: 1; }
.theme-toggle:not([hidden]) { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--green); cursor: pointer; }
.theme-toggle:hover { background: var(--accent); }
.theme-sun, [data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.search { position: relative; }
.search > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.search > summary:hover, .search[open] > summary { background: var(--line); }
.search-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(20rem, 86vw); background: var(--white); padding: .75rem; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 25px var(--shadow); }
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-form input { flex: 1 1 9rem; width: 0; min-width: 0; border: 1px solid var(--control-border); border-radius: 1.5rem; padding: .55rem .8rem; font: inherit; background: var(--white); color: var(--ink); }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form input:focus {
	outline: none;
	border-color: var(--search-focus-border);
	box-shadow: inset 0 0 0 1px var(--search-focus-border);
}
@media (prefers-reduced-motion: no-preference) {
	.search-form input { transition: border-color .22s ease, box-shadow .22s ease; }
}
.search > summary:focus-visible, .search-form button:focus-visible {
	outline: none;
	box-shadow: inset 0 -2px var(--focus);
}

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 15% 35%, var(--white), var(--paper) 70%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(27rem, 41vw, 37rem); padding-block: 2rem 5.5rem; }
.hero-copy { width: 52%; }
.hero h1 { font-size: clamp(2.25rem, 5.15vw, 6rem); }
.hero h1 { overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; }
.hero h1 mark {
	position: relative;
	isolation: isolate;
	color: inherit;
	background: transparent;
	padding-inline: .08em;
}
.hero h1 mark::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 28% 0 18%;
	border-radius: .14em;
	background: var(--highlight);
}
.hero-description { max-width: 27ch; font-size: clamp(1rem, 1.65vw, 1.3rem); margin-bottom: 1.4rem; }
.hero-media { position: absolute; z-index: -1; inset: 0 0 0 48%; -webkit-clip-path: ellipse(95% 96% at 95% 55%); clip-path: ellipse(95% 96% at 95% 55%); background: var(--seasonal); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }

.highlights { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-block: -2.5rem 0; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 1.1rem; box-shadow: 0 4px 12px var(--shadow); list-style: none; }
.highlights li { min-width: 0; display: grid; justify-items: center; align-content: center; gap: .45rem; text-align: center; font-size: .875rem; font-weight: 700; padding: .35rem; }
.highlights li + li { border-inline-start: 1px solid var(--line); }
.highlights svg { width: 2rem; height: 2rem; color: var(--green); }
.recipe-section { display: grid; grid-template-columns: minmax(12rem, .88fr) minmax(0, 3fr); align-items: start; gap: clamp(1rem, 2.7vw, 2.5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-intro h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); }
.section-intro > p:not(.eyebrow), .about-copy > p:not(.eyebrow) { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.7vw, 1.4rem); align-items: start; }
.cards-empty { grid-column: 1 / -1; }
.recipe-card { background: var(--white); border-radius: 1rem; box-shadow: 0 4px 12px var(--shadow); }
.card-link { display: block; text-decoration: none; }
.card-image-frame { overflow: hidden; border-radius: 1rem 1rem 0 0; }
.card-image { width: 100%; aspect-ratio: 1.1; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.card-image-frame { perspective: 640px; }
	.card-image { transform: translateZ(0); transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
	.card-link:hover .card-image { transform: translateZ(55px); }
}
.card-caption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem; overflow-wrap: anywhere; }
.card-meta { display: block; color: var(--muted); margin-top: .25rem; font-size: .8125rem; }
.card-indicator { display: grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--green); font-size: 1.1rem; }
.card-link:hover .card-indicator { background: var(--accent-hover); }

.about { display: grid; grid-template-columns: 1.4fr 1fr .68fr; align-items: center; gap: clamp(1rem, 3.5vw, 3rem); padding-block: .5rem clamp(2.5rem, 5vw, 4.5rem); }
.about-without-points { grid-template-columns: 1.4fr 1fr; }
.about > img { width: 100%; aspect-ratio: 1.45; object-fit: cover; object-position: 50% 60%; border-radius: 1rem; }
.about h2 { font-size: clamp(2rem, 3.65vw, 3.4rem); }
.about-list { display: grid; gap: 1.4rem; border-inline-start: 1px solid var(--line); margin: 0; padding: .65rem 0 .65rem 1.35rem; list-style: none; }
.about-list li { display: flex; align-items: center; gap: .75rem; }
.about-list svg { flex: none; color: var(--leaf); width: 1.7rem; height: 1.7rem; }
.about-list strong { display: block; color: var(--green); font: 700 1.35rem/1.1 var(--site-font); }
.about-list span { font-size: .875rem; color: var(--muted); }

.seasonal { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 15rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); border-radius: 1rem; overflow: hidden; background: var(--seasonal); }
.seasonal > img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: center 45%; }
.seasonal::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--seasonal) 51%, transparent 76%); pointer-events: none; }
.seasonal-copy { padding: clamp(1.25rem, 4vw, 3rem); width: min(37rem, 54%); }
.seasonal h2 { margin-bottom: 20px; }
.button-light { color: var(--green); background: var(--white); }
.button-light:hover { background: var(--accent-hover); }
.seasonal details p { margin: .75rem 0 0; max-width: 36ch; }
.seasonal-recipe-reveal, .seasonal-recipe-reveal > div { display: flow-root; overflow: hidden; }

.site-footer { margin-top: auto; background: var(--footer); padding-block: 2rem 1.25rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }
.footer-bottom > :first-child { flex-shrink: 0; }
.footer-credit { font-size: 13px; text-align: end; }
.cookie-notice {
	position: fixed;
	z-index: 40;
	inset: auto 0 0;
	max-height: 70vh;
	overflow: auto;
	padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	background: #28342d;
	color: #fffaf5;
	box-shadow: 0 -4px 16px #0003;
	font-size: .875rem;
}
.cookie-notice-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #dce9da; }
.privacy-entry h2 { margin-top: 1.75rem; }
.privacy-entry > :last-child { margin-bottom: 0; }
.cookie-notice-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.cookie-notice-actions .button { white-space: nowrap; }
.cookie-notice-close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 1.5rem;
	cursor: pointer;
}
.cookie-notice-close:hover { background: #ffffff16; color: #dce9da; }
@media (max-width: 34rem) {
	.cookie-notice-inner { flex-direction: column; align-items: stretch; }
	.cookie-notice-actions .button { flex: 1; }
}
.content-page { min-height: 55vh; padding-block: 3rem; }
.not-found-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.content-page .search-form { max-width: 27rem; margin-bottom: 1.5rem; }
.entry { max-width: 49rem; margin-bottom: 2rem; overflow-wrap: anywhere; }
.single-post .content-page > .entry { max-width: 800px; margin-inline: auto; }
.listing-page { max-width: 800px; }
.listing-page .entry { max-width: none; }
.archive-entry-link { display: grid; grid-template-columns: clamp(5rem, 24vw, 11rem) minmax(0, 1fr); align-items: start; gap: clamp(.75rem, 3vw, 1.5rem); text-decoration: none; }
.archive-preview { position: relative; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; }
.archive-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-entry h2 { margin-bottom: .35rem; }
.archive-entry-link:hover h2 { color: var(--menu-highlight); }
.archive-summary time { display: block; margin-bottom: .5rem; color: var(--post-meta-color); font-size: 13px; }
.archive-summary > :last-child { margin-bottom: 0; }
.news-tags { display: flex; flex-wrap: wrap; gap: .35rem .75rem; margin-top: 1.5rem; color: var(--post-meta-color); font-size: 13px; }
.news-tags a { text-decoration: none; }
.news-tags a::before { content: "#"; }
.news-tags a:hover { color: var(--ink); }
.entry h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.entry-image { max-height: 32rem; width: 100%; object-fit: cover; border-radius: 1rem; margin-bottom: 1.25rem; }
.single-post .content-page > .entry > .entry-image { aspect-ratio: 21 / 9; }
@media (max-width: 64rem), (hover: none) and (pointer: coarse) {
	.single-post .content-page > .entry > .entry-image { aspect-ratio: 16 / 9; }
}
.recipe-detail { --recipe-gap: clamp(.5rem, 1.5vw, 1rem); overflow-wrap: anywhere; }
.recipe-detail > h1, .single-post .entry > h1 { margin-bottom: .35rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .125rem .5rem; margin-bottom: 30px; color: var(--post-meta-color); font-size: 13px; }
.post-meta > span > span[aria-hidden="true"] { margin-inline-end: .5rem; }
.post-meta-views { display: inline-flex; align-items: center; }
.post-meta-views svg { flex: none; width: 14px; height: 14px; margin-inline-end: .3rem; }
.post-meta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.recipe-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "details preview"; gap: var(--recipe-gap); }
.recipe-preview { grid-area: preview; position: relative; overflow: hidden; border-radius: 1rem; }
.recipe-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 64rem), (hover: none) and (pointer: coarse) {
	.recipe-overview { grid-template-areas: "preview details"; }
	.recipe-preview { aspect-ratio: 1 / 1; align-self: start; }
}
.recipe-detail-panel { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem, 3.5vw, 2.75rem); }
.recipe-detail-panel > h2, .listing-title strong { font-size: clamp(1.0667rem, 2vw, 1.7333rem); }
.listing-title { font-size: 1rem; font-weight: 400; line-height: 1; overflow-wrap: anywhere; }
.listing-title strong { display: block; margin-top: .08em; font-weight: 700; line-height: 1.08; }
.recipe-ingredient-list { list-style: none; margin: 0; padding: 0; }
.recipe-ingredient-list li {
	display: grid;
	grid-template-columns: minmax(0, max-content) minmax(.75rem, 1fr) fit-content(45%);
	align-items: end;
	column-gap: .4rem;
}
.recipe-ingredient-list li + li { margin-top: .6rem; }
.recipe-ingredient-name { display: block; text-align: start; }
.recipe-ingredient-name::first-letter { text-transform: uppercase; }
.recipe-ingredient-name:only-child { grid-column: 1 / -1; }
.recipe-ingredient-leader { border-bottom: 2px dotted var(--control-border); margin-bottom: .35em; }
.recipe-ingredient-quantity { min-width: 0; text-align: end; }
.recipe-detail-panel > :last-child, .recipe-instructions .entry > :last-child { margin-bottom: 0; }
.recipe-print { gap: .5rem; }
.recipe-print[hidden] { display: none; }
.recipe-print svg { width: 1.15rem; height: 1.15rem; }
.recipe-details-column { grid-area: details; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--recipe-gap); }
.recipe-galleries { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--recipe-gap); margin-top: 30px; }
.recipe-galleries > .myrecipes-image-gallery { margin-block: 0; }
.dish-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	min-height: 55vh;
	background: #28342d;
	color: #fff;
	text-align: center;
}
.dish-hero-image, .dish-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.dish-hero-image { z-index: -2; object-fit: cover; }
.dish-hero::before { content: ""; z-index: -1; background: #0009; }
.dish-hero-copy { padding-block: 2rem; overflow-wrap: anywhere; }
.page-site-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto .75rem; }
.page-site-icon img { width: 100%; height: 100%; object-fit: contain; }
.dish-hero h1 { margin-block: 0; overflow-wrap: anywhere; text-wrap: balance; }
.dish-hero :is(h1, h2, h3, h4, h5, h6) { color: #ffe2d2; }
.dish-hero-description { max-width: 60ch; margin-inline: auto; }
.dish-hero-description:not(:empty) { margin-top: .75rem; }
.dish-hero-description > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
	:is(.dish-hero, .recipe-preview).has-parallax {
		--parallax-bleed: clamp(1.5rem, 6vw, 4rem);
		overflow: hidden;
	}
	:is(.dish-hero, .recipe-preview).has-parallax > img {
		top: calc(-1 * var(--parallax-bleed));
		height: calc(100% + 2 * var(--parallax-bleed));
		transform: translateY(calc(var(--parallax-bleed) * var(--parallax-progress, 0)));
	}
}

@media (max-width: 60rem) {
	.recipe-section { grid-template-columns: 1fr; }
	.section-intro h2 br { display: none; }
	.about { grid-template-columns: 1fr 1fr; }
	.about-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-inline-start: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
}
@media (max-width: 46rem) {
	.recipe-overview { grid-template-columns: 1fr; grid-template-areas: "preview" "details"; }
	.hero { display: flex; flex-direction: column-reverse; }
	.hero-inner { min-height: 0; padding-block: 2rem; }
	.hero-copy { width: 100%; }
	.hero h1 { font-size: clamp(1.6rem, 8vw, 4.4rem); }
	.hero-media { position: relative; inset: auto; -webkit-clip-path: none; clip-path: none; height: clamp(15rem, 53vw, 24rem); }
	.highlights { margin-top: -.85rem; }
}
@media (max-width: 46rem), (orientation: landscape) and (max-height: 32rem) and (pointer: coarse) {
	.header-inner { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .7rem; }
	.header-ready .header-inner { flex-wrap: nowrap; }
	.site-header.menu-open { z-index: 41; }
	.site-header .brand, .site-header .brand > span { min-width: 0; }
	.brand strong { font-size: clamp(.875rem, 4.375vw, 1.05rem); }
	.brand small { font-size: .625rem; }
	.site-header .brand :is(strong, small) { overflow: hidden; text-overflow: ellipsis; }
	.site-nav { order: 1; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: .4rem; }
	.site-nav ul { justify-content: space-between; }
	.header-button { display: none; }
	.header-actions { order: 0; flex-shrink: 0; }
	.header-ready .menu-toggle {
		display: grid;
		place-content: center;
		gap: 4px;
		width: 44px;
		height: 44px;
		border: 1px solid var(--line);
		border-radius: 50%;
		background: var(--white);
		color: var(--green);
		cursor: pointer;
	}
	.header-ready .menu-toggle:hover { background: var(--accent); }
	.menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .24s ease, opacity .24s ease; }
	.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
	.header-ready .site-nav {
		position: absolute;
		inset: calc(100% + .5rem) 4.5% auto;
		max-height: min(70vh, max(0px, calc(100vh - 6rem - var(--wp-admin--admin-bar--height, 0px))));
		max-height: min(70dvh, max(0px, calc(100dvh - 6rem - var(--wp-admin--admin-bar--height, 0px))));
		overflow-y: auto;
		overscroll-behavior-y: contain;
		padding: .5rem 1rem;
		border: 1px solid var(--line);
		border-radius: 1rem;
		background: var(--white);
		box-shadow: 0 8px 25px var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(.65rem);
		transition: opacity .28s ease, transform .34s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .34s;
	}
	.header-ready .site-nav ul { display: block; }
	.header-ready .site-nav li {
		opacity: 0;
		transform: translateY(.5rem);
		transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
	}
	.header-ready .site-nav li + li { border-top: 1px solid var(--line); }
	.header-ready .site-nav a { display: block; padding-block: .8rem; font-size: 1.3rem; overflow-wrap: anywhere; }
	.header-ready.menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.header-ready.menu-open .site-nav li {
		opacity: 1;
		transform: none;
		transition-duration: .7s, .8s;
		transition-timing-function: ease-in-out, cubic-bezier(.25, .45, .35, 1);
		transition-delay: var(--menu-delay, 0ms);
	}
	.search { position: static; }
	.search-panel {
		inset: 100% 0 auto;
		width: auto;
		border-inline: 0;
		border-radius: 0 0 1rem 1rem;
	}
}
@media (max-width: 600px) {
	html { scroll-padding-top: 5rem; }
	.site-header { top: 0; }
}
@media (max-width: 34rem) {
	.header-inner, .header-actions { column-gap: .3rem; }
	.brand { gap: .35rem; }
	.brand-mark { width: 1.8rem; height: 1.8rem; }
	.highlights { grid-template-columns: repeat(2, 1fr); gap: .5rem 0; }
	.highlights li:nth-child(3) { border-inline-start: 0; }
	.highlights li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: .65rem; }
	.cards, .about, .about-list { grid-template-columns: 1fr; }
	.card-image { aspect-ratio: 1.55; }
	.seasonal { padding-top: 12rem; }
	.seasonal > img { width: 100%; height: 14rem; object-position: center 38%; }
	.seasonal::after { background: linear-gradient(180deg, transparent 7rem, var(--seasonal) 13rem); }
	.seasonal-copy { width: 100%; }
	.footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.site-header, .menu-toggle span, .header-ready .site-nav, .header-ready .site-nav li,
	.header-ready.menu-open .site-nav li { transition: none; }
}

@supports not (aspect-ratio: 1 / 1) {
	.archive-preview { padding-top: 100%; }
	.card-image-frame { position: relative; padding-top: 90.91%; }
	.card-image { position: absolute; inset: 0; height: 100%; }
	@media (max-width: 34rem) {
		.card-image-frame { padding-top: 64.52%; }
	}
	@media (max-width: 64rem), (hover: none) and (pointer: coarse) {
		.recipe-preview { padding-top: 100%; }
	}
}

@media print {
	html:has(body.single-myrecipes_recipe) { margin: 0 !important; }
	body.single-myrecipes_recipe { display: block; min-height: 0; background: #fff; color: #000; }
	body.single-myrecipes_recipe > :not(#main),
	.single-myrecipes_recipe .post-meta,
	.single-myrecipes_recipe .recipe-preview,
	.single-myrecipes_recipe .recipe-galleries,
	.single-myrecipes_recipe .recipe-print,
	.single-myrecipes_recipe .post-nav-links,
	.single-myrecipes_recipe .post-password-form { display: none !important; }
	.single-myrecipes_recipe #main { width: 100%; min-height: 0; padding: 0; }
	.single-myrecipes_recipe .recipe-overview,
	.single-myrecipes_recipe .recipe-details-column { display: block; }
	.single-myrecipes_recipe .recipe-detail-panel {
		padding: 0;
		margin: 0;
		border: 0;
		background: none;
	}
	.single-myrecipes_recipe .recipe-detail-panel + .recipe-detail-panel { margin-top: 1rem; }
	.single-myrecipes_recipe .recipe-detail > h1 { margin-bottom: 30px; }
	.single-myrecipes_recipe .recipe-detail :is(h1, h2, h3, h4, h5, h6) { color: #000; break-after: avoid; }
	.single-myrecipes_recipe .recipe-detail li { break-inside: avoid; }
}
