/*
Theme Name: Luyiz
Theme URI: https://luyiz.com/
Author: Luyiz
Description: A recipe theme built around plates, menus and kitchen paper. Round "plate" imagery, a menu-board Popular Topics section, scalloped edges and no boxed panels. Fully responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luyiz
Tags: blog, food-and-drink, one-column, custom-logo, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #eef0e4;
	--paper-deep: #e1e5d2;
	--ink: #241629;
	--ink-soft: #5d4f61;
	--chili: #e2402f;
	--chili-deep: #b92c1e;
	--turmeric: #f4b41a;
	--plum: #7b3f6e;
	--leaf: #5fa052;
	--rule: rgba(36, 22, 41, .18);

	--f-display: "Young Serif", "Iowan Old Style", Georgia, serif;
	--f-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--read: 700px;
	--gut: clamp(16px, 4vw, 40px);
	--scallop: 14px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--chili-deep); }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--turmeric); color: var(--ink); }

.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:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 100; left: 12px; top: 12px;
	background: var(--turmeric); color: var(--ink); padding: .6em 1em; font-weight: 600;
}

/* Scalloped edges (tablecloth / pinking-shear feel) */
.scallop-down, .masthead, .topics { position: relative; }
.masthead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--scallop) * -1); height: var(--scallop);
	background: radial-gradient(circle at var(--scallop) 0, var(--ink) calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
	pointer-events: none; z-index: 2;
}
.topics::before {
	content: ""; position: absolute; left: 0; right: 0; top: calc(var(--scallop) * -1); height: var(--scallop);
	background: radial-gradient(circle at var(--scallop) 100%, var(--ink) calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) var(--scallop) repeat-x;
}

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--turmeric); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Masthead ---------- */
.masthead { background: var(--ink); color: var(--paper); z-index: 20; }
.masthead-in {
	max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gut) 14px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand { display: inline-flex; justify-self: center; color: var(--paper); line-height: 0; }
.brand:hover { color: var(--paper); }
.brand .wordmark { width: clamp(104px, 12vw, 138px); height: auto; }
.brand:hover .wm-tomato { transform: translateY(-3px); }
.wm-tomato, .wm-leaf { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand-img { max-height: 64px; width: auto; }
.mast-latest {
	justify-self: start; display: inline-flex; align-items: center; gap: .55em;
	font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--paper);
}
.mast-latest:hover { color: var(--turmeric); }
.mast-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chili); box-shadow: 0 0 0 4px rgba(226, 64, 47, .25); }
.search-toggle {
	justify-self: end; display: inline-flex; align-items: center; gap: .5em; background: none; border: 0; padding: 8px 0 8px 8px;
	color: var(--paper); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; min-height: 44px;
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--turmeric); }
.search-drawer { max-width: var(--wrap); margin: 0 auto; padding: 6px var(--gut) 26px; }

/* Search form */
.seek-label { display: block; font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .4em; }
.seek-row { display: flex; gap: 0; border-bottom: 2px solid currentColor; }
.seek-input {
	flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; font: 400 1.15rem var(--f-body);
	padding: .7em 0; outline: none;
}
.seek-input::placeholder { color: currentColor; opacity: .5; }
.seek-btn {
	background: none; border: 0; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem;
	padding: 0 0 0 1em; color: var(--chili);
}
.masthead .seek-btn { color: var(--turmeric); }

/* Header widget (printed right after </header>) */
.header-widget {
	max-width: var(--wrap); margin: 0 auto; padding: calc(var(--scallop) + 16px) var(--gut) 0; text-align: center;
}
.header-widget .hw-title { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Shared bits ---------- */
.site-main { display: block; }
.kicker {
	display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1em;
	font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--chili-deep);
}
.kicker-dot { width: 10px; height: 10px; background: var(--chili); border-radius: 50%; }
.chip {
	display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none; color: var(--plum); border-bottom: 2px solid var(--turmeric); padding-bottom: 1px;
}
.chip:hover { color: var(--chili-deep); border-color: var(--chili); }
.btn-ink, .comment-form .submit {
	display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em; border: 0; border-radius: 999px;
	background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem;
	transition: background .2s, transform .2s;
}
.btn-ink:hover, .comment-form .submit:hover { background: var(--chili); color: #fff; transform: translateY(-2px); }

/* Plates: every image is served on a round plate with a rim */
.plate {
	position: relative; display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
	background: var(--paper-deep);
	box-shadow: 0 0 0 clamp(6px, .9vw, 11px) #fbfbf6, 0 0 0 calc(clamp(6px, .9vw, 11px) + 1.5px) var(--rule), 0 22px 30px -18px rgba(36, 22, 41, .45);
}
.plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
a:hover .plate img, a:focus .plate img { transform: scale(1.06) rotate(6deg); }
.plate--empty { display: grid; place-items: center; font-family: var(--f-display); color: var(--paper); font-size: 2.6em; }
.plate--empty.tone-0 { background: var(--plum); }
.plate--empty.tone-1 { background: var(--chili); }
.plate--empty.tone-2 { background: var(--leaf); }

/* ---------- Home hero ---------- */
.hero {
	max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gut) clamp(40px, 6vw, 80px);
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 6vw, 90px);
}
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; margin-bottom: .35em; }
.hero-title a { text-decoration: none; background: linear-gradient(var(--turmeric), var(--turmeric)) 0 88% / 0 .22em no-repeat; transition: background-size .5s; }
.hero-title a:hover { color: inherit; background-size: 100% .22em; }
.hero-excerpt { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2em; font-size: .9rem; color: var(--ink-soft); margin-bottom: 2em; }
.hero-plate { position: relative; padding: 9%; }
.hero-plate-link { display: block; }
.hero-plate .plate { box-shadow: 0 0 0 clamp(12px, 1.6vw, 22px) #fbfbf6, 0 0 0 calc(clamp(12px, 1.6vw, 22px) + 2px) var(--rule), 0 40px 60px -30px rgba(36, 22, 41, .5); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; pointer-events: none; }
.ring text { font: 700 11px var(--f-body); letter-spacing: .1em; fill: var(--ink); }
.sticker {
	position: absolute; left: 6%; bottom: 8%; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center; background: var(--chili); color: #fff; transform: rotate(-14deg);
	font: 400 clamp(1rem, 1.6vw, 1.35rem) var(--f-display);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Index / archive grid ---------- */
.index { max-width: var(--wrap); margin: 0 auto; padding: clamp(20px, 4vw, 40px) var(--gut) clamp(60px, 8vw, 110px); scroll-margin-top: 20px; }
.index-head { border-top: 2px solid var(--ink); padding-top: 22px; margin-bottom: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.index-head .crumbs, .index-head .kicker { flex-basis: 100%; }
.index-title { font-size: clamp(2.2rem, 6vw, 4.4rem); margin: 0; }
.index-sub { color: var(--ink-soft); margin: 0; max-width: 52ch; }
.index-sub p { margin: 0; }

.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 6vw, 84px) clamp(28px, 4vw, 64px); }
.dish { position: relative; display: flex; flex-direction: column; text-align: center; }
.dishes .dish:nth-child(3n+2) { transform: translateY(56px); }
.dish-media { position: relative; display: block; width: 82%; margin: 0 auto 30px; }
.dish-no {
	position: absolute; left: -4%; top: 2%; width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center; background: var(--turmeric); color: var(--ink);
	font: 400 1rem var(--f-display); transform: rotate(-10deg);
}
.dish-meta { display: flex; justify-content: center; align-items: center; gap: .7em; font-size: .8rem; color: var(--ink-soft); margin-bottom: .6em; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.dish-title { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: .45em; }
.dish-title a { text-decoration: none; }
.dish-excerpt { font-size: .95rem; color: var(--ink-soft); max-width: 34ch; margin: 0 auto; }

/* Pagination */
.pager { margin-top: clamp(80px, 9vw, 130px); }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pager ul.page-numbers { display: flex; border: 0; padding: 0; height: auto; border-radius: 0; background: none; }
.pager a.page-numbers, .pager span.page-numbers {
	display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 50%;
	font: 400 1.15rem var(--f-display); text-decoration: none; border: 1.5px solid var(--rule);
}
.pager a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .dots { border: 0; }

.empty { text-align: center; padding: 40px 0; max-width: 560px; margin: 0 auto; }
.empty-big { font: 400 clamp(1.6rem, 4vw, 2.4rem) var(--f-display); }

/* ---------- Single recipe ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-size: .82rem; color: var(--ink-soft); margin-bottom: 26px; }
.crumb { text-decoration: none; font-weight: 600; }
.crumb-sep { opacity: .45; }
.crumb-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

.recipe-head { max-width: 980px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut) clamp(28px, 4vw, 44px); }
.recipe-title { font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.02; margin-bottom: .45em; text-wrap: balance; }
.recipe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1.4em; font-size: .92rem; color: var(--ink-soft); }
.recipe-meta > * + *::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--chili); margin-right: 1.4em; vertical-align: middle; }

.recipe-hero { position: relative; max-width: var(--wrap); margin: 0 auto clamp(40px, 6vw, 72px); padding: 0 var(--gut); }
.recipe-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0 0 46% 46% / 0 0 14% 14%; }
.hero-stamp {
	position: absolute; right: calc(var(--gut) + 3%); bottom: -34px; width: clamp(96px, 11vw, 140px); padding: 22px 16px 12px;
	background: var(--turmeric); color: var(--ink); border-radius: 50%; aspect-ratio: 1; transform: rotate(-12deg);
}

.recipe-body {
	max-width: calc(var(--read) + 280px); margin: 0 auto; padding: 0 var(--gut);
	display: grid; grid-template-columns: 180px minmax(0, var(--read)); gap: 60px; align-items: start;
}
.recipe-body--solo { grid-template-columns: minmax(0, var(--read)); max-width: calc(var(--read) + 2 * var(--gut)); }
.rail { position: sticky; top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 6px; }
.rail-btn {
	display: inline-flex; gap: .4em; align-items: center; background: none; border: 0; padding: 0; text-decoration: none;
	font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid var(--turmeric);
}
.rail-jump { color: var(--chili-deep); border-color: var(--chili); }
.rail-btn:hover { color: var(--chili); }

/* Long-form content */
.entry-content { font-size: 1.125rem; line-height: 1.75; min-width: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 1.25em; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 1.6em 0 .5em; }
.entry-content h2::before { content: ""; display: block; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--turmeric) 0 30%, var(--chili) 31%); }
.entry-content a { color: var(--chili-deep); text-decoration-thickness: 2px; text-decoration-color: var(--turmeric); }
.entry-content a:hover { text-decoration-color: var(--chili); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--chili); }
.entry-content ol li::marker { font-family: var(--f-display); color: var(--plum); }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--ink-soft); margin-top: .6em; }
.entry-content blockquote {
	margin: 2em 0; padding: 0 0 0 1.2em; border-left: 6px solid var(--turmeric);
	font: 400 1.4rem/1.45 var(--f-display);
}
.entry-content hr { border: 0; height: 12px; background: radial-gradient(circle, var(--ink) 2px, transparent 2.5px) 0 50% / 18px 12px repeat-x; margin: 3em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .65em .5em; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: 1em; }
.entry-content iframe { max-width: 100%; }
.alignwide { margin-left: -6vw; margin-right: -6vw; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { display: flex; gap: 8px; font-weight: 600; }

/* Recipe card plugins: blend into the paper instead of a boxed widget */
.entry-content .wprm-recipe-container,
.entry-content .tasty-recipes,
.entry-content .mv-create-card,
.entry-content .wpzoom-recipe-card {
	margin: 3em 0; padding: 2.4em 0 1em; border-top: 4px double var(--ink); border-bottom: 4px double var(--ink);
	background: transparent !important; box-shadow: none !important; scroll-margin-top: 30px;
}
.entry-content .wprm-recipe-container .wprm-recipe { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
.entry-content .wprm-recipe-name, .entry-content .tasty-recipes h2 { font-family: var(--f-display) !important; }
.entry-content .wprm-recipe-ingredient-group-name, .entry-content .wprm-recipe-instruction-group-name, .entry-content .wprm-recipe-header {
	font-family: var(--f-display) !important; font-weight: 400 !important;
}
.entry-content .wprm-recipe a.wprm-recipe-link,
.entry-content .wprm-recipe-jump,
.entry-content .tasty-recipes-buttons a {
	border-radius: 999px !important; background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; text-decoration: none !important;
}
.entry-content .wprm-recipe-ingredients li::marker { color: var(--chili); }

/* Post footer */
.recipe-foot { max-width: calc(var(--read) + 280px); margin: 0 auto; padding: 40px var(--gut) 0; }
.recipe-foot > * { margin-left: auto; max-width: var(--read); }
.tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; }
.tagline-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }
.tag-pill { font-size: .88rem; text-decoration: none; padding: .3em .9em; border-radius: 999px; border: 1.5px solid var(--rule); }
.tag-pill:hover { border-color: var(--chili); color: var(--chili-deep); }
.after-content { margin-bottom: 36px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 2px solid var(--ink); padding-top: 22px; }
.pn-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.pn-next { text-align: right; grid-column: 2; }
.pn-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chili-deep); font-weight: 700; }
.pn-title { font: 400 1.2rem/1.25 var(--f-display); }
.pn-link:hover .pn-title { text-decoration: underline; text-decoration-color: var(--turmeric); text-decoration-thickness: 3px; }

/* Comments ("kitchen notes") */
.notes { max-width: calc(var(--read) + 280px); margin: 0 auto; padding: clamp(56px, 7vw, 90px) var(--gut) 0; scroll-margin-top: 20px; }
.notes > * { margin-left: auto; max-width: var(--read); }
.notes-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.notes-list, .notes-list .children { list-style: none; margin: 0 0 40px; padding: 0; }
.notes-list .children { margin: 18px 0 0 28px; padding-left: 18px; border-left: 2px dotted var(--rule); }
.note { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.note .children .note:last-child { border-bottom: 0; }
.note-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.note-avatar { border-radius: 50%; }
.note-author { display: block; font-weight: 600; }
.note-date { font-size: .82rem; color: var(--ink-soft); text-decoration: none; }
.note-reply a, .note-edit a { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chili-deep); text-decoration: none; }
.note-edit { margin-left: 12px; }
.note-pending { font-style: italic; color: var(--plum); }
.comment-respond { margin-top: 10px; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--ink); padding: .6em 0; font: inherit; color: inherit; border-radius: 0;
}
.comment-form textarea { border: 2px solid var(--ink); padding: .8em; border-radius: 4px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--chili); }
.comment-form p { margin-bottom: 1.2em; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.cancel-reply { margin-left: 10px; font-size: .8rem; color: var(--chili-deep); }
.notes-nav-link { font-weight: 600; }

/* Pages */
.page-sheet .recipe-head { max-width: calc(var(--read) + 2 * var(--gut)); }

/* 404 */
.lost { max-width: 760px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gut); text-align: center; }
.lost-num { display: flex; justify-content: center; align-items: center; gap: .08em; font: 400 clamp(6rem, 22vw, 13rem)/1 var(--f-display); margin: 0 0 .15em; }
.lost-plate { display: inline-block; width: .78em; height: .78em; border-radius: 50%; background: #fbfbf6; box-shadow: inset 0 0 0 .12em var(--paper-deep), 0 0 0 2px var(--rule), 0 18px 30px -16px rgba(36, 22, 41, .5); }
.lost-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lost-sub { color: var(--ink-soft); margin-bottom: 2.4em; }
.lost .seek { text-align: left; }

/* ---------- Popular Topics: a menu board, not a card grid ---------- */
.topics { background: var(--ink); color: var(--paper); margin-top: clamp(80px, 10vw, 140px); padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.topics-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.topics-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.topics-kicker { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--turmeric); font-weight: 700; margin-bottom: .6em; }
.topics-kicker::before, .topics-kicker::after { content: "✶"; margin: 0 .8em; color: var(--chili); }
.topics-title { font-size: clamp(2.4rem, 7vw, 5.2rem); margin: 0; color: var(--paper); }

.menu-board {
	list-style: none; margin: 0; padding: 0; counter-reset: none;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px);
}
.menu-board.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-board.cols-1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.course {
	display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 18px;
	padding: 18px 0; border-bottom: 1px dashed rgba(238, 240, 228, .25);
}
.course-plate { display: block; }
.course .plate { box-shadow: 0 0 0 5px rgba(251, 251, 246, .92), 0 0 0 6.5px rgba(238, 240, 228, .25); font-size: .7rem; }
.course .plate--empty { font-size: 1.1rem; }
.course-text { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.course-no { font: 400 .95rem var(--f-display); color: var(--turmeric); flex: none; }
.course-title { font: 400 clamp(1.05rem, 1.4vw, 1.22rem)/1.3 var(--f-display); margin: 0; }
.course-title a { color: var(--paper); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course:hover .course-title a { color: var(--turmeric); }
.course:hover .plate img { transform: scale(1.08) rotate(-8deg); }

/* ---------- Footer ---------- */
.foot { background: var(--turmeric); color: var(--ink); overflow: hidden; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 6vw, 72px) var(--gut) 22px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-start; }
.foot-note { font: 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.25 var(--f-display); max-width: 22ch; margin: 0; }
.foot-pages-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 560px; }
.foot-pages-list a { text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.foot-pages-list a:hover { color: var(--ink); border-color: var(--chili); }
.foot-mark { margin: clamp(32px, 4vw, 48px) 0 20px; color: var(--ink); line-height: 0; }
.foot-wordmark { width: clamp(120px, 14vw, 180px); height: auto; display: block; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); font-size: .85rem; font-weight: 600; }
.to-top { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.menu-board.cols-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.menu-board.cols-3 { grid-template-columns: minmax(0, 560px); justify-content: center; }
	.recipe-body { grid-template-columns: 140px minmax(0, var(--read)); gap: 40px; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero-plate { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
	.dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dishes .dish:nth-child(3n+2) { transform: none; }
	.dishes .dish:nth-child(2n) { transform: translateY(48px); }
	.recipe-body { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: calc(var(--read) + 2 * var(--gut)); }
	.rail {
		position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px;
		padding: 14px 0; margin-bottom: 30px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
	}
			.recipe-foot > *, .notes > * { margin-left: 0; }
	.recipe-foot, .notes { max-width: calc(var(--read) + 2 * var(--gut)); }
	.alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 680px) {
	:root { --scallop: 10px; }
	body { font-size: 1rem; }
	.masthead-in { grid-template-columns: auto 1fr; padding-top: 14px; padding-bottom: 10px; }
	.mast-latest { display: none; }
	.brand { justify-self: start; }
	.search-toggle-label { display: none; }
	.search-toggle { padding: 10px; margin-right: -10px; min-width: 44px; justify-content: center; }
	.menu-board:not(.cols-1), .menu-board.cols-3 { grid-template-columns: minmax(0, 1fr); }
	.course { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
	.dishes { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.dishes .dish:nth-child(n) { transform: none; }
	.dish { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 20px; align-items: center; text-align: left; }
	.dish-media { width: 100%; margin: 0; }
	.dish-no { width: 34px; height: 34px; font-size: .8rem; left: -6px; top: -4px; }
	.dish-meta { justify-content: flex-start; margin-bottom: .3em; }
	.dish-title { font-size: 1.22rem; margin-bottom: .3em; }
	.dish-excerpt { display: none; }
	.entry-content { font-size: 1.0625rem; }
	.hero-stamp { bottom: -26px; }
	.recipe-hero { padding: 0; }
	.recipe-hero img { border-radius: 0 0 50% 50% / 0 0 10% 10%; }
	.hero-stamp { right: 16px; }
	.pn { grid-template-columns: 1fr; }
	.pn-next { grid-column: 1; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
	.foot-top { flex-direction: column; }
}

@media (max-width: 380px) {
	.dish { grid-template-columns: 34% minmax(0, 1fr); gap: 16px; }
	.course { grid-template-columns: 60px minmax(0, 1fr); }
}

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

@media print {
	.masthead, .header-widget, .rail, .topics, .foot, .notes, .pn, .progress, .recipe-foot .after-content { display: none !important; }
	body { background: #fff; }
	.recipe-body { display: block; }
}

/* Link decoration resets for image links */
.dish-media, .course-plate, .hero-plate-link { text-decoration: none; }
.dish-meta time { white-space: nowrap; }
