/* ==========================================================================
   Vehama Recipes — main stylesheet (v1.1, "warm kitchen" design)
   1 Tokens & font  2 Base  3 Layout & utilities  4 Buttons & forms
   5 Header & nav  6 Hero  7 Category circles  8 Section heads  9 Cards
   10 Featured bento  11 Finder  12 Collections  13 Intro & newsletter
   14 Page headers & archives  15 Single & prose  16 Recipe card
   17 Share, related, comments  18 Footer  19 Ads  20 Empty states, 404
   21 Motion  22 Print
   ========================================================================== */

/* 1 Tokens & font -------------------------------------------------------- */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/jakarta-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--tomato: #C73E1D;          /* primary: buttons, links, accents (white text AA) */
	--tomato-dark: #A3300F;
	--tomato-soft: #FFE3D6;
	--mustard: #F4B740;
	--mustard-soft: #FFF1CC;
	--herb: #2F7A4A;
	--herb-soft: #DFF1E4;
	--blush: #FBD3C4;
	--ink: #1E1B18;
	--ink-2: #2B2622;
	--muted: #6A625C;           /* secondary text on cream/white (AA) */
	--cream: #FFF8F1;
	--white: #FFFFFF;
	--line: #F0E4D8;

	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
	--step-1: clamp(1.15rem, 1.06rem + 0.4vw, 1.35rem);
	--step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
	--step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
	--step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.3rem);

	--space-2: 1rem;
	--space-3: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	--space-4: clamp(2rem, 1.5rem + 2vw, 3rem);
	--space-5: clamp(3rem, 2rem + 4vw, 5rem);

	--r-sm: 12px;
	--r: 20px;
	--r-lg: 32px;
	--shadow-sm: 0 1px 2px rgba(30, 27, 24, .06);
	--shadow: 0 2px 4px rgba(30, 27, 24, .04), 0 12px 32px rgba(30, 27, 24, .08);
	--shadow-lg: 0 24px 60px rgba(167, 52, 20, .18);
	--wrap: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 400 var(--step-0)/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tomato); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--tomato-dark); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mustard); color: var(--ink); }
[hidden] { display: none !important; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; color: var(--white); }
.site-main:focus { outline: none; }

/* 3 Layout & utilities --------------------------------------------------- */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 780px); margin-inline: auto; }
.wrap--media { width: min(100% - 2rem, 1060px); margin-inline: auto; }
@media (min-width: 700px) {
	.wrap { width: min(100% - 3rem, var(--wrap)); }
	.wrap--narrow { width: min(100% - 3rem, 780px); }
	.wrap--media { width: min(100% - 3rem, 1060px); }
}
.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-4) var(--space-5); }
.eyebrow {
	display: inline-block; margin: 0 0 .6rem; font: 700 var(--step--1)/1.2 var(--font);
	letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); text-decoration: none;
}
.eyebrow--link:hover { color: var(--tomato-dark); }
.badge { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .4rem .9rem .4rem .6rem; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-weight: 700; font-size: var(--step--1); color: var(--ink); }
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 4px var(--tomato-soft); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--tomato); }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.drizzle { width: 110px; height: auto; color: var(--mustard); }
.print-only { display: none; }

/* 4 Buttons & forms ------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
	font: 700 var(--step-0)/1 var(--font); text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--tomato); color: var(--white); box-shadow: 0 8px 20px rgba(199, 62, 29, .28); }
.btn--primary:hover { background: var(--tomato-dark); color: var(--white); }
.btn--soft { background: var(--mustard-soft); color: var(--ink); }
.btn--soft:hover { background: var(--mustard); color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }
.btn--amber { background: var(--mustard); color: var(--ink); }
.btn--amber:hover { background: #E9A92C; color: var(--ink); }
.btn--small { min-height: 42px; padding: .55rem 1.05rem; font-size: var(--step--1); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--tomato-soft); color: var(--tomato-dark); }

input[type="text"], input[type="email"], input[type="search"], input[type="url"], select, textarea {
	font: inherit; color: var(--ink); background: var(--white);
	border: 1.5px solid var(--line); border-radius: 14px; padding: .7rem .9rem; min-height: 50px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--tomato); outline: 3px solid rgba(244,183,64,.45); outline-offset: 0; }

.search-form { position: relative; display: flex; align-items: center; gap: .35rem; background: var(--white); border-radius: 999px; padding: .35rem; box-shadow: var(--shadow); }
.search-form__icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form .search-form__field { flex: 1 1 auto; min-width: 0; border: 0; min-height: 46px; padding-left: 2.7rem; border-radius: 999px; background: transparent; }
.search-form__field:focus-visible { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(244,183,64,.5), var(--shadow); }
.search-form .search-form__cat { flex: 0 0 auto; width: auto; max-width: 180px; border: 0; border-left: 1px solid var(--line); border-radius: 0; min-height: 40px; background: transparent; font-size: var(--step--1); }
.search-form__submit { flex: 0 0 auto; min-height: 46px; }
@media (max-width: 560px) { .search-form__cat { display: none; } .search-form__submit { padding-inline: 1rem; } }

/* 5 Header & nav --------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(12px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(30,27,24,.07); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.brand { flex: 0 1 auto; min-width: 0; }
.custom-logo { max-height: 48px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); max-width: 100%; }
.wordmark__drop { flex: 0 0 auto; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 14%; background: var(--tomato); color: var(--mustard); transform: rotate(-45deg); }
.wordmark__drop .icon { transform: rotate(45deg); }
.wordmark__name { font: 800 1.3rem/1.1 var(--font); letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wordmark--light { color: var(--white); }
.wordmark--light .wordmark__drop { background: var(--mustard); color: var(--tomato); }

.primary-nav { margin-left: auto; }
.primary-nav .menu, .lang-switch { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav a { display: block; padding: .55rem .85rem; border-radius: 999px; font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.primary-nav a:hover { background: var(--tomato-soft); color: var(--tomato-dark); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: var(--ink); color: var(--white); }
.submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.45rem; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
	background: var(--white); border-radius: var(--r); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav .sub-menu a { border-radius: 12px; }
.primary-nav .sub-menu .current-menu-item > a { background: var(--tomato-soft); color: var(--tomato-dark); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lang-switch { margin-left: .5rem; padding-left: .5rem; border-left: 1px solid var(--line); text-transform: uppercase; font-size: .85rem; }
.header-actions { display: flex; gap: .25rem; margin-left: auto; flex: 0 0 auto; }
.primary-nav + .header-actions { margin-left: .5rem; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.header-search { background: var(--white); padding-block: 1rem 1.25rem; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
	.nav-toggle { display: inline-grid; }
	.primary-nav { position: fixed; inset: 74px 0 0 0; background: var(--cream); padding: 1rem 1rem 2rem; overflow-y: auto; display: none; }
	.admin-bar .primary-nav { top: 120px; }
	.nav-open .primary-nav { display: block; animation: vh-in .2s var(--ease); }
	.nav-open body { overflow: hidden; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 1rem .25rem; font-size: var(--step-1); font-weight: 700; border-radius: 0; background: none; color: var(--ink); }
	.primary-nav .current-menu-item > a { color: var(--tomato); }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.primary-nav .sub-menu { position: static; display: none; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 .75rem 1rem; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.lang-switch { border: 0; margin: 1rem 0 0; padding: 0; }
}
@media (min-width: 1001px) { .submenu-toggle { display: none; } }
@keyframes vh-in { from { opacity: 0; transform: translateY(-6px); } }

/* 6 Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-block: var(--space-4) var(--space-4); overflow: hidden; background:
	radial-gradient(60% 70% at 100% 0%, var(--tomato-soft) 0%, transparent 70%),
	radial-gradient(40% 50% at 0% 100%, var(--mustard-soft) 0%, transparent 70%); }
.hero__grid { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.hero__title { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.04em; margin: 0; max-width: 14ch; }
.hero__title .hl { color: var(--tomato); position: relative; white-space: nowrap; }
.hero__title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .2em; background: var(--mustard); opacity: .55; border-radius: 99px; z-index: -1; }
.hero__text { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 44ch; margin-top: 1.25rem; }
.hero__search { margin-top: 1.75rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.hero__media { position: relative; isolation: isolate; }
.hero__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); background: var(--tomato-soft); transform: rotate(1.5deg); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero-art { margin: 0; height: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero__blob { position: absolute; z-index: -1; border-radius: 50%; }
.hero__blob--a { width: 46%; aspect-ratio: 1; background: var(--mustard); right: -6%; top: -6%; }
.hero__blob--b { width: 28%; aspect-ratio: 1; background: var(--herb-soft); left: -7%; bottom: 8%; }
.spot { position: absolute; left: -1.5rem; bottom: 1.75rem; display: flex; align-items: center; gap: .75rem; max-width: 290px; padding: .6rem 1rem .6rem .6rem; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease); }
.spot:hover { transform: translateY(-2px); color: var(--ink); }
.spot__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.spot__body { display: grid; gap: .1rem; min-width: 0; }
.spot__label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); }
.spot__title { font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot__meta { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) { .spot { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; } .hero__frame { transform: none; } }

/* 7 Category circles ----------------------------------------------------- */
.cats { padding-block: var(--space-3) var(--space-4); }
.cats__row { list-style: none; margin: 0; padding: .5rem .25rem 1rem; display: flex; gap: clamp(1rem, 3vw, 2.25rem); justify-content: center; flex-wrap: wrap; }
@media (max-width: 760px) {
	.cats__row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; }
	.cats__row::-webkit-scrollbar { display: none; }
	.cats__row > li { scroll-snap-align: start; }
}
.cat { display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 112px; text-align: center; text-decoration: none; color: var(--ink); }
.cat__circle { position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--white), 0 8px 20px rgba(30,27,24,.12); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cat__circle img { width: 100%; height: 100%; object-fit: cover; }
.cat__circle .art { width: 46%; }
a.cat:hover .cat__circle { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 4px var(--tomato), 0 14px 28px rgba(199,62,29,.25); }
.cat--tomato .cat__circle { background: var(--tomato-soft); color: var(--tomato); }
.cat--mustard .cat__circle { background: var(--mustard-soft); color: #8A5A00; }
.cat--herb .cat__circle { background: var(--herb-soft); color: var(--herb); }
.cat--blush .cat__circle { background: var(--blush); color: var(--tomato-dark); }
.cat__name { font-weight: 700; font-size: .92rem; line-height: 1.25; }
a.cat:hover .cat__name { color: var(--tomato); }

/* 8 Section heads -------------------------------------------------------- */
.section-head { max-width: 640px; margin-bottom: var(--space-3); }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-title { font-size: var(--step-3); margin: 0; }
.section-lede { color: var(--muted); margin: .6rem 0 0; font-size: var(--step-1); line-height: 1.5; }

/* 9 Cards ---------------------------------------------------------------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-grid--row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card-grid__full { grid-column: 1 / -1; }
.card { height: 100%; }
.card__link { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tomato-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.06); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tomato); }
.card__placeholder .art { width: 36%; opacity: .8; }
.card__placeholder:empty::after { content: ""; width: 30%; aspect-ratio: 1; background: var(--tomato); opacity: .2; border-radius: 50% 50% 50% 14%; transform: rotate(-45deg); }
.card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem 1.2rem; flex: 1; }
.card__cat { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tomato-dark); background: var(--tomato-soft); padding: .2rem .55rem; border-radius: 99px; }
.card__title { font-size: var(--step-1); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em; margin: .15rem 0 0; }
.card__link:hover .card__title { color: var(--tomato); }
.card__meta { margin-top: auto; padding-top: .35rem; display: inline-flex; align-items: center; gap: .35rem; font-size: var(--step--1); color: var(--muted); font-weight: 600; }

/* 10 Featured bento ------------------------------------------------------ */
.featured { padding-top: var(--space-3); }
@media (min-width: 900px) {
	.card-grid--featured { grid-template-columns: repeat(4, 1fr); }
	.card-grid--featured > li:first-child { grid-column: span 2; grid-row: span 2; }
	.card-grid--featured > li:first-child .card__link { position: relative; }
	.card-grid--featured > li:first-child .card__media { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
	.card-grid--featured > li:first-child .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(30,27,24,.78)); }
	.card-grid--featured > li:first-child .card__body { position: relative; margin-top: auto; min-height: 520px; justify-content: flex-end; background: none; color: var(--white); padding: 1.75rem; }
	.card-grid--featured > li:first-child .card__title { font-size: var(--step-3); color: var(--white); }
	.card-grid--featured > li:first-child .card__meta { color: rgba(255,255,255,.85); margin-top: .5rem; flex: 0; }
	.card-grid--featured > li:first-child .card__cat { background: var(--mustard); color: var(--ink); }
	.card-grid--featured > li:first-child .card__link:hover .card__title { color: var(--mustard); }
}

/* 11 Finder -------------------------------------------------------------- */
.finder__panel { position: relative; background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: var(--space-4) clamp(1.25rem, 4vw, 3.5rem); overflow: hidden; isolation: isolate; }
.finder__panel::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(199,62,29,.55), transparent 70%); }
.finder__panel::after { content: ""; position: absolute; z-index: -1; left: -100px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,183,64,.25), transparent 70%); }
.section-head--light .section-title { color: var(--white); }
.section-head--light .section-lede { color: rgba(255,255,255,.75); }
.section-head--light .eyebrow { color: var(--mustard); }
.finder__intro { max-width: 620px; }
.finder__intro-title { font-size: var(--step-2); font-weight: 800; margin: .75rem 0; }
.finder__intro p:last-child { color: rgba(255,255,255,.78); }
.finder__form { display: grid; gap: 1.25rem; }
.finder__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder__group legend { font-weight: 800; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--mustard); margin-bottom: .6rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: .45rem 1rem; border-radius: 999px; background: var(--ink-2); border: 1.5px solid rgba(255,255,255,.14); font-size: .95rem; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.chip:hover span { border-color: rgba(255,255,255,.5); }
.chip input:checked + span { background: var(--tomato); border-color: var(--tomato); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--mustard); outline-offset: 2px; }
.finder__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.finder__status { margin: 0; font-weight: 700; }
.card-grid--finder { margin-top: var(--space-3); }
.card-grid--finder .card__link { color: var(--ink); }
.finder__empty { margin-top: var(--space-3); background: rgba(255,255,255,.06); border-radius: var(--r); padding: 1.25rem; }
.finder__empty p { margin: 0; }
.finder__more { margin-top: var(--space-3); }

/* 12 Collections --------------------------------------------------------- */
.collection { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.collection + .collection { margin-top: var(--space-3); }
.collection__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.collection__title { font-size: var(--step-2); margin: 0; }
.collection__note { color: var(--muted); font-size: var(--step--1); font-weight: 600; }
.collection__head .text-link { margin-left: auto; }
.collection .card__link { background: var(--cream); box-shadow: none; }

/* 13 Intro & newsletter -------------------------------------------------- */
.intro { background: var(--white); }
.intro__grid { display: grid; gap: var(--space-3); }
@media (min-width: 860px) { .intro__grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-5); align-items: start; } }
.intro__text { font-size: var(--step-1); line-height: 1.65; color: var(--muted); }
.newsletter { background: var(--tomato); color: var(--white); }
.newsletter .section-title { color: var(--white); }
.newsletter__inner { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1fr 1fr; } }
.newsletter__form label { display: block; font-weight: 700; margin-bottom: .4rem; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.newsletter__row input { flex: 1 1 220px; border-radius: 999px; border: 0; }
.newsletter__fine { font-size: var(--step--1); opacity: .85; margin: .75rem 0 0; }
.newsletter__fine a { color: var(--white); }

/* 14 Page headers & archives --------------------------------------------- */
.page-header { padding-block: var(--space-4) var(--space-3); background: radial-gradient(50% 120% at 100% 0%, var(--tomato-soft), transparent 70%); }
.page-header--plain { background: none; padding-bottom: 0; }
.page-title { font-size: var(--step-4); margin: 0; letter-spacing: -0.04em; }
.page-desc { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 62ch; margin-top: .75rem; }
.page-desc p:last-child { margin: 0; }
.drizzle--page { margin-top: 1.25rem; }
.page-search { margin-top: 1.5rem; max-width: 720px; }
.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: var(--step--1); color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; opacity: .6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--tomato); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill-nav--center { justify-content: center; }
.pill { display: inline-flex; padding: .55rem 1.05rem; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--ink); transition: background .15s, color .15s; }
.pill:hover { background: var(--tomato); color: var(--white); }
.pagination { margin-top: var(--space-4); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .9rem; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); }
.pagination .page-numbers.current { background: var(--tomato); color: var(--white); }
.pagination a.page-numbers:hover { background: var(--tomato-soft); }

/* 15 Single & prose ------------------------------------------------------ */
.entry-header { padding-top: var(--space-4); }
.entry-title { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.04em; margin: .25rem 0 .75rem; }
.entry-dek { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: var(--step--1); color: var(--muted); }
.entry-meta a { color: var(--ink); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.facts > div { background: var(--white); border-radius: 16px; padding: .6rem 1rem; min-width: 100px; box-shadow: var(--shadow-sm); }
.facts dt { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tomato); }
.facts dd { margin: 0; font-weight: 800; }
.entry-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.entry-media { position: relative; margin-block: var(--space-4) 0; }
.entry-media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }
.entry-media figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
.pin-save { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem 1rem; border-radius: 999px; background: #E60023; color: var(--white); font-weight: 700; font-size: .9rem; text-decoration: none; }
.pin-save:hover, .pin-save:focus-visible { color: var(--white); background: #C8001E; }
.entry-layout { display: grid; gap: var(--space-4); padding-block: var(--space-4) var(--space-3); }
.entry-main { min-width: 0; max-width: 780px; margin-inline: auto; width: 100%; }
@media (min-width: 1100px) {
	.has-ad-sidebar .entry-layout { grid-template-columns: minmax(0, 780px) 300px; justify-content: center; }
	.has-ad-sidebar .entry-main { margin: 0; }
}
.entry-aside { display: none; }
@media (min-width: 1100px) { .entry-aside { display: block; } .entry-aside__sticky { position: sticky; top: 100px; } }

.prose { font-size: 1.075rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose img { border-radius: var(--r); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--tomato); }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--mustard); background: var(--white); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 600; }
.prose a { font-weight: 600; }
.contact-card { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.25rem; background: var(--white); border-radius: var(--r); font-weight: 700; box-shadow: var(--shadow-sm); }

.extras { display: grid; gap: 1rem; margin-top: var(--space-4); }
.extra { background: var(--white); border-radius: var(--r); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.extra::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--mustard); }
.extra--substitutions::before { background: var(--tomato); }
.extra--storage::before { background: var(--herb); }
.extra__title { font-size: var(--step-1); margin-bottom: .6rem; }
.extra__sub { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .4rem; }
.extra ul { margin: 0; padding-left: 1.2em; }
.extra li + li { margin-top: .35em; }
.extra li::marker { color: var(--tomato); }
.entry-terms { margin-top: var(--space-3); font-size: var(--step--1); }
.entry-terms p { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.entry-terms span { font-weight: 700; color: var(--muted); margin-right: .25rem; }
.entry-terms a { padding: .35rem .8rem; border-radius: 999px; background: var(--tomato-soft); text-decoration: none; color: var(--tomato-dark); font-weight: 700; }
.entry-terms a:hover { background: var(--tomato); color: var(--white); }

/* 16 Recipe card --------------------------------------------------------- */
.recipe-card { margin-top: var(--space-4); background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.recipe-card__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.5rem; background: linear-gradient(120deg, var(--tomato), #E0632F); color: var(--white); }
.recipe-card__head > div:not([class]) { flex: 1 1 220px; }
.recipe-card__head .eyebrow { color: var(--mustard-soft); margin-bottom: .25rem; }
.recipe-card__title { color: var(--white); font-size: var(--step-2); margin: 0; }
.recipe-card__thumb img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,255,255,.85); }
.recipe-card__tools { margin-left: auto; }
.recipe-card__tools .btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.recipe-card__tools .btn--ghost:hover { background: var(--white); color: var(--tomato); }
@media (max-width: 600px) { .recipe-card__thumb { display: none; } .recipe-card__tools { margin-left: 0; } }
.diet-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; padding: 0; }
.diet-tags li { font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.2); }
.facts--card { margin: 0; padding: 1rem 1.5rem; background: var(--mustard-soft); gap: .25rem 1.5rem; }
.facts--card > div { background: transparent; box-shadow: none; padding: .25rem 0; min-width: 0; }
.recipe-card__cols { display: grid; gap: var(--space-3); padding: 1.5rem; }
@media (min-width: 760px) { .recipe-card__cols { grid-template-columns: 2fr 3fr; } }
.recipe-card__subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.recipe-card__cols h3 { font-size: var(--step-1); margin: 0 0 .75rem; }
.recipe-card__subhead h3 { margin: 0; }
.recipe-card__group { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tomato); margin: 1.25rem 0 .5rem; }
.scaler { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; }
.scaler__btn { border: 0; background: transparent; min-width: 42px; min-height: 36px; border-radius: 999px; font: 700 .85rem/1 var(--font); cursor: pointer; color: var(--ink); }
.scaler__btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.scaler__note { font-size: var(--step--1); color: var(--muted); margin: .5rem 0 0; }
.ingredients { list-style: none; margin: .75rem 0 0; padding: 0; }
.ingredients li { position: relative; padding: .6rem 0 .6rem 1.7rem; border-bottom: 1px dashed var(--line); }
.ingredients li::before { content: ""; position: absolute; left: .15rem; top: 1.05rem; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--tomato); }
.qty { font-weight: 800; }
.qty.is-scaled { color: var(--tomato); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.1rem 3.1rem; min-height: 2.3rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font: 800 .95rem/1 var(--font); }
.steps li:target { background: linear-gradient(90deg, var(--mustard-soft), transparent); border-radius: 10px; }
.recipe-card__fine { font-size: var(--step--1); color: var(--muted); padding: 0 1.5rem 1.5rem; margin: 0; }

/* 17 Share, related, comments -------------------------------------------- */
.share { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share__label { margin: 0; font-weight: 800; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; }
.share__btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 0; box-shadow: var(--shadow-sm); color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.share__btn:hover { background: var(--tomato); color: var(--white); }
.share__toast { font-size: var(--step--1); color: var(--herb); font-weight: 700; }
.related { background: var(--white); }
.related .section-title { margin-bottom: var(--space-3); }
.related .card__link { background: var(--cream); box-shadow: none; }
.comments-wrap { padding-block: var(--space-4) var(--space-5); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--white); border-radius: var(--r); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 700; margin-bottom: .25rem; }

/* 18 Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: var(--space-5); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.site-footer__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } }
.site-footer__brand p { margin-top: 1rem; max-width: 34ch; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.footer-title { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); margin-bottom: 1rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.socials { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; gap: .5rem; }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink-2); }
.socials a:hover { background: var(--tomato); color: var(--white); }
.site-footer .link-btn { color: var(--white); margin-top: .55rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: var(--space-4); padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--step--1); }
.site-footer__bottom p { margin: 0; }
.drizzle--footer { width: 90px; }

/* 19 Ads ----------------------------------------------------------------- */
.ad-slot { margin-block: var(--space-3); padding-block: .5rem; text-align: center; min-height: 120px; contain: layout; }
.ad-slot__label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.ad-slot--grid { margin: 0; }
.entry-aside .ad-slot { margin-top: 0; min-height: 600px; }

/* 20 Empty states, 404 --------------------------------------------------- */
.empty-state { text-align: center; max-width: 560px; margin-inline: auto; padding: var(--space-4) 1rem; }
.empty-state__art { display: inline-grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; background: var(--tomato-soft); color: var(--tomato); margin-bottom: 1rem; }
.empty-state__art .art { width: 56px; }
.empty-state__title { font-size: var(--step-2); }
.empty-state p { color: var(--muted); }
.notfound { text-align: center; }
.notfound .page-desc, .notfound .page-search { margin-inline: auto; }
.notfound__code { font: 800 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font); letter-spacing: -0.06em; color: var(--tomato); margin: 0 0 .5rem; }

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

/* 22 Print --------------------------------------------------------------- */
@media print {
	@page { margin: 14mm; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.site-header, .site-footer, .no-print, .ad-slot, .share, .related, .comments-wrap, .entry-actions, .pin-save, .skip-link, .entry-aside { display: none !important; }
	.print-only { display: block; }
	a { color: #000; text-decoration: none; }
	.recipe-card { box-shadow: none; border: 1px solid #999; break-inside: avoid-page; }
	.recipe-card__head { background: #fff; color: #000; border-bottom: 2px solid #000; }
	.recipe-card__title, .recipe-card__head .eyebrow { color: #000; }
	.facts--card { background: #fff; }
	.steps li::before { background: #fff; border: 1px solid #000; color: #000; }
	.recipe-card__source { padding: 0 1.5rem 1rem; font-size: 9pt; }
	.print-card .site-main > *:not(.entry), .print-card .entry > *:not(.entry-layout), .print-card .entry-main > *:not(.recipe-card) { display: none !important; }
	.print-card .entry-layout { display: block; padding: 0; }
	.print-card .recipe-card { margin: 0; }
}

/* 23 Mobile refinements (v1.1.3) ------------------------------------------ */
@media (max-width: 760px) {
	/* Category circles: 4-column grid, everything visible without scrolling. */
	.cats { padding-block: 1.25rem 1.5rem; }
	.cats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem .5rem; overflow: visible; margin: 0; padding: 0; justify-content: initial; }
	.cats__row > li { min-width: 0; }
	.cat { width: auto; gap: .4rem; }
	.cat__circle { width: 68px; height: 68px; box-shadow: 0 0 0 3px var(--white), 0 4px 12px rgba(30,27,24,.12); }
	.cat__name { font-size: .72rem; line-height: 1.2; }

	/* Recipe cards: two compact columns. */
	.card-grid, .card-grid--row, .card-grid--finder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.card__link { border-radius: 16px; }
	.card__media { aspect-ratio: 1 / 1; }
	.card__body { padding: .65rem .7rem .8rem; gap: .25rem; }
	.card__cat { font-size: .6rem; padding: .15rem .45rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.card__title { font-size: .92rem; line-height: 1.25; }
	.card__meta { font-size: .75rem; padding-top: .2rem; }
	/* Featured: first card full width as a banner, the rest in two columns. */
	.card-grid--featured > li:first-child { grid-column: 1 / -1; }
	.card-grid--featured > li:first-child .card__media { aspect-ratio: 16 / 10; }
	.card-grid--featured > li:first-child .card__title { font-size: 1.15rem; }

	/* Sauce Finder: each filter group is one swipeable row. */
	.finder__panel { padding: 1.5rem 1rem; border-radius: 24px; }
	.finder__form { gap: .9rem; }
	.finder__group .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding-inline: 1rem; scroll-snap-type: x proximity; }
	.finder__group .chips::-webkit-scrollbar { display: none; }
	.chip { flex: 0 0 auto; scroll-snap-align: start; }
	.chip span { min-height: 38px; padding: .35rem .85rem; font-size: .88rem; }
	.finder__bar .btn { min-height: 38px; }

	/* Collections: tighter boxes. */
	.collection { padding: 1rem; border-radius: 20px; }
	.collection__title { font-size: 1.2rem; }
	.collection__head .text-link { margin-left: 0; }

	/* Sections breathe less on small screens. */
	.section { padding-block: 2.5rem; }
	.section-title { font-size: 1.55rem; }
	.hero { padding-block: 1.5rem 2rem; }
	.hero__actions .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) {
	.cats__row { grid-template-columns: repeat(3, 1fr); }
}
