/* ==========================================================================
   MariRecipe — main stylesheet
   Values follow the MariRecipe desktop design (1440 artboard, 120px gutters).
   ========================================================================== */

:root {
  --cream: #FFF9F4;
  --white: #FFFFFF;
  --ink: #2A1A1F;
  --muted: #6B5A5F;
  --wine: #7A1E36;
  --wine-dark: #4A0F1F;
  --wine-hover: #A33A52;
  --coral: #E8866A;
  --blush: #FDECE4;
  --peach: #FAD2C2;
  --sage: #E4EFE3;
  --sage-ink: #4F7A57;
  --sage-text: #4B5A4D;
  --line: #EFE3DC;
  --line-2: #E3CFC5;
  --star: #E0A21B;
  --tone: #E7CFBF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', cursive;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --pill: 999px;
  --shadow-1: 0 1px 2px rgba(74,15,31,.06), 0 2px 8px rgba(74,15,31,.06);
  --shadow-2: 0 4px 12px rgba(74,15,31,.08), 0 12px 32px rgba(74,15,31,.08);

  --max: 1200px;
  --gutter: 24px;
  --section-gap: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; background: var(--cream); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 4px; }
a:hover { color: var(--wine-hover); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--wine-dark); line-height: 1.2; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.mr-icon { flex-shrink: 0; }

.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: 12px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-inset { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.script { font-family: var(--script); font-size: 28px; line-height: 1.1; color: var(--wine-hover); display: inline-block; transform: rotate(-2deg); align-self: flex-start; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.accent { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: var(--pill); border: 0; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, transform .15s; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--wine-hover); color: #fff; }
.btn--outline { background: #fff; color: var(--wine); border: 1.5px solid var(--wine); }
.btn--outline:hover { background: var(--blush); color: var(--wine); }
.btn--soft { background: var(--blush); color: var(--wine); }
.btn--soft:hover { background: var(--peach); color: var(--wine); }
.text-link { font-weight: 600; font-size: 16px; color: var(--wine); }
.text-link--icon { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--wine); color: var(--wine); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wine-dark); flex-shrink: 0; }
.brand:hover { color: var(--wine-dark); }
.brand__mark { width: 38px; height: 38px; border-radius: var(--pill); background: var(--wine); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.brand__name { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.brand__accent { color: var(--wine); }
.custom-logo-link img { max-height: 52px; width: auto; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; gap: 4px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--wine); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 6px; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.primary-nav .sub-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; }
.primary-nav .sub-menu a:hover { background: var(--blush); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }
.menu-toggle__close { display: none; }
.menu-open .menu-toggle__open { display: none; }
.menu-open .menu-toggle__close { display: inline-flex; }

.header-search { border-top: 1px solid var(--line); padding: 16px 0; background: var(--cream); }
.header-search .search-pill { max-width: 640px; margin-inline: auto; }

/* ---------- Search pill ---------- */
.search-pill { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 6px 6px 20px; box-shadow: var(--shadow-1); max-width: 540px; width: 100%; }
.search-pill__icon { color: var(--muted); display: inline-flex; }
.search-pill input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; height: 44px; font-size: 16px; }
.search-pill input::-webkit-search-cancel-button { cursor: pointer; }
.search-pill button { height: 44px; padding: 0 20px; border-radius: var(--pill); border: 0; background: var(--blush); color: var(--wine); font-weight: 600; font-size: 15px; cursor: pointer; flex-shrink: 0; }
.search-pill button:hover { background: var(--peach); }
.search-pill:focus-within { border-color: var(--wine-hover); }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 72px; display: grid; grid-template-columns: 55fr 45fr; gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero__eyebrow { font-size: 30px; }
.hero__title { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.08; font-weight: 700; letter-spacing: -.015em; }
.hero__text { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.hero__copy .search-pill { margin-top: 16px; }
.hero__media { position: relative; height: 520px; border-radius: var(--r-lg); background: #E7CFBF; color: rgba(74,15,31,.45); }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.hero__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; text-align: center; padding: 24px; }
.hero__badge { position: absolute; top: 24px; left: -18px; background: #fff; border-radius: var(--pill); padding: 10px 18px; box-shadow: var(--shadow-2); font-weight: 700; font-size: 14px; color: var(--wine); display: flex; align-items: center; gap: 8px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: var(--pill); background: var(--coral); }
.hero__card { position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(255,255,255,.95); border-radius: var(--r-md); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.hero__card:hover { color: var(--ink); transform: translateY(-2px); }
.hero__card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero__card-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.meta-time { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { display: flex; flex-direction: column; gap: 20px; }
.section--spaced { margin-top: var(--section-gap); }
.section__title { font-size: 32px; font-weight: 600; }
.section__sub { margin: 0; font-size: 17px; color: var(--muted); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 4px; }
.section__head--stack { flex-direction: column; align-items: flex-start; gap: 6px; }

/* Mood chips */
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip { height: 52px; padding: 0 22px 0 10px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; transition: border-color .15s, transform .15s; }
.chip:hover, .chip.is-active { border-color: var(--wine); color: var(--wine); transform: translateY(-1px); }
.chip__icon { width: 32px; height: 32px; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; }
.chips--scroll { margin-top: 8px; margin-bottom: 32px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 16px; }
.cat-tile { height: 128px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--wine); color: var(--wine); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.cat-tile__icon { width: 56px; height: 56px; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; }

/* Collections */
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.collection { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: var(--blush); }
.collection__media { height: 220px; background: #EBCDBE; }
.collection__media img { width: 100%; height: 100%; object-fit: cover; }
.collection--2 { background: var(--sage); }
.collection--2 .collection__media { background: #CFDFCB; }
.collection--2 p { color: var(--sage-text); }
.collection--3 { background: var(--peach); }
.collection--3 .collection__media { background: #F0BFA9; }
.collection--3 p { color: #5E4146; }
.collection__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.collection__body h3 { font-size: 24px; font-weight: 600; }
.collection__body p { margin: 0 0 6px; font-size: 16px; line-height: 1.55; color: var(--muted); flex: 1; }

/* Recipe cards */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--tone); color: rgba(74,15,31,.3); }
.card--square .card__media { aspect-ratio: 1 / 1; }
.card__img-link { position: absolute; inset: 0; display: block; }
.card__img-link img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card__rank { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: var(--pill); background: var(--wine); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.save-btn { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: var(--pill); border: 0; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); color: var(--wine); cursor: pointer; transition: transform .15s; }
.save-btn:hover { transform: scale(1.08); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.save-btn--inline { position: static; width: auto; height: 44px; box-shadow: none; }
.save-btn--inline:hover { transform: none; }
.card__time { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); padding: 5px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; color: var(--ink); }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card__title { font-size: 20px; line-height: 1.25; font-weight: 600; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--wine); }
.card .save-btn, .card__rank { z-index: 2; }
.card__rating { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.card__rating strong { color: var(--ink); }

/* Ads */
.ad-slot { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 56px auto 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ad-slot__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot__box { width: 100%; min-height: 250px; border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.ad-slot__box--live { border: 0; }
.entry-content .ad-slot { width: 100%; margin: 32px auto; }

/* Newsletter */
.newsletter { margin-top: var(--section-gap); border-radius: var(--r-lg); background: var(--blush); padding: 56px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.newsletter__copy { display: flex; flex-direction: column; gap: 12px; }
.newsletter h2 { font-size: 38px; line-height: 1.15; font-weight: 700; }
.newsletter p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form label { font-weight: 600; font-size: 15px; }
.nl-form__row { display: flex; gap: 10px; }
.nl-form input { flex: 1 1 auto; min-width: 0; height: 52px; border-radius: var(--pill); border: 1px solid var(--line-2); padding: 0 22px; font-size: 16px; background: #fff; }
.nl-form input:focus { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(122,30,54,.15); }
.newsletter .nl-form__note { font-size: 13px; }
.nl-form__msg { font-weight: 600; color: var(--sage-ink) !important; }

/* Seasonal */
.season { margin-top: var(--section-gap); padding: 56px 0; background: var(--sage); }
.season__head { margin-bottom: 24px; gap: 40px; }
.season__head > div { display: flex; flex-direction: column; gap: 6px; }
.season__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-ink); }
.season h2 { font-size: 36px; font-weight: 600; }
.season p { margin: 0; font-size: 17px; color: var(--sage-text); max-width: 620px; }
.season .btn--outline { height: 48px; flex-shrink: 0; }

/* About intro */
.about-intro { margin-top: var(--section-gap); display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center; }
.about-intro__photo { width: 240px; height: 240px; border-radius: var(--pill); background: #EBCDBE; border: 6px solid #fff; box-shadow: var(--shadow-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(74,15,31,.45); font-size: 13px; font-weight: 500; }
.about-intro__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-intro__copy { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.about-intro h2 { font-size: 34px; font-weight: 600; }
.about-intro p { margin: 0; font-size: 18px; line-height: 1.7; }

/* Trust strip */
.trust { margin-top: var(--section-gap); margin-bottom: var(--section-gap); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; }
.trust__item { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 16px; }
.trust__icon { width: 48px; height: 48px; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-dark); color: var(--cream); padding: 64px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand p { margin: 0; font-size: 16px; line-height: 1.6; color: #F6DDE2; max-width: 360px; }
.brand--footer { color: var(--cream); }
.brand--footer .brand__mark { background: var(--cream); color: var(--wine); }
.brand--footer .brand__name { font-size: 26px; }
.brand--footer .brand__accent { color: var(--peach); }
.social-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }
.social-links a { color: var(--cream); }
.site-footer nav h2 { margin: 0 0 16px; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); }
.footer-links, .legal-links { list-style: none; margin: 0; padding: 0; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-links a { color: #F6DDE2; text-decoration: none; }
.footer-links a:hover, .legal-links a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { margin-top: 48px; border-top: 1px solid rgba(255,249,244,.18); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; font-size: 14px; color: #F6DDE2; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { color: #F6DDE2; }

/* ---------- Archive / search ---------- */
.archive-head { padding-top: 48px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.archive-head h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.01em; }
.archive-head__desc { color: var(--muted); max-width: 720px; font-size: 18px; }
.archive-head__desc p { margin: 0; }
.archive-head__count { margin: 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.archive-head__search { margin-top: 8px; }
.archive-page { padding-bottom: var(--section-gap); }
.empty-state { text-align: center; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state__icon { color: var(--wine-hover); }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state .search-pill { margin: 8px auto; }
.empty-state--404 h1 { font-size: clamp(34px, 4vw, 52px); }
.empty-state--404 .script { align-self: center; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 16px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--wine); border-color: var(--wine); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--wine); color: var(--wine); }

/* ---------- Single recipe ---------- */
.post-head { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--wine); }
.post-title { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.post-dek { margin: 0; font-size: 19px; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 15px; color: var(--muted); }
.post-meta__rating { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.post-meta__rating strong { color: var(--ink); }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-hero { margin: 28px auto 0; }
.post-hero img { width: 100%; border-radius: var(--r-lg); }

.entry-content { margin-top: 32px; font-size: 18px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content p { margin: 0; }
.entry-content p + p { margin-top: 1.1em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote { margin-inline: 0; padding: 20px 24px; background: var(--blush); border-radius: var(--r-md); border-left: 4px solid var(--wine); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content .alignwide { max-width: 1000px; margin-inline: calc((760px - 1000px) / 2); }
@media (max-width: 1060px) { .entry-content .alignwide { margin-inline: 0; } }

/* Recipe card */
.recipe-card { margin-top: 56px; scroll-margin-top: 96px; }
.recipe-card > * { background: #fff; }
.recipe-card { background: none; }
.recipe-card__head, .recipe-card__facts, .recipe-card__block, .recipe-card__source { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding-inline: 32px; }
.recipe-card__head { border-top: 6px solid var(--wine); border-radius: var(--r-lg) var(--r-lg) 0 0; padding-top: 32px; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.recipe-card__head:not(:has(.recipe-card__thumb)) { grid-template-columns: 1fr; }
.recipe-card__thumb img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--r-md); }
.recipe-card__intro { display: flex; flex-direction: column; gap: 10px; }
.recipe-card__intro h2 { font-size: 32px; }
.recipe-card__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.recipe-card__facts { margin: 0; padding-top: 24px; padding-bottom: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.recipe-card__facts div { background: var(--blush); border-radius: var(--r-sm); padding: 12px 14px; }
.recipe-card__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.recipe-card__facts dd { margin: 2px 0 0; font-weight: 600; }
.recipe-card__block { padding-top: 28px; }
.recipe-card__block h3 { font-size: 24px; margin-bottom: 12px; }
.recipe-card__block h4 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { border-bottom: 1px dashed var(--line); }
.ingredients label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.ingredients input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--wine); flex-shrink: 0; }
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: var(--pill); background: var(--wine); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.recipe-card__notes { }
.recipe-card__notes p { margin: 0 0 .8em; padding: 14px 18px; background: var(--sage); border-radius: var(--r-sm); color: var(--sage-text); }
.recipe-card__video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-md); }
.recipe-card__source { margin: 0; padding-top: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 13px; color: var(--muted); }

.post-foot { margin-top: 48px; display: flex; flex-direction: column; gap: 32px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 6px 14px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; }
.tag-list a:hover { border-color: var(--wine); color: var(--wine); }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 28px; background: var(--blush); border-radius: var(--r-lg); align-items: start; }
.author-box__photo { width: 88px; height: 88px; border-radius: var(--pill); background: #EBCDBE; overflow: hidden; border: 4px solid #fff; }
.author-box__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-box h2 { font-size: 24px; margin: 4px 0 8px; }
.author-box p { margin: 0 0 8px; color: var(--muted); }

/* Comments */
.comments-wrap { margin-top: var(--section-gap); margin-bottom: var(--section-gap); }
.comments__title, .comment-reply-title { font-size: 28px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: var(--pill); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 4px 0 8px 58px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content, .reply { margin-left: 58px; }
.comment-content p { margin: 0 0 .6em; }
.comment-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.reply a { font-size: 14px; font-weight: 600; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm); padding: 12px 16px; font-size: 16px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(122,30,54,.15); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-rating { border: 0; padding: 0; margin: 0; }
.comment-rating legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; margin: 0; display: inline-flex; }
.star-input label svg { fill: #E9DCD4; transition: fill .1s, transform .1s; }
.star-input label:hover svg, .star-input label:hover ~ label svg,
.star-input input:checked ~ label svg { fill: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--coral); border-radius: 6px; }

/* Widgets / misc WP */
.widget { margin-bottom: 32px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor { }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .primary-nav .menu { gap: 22px; }
  .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: 77px 0 0 0; background: var(--cream); padding: 16px var(--gutter) 40px; overflow-y: auto; display: none; z-index: 60; }
  .admin-bar .primary-nav { top: 109px; }
  .menu-open .primary-nav { display: block; }
  .menu-open { overflow: hidden; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .menu > li > a { padding: 16px 4px; border-bottom: 1px solid var(--line); width: 100%; font-size: 18px; font-weight: 600; }
  .primary-nav .menu-item-has-children > a::after { margin-left: auto; }
  .primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 12px 12px; display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
  .primary-nav .sub-menu::before { content: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 40px; }
  .hero__media { height: 460px; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter { padding: 44px 40px; gap: 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --section-gap: 56px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 56px; }
  .hero__media { height: auto; aspect-ratio: 4 / 3.4; order: -1; }
  .hero__badge { left: 16px; top: 16px; }
  .hero__card { left: 16px; right: 16px; bottom: 16px; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cat-tile { height: 112px; }
  .collections { grid-template-columns: 1fr; }
  .collection { display: grid; grid-template-columns: 220px 1fr; }
  .collection__media { height: auto; min-height: 200px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .newsletter { grid-template-columns: 1fr; }
  .season__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about-intro { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .about-intro__copy { align-items: center; }
  .about-intro .script { align-self: center; }
  .trust { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-header__inner { height: 64px; gap: 12px; }
  .primary-nav { top: 65px; }
  .admin-bar .primary-nav { top: 65px; }
  .brand__name { font-size: 23px; }
  .brand__mark { width: 34px; height: 34px; }
  .header-cta { display: none; }
  .hero__title { font-size: 36px; }
  .hero__text { font-size: 17px; }
  .hero__ctas { gap: 16px; }
  .hero__ctas .btn { width: 100%; }
  .hero__card-title { font-size: 18px; }
  .section__title { font-size: 26px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; flex-shrink: 0; height: 48px; }
  .chips--scroll { margin-inline: 0; }
  .cat-tile { height: 100px; font-size: 14px; gap: 8px; }
  .cat-tile__icon { width: 46px; height: 46px; }
  .collection { grid-template-columns: 1fr; }
  .collection__media { min-height: 0; height: 180px; }
  .grid--4 { gap: 12px; }
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 17px; }
  .save-btn { width: 36px; height: 36px; top: 8px; right: 8px; }
  .card__rank { top: 8px; left: 8px; }
  .card__time { left: 8px; bottom: 8px; font-size: 12px; }
  .newsletter { padding: 32px 22px; border-radius: 20px; }
  .newsletter h2 { font-size: 30px; }
  .nl-form__row { flex-direction: column; }
  .nl-form__row .btn { width: 100%; }
  .season { padding: 44px 0; }
  .season h2 { font-size: 30px; }
  .about-intro__photo { width: 180px; height: 180px; }
  .about-intro h2 { font-size: 28px; }
  .trust { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { padding-top: 48px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; }
  .search-pill { padding-left: 14px; }
  .search-pill button { padding: 0 16px; }
  .recipe-card__head, .recipe-card__facts, .recipe-card__block, .recipe-card__source { padding-inline: 18px; }
  .recipe-card__head { grid-template-columns: 1fr; }
  .recipe-card__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .author-box { grid-template-columns: 1fr; }
  .comment-metadata, .comment-content, .reply { margin-left: 0; }
}

/* ---------- Print: recipe card only ---------- */
@media print {
  body.printing-recipe * { visibility: hidden; }
  body.printing-recipe .recipe-card, body.printing-recipe .recipe-card * { visibility: visible; }
  body.printing-recipe .recipe-card { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; max-width: none; }
  .recipe-card__buttons, .ad-slot, .site-header, .site-footer { display: none !important; }
  .recipe-card__head, .recipe-card__facts, .recipe-card__block, .recipe-card__source { border: 0 !important; padding-inline: 0 !important; }
  .ingredients input { display: none; }
  body { background: #fff; }
}
