:root {
  --red: #f23825;
  --red-dark: #d92c1c;
  --ink: #17191d;
  --muted: #6d7178;
  --line: #e4e4e4;
  --paper: #fff;
  --canvas: #f2f2f2;
  --cream: #fff5ed;
  --shadow: 0 7px 24px rgba(20, 22, 25, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; left: 14px; top: -60px; padding: 10px 16px;
  color: #fff; background: var(--ink); border-radius: 0 0 7px 7px;
}
.skip-link:focus { top: 0; }
.site-shell {
  width: min(1230px, calc(100% - 40px));
  min-height: 100vh;
  margin: 24px auto;
  background: var(--paper);
  box-shadow: 0 0 16px rgba(0, 0, 0, .11);
}

/* Header */
.site-header { position: relative; z-index: 50; background: #fff; }
.brand-wrap {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.brand { display: block; width: 210px; }
.brand img { width: 100%; height: auto; }
.nav-bar {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 33px; }
.main-nav a {
  position: relative;
  padding: 23px 0;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.main-nav a::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 50%; right: 50%; bottom: 0;
  background: var(--red);
  transition: left .2s ease, right .2s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { left: 0; right: 0; }
.search-toggle {
  width: 42px; height: 42px;
  position: absolute; right: 30px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: #17212b;
}
.search-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }
.header-search {
  display: none;
  padding: 22px 70px 26px;
  background: #fbfbfb;
  border-bottom: 1px solid var(--line);
}
.header-search.is-open { display: block; }
.header-search label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.header-search > div { display: flex; max-width: 720px; margin: 0 auto; }
.header-search input { flex: 1; min-width: 0; border: 1px solid #d5d5d5; padding: 13px 16px; outline: none; }
.header-search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(242, 56, 37, .12); }
.header-search button, .hero-search button, .filter-bar button, .button {
  border: 0; color: #fff; background: var(--red); padding: 11px 23px; font-weight: 800;
}
.header-search button:hover, .hero-search button:hover, .filter-bar button:hover, .button:hover { background: var(--red-dark); }

/* Shared layout */
.section-pad { padding: 52px 40px; }
.page-pad { padding: 30px; }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 24px;
}
.panel { border: 1px solid var(--line); padding: 30px; background: #fff; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-heading {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2, .page-heading h1 {
  margin: 5px 0 0;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.section-heading > a {
  color: var(--red); font-size: 13px; font-weight: 800; border-bottom: 1px solid rgba(242, 56, 37, .35);
}
.page-heading { margin-bottom: 28px; }
.page-heading p { margin: 10px 0 0; color: var(--muted); }

/* Home */
.home-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  background: linear-gradient(125deg, #fff8f2 0%, #fff3e8 52%, #f4e2d2 100%);
  overflow: hidden;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 65px 36px 65px 62px; }
.hero-copy h1 {
  margin: 10px 0 15px;
  max-width: 470px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.hero-copy p { max-width: 460px; color: #51545b; font-size: 18px; }
.hero-search { display: flex; margin-top: 20px; width: min(100%, 465px); box-shadow: var(--shadow); }
.hero-search input { width: 100%; min-width: 0; padding: 15px 17px; border: 1px solid #fff; outline: none; }
.hero-search input:focus { border-color: var(--red); }
.hero-feature { position: relative; min-height: 510px; overflow: hidden; }
.hero-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12, 10, 8, .78)); }
.hero-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hero-feature:hover img { transform: scale(1.035); }
.hero-feature > span {
  position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 34px;
  color: #fff; font-family: var(--serif); font-size: 29px; line-height: 1.2;
}
.hero-feature small { display: block; margin-bottom: 7px; font-family: var(--sans); color: #ff8d80; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.category-strip { border-bottom: 1px solid var(--line); }
.category-highlights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-highlights a { position: relative; min-height: 210px; overflow: hidden; background: #222; }
.category-highlights a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78)); }
.category-highlights img { width: 100%; height: 100%; position: absolute; object-fit: cover; transition: transform .45s ease; }
.category-highlights a:hover img { transform: scale(1.06); }
.category-highlights span { position: absolute; z-index: 1; left: 17px; right: 17px; bottom: 15px; color: #fff; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.category-highlights small { display: block; margin-top: 3px; color: #ddd; font-family: var(--sans); font-size: 10px; font-weight: 600; }
.category-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-chips a {
  min-height: 94px; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line); padding: 17px 18px; background: #fff; transition: .2s ease;
}
.category-chips a:hover { transform: translateY(-3px); border-color: #ffc1ba; box-shadow: var(--shadow); }
.category-chips span { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.2; }
.category-chips small { color: var(--muted); margin-top: 5px; }

/* Cards */
.recipe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.recipe-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.recipe-card { min-width: 0; background: #fff; border: 1px solid #ededed; box-shadow: 0 4px 16px rgba(17, 21, 25, .07); transition: transform .22s ease, box-shadow .22s ease; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(17, 21, 25, .13); }
.card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover .card-image img { transform: scale(1.04); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #aa978b; background: linear-gradient(135deg, #f8eee7, #ead9ce); font-family: var(--serif); font-weight: 700; }
.card-body { padding: 22px 24px 25px; }
.card-category { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.card-body h2 { margin: 6px 0 10px; font-size: 21px; line-height: 1.28; letter-spacing: -.025em; }
.card-body h2 a:hover { color: var(--red); }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card-body > p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 13px 0 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.read-more span { display: inline-block; transition: transform .2s; }
.read-more:hover span { transform: translateX(4px); }

/* Filters and pagination */
.filter-bar {
  display: grid; grid-template-columns: 1.35fr 1fr .8fr auto; align-items: end; gap: 10px;
  padding: 18px; margin-bottom: 28px; background: #f7f7f7; border: 1px solid #ececec;
}
.filter-bar label > span { display: block; margin: 0 0 4px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.filter-bar input, .filter-bar select { width: 100%; height: 44px; border: 1px solid #d8d8d8; background: #fff; padding: 0 11px; outline: none; color: var(--ink); }
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(242, 56, 37, .1); }
.filter-bar button { height: 44px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 34px; }
.pagination a { padding: 9px 13px; border: 1px solid var(--line); font-size: 13px; font-weight: 750; }
.pagination a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.pagination span { color: var(--muted); font-size: 13px; }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; text-align: center; background: #fafafa; }
.empty-state h2 { margin: 0; }

/* Sidebar */
.sidebar { display: grid; gap: 24px; }
.side-widget { border: 1px solid var(--line); padding: 28px 30px; background: #fff; }
.side-widget h2 { margin: 0; font-size: 15px; font-weight: 800; }
.widget-rule { width: 42px; height: 2px; margin: 16px 0 18px; background: var(--ink); }
.side-about p { color: var(--muted); font-size: 14px; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; }
.category-list li:last-child { border-bottom: 1px solid var(--line); }
.category-list a:hover { color: var(--red); }
.category-list span { color: #aaa; }
.side-facebook-gif-widget { padding: 0; border: 0; overflow: hidden; background: transparent; }
.side-facebook-gif { display: block; line-height: 0; }
.side-facebook-gif img { display: block; width: 100%; height: auto; transition: transform .22s ease, opacity .22s ease; }
.side-facebook-gif:hover img { transform: scale(1.015); opacity: .94; }
.side-facebook-gif:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { padding: 4px 7px; color: #666; background: #f2f2f2; font-size: 10px; }
.tag-cloud a:hover { color: #fff; background: var(--red); }

/* Recovered homepage identity */
.meet-mery { border-top: 1px solid var(--line); background: #fff8f3; }
.meet-mery-grid { display: grid; grid-template-columns: minmax(250px, 370px) 1fr; gap: 55px; align-items: center; max-width: 940px; margin: 0 auto; }
.meet-mery-grid > img { width: 100%; max-height: 430px; object-fit: cover; box-shadow: var(--shadow); }
.meet-mery-grid h2 { margin: 6px 0 16px; font-family: var(--serif); font-size: 39px; }
.meet-mery-grid p { color: #50545a; }
.facebook-cta { min-height: 410px; display: grid; place-items: center; padding: 55px 30px; text-align: center; background: linear-gradient(rgba(15,18,24,.76),rgba(15,18,24,.82)), url('../img/site/facebook-bg.jpg') center/cover; }
.facebook-cta > div { max-width: 700px; color: #fff; }
.facebook-cta .eyebrow { color: #ff8c80; }
.facebook-cta h2 { margin: 5px 0 10px; font-family: var(--serif); font-size: clamp(38px,5vw,62px); }
.facebook-cta p { margin: 0 0 24px; font-size: 18px; }
.facebook-cta .button { display: inline-block; text-transform: uppercase; letter-spacing: .06em; }

/* Recipe detail */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: #8b8d91; font-size: 12px; margin-bottom: 25px; }
.breadcrumbs a:hover { color: var(--red); }
.recipe-header { margin-bottom: 24px; }
.recipe-taxonomy { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.recipe-taxonomy a { color: var(--red); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.recipe-header h1 { margin: 0; font-size: clamp(34px, 4.2vw, 55px); line-height: 1.07; letter-spacing: -.045em; }
.byline { margin-top: 14px; color: var(--muted); font-size: 13px; }
.recipe-hero { margin: 0 -30px 32px; }
.recipe-hero img { width: 100%; max-height: 690px; object-fit: cover; }
.recipe-intro { color: #464a50; font-family: var(--serif); font-size: 18px; line-height: 1.8; }
.recipe-intro p { margin: 0 0 18px; }
.content-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 16px; }
.content-links a { color: var(--red); font-family: var(--sans); font-size: 12px; font-weight: 800; border-bottom: 1px solid rgba(242,56,37,.3); }

/* Private admin preview, rendered with the exact frontend template. */
.admin-preview-banner {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 30px;
  color: #fff;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 7px 24px rgba(20, 22, 25, .18);
}
.admin-preview-banner div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; }
.admin-preview-banner strong { font-family: var(--serif); font-size: 18px; }
.admin-preview-banner span { color: #d7d7d7; font-size: 13px; }
.admin-preview-banner a {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}
.admin-preview-banner a:hover { background: var(--red); border-color: var(--red); }
.recipe-box { margin-top: 35px; border: 1px solid #dedede; }
.recipe-box-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 25px 28px; background: var(--cream); border-bottom: 1px solid #f0dcd2; }
.recipe-box-top h2 { margin: 3px 0 0; font-family: var(--serif); font-size: 25px; line-height: 1.25; }
.print-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d8bcb1; padding: 8px 12px; color: var(--ink); background: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; }
.print-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.print-button:hover { color: var(--red); border-color: var(--red); }
.recipe-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.recipe-facts > div { padding: 16px 12px; text-align: center; border-right: 1px solid var(--line); }
.recipe-facts > div:last-child { border-right: 0; }
.recipe-facts span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.recipe-facts strong { display: block; margin-top: 3px; font-size: 14px; }
.recipe-section { padding: 30px; }
.recipe-section + .recipe-section { border-top: 1px solid var(--line); }
.recipe-section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.recipe-section-title h2, .recipe-notes h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.recipe-section-title > span { color: var(--muted); font-size: 12px; }
.serving-control { display: flex; align-items: center; border: 1px solid #ddd; background: #fff; }
.serving-control button { width: 35px; height: 34px; border: 0; background: #f4f4f4; font-weight: 850; }
.serving-control button:hover { color: #fff; background: var(--red); }
.serving-control span { min-width: 92px; text-align: center; font-size: 12px; }
.ingredients-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.ingredients-list li { break-inside: avoid; margin: 0; border-bottom: 1px dashed #ddd; }
.ingredients-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 14px; }
.ingredients-list input { flex: 0 0 auto; appearance: none; width: 17px; height: 17px; margin: 3px 0 0; border: 1px solid #b8b8b8; border-radius: 2px; }
.ingredients-list input:checked { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.ingredients-list input:checked + span { color: #999; text-decoration: line-through; }
.ingredient-heading { padding: 18px 0 5px; color: var(--red); font-weight: 850; column-span: all; border-bottom-style: solid !important; }
.directions-list { counter-reset: directions; list-style: none; padding: 0; margin: 0; }
.directions-list > li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; padding: 24px 0; border-top: 1px solid var(--line); }
.directions-list > li:first-child { border-top: 0; padding-top: 0; }
.directions-list > li.direction-heading { display: block; padding: 28px 0 12px; }
.direction-heading h3 { margin: 0; color: var(--red); font-family: var(--serif); font-size: 21px; }
.step-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 12px; font-weight: 850; }
.step-content p { margin: 5px 0 16px; color: #3f4349; }
.step-image { display: block; width: 100%; max-width: 610px; border: 0; padding: 0; background: #eee; overflow: hidden; }
.step-image img { width: 100%; max-height: 620px; object-fit: cover; transition: transform .4s ease; }
.step-image:hover img { transform: scale(1.025); }
.recipe-notes { background: #fffaf5; }
.recipe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 20px 30px; border-top: 1px solid var(--line); font-size: 12px; }
.recipe-tags a { padding: 5px 9px; background: #f2f2f2; }
.recipe-tags a:hover { color: #fff; background: var(--red); }
.comments { margin-top: 38px; }
.comments > h2 { font-size: 29px; }
.comments article { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.comments article.comment-depth-2 { margin-left: 42px; }
.comments article.comment-depth-3 { margin-left: 76px; }
.comments article.comment-depth-4 { margin-left: 108px; }
.comment-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-weight: 850; }
.comments header { display: flex; gap: 12px; align-items: baseline; }
.owner-badge { display: inline-block; margin-left: 5px; padding: 1px 6px; color: #fff; background: var(--red); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.comments time { color: var(--muted); font-size: 12px; }
.comments p { margin: 8px 0 0; color: #50545a; }
.comments header a:hover { color: var(--red); }
.archive-comments { padding-top: 25px; border-top: 1px solid var(--line); }
.related { border-top: 1px solid var(--line); }
.lightbox { width: min(1100px, calc(100vw - 30px)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox img { max-width: 100%; max-height: 88vh; margin: auto; object-fit: contain; }
.lightbox button { position: absolute; right: 0; top: -42px; width: 38px; height: 38px; border: 0; color: #fff; background: transparent; font-size: 33px; }

/* Footer and utility */
.site-footer { margin-top: 25px; color: #d6d6d6; background: #17191d; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 60px; padding: 54px 50px; }
.footer-logo { width: 150px; filter: grayscale(1) brightness(5); opacity: .92; }
.footer-grid p { max-width: 380px; color: #9ea1a6; font-size: 13px; }
.footer-grid h2 { color: #fff; margin: 0 0 15px; font-size: 14px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { color: #aeb0b5; padding: 4px 0; font-size: 13px; }
.footer-grid a:hover { color: var(--red); }
.footer-bottom { padding: 16px 50px; color: #777b81; background: #111317; border-top: 1px solid #24262a; font-size: 11px; }
.error-page { margin: 50px; padding: 90px 30px; text-align: center; }
.error-page > span { color: var(--red); font-size: 80px; font-weight: 900; }
.error-page h1 { margin: 0; font-size: 38px; }
.error-page .button { display: inline-block; margin-top: 18px; }

@media (max-width: 1050px) {
  .site-shell { width: calc(100% - 24px); margin: 12px auto; }
  .main-nav { gap: 20px; }
  .main-nav a { font-size: 13px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .panel { padding: 24px; }
  .recipe-hero { margin-left: -24px; margin-right: -24px; }
  .side-widget { padding: 22px; }
  .category-chips { grid-template-columns: repeat(3, 1fr); }
  .category-highlights { grid-template-columns: repeat(3, 1fr); }
  .category-highlights a { min-height: 190px; }
}

@media (max-width: 820px) {
  .site-shell { width: 100%; margin: 0; box-shadow: none; }
  .brand-wrap { min-height: 130px; padding: 14px; }
  .brand { width: 150px; }
  .nav-bar { min-height: 58px; justify-content: space-between; padding: 0 15px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    align-items: stretch; flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 20px; border-top: 1px solid #eee; }
  .main-nav a::after { display: none; }
  .search-toggle { position: static; }
  .header-search { padding: 18px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 52px 28px; }
  .hero-feature { min-height: 430px; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-chips { grid-template-columns: repeat(2, 1fr); }
  .category-highlights { grid-template-columns: repeat(2, 1fr); }
  .category-highlights a:last-child { grid-column: 1 / -1; }
  .meet-mery-grid { grid-template-columns: 1fr; gap: 28px; }
  .meet-mery-grid > img { max-width: 370px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .recipe-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  body { font-size: 15px; }
  .admin-preview-banner { position: relative; align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 16px; }
  .admin-preview-banner a { text-align: center; }
  .section-pad, .page-pad { padding: 26px 16px; }
  .panel { padding: 18px; }
  .home-hero { min-height: 0; }
  .hero-copy { padding: 43px 20px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { font-size: 16px; }
  .hero-search { flex-direction: column; box-shadow: none; gap: 8px; }
  .hero-search input, .hero-search button { min-height: 48px; }
  .hero-feature { min-height: 360px; }
  .hero-feature > span { left: 22px; right: 22px; bottom: 23px; font-size: 24px; }
  .category-chips { grid-template-columns: 1fr 1fr; gap: 8px; }
  .category-highlights { grid-template-columns: 1fr; }
  .category-highlights a, .category-highlights a:last-child { grid-column: auto; min-height: 180px; }
  .category-chips a { min-height: 80px; padding: 13px; }
  .category-chips span { font-size: 15px; }
  .recipe-grid, .recipe-grid-three { grid-template-columns: 1fr; gap: 20px; }
  .card-body { padding: 18px 19px 21px; }
  .card-body h2 { font-size: 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .pagination { justify-content: space-between; gap: 6px; }
  .pagination span { display: none; }
  .recipe-header h1 { font-size: 36px; }
  .recipe-hero { margin-left: -18px; margin-right: -18px; }
  .recipe-intro { font-size: 17px; }
  .recipe-box { margin-left: -18px; margin-right: -18px; border-left: 0; border-right: 0; }
  .recipe-box-top { align-items: flex-start; padding: 21px 18px; }
  .recipe-box-top h2 { font-size: 20px; }
  .print-button { padding: 7px; }
  .print-button svg { width: 19px; }
  .print-button { font-size: 0; }
  .recipe-facts { grid-template-columns: repeat(2, 1fr); }
  .recipe-facts > div { border-bottom: 1px solid var(--line); }
  .recipe-section { padding: 24px 18px; }
  .recipe-section-title { align-items: flex-start; }
  .recipe-section-title h2 { font-size: 24px; }
  .ingredients-list { columns: 1; }
  .directions-list > li { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .step-number { width: 34px; height: 34px; }
  .recipe-tags { padding: 17px 18px; }
  .comments article.comment-depth-2 { margin-left: 18px; }
  .comments article.comment-depth-3 { margin-left: 30px; }
  .comments article.comment-depth-4 { margin-left: 42px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 42px 24px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { padding: 15px 24px; }
  .facebook-cta { min-height: 350px; padding: 45px 20px; }
  .error-page { margin: 25px 16px; }
}
