/* Mama Flora public site. Mobile first: the base rules are the phone; wider screens add to them.
   Its jobs, in order: be found (search), turn a visit into a WhatsApp or phone order, earn trust.
   Brand: brand/README.md. Headlines Fraunces, text Plus Jakarta Sans (both SIL OFL, self-hosted).
   Text pairs checked for 4.5:1 (WCAG 2.2 AA). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/plus-jakarta-sans-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fraunces-var.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --cream: #f7f3ea; --cream-2: #efe8d8; --paper: #fffdf8; --ink: #1a1c17; --soft: #57564e; --line: #e4dccb;
  --forest: #123524; --forest-2: #1b4430; --on-dark: #f6f1e4; --on-dark-soft: #c9d5c8;
  --green: #166534; --green-2: #15803d; --leaf: #4ade80; --mint: #dff1e3;
  --soil: #a3410e; --soil-wash: #f6e3d6; --yolk: #e8a317; --yolk-wash: #fbefd2; --egg-ink: #7a4508;
  --milk-wash: #edf2f6; --wa: #25d366; --focus: #15803d;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px; --shadow: 0 1px 2px rgb(26 28 23 / .05), 0 12px 30px -12px rgb(26 28 23 / .18);
  --tab-h: 68px;
  color-scheme: light;
}
/* hidden means hidden: a class that sets display (.btn, .fld, .sum-total, the location buttons…) must never win over [hidden] */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.015em; line-height: 1.06; font-variation-settings: "opsz" 96; }
h1 { font-size: 34px; }
h2 { font-size: 27px; }
h3 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--green-2); }
p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--soil); }
.lead { font-size: 16px; color: var(--soft); max-width: 62ch; }
.todo { background: #fff3a3; color: #5b4300; border-radius: 4px; padding: 0 4px; font-weight: 700; font-style: normal; }

/* ---------- header: one slim bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgb(247 243 234 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; line-height: 0; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.nav { display: none; gap: 2px; align-items: center; }
.nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint); color: var(--green); }
.top .top-cta { display: none; }
.strip { display: none; }

/* ---------- phone and tablet: the app bar at the bottom; Order sits in the middle ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgb(255 253 248 / .97);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(26 28 23 / .2); }
.tabbar > a, .tab-more > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h);
  color: var(--soft); text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.tab-more > summary::-webkit-details-marker { display: none; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar > a[aria-current="page"] { color: var(--green); }
.tabbar .tab-order { color: var(--green); }
.tabbar .tab-order svg { width: 56px; height: 56px; padding: 14px; margin-top: -26px; border-radius: 50%; background: var(--wa); color: #06301a;
  box-shadow: 0 8px 18px -6px rgb(21 128 61 / .6), 0 0 0 5px var(--paper); }
.tab-more[open] > summary { color: var(--green); }
.sheet { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); z-index: 31; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 14px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px -18px rgb(26 28 23 / .45); }
.sheet { max-height: calc(100dvh - var(--tab-h) - 40px); overflow-y: auto; }
.sheet-g { grid-column: 1 / -1; padding: 10px 8px 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.sheet-h + .sheet-g { padding-top: 0; }
.sheet-h { grid-column: 1 / -1; padding: 2px 8px 8px; font-family: var(--serif); font-size: 19px; font-weight: 650; color: var(--ink); }
.sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 650; text-decoration: none; }
.sheet a[aria-current="page"] { background: var(--mint); color: var(--green); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 10px 20px; border-radius: 999px; font-weight: 750; font-size: 16px; text-decoration: none; border: 2px solid transparent; white-space: nowrap; }
.btn svg { width: 21px; height: 21px; flex: none; }
.btn-wa { background: var(--wa); color: #06301a; }
.btn-wa:hover { background: #1fbf5b; }
.btn-call { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-call:hover { border-color: var(--green); }
.btn-ghost { color: var(--on-dark); border-color: rgb(255 255 255 / .35); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
.btns .btn { width: 100%; }

/* ---------- home hero: the farm first on a phone, then what to do ---------- */
.hero2 { padding: 14px 0 26px; }
.hero2-grid { display: grid; gap: 22px; }
.hero2-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--cream-2); box-shadow: var(--shadow); }
.hero2-photo img { width: 100%; height: 100%; object-fit: cover; }
.today, .live { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: rgb(255 253 248 / .94); backdrop-filter: blur(8px); font-size: 13.5px; }
.today b { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 750; white-space: nowrap; }
.today b svg { width: 16px; height: 16px; }
.today span { color: var(--ink); }
.hero2-text { display: grid; gap: 12px; align-content: start; }
.hero2-text h1 { font-size: 38px; }
.hero2-text .btns { margin-top: 6px; }
.chips { display: flex; gap: 8px; margin: 6px -16px 0; padding: 0 16px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; }
.words { display: flex; gap: 0 14px; overflow-x: auto; margin: 0; padding: 14px 16px; background: var(--forest); color: var(--on-dark); font-family: var(--serif); font-style: italic; font-size: 19px; white-space: nowrap; scrollbar-width: none; }
.words::-webkit-scrollbar { display: none; }
.words span + span::before { content: "•"; margin-right: 14px; color: var(--yolk); font-style: normal; }

/* ---------- inner page heading: its photo behind a green veil ---------- */
.page-hero { background: var(--forest); color: var(--on-dark); }
.page-hero.has-photo { background: linear-gradient(rgb(18 53 36 / .86), rgb(18 53 36 / .86)), var(--ph-s, var(--ph)) center / cover no-repeat; }
.page-hero .wrap { padding-top: 26px; padding-bottom: 30px; }
.page-hero .eyebrow { color: var(--yolk); }
.page-hero h1 { margin-top: 8px; font-size: 31px; max-width: 22ch; }
.page-hero h1 em { color: var(--leaf); }
.page-hero .lead { color: var(--on-dark-soft); margin-top: 12px; }
.page-hero .btns { margin-top: 20px; }
.page-hero a:not(.btn) { color: var(--on-dark); }
.crumbs { font-size: 14px; color: var(--on-dark-soft); margin-bottom: 12px; }
.crumbs a { color: var(--on-dark-soft); }

/* ---------- sections ---------- */
.sec { padding: 44px 0; }
.sec.paper { background: var(--paper); }
.sec.dark { background: var(--forest); color: var(--on-dark); }
.sec.dark .lead, .sec.dark p { color: var(--on-dark-soft); }
.sec.dark .eyebrow { color: var(--yolk); }
.sec.dark h2 em { color: var(--leaf); }
.sec-head { display: grid; gap: 10px; margin-bottom: 24px; max-width: 760px; }
.grid { display: grid; gap: 14px; }
.g2, .g3, .g4 { grid-template-columns: 1fr; }

/* products: a row you swipe on a phone, a grid from tablets; every card orders in one tap */
.prod { display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.prod-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.prod-art { aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; }
.prod-art:has(img) { display: block; }
.prod-art img { width: 100%; height: 100%; object-fit: cover; }
.prod-art svg { width: 62%; height: 78%; }
.art-milk { background: var(--milk-wash); } .art-egg { background: var(--yolk-wash); } .art-chick { background: var(--soil-wash); } .art-veg { background: var(--mint); }
.prod-b { display: grid; gap: 6px; padding: 16px 16px 8px; }
.prod-b h3 { font-family: var(--serif); font-size: 21px; font-weight: 650; }
.prod-b h3 .sw { display: block; margin-top: 2px; font-family: var(--sans); font-size: 13px; font-style: italic; font-weight: 600; color: var(--soil); }
.prod-b p { color: var(--soft); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-weight: 800; font-size: 18px; color: var(--ink); }
.prod-b .price { color: var(--ink); }
.price small { font-weight: 600; font-size: 13.5px; color: var(--soft); }
.prod-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 16px; }
.prod-act .btn { flex: 1; }
.prod-act .more { display: none; padding: 12px 0; font-weight: 750; text-decoration: none; }
.prods { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.prods::-webkit-scrollbar { display: none; }
.prods > .prod { flex: 0 0 80%; scroll-snap-align: start; }
.more { font-weight: 750; color: var(--green); }
.sw { font-style: italic; color: var(--soft); font-weight: 500; }

/* how to order: numbered rows */
.steps { counter-reset: s; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; border-radius: 18px; background: var(--forest-2); border: 1px solid rgb(255 255 255 / .08); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 26px; font-weight: 650; color: var(--yolk); line-height: 1; padding-top: 2px; }
.steps h3 { color: var(--on-dark); }
.steps p { margin-top: 3px; font-size: 15px; }

/* panels and lists */
.panel { padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.panel h3 + p, .panel h3 + ul { margin-top: 10px; }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23166534' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.towns li { padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 650; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13.5px; font-weight: 700; color: var(--soft); }
.facts dd { margin: 0; font-weight: 650; }
.note { padding: 16px 18px; border-radius: 14px; background: var(--yolk-wash); color: var(--egg-ink); }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13.5px; color: var(--soft); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; white-space: nowrap; font-weight: 750; }

/* faq */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 500; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 16px; color: var(--soft); }

/* split, frames, quote, band */
.split { display: grid; gap: 26px; align-items: center; }
.ph-frame { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mint); }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; }
.quote { padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.quote p { font-family: var(--serif); font-size: 19px; }
.quote footer { margin-top: 10px; font-weight: 700; color: var(--soft); }
.band { border-radius: 24px; padding: 26px 20px; background: var(--forest); color: var(--on-dark); display: grid; gap: 14px; }
.band h2 em { color: var(--leaf); }
.band p { color: var(--on-dark-soft); max-width: 60ch; }

/* story, a day on the farm, vegetables */
.story { display: grid; gap: 16px; font-size: 17px; }
.story p { color: var(--ink); }
.story p:first-child::first-letter { float: left; font-family: var(--serif); font-size: 3.6em; line-height: .82; font-weight: 650; color: var(--green); margin: 6px 10px 0 0; }
.story-photo { margin-top: 20px; border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.day { display: grid; margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--mint); }
.day li { position: relative; display: grid; gap: 4px; align-content: start; padding: 0 0 24px 24px; }
.day li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px var(--paper); }
.day li:last-child { padding-bottom: 0; }
.day b { font-family: var(--serif); font-size: 19px; font-weight: 650; }
.day span { color: var(--soft); max-width: 70ch; }
.vegs { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.veg { padding: 14px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.veg h3 { font-family: var(--serif); font-size: 17px; font-weight: 650; }
.veg .names { font-weight: 700; color: var(--soil); font-size: 14px; }
.veg p:last-child { color: var(--soft); font-size: 14px; }

/* ---------- footer: close with an order, then the farm's details ---------- */
.foot { background: var(--forest); color: var(--on-dark-soft); padding: 36px 0 28px; font-size: 15px; }
.foot a { color: var(--on-dark); }
.foot h2 { font-family: var(--sans); font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--yolk); margin: 0 0 6px; line-height: 1.3; }
.foot-cta { display: grid; gap: 10px; padding-bottom: 28px !important; border-bottom: 1px solid rgb(255 255 255 / .12); }
.foot-kicker { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--yolk); }
.foot-big { font-family: var(--serif); font-size: 30px; font-weight: 650; line-height: 1.08; color: var(--on-dark); letter-spacing: -.015em; }
.foot-cta .btns { margin-top: 8px; }
.foot-cta .btn-call { background: transparent; color: var(--on-dark); border-color: rgb(255 255 255 / .35); }
.foot-cards { display: grid; gap: 10px; margin-top: 24px; margin-bottom: 24px; }
.fcard { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: 18px; background: var(--forest-2); border: 1px solid rgb(255 255 255 / .08); }
.fic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(232 163 23 / .16); color: var(--yolk); }
.fic svg { width: 21px; height: 21px; }
.fcard p { color: var(--on-dark); }
.fcard p + p { margin-top: 4px; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.foot-links nav { display: grid; align-content: start; }
.foot-links a { display: block; padding: 9px 0; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { display: grid; gap: 12px; padding-top: 22px !important; border-top: 1px solid rgb(255 255 255 / .12); font-size: 13.5px; }
.foot-base img { height: 40px; width: auto; }

/* ================= tablets (from 600px) ================= */
@media (min-width: 600px) {
  .wrap { padding: 0 28px; }
  .chips { margin: 6px 0 0; padding: 0; flex-wrap: wrap; }
  .btns { display: flex; flex-wrap: wrap; }
  .btns .btn { width: auto; }
  .prods { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .prods > .prod { flex: none; }
  .prod-act .btn { flex: 0 1 auto; }
  .prod-act .more { display: inline-block; }
  .g2, .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .vegs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  .foot-cards { grid-template-columns: 1fr 1fr; }
  .foot-base { grid-template-columns: auto 1fr; align-items: center; }
  .foot-base p { text-align: right; }
  .words { justify-content: center; }
  h1 { font-size: 44px; } h2 { font-size: 34px; }
  .hero2-text h1 { font-size: 48px; }
  .page-hero h1 { font-size: 40px; }
  .sec { padding: 64px 0; }
  .band { padding: 40px; }
}

/* ================= desktop (from 1040px): the top menu; no app bar ================= */
@media (min-width: 1040px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav { display: flex; }
  .top .top-cta { display: inline-flex; }
  .top .wrap { min-height: 64px; }
  .brand img { height: 38px; }
  .hero2 { padding: 40px 0 56px; }
  .hero2-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
  /* the whole hero fits the visible window, whatever the browser's toolbars leave: its photo is as tall as the
     window allows (less the top bar and spacing), within sensible limits */
  .hero2-photo { order: 2; aspect-ratio: auto; height: clamp(360px, calc(100vh / var(--z, 1) - 150px), 560px); }
  .hero2-text { order: 1; gap: 16px; }
  .hero2-text h1 { font-size: 64px; }
  .today { left: auto; right: 18px; bottom: 18px; max-width: 360px; }
  .lead { font-size: 18px; }
  .prods { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps li { display: block; padding: 24px; }
  .steps li::before { display: block; margin-bottom: 14px; font-size: 34px; }
  .page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .page-hero h1 { font-size: 50px; }
  .page-hero.has-photo { background: linear-gradient(90deg, rgb(18 53 36 / .95) 0%, rgb(18 53 36 / .82) 55%, rgb(18 53 36 / .45) 100%), var(--ph) center / cover no-repeat; }
  .day { grid-template-columns: repeat(5, 1fr); border-left: 0; border-top: 3px solid var(--mint); }
  .day li { padding: 26px 18px 0 0; }
  .day li::before { left: 0; top: -9px; }
  .foot { padding: 64px 0 36px; }
  .foot-cta { grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; }
  .foot-cta .foot-kicker { grid-column: 1 / -1; }
  .foot-big { font-size: 46px; }
  .foot-cta .btns { margin-top: 0; }
  .foot-cards { grid-template-columns: repeat(4, 1fr); }
  .foot-links { grid-template-columns: repeat(4, 1fr); }
}

/* ---- borrowed from shatach.co.ke: the same composition on every desktop ----
   At 1280px and wider the page keeps its 1280px design width and is zoomed to fill the screen,
   in steps of 64px (pure CSS, no script), so a 24" monitor shows what a 14" laptop shows. */
@media (min-width: 1280px) { .wrap { padding-left: 38px; padding-right: 38px; } }
@media (min-width: 1344px) { html { zoom: 1.050; --z: 1.050; } }
@media (min-width: 1408px) { html { zoom: 1.100; --z: 1.100; } }
@media (min-width: 1472px) { html { zoom: 1.150; --z: 1.150; } }
@media (min-width: 1536px) { html { zoom: 1.200; --z: 1.200; } }
@media (min-width: 1600px) { html { zoom: 1.250; --z: 1.250; } }
@media (min-width: 1664px) { html { zoom: 1.300; --z: 1.300; } }
@media (min-width: 1728px) { html { zoom: 1.350; --z: 1.350; } }
@media (min-width: 1792px) { html { zoom: 1.400; --z: 1.400; } }
@media (min-width: 1856px) { html { zoom: 1.450; --z: 1.450; } }
@media (min-width: 1920px) { html { zoom: 1.500; --z: 1.500; } }
@media (min-width: 1984px) { html { zoom: 1.550; --z: 1.550; } }
@media (min-width: 2048px) { html { zoom: 1.600; --z: 1.600; } }
@media (min-width: 2176px) { html { zoom: 1.700; --z: 1.700; } }
@media (min-width: 2304px) { html { zoom: 1.800; --z: 1.800; } }
@media (min-width: 2432px) { html { zoom: 1.900; --z: 1.900; } }
@media (min-width: 2560px) { html { zoom: 2.000; --z: 2.000; } }
@media (min-width: 2880px) { html { zoom: 2.250; --z: 2.250; } }
@media (min-width: 3200px) { html { zoom: 2.500; --z: 2.500; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (forced-colors: active) { .prod, .panel, .faq details, .steps li, .fcard, .tabbar { border: 1px solid CanvasText; } }
@media print { .top, .tabbar, .strip { display: none; } body { padding: 0; } .page-hero, .sec.dark, .foot, .words { background: none; color: #000; } }

/* a page that ends with its own order band (milk, eggs...) skips the footer's: one call to order, not two in a row */
body:has(main .band) .foot-cta { display: none; }
body:has(main .band) .foot-cards { margin-top: 0; }

/* ---------- why buy from us: four reasons with pictures ---------- */
.why { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.why-i { border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.why-ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mint); }
.why-ph img { width: 100%; height: 100%; object-fit: cover; }
.why-b { padding: 12px 14px 16px; display: grid; gap: 4px; }
.why-b h3 { font-family: var(--serif); font-size: 17px; font-weight: 650; }
.why-b p { color: var(--soft); font-size: 14px; }
/* delivery map (schematic) */
.dmap-wrap { border-radius: 24px; background: var(--cream); border: 1px solid var(--line); padding: 12px; }
.dmap { width: 100%; height: auto; }
.dmap-note { text-align: center; font-size: 12.5px; color: var(--soft); margin-top: 4px; }
/* kitchen guides */
.gcards { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 12px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.gcards::-webkit-scrollbar { display: none; }
.gcard { flex: 0 0 72%; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.gcard-ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.gcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gcard:hover .gcard-ph img { transform: scale(1.04); }
.gcard-b { padding: 14px 16px 18px; display: grid; gap: 6px; }
.gcard-b h3 { font-family: var(--serif); font-size: 19px; font-weight: 650; }
/* guide pages */
.h-sm { font-size: 24px; margin-bottom: 4px; }
.howto { counter-reset: st; margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.howto li { counter-increment: st; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.howto li::before { content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--yolk); font-family: var(--serif); font-weight: 650; }
.guide { display: grid; gap: 28px; max-width: 760px; }
.guide-s { display: grid; gap: 10px; }
.guide-s p { color: var(--ink); }
.guide-s .table td:first-child { font-weight: 700; }
@media (max-width: 599px) {
  .guide-s .table thead { display: none; }
  .guide-s .table, .guide-s .table tbody, .guide-s .table tr, .guide-s .table td { display: block; }
  .guide-s .table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .guide-s .table tr:last-child { border-bottom: 0; }
  .guide-s .table td { padding: 0; border: 0; }
  .guide-s .table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--soft); }
  .guide-s .table td:nth-child(2):not(:last-child) { color: var(--soil); font-weight: 700; font-size: 14px; margin: 2px 0 4px; }
}
@media (min-width: 600px) { .guide-s .table.nowrap1 td:first-child { white-space: nowrap; } }
.sources { border-top: 1px solid var(--line); padding-top: 4px; }
.sources > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; font-weight: 700; }
.sources > summary::-webkit-details-marker { display: none; }
.sources > summary::after { content: "+"; font-size: 18px; line-height: 1; }
.sources[open] > summary::after { content: "−"; }
.sources > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sources p, .sources li { color: var(--soft); font-size: 14px; }
.sources p { margin: 4px 0 10px; }
.sources ul { display: grid; gap: 6px; padding-left: 18px; }
.sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .why { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-b h3 { font-size: 19px; } .why-b p { font-size: 15px; }
  .gcards { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .gcard { flex: none; }
}
@media (min-width: 1040px) {
  .why { grid-template-columns: repeat(4, 1fr); }
  .gcards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.checkout { display: grid; gap: 12px; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); font-weight: 650; font-size: 14.5px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--green-2); background: var(--mint); }
.seg input { accent-color: var(--green-2); width: 18px; height: 18px; }
.fld { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.fld .opt { font-weight: 500; color: var(--soft); }
.fld input, .fld select { font: inherit; font-size: 16px; font-weight: 500; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid #a8a08c; background: var(--paper); color: var(--ink); width: 100%; }
.fld input:focus, .fld select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.hint { font-size: 13.5px; color: var(--soft); }
/* where to deliver: the phone's location, picked by itself, with a way to change it */
.loc { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); }
.loc-line { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.loc-line svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--green); }
.loc[data-state="none"] .loc-line svg { color: var(--soft); }
.where { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.where legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 14.5px; }
.map { position: relative; height: 190px; border-radius: 12px; overflow: hidden; background: var(--cream-2); cursor: crosshair; touch-action: manipulation; }
.map:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.map-tiles { position: absolute; inset: 0; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.map-pin { position: absolute; left: 50%; top: 50%; translate: -50% -100%; color: #b91c1c; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); pointer-events: none; }
.map-pin svg { width: 36px; height: 36px; fill: #fff; stroke-width: 2.4; }
.map-credit { position: absolute; right: 0; bottom: 0; padding: 1px 6px; font-size: 11px; color: #1a1c17; background: rgba(255,255,255,.85); border-top-left-radius: 6px; }
.sum-del { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 15px; }
.sum-del b { white-space: nowrap; }
.map-logo { position: absolute; left: 8px; bottom: 6px; width: auto; height: 18px; pointer-events: none; }
.loc-find { display: grid; gap: 6px; }
.find-list { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.find-list button { width: 100%; min-height: 48px; display: grid; gap: 1px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.find-list button b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.find-list button span { font-size: 13.5px; color: var(--soft); overflow-wrap: anywhere; }
.find-list button:hover, .find-list button:focus-visible { background: var(--mint); }
.find-list button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.find-none { padding: 10px; font-size: 14px; color: var(--soft); }
.find-credit { margin: 0; display: flex; justify-content: flex-end; padding: 2px 4px 0; }
.find-credit img { height: 18px; width: auto; }
.find-list[hidden], .find-credit[hidden], .map-logo[hidden], .find-credit [hidden], .loc-find[hidden] { display: none; }
.find-credit small { font-size: 11.5px; color: var(--soft); }
.loc-acts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.loc-acts a, .loc-acts button { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.loc-acts a:focus-visible, .loc-acts button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* payment logos: the ways to pay, as people know them from any shop */
.pay { display: grid; gap: 10px; }
.pay-l { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.pay ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pay li { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pay li img { height: 22px; width: auto; }
.pay .pay-t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pay .pay-t svg { width: 18px; height: 18px; color: var(--green); }
.foot .pay-l { color: var(--yolk); }
.foot .pay li { border-color: transparent; }
.foot-pay { margin-bottom: 22px; }


/* live prices: an item the owner has switched off */
[data-price-of].off { color: var(--soil); font-weight: 700; }


/* each kienyeji vegetable's photo */
.veg-ph { margin: -14px -14px 8px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--mint); }
.veg-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* photo credits: long names wrap */
.credits td { overflow-wrap: anywhere; }

/* top bar: the Products drop-down (a <details>; site.js closes it on a click outside or Escape) */
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 650; font-size: 15px; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-dd[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nav-dd > summary:hover, .nav-dd > summary.on, .nav-dd[open] > summary { background: var(--mint); color: var(--green); }
.nav-dd .dd { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 4px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -18px rgb(26 28 23 / .45); }
.nav-dd .dd a { white-space: nowrap; }
.veg .en { color: var(--soft); font-size: 14px; font-style: italic; }


/* ---------- shop: category tabs, compact rows, + then − n +; the order panel (computer) or review sheet (phone) ---------- */
.shop-head { padding: 22px 0 4px; }
.shop-head h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.1; }
.shop-head p:last-child { margin-top: 6px; color: var(--soft); font-size: 15px; }
.shop-sec { padding-top: 6px; }
.shop { display: grid; gap: 24px; align-items: start; }
.shop-main, .shop-side { min-width: 0; }
.shop-tabs { position: sticky; top: 56px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 10px 16px; background: var(--cream); scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.shop-tabs a[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.shop-tabs .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--green-2); color: #fff; font-size: 12px; font-weight: 800; }
.shop-tabs .n:empty { display: none; }
.shop-cat { scroll-margin-top: 120px; }
.shop-g { font-size: 20px; margin: 16px 0 10px; }
.shop.tabbed .shop-cat:not(.on) { display: none; }
.shop.tabbed .shop-g { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shop-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.shop-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); scroll-margin-top: 130px; }
.shop-item.in { border-color: var(--green-2); box-shadow: 0 0 0 2px rgb(21 128 61 / .15); }
.shop-ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--mint); }
.shop-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-b { display: grid; gap: 1px; min-width: 0; }
.shop-b h3 { font-family: var(--serif); font-size: 17px; font-weight: 650; line-height: 1.25; }
.shop-b h3 a { color: inherit; text-decoration: none; }
.shop-b h3 a:hover { text-decoration: underline; }
.shop-b .sw { font-size: 13px; font-style: italic; font-weight: 600; color: var(--soil); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-b .pr { font-size: 14px; color: var(--soft); }
.shop-b .pr b { color: var(--ink); font-weight: 800; font-size: 15px; }
.shop-wa { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 750; text-decoration: none; }
.shop-wa svg { width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font: inherit; font-size: 22px; font-weight: 700; color: var(--green); cursor: pointer; border-radius: 50%; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-size: 16px; }
.shop-item:not(.in) .stepper { background: var(--green-2); border-color: var(--green-2); }
.shop-item:not(.in) .stepper [data-minus], .shop-item:not(.in) .stepper output { display: none; }
.shop-item:not(.in) .stepper [data-plus] { color: #fff; }
.shop:not(.js) .stepper, .shop:not(.js) .shop-side, .shop:not(.js) .basket { display: none; }
.shop.js .shop-wa { display: none; }
/* an item the owner has switched off (live prices) */
.shop-item .off-note { display: none; color: var(--soil); font-weight: 700; font-size: 13px; }
.shop-item.off { opacity: .6; }
.shop-item.off .off-note { display: block; }
.shop-item.off .stepper { display: none; }
/* the order: lines, total, delivery, send */
.shop-side { display: grid; gap: 14px; align-content: start; }
.side-head { display: flex; align-items: center; justify-content: space-between; }
.side-head h2 { font-size: 22px; }
.side-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.order-sum ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.order-sum li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.order-sum li b { white-space: nowrap; }
.sum-empty { color: var(--soft); font-size: 15px; }
.sum-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; }
.sum-total b { font-size: 18px; }
.basket-warn { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--yolk-wash); color: var(--ink); font-size: 14px; font-weight: 650; }
.shop-side .send { width: 100%; justify-content: center; }
.shop-side .send[aria-disabled="true"] { opacity: .5; }
/* phone: a bar above the tabs, and the order as a sheet from the bottom */
.basket { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); z-index: 29; display: none; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--forest); color: var(--on-dark); box-shadow: 0 16px 40px -12px rgb(18 53 36 / .6); }
.shop.js .basket { display: flex; }
body:has(.shop.js) { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 84px); }
.basket-b { flex: 1; min-width: 0; display: grid; }
.basket-b b { font-size: 15px; }
.basket-b span { font-size: 13px; color: var(--on-dark-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket .btn { flex: none; }
.basket .btn:disabled { background: rgb(255 255 255 / .14); color: var(--on-dark-soft); box-shadow: none; cursor: default; }
.shop-scrim { position: fixed; inset: 0; z-index: 58; background: rgb(18 24 20 / .45); }
@media (max-width: 1039px) {
  .shop.js .shop-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--paper); box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .4);
    transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .shop.js .shop-side.open { transform: none; visibility: visible; transition: transform .25s ease; }
  body.sheet-open { overflow: hidden; }
}
@media (min-width: 1040px) {
  .shop { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .shop-tabs { top: 64px; margin: 0 0 8px; padding: 10px 0; flex-wrap: wrap; }
  .shop-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
  .side-close, .shop-scrim, .shop.js .basket { display: none; }
  body:has(.shop.js) { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .shop.js .shop-side, .shop.js .shop-side.open { transition: none; } }
/* the delivery cut-off, said plainly at the top of the shop */
.shop-head .cutoff { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: 12px; background: var(--yolk-wash); color: var(--ink); font-size: 15px; }
.shop-head .cutoff svg { width: 18px; height: 18px; flex: none; color: var(--soil); }
/* the Lipa na M-Pesa Paybill under the payment logos */
.pay-pb { font-size: 14.5px; color: var(--ink); }
.pay-pb b { font-weight: 800; letter-spacing: .02em; }
.foot .pay-pb { color: var(--on-dark); }
/* product cards five across: "Details →" never splits; with no room beside Order it goes under it */
.prod-act { flex-wrap: wrap; }
.prod-act .more { white-space: nowrap; }
/* home hero: three facts under the buttons (plain text with an icon: nothing here looks like a button) */
.facts3 { list-style: none; margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.facts3 li { display: flex; align-items: flex-start; gap: 10px; }
.facts3 svg { width: 22px; height: 22px; flex: none; color: var(--green-2); margin-top: 1px; }
.facts3 span { display: grid; font-size: 14px; color: var(--soft); line-height: 1.35; }
.facts3 b { color: var(--ink); font-size: 15px; }
@media (min-width: 600px) { .facts3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* stock, from the farm's records (prices.js): a status, never the amount */
.stock { font-size: 13px; font-weight: 750; }
.stock.in { color: var(--green-2); }
.stock.low { color: var(--soil); }
.stock.out { color: var(--soft); }

/* the order panel: Clear order (and its Undo) beside the title */
.side-head { gap: 8px; }
.side-head h2 { margin-right: auto; }
.clear-btn { min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--soil); font: inherit; font-weight: 750; font-size: 14px; cursor: pointer; }
.clear-btn:hover { background: var(--cream); }
/* what can be reserved for tomorrow (prices.js): a status, never the litres */
.reserve { font-size: 13px; font-weight: 650; color: var(--soft); }
.reserve.in { color: var(--green-2); }
.reserve.low { color: var(--soil); }

/* Live from Kirindo: the hero's card, from the farm's clock and records (site.js, prices.js) */
.live { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgb(255 253 248 / .94); backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgb(0 0 0 / .35); font-size: 14px; }
.live p { display: flex; align-items: center; gap: 8px; color: var(--ink); margin: 0; }
.live p svg { width: 16px; height: 16px; flex: none; color: var(--green-2); }
.live .live-h { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green-2); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green-2); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }
@media (min-width: 1040px) { .live { left: auto; right: 18px; bottom: 18px; max-width: 380px; } }
/* vegetables: irrigated, so fresh all year */
.live p[hidden] { display: none; }
.season { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgb(255 255 255 / .14); color: inherit; font-weight: 650; }
.season svg { width: 18px; height: 18px; flex: none; }

/* ---------- the sky over Kirindo (home page): it follows the farm's clock (site.js) ---------- */
.hero2.sky { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 170px;
  --sky-top: #8fc3ee; --sky-mid: #a8d0f1; --sky-bot: #eef6fb; --hill-far: #6aa766; --hill-mid: #4a8a4c; --stars: 0; --orb-alt: .8; --orb-lo: 30px; --orb-hi: 104px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 72%, var(--sky-bot) 100%); }
.sky-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky-stars { position: absolute; inset: 0 0 25% 0; width: 100%; height: 75%; opacity: var(--stars); transition: opacity 1.2s ease; }
.sky-stars circle { fill: #fff; animation: twinkle var(--tw) ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.sky-orb { position: absolute; left: var(--orb-x, 72%); bottom: calc(var(--orb-lo) + (var(--orb-hi) - var(--orb-lo)) * var(--orb-alt)); width: 56px; height: 56px; margin-left: -28px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff7d6, #ffd36b 55%, #f7b733); box-shadow: 0 0 60px 18px rgb(255 214 107 / .45); transition: left 1s ease, bottom 1s ease; }
.sky[data-orb="moon"] .sky-orb { width: 44px; height: 44px; margin-left: -22px; background: radial-gradient(circle at 38% 38%, #ffffff, #e8e6dc 60%, #cfcbbd); box-shadow: 0 0 40px 8px rgb(232 230 220 / .25); }
.sky-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; }
.sky-hills .h-far { fill: var(--hill-far); transition: fill .8s ease; }
.sky-hills .h-mid { fill: var(--hill-mid); transition: fill .8s ease; }
.sky-hills .h-near { fill: var(--forest); }
/* a dark sky: light words (contrast kept at night, dusk and before dawn) */
.sky[data-tone="night"] .hero2-text h1, .sky[data-tone="night"] .hero2-text .lead, .sky[data-tone="night"] .facts3 b { color: #fbf8ef; text-shadow: 0 1px 14px rgb(0 0 0 / .25); }
.sky[data-tone="night"] .hero2-text h1 em { color: var(--leaf); }
.sky[data-tone="night"] .eyebrow { color: #ffd88a; }
.sky[data-tone="night"] .facts3 span { color: #d9e2ec; }
.sky[data-tone="night"] .facts3 { border-top-color: rgb(255 255 255 / .18); }
.sky[data-tone="night"] .facts3 svg { color: var(--leaf); }
.live .live-now { display: block; font-size: 13.5px; line-height: 1.4; color: var(--soft); }
.live .live-now b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sky-stars circle { animation: none; } .hero2.sky, .sky-orb, .sky-stars, .sky-hills path { transition: none; } }
@media (min-width: 1040px) { .hero2.sky { padding-bottom: 230px; --orb-lo: 50px; --orb-hi: 160px; } .sky-hills { height: 200px; } .sky-orb { width: 66px; height: 66px; margin-left: -33px; } }
/* a light sky: the grey words go darker, so they keep their contrast on blue */
.sky:not([data-tone="night"]) .hero2-text .lead, .sky:not([data-tone="night"]) .facts3 span { color: #2b2d25; }
.sky:not([data-tone="night"]) .eyebrow { color: #5e2408; }
.sky:not([data-tone="night"]) .facts3 { border-top-color: rgb(26 28 23 / .14); }

/* ================= the home page as a film (cinematic storytelling) ================= */
:root { --top-h: 57px; }
@media (min-width: 1040px) { :root { --top-h: 65px; } }
/* the header over the opening scene: clear, white words, the white logo */
.top .logo-night { display: none; }
.js .top[data-over]:not(.solid) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.js .top[data-over]:not(.solid) .logo-day { display: none; }
.js .top[data-over]:not(.solid) .logo-night { display: block; }
.js .top[data-over]:not(.solid) .nav > a, .js .top[data-over]:not(.solid) .nav-dd > summary { color: #fff; }
.js .top[data-over]:not(.solid) .nav > a:hover, .js .top[data-over]:not(.solid) .nav-dd > summary:hover { background: rgb(255 255 255 / .14); color: #fff; }
.top { transition: background .35s ease, border-color .35s ease; }

/* full-screen scenes: a photo, a shade for the words, the words */
.cine-hero, .chapter, .cine-quote { position: relative; isolation: isolate; overflow: hidden; color: #fff; display: grid; align-items: end; }
.cine-media { position: absolute; inset: 0; z-index: -2; }
.cine-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cine-hero { margin-top: calc(-1 * var(--top-h)); min-height: calc(100svh / var(--z, 1)); padding: calc(var(--top-h) + 40px) 0 88px; }
.cine-tint { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .25) 55%, rgb(0 0 0 / .78) 100%), linear-gradient(180deg, var(--sky-top, transparent), var(--sky-bot, transparent));
  background-blend-mode: normal, soft-light; }
.cine-hero[data-tone="night"] .cine-tint { background: linear-gradient(180deg, rgb(4 8 24 / .65) 0%, rgb(4 8 24 / .35) 40%, rgb(0 0 0 / .82) 100%); }
.cine-hero-in { display: grid; gap: 16px; max-width: 900px; justify-self: start; width: 100%; }
.cine-kicker { font-size: 12.5px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: #ffe0a3; }
.cine-h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(44px, 11vw, 104px); line-height: .98; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.cine-h1 em { font-style: italic; color: var(--leaf); }
.cine-lead { max-width: 560px; font-size: 18px; line-height: 1.55; color: rgb(255 255 255 / .9); }
.cine-hero .btn-call { background: rgb(255 255 255 / .94); }
.cine-live { display: grid; gap: 4px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .22); max-width: 560px; font-size: 14px; color: rgb(255 255 255 / .88); }
.cine-live .live-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.cine-live .live-h .pulse, .cine-live .live-h .pulse::after { background: var(--leaf); }
.cine-live .live-now { color: rgb(255 255 255 / .9); }
.cine-live .live-now b { color: #fff; }
.cine-live .live-row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.cine-live [hidden] { display: none; }
.cine-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: rgb(255 255 255 / .8); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.cine-scroll i { width: 1px; height: 30px; background: linear-gradient(rgb(255 255 255 / .9), transparent); }

/* chapters */
.chapter, .cine-quote { min-height: calc(92svh / var(--z, 1)); padding: 120px 0 72px; scroll-margin-top: 0; }
.ch-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / .05) 20%, rgb(0 0 0 / .35) 55%, rgb(0 0 0 / .86) 100%); }
.ch-in, .cine-quote-in { display: grid; gap: 12px; max-width: 720px; justify-self: start; width: 100%; }
.ch-n { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--leaf); }
.ch-n span { color: #ffe0a3; margin-left: 8px; letter-spacing: .12em; }
.chapter h2, .cine-quote h2 { font-family: var(--serif); font-weight: 650; font-size: clamp(48px, 13vw, 120px); line-height: .95; letter-spacing: -.025em; color: #fff; }
.cine-quote h2 { font-size: clamp(30px, 6vw, 60px); line-height: 1.08; text-wrap: balance; }
.cine-quote h2 em { font-style: italic; color: #ffe0a3; }
.ch-line { max-width: 560px; font-size: 18px; line-height: 1.55; color: rgb(255 255 255 / .9); }
.ch-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-facts > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); font-size: 14px; color: #fff; backdrop-filter: blur(6px); }
.ch-facts > span[hidden] { display: none; }
.ch-facts b { font-weight: 800; }
.ch-facts .stock { color: #fff; }
.btn-glass { background: rgb(255 255 255 / .12); color: #fff; border: 1px solid rgb(255 255 255 / .5); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgb(255 255 255 / .22); }
.ch-also { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.ch-also a { color: rgb(255 255 255 / .85); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .35); min-height: 32px; display: inline-flex; align-items: center; }
.ch-also a:hover { color: #fff; }

/* the chapter index: follows the reader down the side on a computer */
.ch-index { display: none; }
@media (min-width: 1040px) {
  .ch-index { display: grid; gap: 4px; position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 15; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
  .in-chapters .ch-index { opacity: 1; pointer-events: auto; }
  .ch-index a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 30px; color: rgb(255 255 255 / .55); text-decoration: none; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
  .ch-index a span { opacity: 0; transform: translateX(6px); transition: opacity .25s ease, transform .25s ease; }
  .ch-index a b { width: 26px; text-align: right; }
  .ch-index a::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: width .25s ease; }
  .ch-index a[aria-current] { color: #fff; }
  .ch-index a[aria-current]::after { width: 34px; }
  .ch-index a:hover span, .ch-index a[aria-current] span { opacity: 1; transform: none; }
  .chapter, .cine-quote { padding: 140px 0 96px; }
}

/* motion: the opening photo settles in, chapter photos drift as the page scrolls, the words rise in */
.motion .cine-hero .cine-media img { animation: settle 14s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
.motion .reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in > * { opacity: 1; transform: none; }
.motion .reveal.in > *:nth-child(2) { transition-delay: .08s; } .motion .reveal.in > *:nth-child(3) { transition-delay: .16s; }
.motion .reveal.in > *:nth-child(4) { transition-delay: .24s; } .motion .reveal.in > *:nth-child(5) { transition-delay: .32s; } .motion .reveal.in > *:nth-child(6) { transition-delay: .4s; }
@supports (animation-timeline: view()) {
  .motion .chapter .cine-media img, .motion .cine-quote .cine-media img { animation: drift linear both; animation-timeline: view(); transform-origin: center; }
  @keyframes drift { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
}
@media (prefers-reduced-motion: reduce) { .cine-media img { animation: none !important; } .reveal > * { opacity: 1 !important; transform: none !important; } .top { transition: none; } }
@media (min-width: 900px) { .cine-hero .cine-tint::after, .chapter .ch-shade::after, .cine-quote .ch-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / .18) 45%, transparent 70%); } }

/* ================= the opening scene: the living sky over Kirindo, made cinematic ================= */
.cine-hero.sky { align-items: start; grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(180deg, var(--sky-top, #8fc3ee) 0%, var(--sky-mid, #a8d0f1) 62%, var(--sky-bot, #eef6fb) 100%); color: var(--ink);
  min-height: calc(100svh / var(--z, 1)); padding: calc(var(--top-h) + 4vh) 0 calc(max(150px, 22vh) + 28px); }
.chapter, .cine-quote { grid-template-columns: minmax(0, 1fr); }
.cine-hero.sky .sky-stars { inset: 0; height: 100%; }
.cine-hero.sky .sky-hills { height: max(150px, 22vh); }
.cine-hero.sky .sky-hills path { transition: fill .8s ease; }
.cine-hero.sky .sky-hills .h-near { fill: #0e2a1c; }
/* the sun or moon: on a phone it rises over the hills under the words; on a computer it arcs across the right of the sky */
.cine-hero.sky .sky-orb { left: calc(8% + 84% * var(--orb-p, .35)); bottom: calc(max(150px, 22vh) * .45 + 60px * var(--orb-alt, .8)); width: 64px; height: 64px; margin-left: -32px;
  transition: left 1.2s ease, bottom 1.2s ease; }
[data-orb="moon"] .cine-hero.sky .sky-orb { width: 48px; height: 48px; margin-left: -24px; }
@media (min-width: 1040px) {
  .cine-hero.sky .sky-orb { left: calc(94% - 30% * var(--orb-p, .35)); bottom: calc(max(150px, 22vh) * .5 + (70% - max(150px, 22vh) * .5) * var(--orb-alt, .8)); width: 120px; height: 120px; margin-left: -60px;
    box-shadow: 0 0 120px 40px rgb(255 214 107 / .4), 0 0 0 14px rgb(255 230 160 / .08); }
  [data-orb="moon"] .cine-hero.sky .sky-orb { width: 84px; height: 84px; margin-left: -42px; box-shadow: 0 0 90px 22px rgb(232 230 220 / .22); }
}
/* the words: dark ink on a bright sky, light on a dark one (chosen by the sky's brightness, site.js) */
.cine-hero.sky .cine-h1 { color: #10231a; }
.cine-hero.sky .cine-h1 em { color: #1f7a3f; }
.cine-hero.sky .cine-kicker { color: #6b2a0a; }
.cine-hero.sky .cine-lead, .cine-hero.sky .cine-live, .cine-hero.sky .cine-live .live-now { color: #1d2a22; }
.cine-hero.sky .cine-live .live-now b { color: #10231a; }
.cine-hero.sky .cine-live { border-top-color: rgb(16 35 26 / .2); }
.cine-hero.sky .cine-live .live-h { color: #1f7a3f; }
.cine-hero.sky .cine-live .live-h .pulse, .cine-hero.sky .cine-live .live-h .pulse::after { background: #1f7a3f; }
.cine-hero.sky .cine-scroll { color: #10231a; } .cine-hero.sky .cine-scroll i { background: linear-gradient(currentColor, transparent); }
[data-tone="night"] .cine-hero.sky .cine-h1 { color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
[data-tone="night"] .cine-hero.sky .cine-h1 em { color: var(--leaf); }
[data-tone="night"] .cine-hero.sky .cine-kicker { color: #ffe0a3; }
[data-tone="night"] .cine-hero.sky .cine-lead, [data-tone="night"] .cine-hero.sky .cine-live, [data-tone="night"] .cine-hero.sky .cine-live .live-now { color: rgb(255 255 255 / .9); }
[data-tone="night"] .cine-hero.sky .cine-live .live-now b { color: #fff; }
[data-tone="night"] .cine-hero.sky .cine-live { border-top-color: rgb(255 255 255 / .22); }
[data-tone="night"] .cine-hero.sky .cine-live .live-h { color: var(--leaf); }
[data-tone="night"] .cine-hero.sky .cine-live .live-h .pulse, [data-tone="night"] .cine-hero.sky .cine-live .live-h .pulse::after { background: var(--leaf); }
[data-tone="night"] .cine-hero.sky .cine-scroll { color: #fff; }
.cine-hero.sky .cine-scroll { bottom: 16px; z-index: 1; color: #fff; }
.cine-hero.sky .cine-h1 { font-size: clamp(44px, 6.6vw, 84px); max-width: 15ch; }
.cine-hero.sky .cine-hero-in { gap: 14px; }
.cine-hero.sky .cine-lead { max-width: 600px; }
/* the header over a bright sky: dark words; over a dark one: white (the header knows the tone, site.js) */
.js[data-tone="day"] .top[data-over]:not(.solid) .logo-day { display: block; }
.js[data-tone="day"] .top[data-over]:not(.solid) .logo-night { display: none; }
.js[data-tone="day"] .top[data-over]:not(.solid) .nav > a, .js[data-tone="day"] .top[data-over]:not(.solid) .nav-dd > summary { color: #10231a; }
.js[data-tone="day"] .top[data-over]:not(.solid) .nav > a:hover, .js[data-tone="day"] .top[data-over]:not(.solid) .nav-dd > summary:hover { background: rgb(16 35 26 / .08); color: #10231a; }
/* arrival: the scene fades up, the words rise in one after another */
.motion .cine-hero.sky .sky-bg { animation: scene-in 1.6s ease both; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
.motion .cine-hero-in > * { animation: rise-in 1s cubic-bezier(.2, .7, .2, 1) both; }
.motion .cine-hero-in > *:nth-child(2) { animation-delay: .12s; } .motion .cine-hero-in > *:nth-child(3) { animation-delay: .24s; }
.motion .cine-hero-in > *:nth-child(4) { animation-delay: .36s; } .motion .cine-hero-in > *:nth-child(5) { animation-delay: .5s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* depth: as the page scrolls the far hills sink faster than the near ones, the sun or moon sets a little */
@supports (animation-timeline: scroll()) {
  .motion .cine-hero.sky .h-far { animation: hill-far linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .motion .cine-hero.sky .h-mid { animation: hill-mid linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .motion .cine-hero.sky .sky-orb { animation: orb-sink linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes hill-far { to { transform: translateY(26px); } }
  @keyframes hill-mid { to { transform: translateY(12px); } }
  @keyframes orb-sink { to { transform: translateY(60px); } }
}
@media (prefers-reduced-motion: reduce) { .cine-hero-in > *, .cine-hero.sky .sky-bg, .cine-hero.sky .h-far, .cine-hero.sky .h-mid, .cine-hero.sky .sky-orb { animation: none !important; } }

[data-orb="moon"] .cine-hero.sky .sky-orb { background: radial-gradient(circle at 36% 36%, #ffffff, #ecebe3 55%, #cfcbbd); box-shadow: 0 0 70px 16px rgb(236 235 227 / .22); }
@media (min-width: 1040px) { [data-orb="moon"] .cine-hero.sky .sky-orb { box-shadow: 0 0 110px 26px rgb(236 235 227 / .2), 0 0 0 12px rgb(255 255 255 / .04); } }

/* the live line: open-now and the delivery countdown, separated by a dot only when they share a line */
.cine-live .live-row { gap: 2px 0; }
.cine-live .live-row > span + span::before { content: "·"; margin: 0 10px; opacity: .6; }
@media (max-width: 599px) { .cine-live .live-row { display: grid; } .cine-live .live-row > span + span::before { content: none; } }
/* the scroll cue sits in the near hills, readable on their dark green */
.cine-hero.sky .cine-scroll, [data-tone="night"] .cine-hero.sky .cine-scroll { color: rgb(255 255 255 / .85); bottom: 14px; }
/* the scenes' words line up with the logo: the wrap keeps the page's width and left edge; only the words are narrow */
.cine-hero-in, .ch-in, .cine-quote-in { max-width: 1280px; justify-self: stretch; }
.cine-hero-in > *, .ch-in > *, .cine-quote-in > * { max-width: 760px; }
.cine-hero.sky .cine-h1 { max-width: 15ch; }

/* ================= every page opens on a scene (cinematic), the same on a phone and a computer ================= */
.cine-page { position: relative; isolation: isolate; overflow: hidden; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
  margin-top: calc(-1 * var(--top-h)); min-height: calc(78svh / var(--z, 1)); padding: calc(var(--top-h) + 48px) 0 56px; }
.cine-page.sky { align-items: center; background: linear-gradient(180deg, var(--sky-top, #8fc3ee) 0%, var(--sky-mid, #a8d0f1) 62%, var(--sky-bot, #eef6fb) 100%); padding-bottom: max(170px, 26vh); }
.cine-page.sky .sky-stars { inset: 0; height: 100%; }
.cine-page.sky .sky-hills { height: max(140px, 20vh); }
.cine-page.sky .sky-hills .h-near { fill: #0e2a1c; }
.cine-page.sky .sky-orb { left: calc(94% - 30% * var(--orb-p, .35)); bottom: calc(max(140px, 20vh) * .5 + 60px * var(--orb-alt, .8)); width: 70px; height: 70px; margin-left: -35px; }
.cine-page-in { display: grid; gap: 14px; max-width: 1280px; justify-self: stretch; }
.cine-page-in > * { max-width: 760px; }
.cine-page .eyebrow { font-size: 12.5px; letter-spacing: .16em; color: #ffe0a3; }
.cine-page h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: -.02em; color: #fff; max-width: 16ch; text-wrap: balance; }
.cine-page h1 em { font-style: italic; color: var(--leaf); }
.cine-page .lead { font-size: 18px; line-height: 1.55; color: rgb(255 255 255 / .9); max-width: 620px; }
.cine-page .btns { margin-top: 6px; }
.cine-page .btn-call { background: rgb(255 255 255 / .94); }
.cine-page a:not(.btn) { color: #fff; }
/* a bright sky: dark words (the farm's clock decides, early.js) */
[data-tone="day"] .cine-page.sky h1, [data-tone="day"] .cine-page.sky a:not(.btn) { color: #10231a; }
[data-tone="day"] .cine-page.sky h1 em { color: #1f7a3f; }
[data-tone="day"] .cine-page.sky .eyebrow { color: #6b2a0a; }
[data-tone="day"] .cine-page.sky .lead, [data-tone="day"] .cine-page.sky p { color: #1d2a22; }
[data-tone="night"] .cine-page.sky h1 { text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
/* the shop's scene: short, so the products stay in view */
.cine-page.short { min-height: 0; padding: calc(var(--top-h) + 22px) 0 max(110px, 15vh); align-items: start; }
.cine-page.short .sky-hills { height: max(90px, 12vh); }
.cine-page.short .sky-orb { width: 46px; height: 46px; margin-left: -23px; bottom: calc(max(90px, 12vh) * .5 + 30px * var(--orb-alt, .8)); }
.cine-page.short h1 { font-size: clamp(32px, 5vw, 56px); }
.cine-page.short .cutoff { color: var(--ink); }
/* arrival, as on the home page */
.motion .cine-page-in > * { animation: rise-in 1s cubic-bezier(.2, .7, .2, 1) both; }
.motion .cine-page-in > *:nth-child(2) { animation-delay: .1s; } .motion .cine-page-in > *:nth-child(3) { animation-delay: .2s; } .motion .cine-page-in > *:nth-child(4) { animation-delay: .3s; }
.motion .cine-page .cine-media img { animation: settle 14s cubic-bezier(.2, .6, .2, 1) both; }
.motion .cine-page.sky .sky-bg { animation: scene-in 1.6s ease both; }
/* everything below rises in as the reader reaches it */
.motion .reveal-1 { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal-1.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cine-page-in > *, .cine-page .cine-media img, .cine-page.sky .sky-bg { animation: none !important; } .reveal-1 { opacity: 1 !important; transform: none !important; } }
@media (min-width: 900px) { .cine-page .ch-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / .18) 45%, transparent 70%); } }
@media print { .cine-page, .cine-hero { margin: 0; min-height: 0; color: #000; background: none; } .cine-media, .sky-bg, .ch-shade { display: none; } }
/* the header over a scene: the current page's link is a quiet glass pill, readable on any photo or sky */
.js .top[data-over]:not(.solid) .nav > a[aria-current="page"], .js .top[data-over]:not(.solid) .nav-dd > summary.on { background: rgb(255 255 255 / .18); color: #fff; }
.js[data-tone="day"] .top[data-over]:not(.solid) .nav > a[aria-current="page"], .js[data-tone="day"] .top[data-over]:not(.solid) .nav-dd > summary.on { background: rgb(16 35 26 / .1); color: #10231a; }
/* photo scenes always have white words: the day-sky dark header applies only over the sky */
.js[data-tone="day"] body:not(:has(.sky[data-sky])) .top[data-over]:not(.solid) .nav > a, .js[data-tone="day"] body:not(:has(.sky[data-sky])) .top[data-over]:not(.solid) .nav-dd > summary { color: #fff; }
.js[data-tone="day"] body:not(:has(.sky[data-sky])) .top[data-over]:not(.solid) .nav > a[aria-current="page"] { background: rgb(255 255 255 / .18); color: #fff; }
.js[data-tone="day"] body:not(:has(.sky[data-sky])) .top[data-over]:not(.solid) .logo-day { display: none; }
.js[data-tone="day"] body:not(:has(.sky[data-sky])) .top[data-over]:not(.solid) .logo-night { display: block; }
/* the shop's scene: its small lines follow the sky */
.shop-head.cine-page .eyebrow { color: #ffe0a3; }
.shop-head.cine-page p:last-child { color: rgb(255 255 255 / .82); }
[data-tone="day"] .shop-head.cine-page .eyebrow { color: #6b2a0a; }
[data-tone="day"] .shop-head.cine-page p:last-child { color: #1d2a22; }
/* photo scenes fade softly into the page instead of a hard cut (the words stay clear of the fade) */
.cine-page:not(.sky) { background: var(--cream); padding-bottom: 150px; }
.cine-page:not(.sky) .cine-media, .cine-page:not(.sky) .ch-shade { -webkit-mask-image: linear-gradient(#000 calc(100% - 130px), transparent); mask-image: linear-gradient(#000 calc(100% - 130px), transparent); }
.cine-page:not(.sky) + .sec, .cine-page:not(.sky) ~ .sec:first-of-type { padding-top: 24px; }
/* the fade ends on the colour of the section that follows, so there is no seam */
main > .cine-page:not(.sky):has(+ .sec.paper) { background: var(--paper); }
main > .cine-page:not(.sky):has(+ .sec.dark) { background: var(--forest); }
#visit .split { align-items: start; }

/* ================= the home page's scenes flow into one another, like cuts in a film ================= */
/* one ground colour joins every scene: the near hills under the sky, the ends of every chapter, the story */
.chapter, .cine-quote { background: #0e2a1c; }
.chapter .ch-shade, .cine-quote .ch-shade {
  background: linear-gradient(180deg, #0e2a1c 0%, rgb(14 42 28 / .55) 9%, rgb(14 42 28 / 0) 22%, rgb(0 0 0 / .05) 34%, rgb(0 0 0 / .38) 60%, rgb(14 42 28 / .9) 90%, #0e2a1c 100%); }
.cine-quote .ch-shade { background: linear-gradient(180deg, #0e2a1c 0%, rgb(14 42 28 / 0) 22%, rgb(0 0 0 / .35) 55%, rgb(18 53 36 / .92) 90%, var(--forest) 100%); }
.cine-quote { background: var(--forest); }
@media (min-width: 900px) { .chapter .ch-shade::after, .cine-quote .ch-shade::after { background: linear-gradient(90deg, rgb(0 0 0 / .45) 0%, rgb(0 0 0 / .14) 45%, transparent 70%); } }

/* chapter titles: revealed like a film title, wiped up from a line */
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.2, .7, .2, 1) .1s, opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in h2 { clip-path: inset(-20% -5% -25% -5%); }

@supports (animation-timeline: view()) {
  /* each scene comes alive as it arrives: from a soft, dim zoom to full */
  .motion .chapter .cine-media, .motion .cine-quote .cine-media { animation: scene-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  @keyframes scene-arrive { from { opacity: .2; transform: scale(1.1); } to { opacity: 1; transform: none; } }
  /* and its words drift up and away as the reader moves on */
  .motion .chapter .ch-in, .motion .cine-quote .cine-quote-in { animation: words-leave linear both; animation-timeline: view(); animation-range: exit 5% exit 75%; }
  @keyframes words-leave { to { opacity: 0; transform: translateY(-60px); } }
  /* the opening scene's words rise and fade as the first chapter comes up */
  .motion .cine-hero .cine-hero-in { animation: words-leave linear both; animation-timeline: view(); animation-range: exit 10% exit 80%; }
}
@media (prefers-reduced-motion: reduce) { .reveal h2 { clip-path: none !important; } .chapter .cine-media, .cine-quote .cine-media, .chapter .ch-in, .cine-quote .cine-quote-in, .cine-hero .cine-hero-in { animation: none !important; } }

/* the home page turns like pages: every part of it, from the sky to the footer, fills at least one screen and a
   scroll stops at the next one, never halfway. A part taller than the screen (a long list, the footer on a phone)
   scrolls freely inside, then stops at the next. On a phone a "screen" is the part above the app bar, so the next
   part starts hidden behind the bar and no button or word is ever under it. */
html.film { scroll-snap-type: y mandatory; scroll-padding-top: 0; --screen: calc(100svh - var(--tab-h) - env(safe-area-inset-bottom)); }
.film .cine-hero, .film .chapter, .film .cine-quote, .film .film-end > section, .film .foot { scroll-snap-align: start; scroll-snap-stop: always; }
.film .cine-hero, .film .chapter, .film .cine-quote { min-height: var(--screen); }
/* the parts after the story: their content centred in the screen, clear of the sticky top bar */
.film .film-end > section { min-height: var(--screen); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top-h) + 28px) 0 36px; }
.film .film-end > section > .wrap { width: 100%; }
.film .foot { min-height: var(--screen); display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--top-h) + 28px); }
.film .foot > .wrap { width: 100%; }
/* on a phone the longest parts are tightened so each still fits one screen: the three steps, the delivery map */
@media (max-width: 599px) {
  .film .film-end > section { padding: calc(var(--top-h) + 16px) 0 20px; }
  .film .film-end .steps li { padding: 12px 14px; }
  .film .film-end .steps p { font-size: 14.5px; line-height: 1.5; }
  .film .film-end > .sec.dark .wrap > div:last-child { margin-top: 14px !important; }
  .film .film-end > .sec.dark .btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  .film .film-end > .sec.dark .btns .btn { padding-left: 10px; padding-right: 10px; }
  .film .film-end .facts { gap: 8px; }
  .film .film-end .facts div { padding-bottom: 8px; }
  .film .film-end .dmap { max-height: 176px; }
}
/* each photo framed on what matters: the milker's face, not the top bar over it */
#ch-milk .cine-media img { object-position: 50% 15%; }
/* the story's one button keeps its own width beside the words, as the chapters' buttons do */
@media (min-width: 600px) { .cine-quote-in > .btn { justify-self: start; } }
@media (min-width: 1040px) {
  html.film { --screen: calc(100svh / var(--z, 1)); }
  .film .film-end > section { padding: calc(var(--top-h) + 40px) 0 56px; }
  .film .foot { padding-top: calc(var(--top-h) + 40px); }
}

/* the opening scene is fitted to the screen's height too (on a computer vh grows with the page zoom, so it is
   divided back by --z), so even a short laptop window or a phone shows it whole, hills and scroll cue included */
.film .cine-hero.sky { padding: calc(var(--top-h) + 2svh) 0 calc(max(90px, 12svh) + 8px); }
.film .cine-hero.sky .sky-hills { height: max(90px, 12svh); }
.film .cine-hero.sky .sky-orb { bottom: calc(max(90px, 12svh) * .45 + 60px * var(--orb-alt, .8)); }
.film .cine-hero.sky .cine-hero-in { gap: min(14px, 1.4svh); }
.film .cine-hero.sky .cine-lead { font-size: 16.5px; line-height: 1.5; }
.film .cine-hero.sky .cine-live { margin-top: 4px; padding-top: 10px; }
@media (min-width: 1040px) {
  .film .cine-hero.sky { padding: calc(var(--top-h) + 2svh / var(--z, 1)) 0 calc(max(84px, 16svh / var(--z, 1)) + 12px); }
  .film .cine-hero.sky .sky-hills { height: max(84px, 16svh / var(--z, 1)); }
  .film .cine-hero.sky .sky-orb { bottom: calc(max(84px, 16svh / var(--z, 1)) * .5 + (70% - max(84px, 16svh / var(--z, 1)) * .5) * var(--orb-alt, .8)); }
  .film .cine-hero.sky .cine-hero-in { gap: min(14px, 1.4svh / var(--z, 1)); }
  .film .cine-hero.sky .cine-h1 { font-size: clamp(48px, min(6.6vw, 9svh / var(--z, 1)), 84px); }
  .film .cine-hero.sky .cine-lead { font-size: 18px; line-height: 1.55; }
  .film .chapter, .film .cine-quote { padding: calc(var(--top-h) + 40px) 0 64px; }
}
/* "The farm" cue: a solid chip on the hills (white words on the pale crest could not be read), a chevron that
   nudges downward, and lifted clear of the phone app bar's round Order button. A tap goes to the first chapter. */
html.film .cine-hero.sky .cine-scroll { bottom: max(30px, 3.5svh); z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: rgb(14 42 28 / .88); border: 1px solid rgb(255 255 255 / .22); color: #fff; font-size: 11.5px; letter-spacing: .16em;
  box-shadow: 0 6px 20px rgb(0 0 0 / .22); backdrop-filter: blur(6px); }
html.film .cine-hero.sky .cine-scroll:hover { background: #0e2a1c; }
html.film .cine-hero.sky .cine-scroll i { width: 7px; height: 7px; margin-top: -4px; background: none; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.motion.film .cine-hero.sky .cine-scroll i { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@media (min-width: 1040px) { html.film .cine-hero.sky .cine-scroll { bottom: max(18px, 2.5svh / var(--z, 1)); } }
@media (prefers-reduced-motion: reduce) { .cine-hero.sky .cine-scroll i { animation: none !important; } }

/* A dated thank-you (Customer Service Week and the like): a warm card between the opening scene and the farm */
[data-campaign][hidden] { display: none !important; }
.csw { padding: 28px 0; }
.csw-card { display: grid; border-radius: 24px; overflow: hidden; background: var(--yolk-wash); border: 1px solid #f1dca8; box-shadow: var(--shadow); }
.csw-ph { position: relative; aspect-ratio: 16 / 9; background: var(--mint); }
.csw-ph img { width: 100%; height: 100%; object-fit: cover; }
.csw-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 750; box-shadow: var(--shadow); }
.csw-tag svg, .csw-pill svg { width: 18px; height: 18px; flex: none; color: var(--soil); }
.csw-b { display: grid; gap: 12px; padding: 24px 20px 26px; }
.csw-b .eyebrow { color: #8a3409; }
.csw-b h2 em { color: var(--green); }
.csw-b .lead { color: var(--ink); }
.csw-b p:not(.eyebrow):not(.lead) { color: #4a463c; }
.csw-b .btns { margin-top: 6px; }
.csw-pill b { font-weight: 650; }
@media (min-width: 760px) {
  .csw { padding: 48px 0 40px; }
  .csw-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
  .csw-ph { aspect-ratio: auto; min-height: 100%; }
  .csw-b { padding: 40px 44px; align-content: center; }
}
/* On the home page the scenes snap one screen at a time: the thank-you is a stop of its own (otherwise the snap
   jumps straight past it), starts below the bar, and on a phone keeps to about one screen */
.film .csw { scroll-snap-align: start; scroll-snap-stop: always; min-height: var(--screen); display: grid; align-content: center; padding: calc(var(--top-h) + 12px) 0 20px; }
@media (max-width: 759px) { .film .csw-ph { aspect-ratio: 16 / 7; } .film .csw-b { padding: 18px 18px 20px; gap: 10px; } }
/* the thank-you in the shop's order panel, where every order is put together */
.shop-side .csw-pill { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--yolk-wash); border: 1px solid #f1dca8; color: var(--ink); font-size: 14px; line-height: 1.45; }
.shop-side .csw-pill svg { margin-top: 1px; }

/* ---------- review cards to print (/review-card/): always black on white, eight to an A4 ---------- */
.rcards { background: #fff; color: #000; padding: 16px; }
.rc-note { max-width: 720px; margin: 0 auto 16px; font-size: 15px; color: #444; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0; max-width: 720px; margin: 0 auto; }
.rcard { border: 1px dashed #999; padding: 16px; display: grid; justify-items: center; text-align: center; gap: 6px; break-inside: avoid; }
.rcard img { height: 25px; width: auto; }
.rc-h { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.1; margin-top: 4px; }
.rc-t { font-size: 13px; max-width: 26ch; }
.rcard .qr { width: 132px; height: 132px; }
.rc-u { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
@media print { @page { size: A4; margin: 10mm; } .rcards { padding: 0; } .rc-note { display: none; } .rc-grid { grid-template-columns: 1fr 1fr; max-width: none; } .rcard { height: 66mm; align-content: center; } }

/* ---------- online checkout (assets/shop.js placeOrder → order.php → the Dairy Book) ---------- */
.btn-place { width: 100%; background: var(--green); color: var(--on-dark); }
.btn-place:hover { background: var(--green-2); }
.btn-place[aria-disabled="true"] { opacity: .5; }
.shop-side .btn-place + .send { margin-top: 10px; background: var(--paper); color: var(--ink); border-color: var(--line); }
.shop-side .btn-place[hidden] + .send { background: var(--wa); color: #06301a; border-color: transparent; }
.place-msg { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--yolk-wash); color: var(--ink); font-size: 14px; font-weight: 650; }
.fld-hint { display: block; margin-top: 4px; color: var(--soft); font-size: 13px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-how { border: 0; padding: 0; margin: 0; }
.pay-how legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
/* how to pay: two options, each saying what it means (the farm calls first / confirmed straight away) */
.pay-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 10px 12px; margin-top: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--green-2); background: var(--mint); }
.pay-opt:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pay-opt input { accent-color: var(--green-2); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { display: block; color: var(--soft); font-size: 13px; font-weight: 500; margin-top: 2px; }
.pay-how [data-pay-hint] { margin-top: 8px; color: var(--egg-ink); font-weight: 650; }
/* the M-Pesa request in progress, on the checkout */
.pay-panel { margin: 0 0 10px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14.5px; }
.pay-panel b { display: block; font-size: 16px; }
.pay-panel p { margin: 6px 0 0; }
.pay-panel.ok { background: var(--mint); border-color: var(--green-2); }
.pay-panel.warn { background: var(--yolk-wash); border-color: var(--yolk); }
.pay-panel.bad { background: var(--soil-wash); border-color: var(--soil); }
.pay-wait { display: flex; align-items: center; gap: 8px; color: var(--soft); font-weight: 600; }
.pay-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); animation: paydot 1.2s ease-in-out infinite; }
@keyframes paydot { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pay-dot { animation: none; } }
.pay-acts { display: grid; gap: 8px; margin-top: 12px; }
.pay-acts .btn-alt { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.place-act { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-top: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--green); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.last-order { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--mint); font-size: 14px; }
