/* ==========================================================================
   Stewart & Musell Kitchen -- "Wine Bistro" identity
   Warm stone ground, deep burgundy primary, olive secondary. Bricolage
   Grotesque display + Hanken Grotesk body. No serif display, no mono kickers,
   no numbered sections -- deliberately unlike the cream/orange/serif house
   style. Menu-entry cards with dotted leaders, framed hero, letter-spaced nav.
   ========================================================================== */

:root {
  --stone:    #f1eee8;
  --stone-2:  #e7e1d5;
  --paper:    #fbfaf6;
  --ink:      #241f1d;
  --ink-soft: #5f5650;
  --line:     #d9d1c4;
  --wine:     #6e1d2b;
  --wine-d:   #551321;
  --wine-t:   #f2e4e5;
  --olive:    #5c6b3a;
  --olive-d:  #47542c;
  --olive-t:  #eaeede;
  --brass:    #b0863a;
  --footer:   #3a1119;
  --shadow:   0 2px 4px rgba(36,31,29,.05), 0 18px 40px -24px rgba(36,31,29,.45);
  --shadow-lg:0 30px 70px -34px rgba(36,31,29,.55);
  --radius:   10px;
  --radius-s: 7px;
  --wrap:     1180px;
  --disp:     "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --sans:     "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--stone); line-height: 1.62; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-d); }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 700; line-height: 1.06; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-weight: 600; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--wine); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; top: 0; }

/* ---- Labels (replaces mono kickers) ------------------------------------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--wine); }
.kicker::before { content: ""; width: 22px; height: 8px; border-radius: 999px; background: var(--olive); display: inline-block; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: .35em 0 0; }
.section-head p { max-width: 48ch; color: var(--ink-soft); margin: .5rem 0 0; }
.section-head .num { display: none; }   /* legacy numbers removed */

/* ---- Buttons (pill) ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 700;
  font-size: .95rem; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--wine);
  background: var(--wine); color: #fff; cursor: pointer; transition: transform .12s, background .18s, box-shadow .18s; }
.btn:hover { background: var(--wine-d); border-color: var(--wine-d); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--stone); }
.btn-olive { background: var(--olive); border-color: var(--olive); }
.btn-olive:hover { background: var(--olive-d); border-color: var(--olive-d); }
.btn-small { padding: 8px 17px; font-size: .84rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---- Utility bar -------------------------------------------------------- */
.utility-bar { background: var(--wine); color: #f3dfe1; font-size: .78rem; }
.util-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.util-tag { letter-spacing: .02em; opacity: .92; font-weight: 500; }
.util-links { display: flex; gap: 24px; }
.util-links a { color: #f3dfe1; font-weight: 600; }
.util-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--stone); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 86px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; background: var(--wine); color: #fff; font-family: var(--disp); font-weight: 800;
  display: grid; place-items: center; border-radius: 50%; font-size: 1.05rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--disp); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.brand-sub { font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--olive); font-weight: 700; margin-top: 3px; }
.search { flex: 1; display: flex; align-items: center; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; max-width: 520px; margin: 0 auto; transition: border-color .16s, box-shadow .16s; }
.search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-t); }
.search input { flex: 1; border: 0; background: transparent; padding: 12px 20px; font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--wine); color: #fff; padding: 0 18px; align-self: stretch; cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--olive); }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.acct-link, .cart-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: .82rem; font-weight: 700; }
.acct-link:hover, .cart-link:hover { color: var(--wine); }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -9px; right: -11px; background: var(--olive); color: #fff; font-size: .62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1.5px solid var(--line);
  background: var(--paper); border-radius: 999px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger span { width: 20px; height: 2px; background: var(--ink); display: block; transition: .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Primary nav (letter-spaced bistro menu) ---------------------------- */
.primary-nav { border-top: 1px solid var(--line); background: var(--paper); }
.nav-inner { display: flex; gap: 4px; height: 50px; align-items: stretch; justify-content: center; }
.primary-nav a { display: inline-flex; align-items: center; padding: 0 18px; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 12px; height: 2px; background: var(--wine); transform: scaleX(0); transition: transform .18s; }
.primary-nav a:hover { color: var(--wine); }
.primary-nav a:hover::after { transform: scaleX(1); }
.nav-drop { position: relative; display: flex; }
.nav-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); min-width: 240px; display: grid; opacity: 0; visibility: hidden;
  transition: .16s; z-index: 20; padding: 8px; border-radius: var(--radius-s); }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu a { text-transform: none; letter-spacing: 0; font-weight: 600; padding: 9px 14px; font-size: .9rem; height: auto; color: var(--ink); border-radius: 5px; }
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--olive-t); color: var(--wine); }
.nav-menu-all { color: var(--wine); border-top: 1px solid var(--line); margin-top: 4px; }

/* ---- Mobile nav --------------------------------------------------------- */
.mobile-nav { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 86vw); background: var(--paper);
  z-index: 150; padding: 92px 28px 30px; flex-direction: column; gap: 2px; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: 1rem; }
.mobile-nav a:hover { color: var(--wine); }
body.nav-open { overflow: hidden; }
.nav-scrim { display: none; position: fixed; inset: 0; background: rgba(36,31,29,.5); z-index: 140; }
.nav-scrim.show { display: block; }

/* ---- Layout ------------------------------------------------------------- */
.site-main { min-height: 60vh; }
.section { padding: 74px 0; }
.section.tight { padding: 46px 0; }
.section.alt { background: var(--stone-2); }
.section.wine { background: var(--wine); color: #f5e7e8; }
.section.wine h2, .section.wine h1 { color: #fff; }
.section.wine .kicker { color: #e7b9bf; }
.section.wine .kicker::before { background: #e7b9bf; }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 60ch; }
.breadcrumbs { font-size: .78rem; letter-spacing: .03em; color: var(--ink-soft); padding: 24px 0 0; font-weight: 600; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--wine); }

/* ---- Hero (framed, menu-card) ------------------------------------------- */
.hero { background: var(--stone); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; padding: 74px 0 66px; }
.hero-copy h1 { margin-bottom: .28em; }
.hero-copy .lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 40px; border-top: 2px solid var(--line); padding-top: 24px; }
.hero-stats .stat b { font-family: var(--disp); font-size: 1.9rem; font-weight: 800; display: block; color: var(--wine); }
.hero-stats .stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); font-weight: 600; }
.hero-media { position: relative; padding: 14px; }
.hero-media::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--wine); border-radius: var(--radius); transform: translate(14px, 14px); }
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-ticket { position: absolute; left: -22px; bottom: 30px; background: var(--paper); border-radius: var(--radius-s);
  border-left: 5px solid var(--olive); padding: 16px 22px; box-shadow: var(--shadow-lg); max-width: 258px; z-index: 2; }
.hero-ticket .kicker { font-size: .62rem; }
.hero-ticket h3 { font-size: 1.12rem; margin: 8px 0 4px; font-family: var(--disp); }
.hero-ticket .meta { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Category rail ------------------------------------------------------ */
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px 0 18px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.cat-chip { flex: 0 0 auto; scroll-snap-align: start; width: 224px; height: 158px; border-radius: var(--radius); overflow: hidden; position: relative; }
.cat-chip img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.cat-chip:hover img { transform: scale(1.07); }
.cat-chip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-family: var(--disp);
  font-weight: 700; font-size: 1.1rem; background: linear-gradient(180deg, transparent, rgba(43,15,20,.85)); }

/* ---- Grids -------------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Dish (recipe) card -- menu-entry style ----------------------------- */
.recipe-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  position: relative; border: 1px solid var(--line); transition: transform .16s, box-shadow .2s; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.recipe-card .thumb { position: relative; aspect-ratio: 5/4; overflow: hidden; margin: 8px 8px 0; border-radius: var(--radius-s); }
.recipe-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.recipe-card:hover .thumb img { transform: scale(1.05); }
.badge-cuisine { position: absolute; top: 11px; left: 11px; background: rgba(43,15,20,.86); color: #fff; font-size: .62rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
.badge-lock { position: absolute; top: 11px; right: 11px; background: var(--wine); color: #fff; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px 5px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.recipe-card .body { padding: 15px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.recipe-card .card-cat { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--olive); margin-bottom: 7px; }
.recipe-card h3 { font-size: 1.14rem; margin-bottom: 9px; line-height: 1.16; }
.recipe-card h3 a { color: var(--ink); }
.recipe-card h3 a:hover { color: var(--wine); }
.recipe-card .desc { font-size: .86rem; color: var(--ink-soft); margin-bottom: 15px; flex: 1; }
.recipe-card .card-meta { display: flex; align-items: center; gap: 10px; font-size: .74rem; color: var(--ink-soft); font-weight: 600;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.recipe-card .card-meta .leader { flex: 1; border-bottom: 2px dotted var(--line); height: 8px; }

/* stars */
.stars { display: inline-flex; gap: 1px; align-items: center; line-height: 1; }
.stars .star { display: block; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; }
.rating-line .rv { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }

/* ---- Product card ------------------------------------------------------- */
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .16s, box-shadow .2s; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--stone-2); margin: 8px 8px 0; border-radius: var(--radius-s); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .p-cat { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--olive); }
.product-card h3 { font-size: 1.04rem; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--wine); }
.product-card .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-card .price { font-family: var(--disp); font-size: 1.24rem; font-weight: 800; color: var(--wine); }
.p-badge { position: absolute; top: 12px; left: 12px; background: var(--olive); color: #fff; font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px; border-radius: 999px; }

/* ---- Mosaic ------------------------------------------------------------- */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 132px; gap: 12px; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius-s); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.07); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }

/* ---- Recipe detail ------------------------------------------------------ */
.recipe-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 42px 0 20px; }
.recipe-hero .r-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.recipe-hero .r-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-meta-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); margin: 10px 0 26px; overflow: hidden; }
.recipe-meta-strip .m { flex: 1; min-width: 92px; padding: 14px 18px; border-right: 1px solid var(--line); }
.recipe-meta-strip .m:last-child { border-right: 0; }
.recipe-meta-strip .m span { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); display: block; font-weight: 700; }
.recipe-meta-strip .m b { font-family: var(--disp); font-size: 1.24rem; font-weight: 800; }
.recipe-body { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; padding-top: 22px; }
.ingredients-box { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--olive); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 154px; }
.ingredients-box h2 { font-size: 1.4rem; }
.ingredients-box ul { list-style: none; margin: 0; padding: 0; }
.ingredients-box li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); font-size: .92rem; }
.ingredients-box li .q { font-size: .8rem; color: var(--wine); font-weight: 700; min-width: 76px; flex-shrink: 0; }
.steps h2 { font-size: 1.7rem; margin-bottom: 20px; }
.step { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step .n { font-family: var(--disp); font-weight: 800; font-size: 1.4rem; color: #fff; background: var(--wine); flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; counter-increment: step; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.steps { counter-reset: step; }
.step p { margin: 8px 0 0; }

/* Paywall */
.paywall { background: var(--wine); color: #f3dfe1; border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow-lg); }
.paywall h2 { color: #fff; }
.paywall p { color: #e9c9cd; max-width: 46ch; margin: 0 auto 22px; }
.paywall .lock-ic { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(255,255,255,.14); border-radius: 50%; display: grid; place-items: center; }
.blur-preview { position: relative; max-height: 260px; overflow: hidden; }
.blur-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--stone) 92%); }

/* ---- Forms -------------------------------------------------------------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .82rem; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  font-family: var(--sans); font-size: .95rem; background: var(--stone); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-t); }
.field .hint { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 13px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-size: .9rem; border: 1px solid; }
.alert-error { background: var(--wine-t); border-color: #d8a7ac; color: var(--wine-d); }
.alert-ok { background: var(--olive-t); border-color: #bcc79c; color: var(--olive-d); }
.auth-wrap { max-width: 460px; margin: 60px auto; }

/* ---- Filters ------------------------------------------------------------ */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 30px; }
.filters .field { margin: 0; }
.filters label { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-soft); }
.filters select, .filters input { padding: 9px 12px; }
.result-note { font-size: .84rem; color: var(--ink-soft); margin-bottom: 22px; font-weight: 600; }

/* ---- Pagination + infinite scroll --------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 46px 0 0; flex-wrap: wrap; }
.page-link { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink); background: var(--paper); }
.page-link:hover { border-color: var(--wine); color: var(--wine); }
.page-link.current { background: var(--wine); color: #fff; border-color: var(--wine); }
.page-link.nav { font-weight: 700; }
.page-gap { align-self: center; padding: 0 4px; color: var(--ink-soft); }
.infinite-sentinel { height: 1px; }
.infinite-status { text-align: center; padding: 30px 0 4px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.infinite-spinner { width: 30px; height: 30px; margin: 0 auto 10px; border: 3px solid var(--line); border-top-color: var(--wine);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .paginate-fallback { display: none; }   /* hidden when JS drives infinite scroll */

/* ---- Empty -------------------------------------------------------------- */
.empty { text-align: center; padding: 72px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }

/* ---- Cart / checkout ---------------------------------------------------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 42px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-s); }
.cart-line h3 { font-size: 1.02rem; margin-bottom: 4px; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: var(--stone-2); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--wine); color: #fff; }
.qty span { width: 42px; display: grid; place-items: center; font-weight: 700; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 154px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-family: var(--disp); font-size: 1.3rem; font-weight: 800; }
.link-remove { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-size: .78rem; text-decoration: underline; padding: 0; }
.link-remove:hover { color: var(--wine); }

/* ---- Plans -------------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 800px; margin: 0 auto; }
.plan { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 36px; position: relative; }
.plan.feature { border-color: var(--wine); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -14px; left: 36px; background: var(--wine); color: #fff; font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: 6px 13px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: var(--disp); font-size: 3rem; font-weight: 800; color: var(--wine); line-height: 1; margin: 10px 0; }
.plan .price small { font-size: .8rem; color: var(--ink-soft); font-weight: 600; font-family: var(--sans); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 9px 0 9px 28px; position: relative; font-size: .92rem; border-bottom: 1px dotted var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }

/* ---- Team --------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 25%; border-radius: var(--radius); margin-bottom: 15px; }
.team-card h3 { font-size: 1.16rem; margin-bottom: 2px; }
.team-card .role { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wine); font-weight: 700; margin-bottom: 10px; }
.team-card .bio { font-size: .85rem; color: var(--ink-soft); text-align: left; }

/* ---- Blog --------------------------------------------------------------- */
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s, box-shadow .2s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px; }
.post-card .p-meta { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--olive); margin-bottom: 8px; font-weight: 700; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--wine); }
.article { max-width: 720px; margin: 0 auto; }
.article p { font-size: 1.08rem; line-height: 1.78; }
.article h2 { margin-top: 1.6em; }
.article-hero { aspect-ratio: 16/8; overflow: hidden; border-radius: var(--radius); margin-bottom: 28px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-family: var(--disp); font-weight: 600; font-size: 1.06rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--wine); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .a { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---- Prose / legal ------------------------------------------------------ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.doc-meta { font-size: .78rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; font-weight: 600; }

/* ---- Page hero / category banner ---------------------------------------- */
.page-hero { background: var(--wine); color: #f5e7e8; padding: 60px 0; }
.page-hero .kicker { color: #eab9bf; }
.page-hero .kicker::before { background: var(--olive); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #eccfd3; max-width: 60ch; margin: 0; }
.category-banner { position: relative; height: 340px; overflow: hidden; }
.category-banner img { width: 100%; height: 100%; object-fit: cover; }
.category-banner .cap { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,15,20,.25), rgba(43,15,20,.82)); display: flex; align-items: flex-end; }
.category-banner .cap .wrap { padding-bottom: 36px; color: #fff; }
.category-banner .cap h1 { color: #fff; }
.category-banner .cap p { color: #f0e2e3; max-width: 60ch; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 46px; align-items: start; }
.contact-info { background: var(--olive-t); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info .ci { padding: 14px 0; border-bottom: 1px dotted var(--line); }
.contact-info .ci span { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); display: block; margin-bottom: 4px; font-weight: 700; }

/* ---- Cookie bar --------------------------------------------------------- */
.cookie-bar { position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 780px; margin: 0 auto; background: var(--footer); color: #f3dfe1;
  border-radius: var(--radius); padding: 16px 22px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-lg); z-index: 130; }
.cookie-bar.hide { display: none; }
.cookie-text { margin: 0; font-size: .84rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cookie-text a { color: #eab9bf; }
.cookie-bar .btn-small { white-space: nowrap; }

/* ---- Toast -------------------------------------------------------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px); background: var(--olive); color: #fff;
  padding: 13px 24px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s; z-index: 200; font-size: .9rem; font-weight: 600; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Footer (deep wine) ------------------------------------------------- */
.site-footer { background: var(--footer); color: #dcc7ca; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; padding: 58px 0 40px; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-name { font-family: var(--disp); font-size: 1.3rem; color: #fff; margin: 0 0 8px; font-weight: 700; }
.footer-blurb { font-size: .86rem; color: #b89aa0; max-width: 34ch; }
.footer-support { font-size: .84rem; margin-top: 14px; }
.footer-support a { color: #eab9bf; }
.footer-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #a5868c; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: #dcc7ca; font-size: .88rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 40px; }
.footer-legal p { font-size: .76rem; color: #a5868c; margin: 3px 0; }

/* ---- Helpers ------------------------------------------------------------ */
.mt-0 { margin-top: 0; } .center { text-align: center; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.tag-pill { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--stone-2); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; color: var(--ink-soft); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1040px) {
  .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; }
  .recipe-body { grid-template-columns: 1fr; }
  .ingredients-box, .summary { position: static; }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { height: 72px; gap: 14px; flex-wrap: wrap; padding-top: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 14px; }
  .acct-link span { display: none; }
  .cart-layout, .checkout-layout, .contact-grid { grid-template-columns: 1fr; }
  .recipe-hero { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .util-links { display: none; }
}
@media (max-width: 620px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .section { padding: 50px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-text { white-space: normal; }
}
@media (max-width: 420px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
