/*
Theme Name: Sunday Batch
Description: Warm, readable cooking layouts for practical batch cooking.
Version: 0.2.0
Author: Sunday Batch
Text Domain: sunday-batch
*/

:root {
  --paper: #f7f4ec;
  --surface: #fffdf8;
  --cream: #f1eadc;
  --ink: #24322a;
  --muted: #56645b;
  --line: #d9d6ca;
  --accent: #99482d;
  --accent-dark: #74351f;
  --sage: #4f694d;
  --display: 'Iowan Old Style', Baskerville, Georgia, serif;
  --body: Candara, 'Trebuchet MS', 'Segoe UI', sans-serif;
  --shell: 75rem;
  --reading: 44rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, select { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5vw, 5.3rem); margin: .55rem 0 1.3rem; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 1.1rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 0 0 .4rem; }
p { margin: 0 0 1.25rem; }
ul, ol { margin-top: 0; }
figure { margin: 0; }
[id] { scroll-margin-top: 1.5rem; }

.screen-reader-text { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; left: 1rem; padding: .75rem 1rem; top: 1rem; width: auto; z-index: 1000; background: var(--ink); color: #fff; }
.site-shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
.site-main { min-height: 65vh; }
.eyebrow, .section-kicker { color: var(--accent-dark); font: 700 .8rem/1.4 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 1.75rem; height: 2px; margin: 0 .5rem .28rem 0; background: currentColor; vertical-align: middle; }
.lede { max-width: 44rem; color: var(--muted); font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.55; }

/* Header and shared controls */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5.5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; flex: none; color: var(--ink); font: 700 1.55rem/1 var(--display); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand em { color: var(--accent); font-style: italic; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: #fff; font: 1.3rem/1 var(--display); }
.site-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: .5rem 0; color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--accent-dark); border-bottom-color: var(--accent); }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3rem; padding: .65rem 1.15rem; border: 2px solid var(--accent); border-radius: .35rem; background: var(--accent); color: #fff; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover, button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.button--quiet { background: transparent; color: var(--accent-dark); }
.button--quiet:hover { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); }
.text-link:hover { gap: .75rem; }
.readability-toggle { flex: none; min-height: 2.65rem; padding: .45rem .75rem; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: .9rem; }
.readability-toggle:hover { background: var(--cream); border-color: var(--accent); color: var(--ink); transform: none; }
select, input, textarea { width: 100%; min-height: 3.15rem; padding: .65rem .85rem; border: 1.5px solid #8b9589; border-radius: .35rem; background: #fff; color: var(--ink); }
select { cursor: pointer; }
label { cursor: pointer; }

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(2.5rem, 5vw, 5.5rem); padding: clamp(3.25rem, 6vw, 6rem) 0 5rem; }
.home-hero__copy { min-width: 0; }
.home-hero h1 { max-width: 13ch; font-size: clamp(3.3rem, 6vw, 6rem); }
.home-hero h1 em { color: var(--accent); font-weight: 500; }
.home-hero .lede { max-width: 34rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 1.7rem; margin-top: 2rem; }
.home-hero__media { position: relative; min-width: 0; padding-bottom: 1.4rem; }
.home-hero__media img { width: 100%; aspect-ratio: 1.17; object-fit: cover; object-position: 52% 50%; border-radius: 48% 48% .45rem .45rem / 28% 28% .45rem .45rem; box-shadow: 0 1.5rem 3rem rgba(42, 45, 30, .15); }
.photo-caption { position: absolute; right: -1rem; bottom: 0; max-width: 16rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 .5rem 1.5rem rgba(25, 30, 22, .08); color: var(--ink); font-family: var(--display); font-size: 1.08rem; line-height: 1.25; }
.photo-caption__mark { display: inline-block; margin-right: .25rem; color: var(--accent); font-size: 1.4rem; vertical-align: middle; }
.search-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .9fr); align-items: end; gap: 2rem; padding: clamp(1.7rem, 3vw, 3rem); background: var(--ink); color: #fff; border-radius: .55rem; }
.search-panel .eyebrow { color: #e9c4a6; }
.search-panel h2 { max-width: 20ch; margin: .5rem 0 .65rem; }
.search-panel p { color: #e4e9e1; margin: 0; }
.search-panel .button--quiet { color: #fff; border-color: #e9c4a6; }
.search-panel .button--quiet:hover { color: var(--ink); background: #e9c4a6; }
.ingredient-search label { display: block; margin-bottom: .55rem; color: #fff; font-weight: 700; }
.ingredient-search__row { display: flex; gap: .55rem; }
.ingredient-search__row select { min-width: 0; flex: 1; }
.ingredient-search__row button { flex: none; background: #f1d7b8; border-color: #f1d7b8; color: var(--ink); }
.ingredient-search__row button:hover { background: #fff1da; border-color: #fff1da; color: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.section-heading h2 { max-width: 19ch; margin: .35rem 0 0; }
.section-heading > p { max-width: 20rem; color: var(--muted); margin: 0 0 .2rem; }
.how-it-works { padding: 5.5rem 0 4.5rem; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid article { min-width: 0; padding: 2rem clamp(1rem, 2.5vw, 2.5rem); background: var(--paper); }
.process-grid article:first-child { padding-left: 0; }
.process-grid article:last-child { padding-right: 0; }
.process-number { display: block; margin-bottom: 1.15rem; color: var(--accent); font: 700 .9rem/1 var(--body); letter-spacing: .12em; }
.process-grid h3 { margin-bottom: .7rem; }
.process-grid p { max-width: 24rem; margin: 0; color: var(--muted); }
.latest-section { padding: 4.5rem 0 5rem; }

/* Cards, archives, and related content */
.grid { display: grid; gap: 1.2rem; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card:hover, .card:focus-within { border-color: #b7b4a7; transform: translateY(-3px); box-shadow: 0 .8rem 1.8rem rgba(30, 42, 33, .08); }
.card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.card__image { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 1.65rem; }
.card .eyebrow { margin-bottom: .8rem; }
.card :is(h2, h3) { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: .65rem; }
.card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.card :is(h2, h3) a:hover { color: var(--accent-dark); }
.card p { margin-bottom: 1.5rem; color: var(--muted); line-height: 1.5; }
.card__more { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: .92rem; font-weight: 700; }
.archive-hero { max-width: 55rem; padding: 4.5rem 0 2.5rem; }
.archive-hero h1 { margin-bottom: .8rem; }
.archive-hero .lede p { margin: 0; }
.archive-grid { padding-bottom: 3rem; }
.archive-filters { margin-bottom: 2rem; padding: 1.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: .4rem; }
  .archive-filters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.archive-filters label { font-size: .95rem; font-weight: 700; }
.archive-filters select { display: block; margin-top: .35rem; }
.archive-filters p { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.empty-state { grid-column: 1 / -1; padding: 3rem; background: var(--surface); border: 1px solid var(--line); }
.navigation.pagination { margin: 1rem 0 4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: .3rem .75rem; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.related-content { margin: 5rem 0; padding-top: 3rem; border-top: 1px solid var(--line); }
.related-content h2 { margin: .4rem 0 1.5rem; }

/* Recipe and plan articles */
.article-header { max-width: 58rem; padding: 4.5rem 0 2.4rem; }
.article-header h1 { max-width: 16ch; }
.article-header .lede { max-width: 44rem; margin-bottom: 1.75rem; }
.recipe-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 48rem; margin: 2rem 0 0; padding: 1.15rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recipe-meta div { min-width: 0; padding: .25rem 1rem; border-right: 1px solid var(--line); }
.recipe-meta div:first-child { padding-left: 0; }
.recipe-meta div:last-child { border-right: 0; }
.recipe-meta dt { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.recipe-meta dd { margin: .25rem 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.article-jumps { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.45rem; }
.article-jumps a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 5rem; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.article-jumps a:hover { border-color: var(--accent); background: var(--cream); color: var(--accent-dark); }
.recipe-layout, .plan-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) minmax(13rem, 17rem); align-items: start; justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); }
.recipe-main, .plan-main { min-width: 0; }
.featured-photo { margin-bottom: 2rem; }
.featured-photo img { width: 100%; max-height: 37rem; object-fit: cover; border-radius: .35rem; }
.article-prose { max-width: var(--reading); }
.article-prose--wide { max-width: 55rem; }
.article-prose h2 { margin: 2.25rem 0 .65rem; font-size: clamp(1.65rem, 2.2vw, 2.2rem); }
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { margin-top: 1.6rem; }
.article-prose p { max-width: 65ch; }
.article-prose ul, .article-prose ol { padding-left: 1.35rem; }
.article-prose li { margin-bottom: .5rem; }
.recipe-section { margin-top: 3.75rem; padding-top: 2.3rem; border-top: 1px solid var(--line); }
.recipe-section .section-kicker { margin-bottom: .35rem; }
.recipe-section h2 { margin-bottom: 1.5rem; }
.recipe-sidebar { min-width: 0; }
.sidebar-panel { position: sticky; top: 1.5rem; padding: 1.5rem; background: var(--cream); border-top: 4px solid var(--sage); }
.sidebar-panel h2 { margin: .55rem 0 .8rem; font-size: 1.75rem; }
.sidebar-panel p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.sidebar-panel nav { display: flex; flex-direction: column; margin-top: 1.35rem; border-top: 1px solid #c9c8b9; }
.sidebar-panel nav a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid #c9c8b9; color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none; }
.sidebar-panel nav a:hover { color: var(--accent-dark); }
.ingredients-list, .uses-list, .daily-meals, .shopping-list { list-style: none; margin: 0; padding: 0; }
.ingredients-list li { display: grid; grid-template-columns: minmax(5rem, 7rem) 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.ingredients-list li:first-child { border-top: 1px solid var(--line); }
.ingredient-quantity { color: var(--accent-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.ingredients-list strong { font-weight: 700; }
.ingredients-list small { display: block; margin-top: .15rem; color: var(--muted); font-size: .88rem; }
.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.step-list li:first-child { border-top: 1px solid var(--line); }
.step-list li::before { content: counter(step, decimal-leading-zero); color: var(--accent); font: 700 1.25rem/1.3 var(--display); font-variant-numeric: tabular-nums; }
.step-time { color: var(--sage); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.step-body h3 { margin: .15rem 0 .4rem; }
.step-body p { margin: 0; }
.uses-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.uses-list li { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem; background: var(--cream); border-left: 3px solid var(--sage); line-height: 1.45; }
.uses-list strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; }
.uses-list span { color: var(--muted); font-size: .98rem; }
.storage-card { padding: .15rem 1.4rem; background: var(--cream); border-left: 4px solid var(--accent); }
.storage-card p { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; margin: 0; border-bottom: 1px solid #d4cbb9; }
.storage-card p:last-child { border: 0; }
.storage-card strong { color: var(--accent-dark); }
.source-note { margin-top: 1rem; color: var(--muted); font-size: .86rem; }
.timeline { counter-reset: timeline; list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline-time { color: var(--accent-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.daily-meals li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.daily-meals li:last-child { border-bottom: 1px solid var(--line); }
.meal-day { color: var(--accent-dark); font-size: .86rem; font-weight: 700; text-transform: uppercase; }
.daily-meals h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.daily-meals p { margin: 0; color: var(--muted); }
.eating-order { margin-bottom: 1.5rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--sage); background: var(--cream); }
.eating-order h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.eating-order p { margin: 0; }
.meal-guides { display: grid; gap: 1rem; }
.meal-guide { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.meal-guide__heading { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: baseline; gap: 1rem; margin-bottom: .7rem; }
.meal-guide__heading h3 { margin: 0; font-size: 1.5rem; }
.meal-guide__base { margin: 0 0 1rem; padding: .75rem .9rem; background: var(--cream); font-size: .98rem; line-height: 1.5; }
.meal-guide__base strong { color: var(--accent-dark); }
.meal-guide__steps { margin: 0; padding-left: 1.5rem; }
.meal-guide__steps li { padding-left: .25rem; margin-bottom: .7rem; }
.meal-guide__steps li:last-child { margin-bottom: 0; }
.meal-guide__steps li::marker { color: var(--accent-dark); font-weight: 700; }
.base-prep-guides { display: grid; gap: 1rem; }
.base-prep-guide { min-width: 0; padding: 1.4rem 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.base-prep-guide h3 { margin: 0 0 .8rem; font-size: 1.28rem; line-height: 1.3; }
.shopping-list li { padding: .95rem 0 .95rem 1.7rem; border-bottom: 1px solid var(--line); position: relative; }
.shopping-list li:first-child { border-top: 1px solid var(--line); }
.shopping-list li::before { content: '○'; position: absolute; left: 0; color: var(--sage); font-size: 1.3rem; line-height: 1; }
.callout { padding: 1.3rem 1.5rem; background: var(--cream); border-left: 4px solid var(--accent); }

/* Storage reference, ads, and footer */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line); }
.storage-table { width: 100%; min-width: 40rem; border-collapse: collapse; background: var(--surface); }
.storage-table th, .storage-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.storage-table thead th { background: var(--cream); color: var(--ink); font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
.storage-table tbody th { font-weight: 700; }
.storage-table tbody tr:nth-child(even) { background: #f8f6ef; }
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 5rem; margin: 3rem 0; border: 1px dashed #c8c5b8; color: #6b716a; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer { margin-top: 5rem; padding: 3rem 0; background: var(--ink); color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-brand { color: #fff; font: 700 1.5rem/1.2 var(--display); text-decoration: none; }
.footer-brand:hover, .footer-links a:hover { color: #f1d7b8; }
.site-footer p { margin: .45rem 0 0; color: #d4ddd2; }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #fff; font-size: .95rem; text-decoration: none; }
body.is-large-text { font-size: 1.28rem; }
body.is-large-text .lede { font-size: 1.48rem; }
body.is-large-text .site-nav a, body.is-large-text .card p, body.is-large-text .sidebar-panel p { font-size: 1.08rem; }
body.is-large-text .ingredients-list small, body.is-large-text .step-time, body.is-large-text .section-kicker, body.is-large-text .eyebrow, body.is-large-text .source-note { font-size: 1rem; }

@media (max-width: 65rem) {
  .header-inner { gap: 1rem; }
  .site-nav ul { gap: .25rem 1rem; }
  .recipe-layout, .plan-layout { grid-template-columns: minmax(0, 1fr) 14rem; gap: 2rem; }
}

@media (max-width: 48rem) {
  .site-shell { width: min(100% - 2rem, var(--shell)); }
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding: .9rem 0; }
  .site-nav { order: 3; width: 100%; border-top: 1px solid var(--line); }
  .site-nav ul { justify-content: space-between; gap: 1rem; }
  .home-hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 4rem; }
  .home-hero h1 { max-width: none; }
  .home-hero__media img { aspect-ratio: 1.6; border-radius: .45rem; }
  .photo-caption { right: .75rem; }
  .search-panel { grid-template-columns: 1fr; gap: 1.4rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article, .process-grid article:first-child, .process-grid article:last-child { padding: 1.5rem 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-layout, .plan-layout { grid-template-columns: 1fr; }
  .recipe-sidebar { display: none; }
  .article-header { padding: 3.25rem 0 2rem; }
}

@media (max-width: 36rem) {
  .brand { font-size: 1.35rem; max-width: 100%; white-space: normal; }
  .brand > span:last-child { min-width: 0; }
  .brand-mark { flex: none; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .readability-toggle { font-size: .82rem; }
  .home-hero h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .home-hero__media img { aspect-ratio: 1.2; }
  .photo-caption { max-width: 12rem; font-size: .93rem; }
  .ingredient-search__row { flex-direction: column; }
  .section-heading { display: block; }
  .section-heading > p, .section-heading > .text-link { margin-top: 1rem; }
  .how-it-works { padding: 4rem 0 3rem; }
  .latest-section { padding: 3rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .recipe-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 0; }
  .recipe-meta div:nth-child(2) { border-right: 0; }
  .recipe-meta div:nth-child(3) { padding-left: 0; }
  .uses-list { grid-template-columns: 1fr; }
  .storage-card p { grid-template-columns: 1fr; gap: .15rem; }
  .meal-guide, .base-prep-guide { padding: 1.15rem; }
  .meal-guide__heading { display: block; }
  .meal-guide__heading h3 { margin-top: .3rem; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .site-nav, .ad-slot, .recipe-sidebar, .article-jumps, .print-hide, .related-content, .screen-reader-text { display: none !important; }
  body { background: #fff; color: #000; font: 12pt/1.35 Georgia, serif; }
  .site-shell { width: 100%; }
  .recipe-layout, .plan-layout { display: block; }
  .article-header { padding: 0 0 1rem; }
  .recipe-section { break-inside: auto; margin-top: 1.5rem; padding-top: .75rem; }
  .step-list li, .ingredients-list li, .timeline li { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

/* Cooking controls share the warm, readable recipe layout. */
.tool-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.cooking-tools { margin: 1.5rem 0 2rem; }
.cooking-timer { border: 1px solid var(--line); padding: 1rem 1.2rem; background: var(--surface); }
summary { cursor: pointer; font-weight: 700; padding: .4rem 0; min-height: 2.75rem; }
.timer-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.timer-controls label { max-width: 8rem; }
.timer-clock { font-size: 2rem; font-variant-numeric: tabular-nums; margin: 1rem 0 .25rem; }
button:disabled { opacity: .65; cursor: default; transform: none; }
.check-label { display: flex; align-items: flex-start; gap: .75rem; min-height: 2.75rem; padding: .45rem .25rem; line-height: 1.5; }
.check-label input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin: .2rem 0 0; padding: 0; accent-color: var(--sage); }
.check-label span { min-width: 0; overflow-wrap: anywhere; }
.checklist { padding: 0; list-style: none; }
.ingredients-list li { display: block; }
.ingredients-list small { display: block; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.shopping-list li::before { content: none; }
.shopping-list li { display: block; }
.field-help { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: .5rem 0 1rem; }
.recipe-search { min-width: 0; padding: clamp(1rem, 3vw, 2rem); margin-bottom: 2rem; }
.recipe-search fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.recipe-search legend { font-weight: 700; font-size: 1.2rem; margin-bottom: .5rem; }
.ingredient-options__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .25rem .75rem; max-height: 20rem; overflow-y: auto; padding: .4rem; }
.ingredient-options__grid .check-label:hover { background: var(--cream); }
.match-options .check-label { padding: .5rem .25rem; }
.connected-bases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.connected-base { min-width: 0; overflow-wrap: anywhere; padding: 1.25rem; border: 1px solid var(--line); background: var(--surface); }
.connected-base h3 { font-size: 1.4rem; line-height: 1.3; }
.connected-base p:last-child { margin-bottom: 0; }
.portion-summary { font-weight: 700; color: var(--sage); font-size: 1rem; margin: .5rem 0; }
.base-ingredient-list { padding-left: 1.25rem; }
.recipe-notes { margin: 0; }
.recipe-notes div { margin-bottom: 1.1rem; }
.recipe-notes dt { font-weight: 700; color: var(--accent-dark); }
.recipe-notes dd { margin: .2rem 0 0; }
.meal-recipe-link { margin: 1rem 0 0; }
.breadcrumbs { padding-top: 1.25rem; font-size: .95rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--muted); margin-left: .5rem; }
.article-byline { color: var(--muted); font-size: 1rem; }
.print-document { max-width: 52rem; }
.print-controls { border: 1px solid var(--line); padding: 1rem; margin-top: 1.5rem; }
.print-controls form { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.print-controls form label { max-width: 12rem; }
.print-controls p { margin-top: 1rem; }
.newsletter-callout { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--cream); margin: 3rem 0; }
.newsletter-callout h2 { font-size: 2rem; }
.newsletter-callout form { max-width: 36rem; }
.newsletter-callout .check-label { margin: 1rem 0; }
.form-message { padding: 1rem; border-left: 4px solid var(--sage); background: var(--cream); }
.honeypot { position: absolute; left: -10000px; }
html:not(.has-cooking-tools) [data-step-timer], html:not(.has-cooking-tools) .cooking-timer, html:not(.has-cooking-tools) [data-print-now] { display: none; }
html:not(.has-readability) .readability-toggle { display: none; }
@media (max-width: 36rem) {
  .timer-controls button { flex: 1 1 7rem; }
  .connected-base { padding: 1rem; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .timeline span, .meal-guide__steps li, .base-prep-guide li { overflow-wrap: anywhere; }
}
@media print {
  @page { margin: 14mm; }
  .breadcrumbs, .newsletter-callout, .cooking-tools, .article-byline { display: none !important; }
  .recipe-section, .meal-guide, .base-prep-guide, .connected-base { break-inside: auto; box-shadow: none; }
  h1 { font-size: 24pt; } h2 { font-size: 18pt; break-after: avoid; } h3 { font-size: 14pt; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .meal-guide, .base-prep-guide, .connected-base { padding: .5rem 0; border: 0; margin-bottom: 1rem; }
  .connected-base details { display: none; }
  .meal-guide__heading { display: block; }
  .meal-guide__base, .eating-order, .callout { background: #fff; padding: .5rem 0; border: 0; }
  .meal-guide__steps li { break-inside: auto; }
  .check-label input { appearance: none; border: 1px solid #000; width: 3mm; height: 3mm; margin-top: 1.2mm; }
  .checklist input:checked + span { text-decoration: none; color: #000; }
  .shopping-list li { break-inside: avoid; }
  .food-safety-notes { break-inside: avoid; }
  .print-document .recipe-section:first-of-type { margin-top: .5rem; }
  .meal-guide__heading { break-inside: avoid; break-after: avoid; }
  .meal-guide__base, .meal-guide__equipment { break-after: avoid; }
  .connected-base h3 { break-after: avoid; }
  .section-kicker { break-after: avoid; }
  .meal-guide__base, .meal-guide__equipment { break-inside: avoid; }
  .connected-base .field-help { display: none; }
  .meal-guide, .base-prep-guide, .uses-list li, .storage-card { background: #fff; }
  .check-label input { border-radius: 0; }
  .shopping-list li, .ingredients-list li { padding: .35rem 0; }
  .check-label { min-height: 0; padding: .2rem 0; }
  .step-list li { padding: .75rem 0; }
}
