/* =====================================================================
   Simply Food by Mandy · shared stylesheet (mobile-first)
   The palette is sampled from Mandy's book cover, her kitchen and her pantry (1 Oct 2026): a marble page, kitchen
   green for type and blocks, the cover's yellow as the one highlight, so the food photos bring the colour.
   team/design-system.md has the samples, the allowed contrast pairs and where yellow may go.
   Retune the palette on the :root line marked PALETTE.
   ===================================================================== */

/* ---------- Fonts: three OFL families, self-hosted and subset (licences in fonts/OFL-*.txt) ---------- */
/* Jost, a Futura revival like the cover's DINNERS and author line, for headings, labels and UI; Kaushan Script, a brush
   script like the cover's "Simply", for one flourish word per screen; Libre Baskerville, the classic book serif of her
   recipe pages and editorial cards (mood board, 2 Oct), for recipe titles, intros and card titles. */
@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("fonts/kaushan-script.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("fonts/libre-baskerville.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("fonts/libre-baskerville-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* metric-matched fallbacks (widths measured from the font files, per weight band), so text doesn't move when the web fonts arrive: CLS 0 */
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 300 450; size-adjust: 96.3%; ascent-override: 111.2%; descent-override: 39%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 451 550; size-adjust: 100.2%; ascent-override: 106.8%; descent-override: 37.4%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 551 700; size-adjust: 95.9%; ascent-override: 111.6%; descent-override: 39.1%; line-gap-override: 0%; }
@font-face { font-family: "Kaushan Script Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 89.1%; ascent-override: 121.6%; descent-override: 41.2%; line-gap-override: 0%; }
/* Libre Baskerville is wide, so Georgia is scaled up to its measured average advance (a lower-case English sample): 400 and 700 instances against Georgia and Georgia Bold; ascent/descent are the font's own 970/270 divided by size-adjust */
@font-face { font-family: "Libre Baskerville Fallback"; src: local("Georgia"); font-style: normal; font-weight: 400 549; size-adjust: 116.9%; ascent-override: 83%; descent-override: 23.1%; line-gap-override: 0%; }
@font-face { font-family: "Libre Baskerville Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-style: normal; font-weight: 550 700; size-adjust: 102.7%; ascent-override: 94.5%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "Libre Baskerville Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; font-weight: 400; size-adjust: 101.7%; ascent-override: 95.4%; descent-override: 26.5%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  /* PALETTE */ --marble: #f8f7f4; --marble-deep: #ecebe7; --kitchen: #2a3330; --ink: #1c231f; --ink-soft: #434e4d; --yellow: #ffed00; --oak: #c9a27e;
  --kitchen-tint: #e4e7e4; --oak-tint: #f2e9df; --yellow-tint: #faf5d8;   /* each colour laid thin over marble: quiet panels, tags, type-only tiles */
  --on-kitchen: var(--marble);                   /* text on kitchen green: 12.1:1 */
  --on-kitchen-soft: #cbccc9;                    /* secondary text on kitchen green: 8.1:1 */
  --rim: rgb(42 51 48 / .16);                    /* hairlines: rules, dividers, card edges */
  --rim-strong: rgb(42 51 48 / .58);             /* chip and field borders: 3.4:1 or more on marble, marble-deep and white (WCAG 1.4.11) */
  /* one family in two roles: --display for headings, labels and dish names, --sans for reading text */
  --display: "Jost", "Jost Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Jost", "Jost Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Kaushan Script", "Kaushan Script Fallback", "Brush Script MT", cursive;
  --serif: "Libre Baskerville", "Libre Baskerville Fallback", Georgia, "Times New Roman", serif;   /* the book serif: recipe titles, intros, editorial card titles. Never nav, buttons or labels */
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 64px;
  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 1.125rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--kitchen); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; color: var(--kitchen); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 3px solid var(--kitchen); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 300; padding: 10px 16px; background: var(--kitchen); color: var(--marble); border-radius: 999px; transform: translateY(-180%); text-decoration: none; }
.skip:focus { transform: none; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; color: var(--kitchen); }   /* one word per screen, never body text; ~1.05em inside a heading */
.dish-label { font-family: var(--display); font-weight: 500; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--kitchen); }   /* the cover's tracked caps: dish names, eyebrows */
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); line-height: 1.6; color: var(--ink-soft); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { color: var(--ink-soft); max-width: 34rem; }

/* ---------- Kitchen-green blocks: add .on-kitchen to any band or card set in the cabinetry green ---------- */
/* Marble type, the cover's yellow for the one highlight, and every control flipped to match. The footer uses it;
   so can any page band. Yellow buttons exist only here. */
.on-kitchen { background: var(--kitchen); color: var(--on-kitchen); }
.on-kitchen h1, .on-kitchen h2, .on-kitchen h3, .on-kitchen h4, .on-kitchen .dish-label { color: var(--on-kitchen); }
.on-kitchen .script { color: var(--on-kitchen); }   /* white brush, as on the cover */
.on-kitchen .lede, .on-kitchen p { color: var(--on-kitchen-soft); }
.on-kitchen a:not(.btn) { color: var(--on-kitchen); }
.on-kitchen .hl { color: var(--yellow); }            /* a yellow word on green: 10.8:1 */
.on-kitchen :focus-visible { outline-color: var(--yellow); }

/* ---------- Buttons & chips ---------- */
/* Primary: kitchen green with marble type on light grounds (12.1:1); on .on-kitchen it turns into the cover's pair,
   yellow with green type (10.8:1). Never a yellow button on marble or white. Line: the secondary, an outline. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--kitchen); border-color: var(--kitchen); color: var(--marble); }             /* 12.1:1 */
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }                                    /* 15.0:1 */
.btn--line { border-color: var(--kitchen); color: var(--kitchen); background: transparent; }
.btn--line:hover { background: var(--kitchen-tint); }                                                         /* 10.4:1 */
.on-kitchen .btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--kitchen); }   /* 10.8:1 */
.on-kitchen .btn--primary:hover { background: var(--marble); border-color: var(--marble); }
.on-kitchen .btn--line { border-color: var(--on-kitchen); color: var(--on-kitchen); }
.on-kitchen .btn--line:hover { background: rgb(248 247 244 / .1); }
.btn--small { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--rim-strong); background: var(--marble);
  font: 500 .9375rem/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { background: var(--kitchen-tint); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--kitchen); border-color: var(--kitchen); color: var(--marble); }   /* 12.1:1 */
.chip .count { font-size: .8125rem; color: var(--ink-soft); }
.chip[aria-pressed="true"] .count, .chip.is-on .count { color: var(--on-kitchen-soft); }
.tag { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--kitchen-tint); font: 500 .8125rem/1.4 var(--sans); color: var(--ink); text-decoration: none; }   /* 12.9:1 */
a.tag:hover { background: var(--kitchen); color: var(--marble); }
.badge-new { display: inline-flex; align-items: center; gap: .5em; padding: .45rem .9rem; border-radius: 999px; background: var(--yellow); color: var(--kitchen); font: 600 .8125rem/1 var(--sans); }   /* 10.8:1 */
.badge-new b { font-weight: 700; letter-spacing: .08em; }
.heart { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(248 247 244 / .92); cursor: pointer; color: var(--kitchen); transition: transform .25s var(--ease); }
.heart svg { width: 22px; height: 22px; }
.heart svg path { fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill .2s; }
.heart[aria-pressed="true"] svg path { fill: var(--kitchen); }   /* saved: a solid green heart, so the state never relies on a pale fill */
.heart:active { transform: scale(.9); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgb(248 247 244 / .94); border-bottom: 1px solid var(--rim); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { width: 158px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(2px, .8vw, 14px); list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; font: 500 .8125rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap;
  text-underline-offset: .7em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--kitchen); text-decoration: underline; text-decoration-thickness: 2px; }
.tools { display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--kitchen); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--kitchen-tint); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--kitchen); font: 700 .6875rem/18px var(--sans); text-align: center; }   /* 10.8:1 */
.icon-btn .count:empty, .icon-btn .count[data-n="0"] { display: none; }
.menu-btn { display: inline-grid; }
.mobile-nav { display: none; }
.mobile-nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--marble); padding: 24px var(--gutter); overflow: auto; }
.mobile-nav ul { list-style: none; display: grid; gap: 4px; }
.mobile-nav a { display: flex; align-items: center; min-height: 60px; font: 500 1.625rem/1.1 var(--display); letter-spacing: -.01em; color: var(--kitchen); text-decoration: none; border-bottom: 1px solid var(--rim); }
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
@media (min-width: 1024px) {
  .nav { display: block; } .menu-btn { display: none; }
  .brand img { width: 190px; }
}

/* ---------- Home hero: an editorial cookbook cover ---------- */
.hero { padding-block: clamp(20px, 4vw, 56px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__arch-wrap { position: relative; justify-self: center; width: min(68vw, 300px, 34svh); }   /* phone: the headline stays in the first screen */
.arch { position: relative; aspect-ratio: 11 / 16; border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); padding: 8px; border: 2px solid var(--kitchen); background: var(--marble); }
.arch__media { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50% 50% 15px 15px / 33% 33% 15px 15px; background: var(--marble-deep); }
.arch__media img, .arch__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch__badge { position: absolute; left: -6%; bottom: 12%; transform: rotate(-4deg); box-shadow: 0 1px 0 rgb(28 35 31 / .08); }
@media (prefers-reduced-motion: no-preference) { .arch__badge { animation: bob 5s ease-in-out infinite; } }
@keyframes bob { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .arch__media video { display: none; } }
.hero__copy .brand-lockup { width: min(56vw, 360px); margin-bottom: clamp(14px, 3vw, 32px); }
@media (max-width: 719px) { .hero__copy .brand-lockup { display: none; } }   /* phone: the sticky header already carries the wordmark, so the headline leads */
.hero__copy h1 { max-width: 12ch; }
.hero__copy h1 em { font-style: italic; font-weight: 400; }
.hero__copy .lede { margin-top: 18px; max-width: 30rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font: 500 .9375rem/1 var(--sans); color: var(--ink-soft); text-decoration: none; min-height: 44px; }
.hero__ig svg { width: 20px; height: 20px; color: var(--kitchen); }
.hero__ig:hover { color: var(--kitchen); }
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero__copy { order: -1; }
  .hero__arch-wrap { width: min(40vw, 460px, 72svh); }
}
@media (min-width: 1920px) { .hero__arch-wrap { width: min(32vw, 640px, 74svh); } }

/* ---------- Marquee: dish names in the cover's tracked caps ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--rim); padding-block: 18px; background: var(--marble-deep); }
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; flex: none; gap: 0; }
.marquee__group span { padding-inline: 1.2em; font: 500 clamp(.9375rem, 1.4vw, 1.125rem)/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--kitchen); white-space: nowrap; }
.leaf { width: 18px; height: 18px; flex: none; color: var(--kitchen); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; will-change: transform; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .marquee__group[aria-hidden] { display: none; }
}

/* ---------- Now Cooking (the stage arrives in phase 2) ---------- */
.nc-soon { background: var(--marble-deep); border-radius: calc(var(--radius) * 1.4); padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; justify-items: start; }
.nc-soon .dish-title { display: grid; gap: 2px; }
.nc-soon .dish-title .script { font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1; }
.nc-soon .dish-title .dish-label { font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: .18em; }

/* ---------- Recipe cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--marble-deep); }
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--rim); pointer-events: none; transition: box-shadow .3s; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.03); }
.card:hover .card__media::after, .card:focus-within .card__media::after { box-shadow: inset 0 0 0 2px var(--kitchen); }
.card__type { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; padding: 18px; text-align: center; background: var(--tint, var(--marble-deep)); }
.card__type .script { font-size: 2.1rem; line-height: 1; }
.card__type .dish-label { font-size: clamp(.6875rem, 1.6vw, .8125rem); letter-spacing: .18em; line-height: 1.7; max-width: 15ch; margin-inline: auto; }
.card__type svg { width: 64px; height: 64px; margin-inline: auto; color: var(--kitchen); }
.card .heart { position: absolute; top: 10px; right: 10px; z-index: 2; }
.card__body { display: grid; gap: 6px; }
.card__title { font: 400 1.125rem/1.28 var(--serif); letter-spacing: -.01em; color: var(--kitchen); text-wrap: balance; }   /* editorial card: the book serif, as in the mood board's cards */
@media (min-width: 720px) { .card__title { font-size: 1.3125rem; line-height: 1.25; } }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card is the link */
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .875rem; color: var(--ink-soft); }
.card__meta .time { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 500; }
.card__meta .time svg { width: 15px; height: 15px; color: var(--kitchen); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__new { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* ---------- Fresh from Mandy's kitchen: a scroll-snap rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--rim-strong) transparent; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 900px) { .rail { grid-auto-columns: 300px; gap: 24px; } }

/* ---------- Mood tiles ---------- */
.moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mood { position: relative; display: grid; align-content: end; gap: 8px; min-height: 150px; padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden;
  background: var(--tile, var(--marble-deep)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: inset 0 0 0 1px var(--rim); }
.mood:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--kitchen); }
.mood svg { position: absolute; top: 14px; right: 14px; width: clamp(52px, 12vw, 76px); height: auto; color: var(--ink); opacity: .78; }
.mood b { font: 500 clamp(1.25rem, 2.4vw, 1.6rem)/1.1 var(--display); color: var(--kitchen); }
.mood span { font-size: .875rem; color: var(--ink-soft); }
.mood--all { background: var(--kitchen); box-shadow: none; }
.mood--all b, .mood--all span { color: var(--marble); }
.mood--all svg { color: var(--marble); }
@media (max-width: 719px) { .mood--all { grid-column: 1 / -1; min-height: 120px; } }   /* nine tiles on two columns: the ninth takes the row instead of sitting alone */
@media (min-width: 720px) { .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .mood { min-height: 190px; padding: 22px; } }
@media (min-width: 1100px) { .moods { grid-template-columns: repeat(9, minmax(0, 1fr)); } .mood { grid-column: span 3; } .mood:nth-child(1), .mood:nth-child(2) { grid-column: span 3; } }

/* ---------- The book: a 3D hardback on a band ---------- */
.book-band { background: var(--marble-deep); border-radius: calc(var(--radius) * 1.6); padding: clamp(32px, 6vw, 80px) clamp(22px, 5vw, 72px); display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; overflow: hidden; }
.book-band h2 em { font-style: italic; }
.book-band .buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.book-band .price { margin-top: 18px; font: 500 1.25rem/1 var(--display); color: var(--kitchen); }
.book3d { justify-self: center; perspective: 1400px; width: min(64vw, 300px); }
.book3d__obj { position: relative; aspect-ratio: 5 / 6.4; transform-style: preserve-3d; transform: rotateY(calc(-18deg + var(--ry, 0deg))) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease); }
.book3d__face, .book3d__spine, .book3d__pages { position: absolute; }
.book3d__face { inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; transform: translateZ(18px); background: var(--marble); box-shadow: inset 4px 0 0 rgb(0 0 0 / .06), 18px 26px 40px -18px rgb(28 35 31 / .4); }
.book3d__face picture, .book3d__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book3d__spine { left: 0; top: 0; bottom: 0; width: 36px; background: var(--kitchen); transform-origin: left; transform: rotateY(-90deg) translateX(-18px) translateZ(0); }
.book3d__pages { right: 4px; top: 5px; bottom: 5px; width: 34px; background: repeating-linear-gradient(90deg, #fdfcf9 0 2px, #e6e4de 2px 3px); transform: rotateY(90deg) translateZ(calc(100% * 0)) translateX(17px); transform-origin: right; }
.from-book { display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 200px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 28px; scrollbar-width: thin; }
.from-book figure { margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--marble-deep); box-shadow: inset 0 0 0 1px var(--rim); }
.from-book img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .book-band { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } .book3d { width: min(26vw, 330px); } .from-book { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* ---------- Meet Mandy ---------- */
.meet { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.meet__portrait { justify-self: center; width: min(64vw, 280px); }
.meet__portrait .arch { aspect-ratio: 4 / 5; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); }
.meet__portrait .arch__media { border-radius: 50% 50% 15px 15px / 39% 39% 15px 15px; }
.meet__portrait .arch__media img { object-position: 50% 30%; }
.meet h2 .script { font-size: 1.05em; line-height: .8; }
.meet blockquote { margin: 18px 0 0; font: 400 clamp(1.1875rem, 1.7vw, 1.3125rem)/1.6 var(--display); color: var(--ink); }
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.themes li { padding: .45rem .9rem; border-radius: 999px; background: var(--kitchen-tint); font: 500 .9375rem/1.2 var(--sans); }
@media (min-width: 900px) { .meet { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); } }

/* ---------- Watch: two tall reel cards ---------- */
.watch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 28px); max-width: 720px; }
.reel-card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--marble-deep); border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; cursor: pointer; box-shadow: inset 0 0 0 1px var(--rim); text-align: left; }
.reel-card video, .reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-card__label { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 18px; background: rgb(248 247 244 / .94); font: 600 .9375rem/1.2 var(--sans); color: var(--ink); text-wrap: balance; }
.reel-card__label svg { width: 26px; height: 26px; flex: none; color: var(--kitchen); }
@media (max-width: 560px) { .reel-card__label { font-size: .8125rem; } .reel-card__label svg { width: 22px; height: 22px; } .hero { padding-top: 14px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; background: rgb(28 35 31 / .88); padding: 16px; }
.lightbox.is-open { display: grid; }
.lightbox__box { position: relative; width: min(100%, calc((100svh - 32px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; }
.lightbox video { width: 100%; height: 100%; object-fit: cover; }
.lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(248 247 244 / .95); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.lightbox__close svg { width: 22px; height: 22px; }


/* ---------- Footer: her cabinetry, with the marble wordmark and the cover's yellow FOOD ---------- */
.site-footer { padding-block: 56px 40px; border-top: 1px solid rgb(248 247 244 / .14); }
.site-footer .wrap { display: grid; gap: 36px; }
.footer__brand img { width: 200px; }
.footer__brand p { margin-top: 14px; max-width: 22rem; }
.socials { display: flex; gap: 6px; margin-top: 16px; }
.site-footer .icon-btn { color: var(--on-kitchen); }
.site-footer .icon-btn:hover { background: rgb(248 247 244 / .1); }
.footer__col h2 { font: 500 .8125rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }   /* 10.8:1 */
.footer__col h2 em { font-style: normal; }
.footer__col ul { list-style: none; display: grid; gap: 2px; }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--on-kitchen-soft); text-decoration: none; font-size: 1rem; }
.footer__col a:hover { color: var(--on-kitchen); text-decoration: underline; text-decoration-color: var(--yellow); }
.footer__cats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.footer__legal a { color: var(--on-kitchen-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--on-kitchen); text-decoration-color: var(--yellow); }
.footer__legal { font-size: .875rem; color: var(--on-kitchen-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgb(248 247 244 / .14); }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1.6fr; } .footer__legal { grid-column: 1 / -1; } .footer__cats ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Recipes index ---------- */
.finder { position: sticky; top: var(--header-h); z-index: 20; background: rgb(248 247 244 / .96); padding-block: 14px 10px; border-bottom: 1px solid var(--rim); }
.finder__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-field { position: relative; flex: 1 1 280px; }
.search-field input { width: 100%; min-height: 52px; padding: 0 20px 0 50px; border-radius: 999px; border: 1.5px solid var(--kitchen); background: #fff; font: 400 1rem/1 var(--sans); color: var(--ink); }
.search-field svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--kitchen); pointer-events: none; }
.finder select { min-height: 48px; padding: 0 40px 0 16px; border-radius: 999px; border: 1.5px solid var(--rim-strong); background: #fff; font: 500 .9375rem/1 var(--sans); color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 6px; scrollbar-width: thin; scrollbar-color: var(--rim-strong) transparent; list-style: none; }
.chips li { flex: none; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 24px 0 18px; color: var(--ink-soft); font-size: .9375rem; }
.results-bar button { border: 0; background: none; color: var(--kitchen); text-decoration: underline; cursor: pointer; min-height: 44px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 719px) { .grid .card__title { font-size: 1.0625rem; } }   /* two-up: Baskerville is wide, so a touch smaller keeps long titles to four lines */
@media (max-width: 419px) { .grid .card__tags { display: none; } }
.empty { display: grid; justify-items: center; gap: 12px; padding: 64px 16px; text-align: center; }
.empty svg { width: 84px; height: 84px; color: var(--kitchen); }
.pager { display: flex; justify-content: center; margin-top: 40px; }
[hidden] { display: none !important; }

/* ---------- Full-screen search ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 350; display: none; background: var(--marble); overflow: auto; }
.search-overlay.is-open { display: block; }
.search-overlay .wrap { padding-block: 20px 60px; }
.search-overlay__top { display: flex; gap: 10px; align-items: center; }
.search-overlay__list { list-style: none; display: grid; gap: 2px; margin-top: 20px; }
.search-overlay__list a { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.search-overlay__list a:hover, .search-overlay__list a:focus-visible { background: var(--marble-deep); }
.search-overlay__list .th { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--marble-deep); display: grid; place-items: center; }
.search-overlay__list .th img { width: 100%; height: 100%; object-fit: cover; }
.search-overlay__list .th svg { width: 30px; color: var(--kitchen); }
.search-overlay__list b { display: block; font: 500 1.125rem/1.25 var(--display); color: var(--kitchen); }
.search-overlay__list small { color: var(--ink-soft); font-size: .875rem; }
.search-overlay mark { background: var(--yellow); color: var(--ink); border-radius: 3px; padding: 0 .1em; }   /* 13.3:1 */

/* ---------- Simple page shells (phase 3 fills these) ---------- */
.shell { padding-block: clamp(48px, 8vw, 96px); }

/* ---------- Big screens ---------- */
@media (min-width: 1920px) { html { font-size: 112.5%; } .wrap { max-width: 1520px; } }
@media (min-width: 2400px) { html { font-size: 125%; } .wrap { max-width: 1760px; } }

/* =====================================================================
   The agent card (Work with me, Contact): where enquiries go, instead of a form. The page layouts themselves are in pages.css.
   ===================================================================== */
.agent-card { background: var(--marble-deep); border-radius: 26px; padding: clamp(22px, 4vw, 52px); box-shadow: inset 0 0 0 1px var(--rim); display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) { .agent-card:has(.agent-card__intro) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: center; } }
.agent { display: grid; gap: 10px; justify-items: start; }
.agent__lead { max-width: 30rem; font-size: 1.0625rem; color: var(--ink-soft); }
.agent__name { font: 500 clamp(1.25rem, 2.4vw, 1.5rem)/1.2 var(--display); letter-spacing: .02em; color: var(--ink); }
.agent__mail { margin-top: 4px; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Meet Mandy: the herbs cursor field (site.js; fine pointer only) ---------- */
.meet-section { position: relative; }
.meet-section > .wrap { position: relative; z-index: 1; }
.herbs { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .85; }

/* iOS zooms into any focused field under 16px */
input, select, textarea { font-size: max(16px, 1rem); }

/* ---------- Touch targets: controls get a >= 44px hit area without changing how big they look ---------- */
.tag[href], .crumbs a, .badge-new:not(.arch__badge):not(.card__new), .nc-rail button, .nc-toggle button, .nc-skip { position: relative; }
.tag[href]::after, .badge-new:not(.arch__badge):not(.card__new)::after { content: ""; position: absolute; inset: -10px -4px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }   /* padding-free: layout stays put */
.nc-toggle button::after, .nc-skip::after { content: ""; position: absolute; inset: -4px 0; }
/* the step dots stack 24px apart (24px is WCAG 2.2's minimum), so height cannot grow without overlapping the next dot: widen the target leftwards to 44 */
.nc-rail button::after { content: ""; position: absolute; inset: 0 0 0 -20px; }
.btn.btn.btn { min-height: 44px; }   /* triple class: beats the smaller min-heights set later in recipe.css and now-cooking.css */
.chip.chip { min-height: 44px; }
.share__menu a, .share__menu button { min-height: 44px; display: flex; align-items: center; }
.scaler.scaler button { min-height: 44px; }
.timer-chip.timer-chip { min-height: 44px; }
@media (max-width: 767px) { .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; } .footer__col a { min-height: 44px; min-width: 44px; } .footer__col ul { gap: 0; } }
