/* Ishikaa Farms: one stylesheet for every page.
   The page is a forest-green ground. On it sit two rounded panels: a cream reading sheet
   and a photograph that stays put while the sheet scrolls (on wide screens). */

/* ---------- tokens ---------- */
:root {
  --frame: #1f3a2a;          /* forest green: the ground around the panels */
  --paper: #f5f0e7;          /* warm cream: the reading sheet */
  --surface: #ebe3d5;        /* one tone step on paper: steppers, fields, active rows */
  --sand: #d8c8ad;           /* soft beige field */
  --ink: #1f3a2a;            /* all text */
  --muted: #596344;          /* deep olive: secondary notes only */
  --gold: #8a6a3a;           /* deep muted gold: the one marked figure (the date on the slip) */
  --on-dark: #f5f0e7;
  --on-dark-soft: #cfd6c4;
  --accent: #1f3a2a;         /* the action */
  --accent-ink: #f5f0e7;
  --accent-strong: #2e5440;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.875rem;                                   /* 14px: captions, hints, legal */
  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);      /* 16–18px: running text, buttons */
  --step-lead: clamp(1.5rem, 1.32rem + 0.55vw, 1.875rem);   /* 24–30px: product names, statements */
  --step-head: clamp(2.25rem, 1.75rem + 1.6vw, 3.25rem);    /* 36–52px: section headings */
  --step-display: clamp(2.5rem, 1.45rem + 3.9vw, 4.75rem);  /* 40–76px: the page title */

  --gap: 12px;                         /* panel margins and gutters */
  --pad: clamp(20px, 4.4vw, 68px);     /* padding inside the sheet */
  --radius: 20px;                      /* panels */
  --radius-inner: 12px;                /* pictures inside a panel */
  --section: clamp(88px, 9vw, 152px);  /* space between sections */
  --measure: 46ch;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 1200ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--frame); }
body {
  margin: 0; padding: var(--gap); min-height: 100svh;
  background: var(--frame); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-foot :focus-visible { outline-color: var(--on-dark); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 999px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; hyphens: none; }
.display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.012em; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.01em; }
.lead-name { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; }
.statement { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 500; line-height: 1.25; max-width: 30ch; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
.nums { font-variant-numeric: tabular-nums; }
.measure { max-width: var(--measure); }
.only-wide { display: none; }
@media (min-width: 48em) { .only-wide { display: inline; } }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: var(--step-body); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button svg { width: 20px; height: 20px; flex: none; }
.button-light { background: var(--paper); color: var(--ink); }
.button-small { min-height: 44px; padding: 0 20px; }
.button-wide { width: 100%; }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-color: currentColor;
  text-underline-offset: 0.22em; text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link-quiet { text-decoration-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button-light:hover { background: #fffaf2; }
  .link:hover { text-decoration-color: transparent; }
  .link-quiet:hover { text-decoration-color: currentColor; }
}

/* the quantity control used by every product */
.stepper {
  display: inline-grid; grid-template-columns: 44px 3.2ch 44px; align-items: center;
  background: var(--surface); border-radius: 999px; flex: none;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; line-height: 1; font-weight: 500;
  display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.stepper button:active { transform: scale(0.88); }
.stepper input {
  width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center;
  font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline-offset: 0; }
.stepper.has-qty { background: var(--ink); color: var(--paper); }
.stepper.has-qty :focus-visible { outline-color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .stepper button:hover { background: rgba(31, 58, 42, 0.1); }
  .stepper.has-qty button:hover { background: rgba(245, 240, 231, 0.16); }
}
.is-bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.28); } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* ---------- the frame: header, sheet, stage photograph ---------- */
.stage {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "photo" "sheet";
}
.paper { display: contents; }
.site-head {
  grid-area: head; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 4px calc(var(--pad) - 8px) 16px; color: var(--on-dark);
}
.menu-button {
  justify-self: start; min-height: 44px; padding: 0 8px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: center; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); flex: none; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.order-link { justify-self: end; gap: 8px; }
.order-link .count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: var(--step-small); font-variant-numeric: tabular-nums;
}
.site-head .order-link { background: var(--paper); color: var(--ink); padding: 0 18px; }
@media (max-width: 400px) {
  .brand img { display: none; }
}

.stage-photo {
  grid-area: photo; position: relative; overflow: hidden;
  height: clamp(250px, 44svh, 520px); border-radius: var(--radius); background: var(--sand);
}
.stage-photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.stage-photo > img.is-on { opacity: 1; }
.stage-photo > img.plate { object-fit: contain; padding: 7% 9% 17%; background: var(--sand); }
.stage-bar { display: none; }
.stage-bar [data-stage-caption] { transition: opacity var(--t-ui) ease; }
.stage-bar .is-swapping { opacity: 0; }
.stage-bar b { font-weight: 600; white-space: nowrap; }

.sheet {
  grid-area: sheet; position: relative; z-index: 1; min-width: 0;
  margin-top: -44px; padding: 8px var(--pad) var(--section);
  background: var(--paper); border-radius: var(--radius);
}
.sheet > section { padding-top: var(--section); }
.sheet > section.hero { padding-top: 36px; }

@media (min-width: 1080px) {
  .stage { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-areas: "paper photo"; column-gap: var(--gap); }
  .paper { display: block; grid-area: paper; min-width: 0; background: var(--paper); border-radius: var(--radius); }
  .site-head { padding: 24px var(--pad) 8px; color: var(--ink); }
  .site-head .order-link { background: var(--accent); color: var(--accent-ink); }
  .site-head .order-link .count { background: var(--paper); color: var(--ink); }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: var(--step-lead); }
  .sheet { margin-top: 0; padding-top: 0; background: none; border-radius: 0; }
  .sheet > section.hero { padding-top: clamp(48px, 9vh, 104px); }
  .stage-photo { position: sticky; top: var(--gap); align-self: start; height: calc(100svh - 2 * var(--gap)); }
  .stage-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 56px; max-width: none; padding: 10px var(--pad); background: var(--paper); color: var(--ink);
    font-size: var(--step-small); line-height: 1.35;
  }
  .m-only { display: none !important; }
}
@media (hover: hover) and (pointer: fine) {
  .menu-button { transition: text-decoration-color var(--t-hover) ease; }
  .menu-button:hover { text-decoration-color: transparent; }
}

/* the full-screen menu */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.menu::backdrop { background: rgba(31, 58, 42, 0.6); }
.menu-inner { display: flex; flex-direction: column; min-height: 100%; padding: 20px clamp(20px, 6vw, 64px) 40px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .brand span { font-size: var(--step-lead); }
.menu-close { min-height: 44px; padding: 0 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; }
.menu-links { margin: 8vh 0 40px; display: grid; gap: 10px; }
.menu-links a { font-family: var(--font-display); font-size: var(--step-head); line-height: 1.12; text-decoration: none; }
.menu-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.05em; }
.menu-contact { margin-top: auto; display: grid; gap: 8px; }
.menu-contact a { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-links a { animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
}

/* ---------- hero ---------- */
.hero h1 { max-width: 15ch; }
.hero h1.lines { max-width: none; }
.lines .line > span { white-space: nowrap; }
.hero .lede { margin-top: 24px; max-width: 44ch; font-size: max(1.125rem, var(--step-body)); }
.hero-centred { text-align: center; }
.hero-centred h1, .hero-centred .lede { margin-inline: auto; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 32px; max-width: 560px; }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { font-weight: 600; line-height: 1.4; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* the four doors on the home page */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 44px; text-align: left; }
.door { display: block; text-decoration: none; }
.door-pic { display: block; overflow: hidden; border-radius: var(--radius-inner); aspect-ratio: 4 / 3; background: var(--sand); }
.doors-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.door-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.door-name { display: block; margin-top: 14px; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.08; }
.door-line { display: block; margin-top: 6px; font-size: var(--step-small); line-height: 1.5; }
.door-who { display: block; margin-top: 6px; font-size: var(--step-small); font-weight: 600; }
.door-name span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.16em; text-decoration-thickness: 0.06em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .door:hover .door-pic img { transform: scale(1.045); }
  .door:hover .door-name span { text-decoration-color: currentColor; }
}
.door:active .door-pic img { transform: scale(1.02); }
@media (max-width: 560px) {
  .doors { gap: 22px 12px; margin-top: 32px; }
  .door-pic { aspect-ratio: 1 / 1; }
  .door-name { font-size: 1.5rem; margin-top: 10px; }
}

/* ---------- section heads ---------- */
.sec-head { display: grid; gap: 18px; margin-bottom: 36px; }
.sec-head p { max-width: 50ch; }
.split-head { display: grid; gap: 18px 40px; align-items: end; margin-bottom: 36px; }
@media (min-width: 720px) { .split-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* inline pictures in the sheet */
.pic { margin: 0; }
.pic img { width: 100%; border-radius: var(--radius-inner); object-fit: cover; background: var(--sand); }
.pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.pic-wide img { aspect-ratio: 16 / 9; }
.pic-tall img { aspect-ratio: 4 / 5; }

/* ---------- the active list (fresh mushrooms) ---------- */
.rows { display: grid; gap: 8px; }
.row {
  display: grid; gap: 12px; padding: 22px 20px; margin-inline: -20px; border-radius: var(--radius-inner);
  transition: background-color var(--t-ui) ease;
}
.row.is-active { background: var(--surface); }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.row-head h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.row-latin { font-family: var(--font-display); font-style: italic; font-size: var(--step-body); color: var(--muted); }
.row-note { max-width: 52ch; }
.row-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-inner); background: var(--sand); }
.row-thumb.plate { object-fit: contain; padding: 6px; aspect-ratio: 4 / 3; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #3f7a4f; }
.status-off { color: var(--muted); }
.status-off i { background: transparent; border: 2px solid var(--muted); }
.packs { display: grid; gap: 10px; margin-top: 4px; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pack-size { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 720px) {
  .packs { grid-template-columns: repeat(3, max-content); gap: 12px 32px; }
  .pack { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.row-hint { font-size: var(--step-small); font-weight: 600; min-height: 1.5em; }

/* ---------- product blocks (kits, bags) ---------- */
.products { display: grid; gap: clamp(96px, 9vw, 136px); }
.product { display: grid; gap: 20px; scroll-margin-top: 40px; }
.product-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.product-top h3 { font-size: var(--step-head); line-height: 1.02; }
.product-tag { font-size: var(--step-small); font-weight: 600; }
.product .summary { max-width: 52ch; }
.inbox { display: grid; gap: 4px; }
.inbox h4, .split-lists h4, .choose h4 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 600; }
.ticks { display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-50%); }
.split-lists { display: grid; gap: 20px 32px; }
@media (min-width: 640px) { .split-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choose { display: grid; gap: 10px; padding: 20px; margin-inline: -20px; border-radius: var(--radius-inner); background: var(--surface); }
.choose-rows { display: grid; gap: 8px; }
.choose-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.choose-row span { font-weight: 500; }
.choose .stepper { background: var(--paper); }
.choose .stepper.has-qty { background: var(--ink); }
.product-note { font-size: var(--step-small); color: var(--muted); max-width: 52ch; }
.product-pic { display: grid; gap: 20px; }
@media (min-width: 1080px) { .product-pic .m-pic { display: none; } }

/* single items: a compact list */
.items { display: grid; gap: 6px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.item span { font-weight: 500; }

/* ---------- the slip (how an order goes, where you start) ---------- */
.slip-sec { display: grid; gap: 28px; }
.slip-ground { padding: clamp(20px, 4vw, 44px); margin-inline: calc(var(--pad) * -0.5); border-radius: var(--radius); background: var(--sand); }
.slip {
  max-width: 480px; margin-inline: auto; padding: 26px 26px 46px; background: var(--paper);
  font-variant-numeric: tabular-nums; font-size: var(--step-body);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 96.667% calc(100% - 10px), 93.333% 100%, 90% calc(100% - 10px), 86.667% 100%, 83.333% calc(100% - 10px), 80% 100%, 76.667% calc(100% - 10px), 73.333% 100%, 70% calc(100% - 10px), 66.667% 100%, 63.333% calc(100% - 10px), 60% 100%, 56.667% calc(100% - 10px), 53.333% 100%, 50% calc(100% - 10px), 46.667% 100%, 43.333% calc(100% - 10px), 40% 100%, 36.667% calc(100% - 10px), 33.333% 100%, 30% calc(100% - 10px), 26.667% 100%, 23.333% calc(100% - 10px), 20% 100%, 16.667% calc(100% - 10px), 13.333% 100%, 10% calc(100% - 10px), 6.667% 100%, 3.333% calc(100% - 10px), 0% 100%);
}
.slip-title { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.slip-sub { margin-top: 4px; font-size: var(--step-small); color: var(--muted); }
.slip-group + .slip-group, .slip-title + .slip-group, .slip-sub + .slip-group { margin-top: 28px; }
.slip-group h4 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 600; margin-bottom: 6px; }
.slip-rows { display: grid; gap: 2px; }
.slip-rows li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.slip-rows li > span:first-child { flex: 0 1 auto; }
.slip-rows .dots {
  flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; transform: translateY(3px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Ccircle cx='2' cy='2' r='1.6' fill='%23596344'/%3E%3C/svg%3E") repeat-x left center / 8px 4px;
}
.slip-rows li > span:last-child:not(:first-child) { flex: none; font-weight: 600; text-align: right; }
.slip-end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  margin: 30px -26px 0; padding: 12px 26px; min-height: 44px; background: var(--ink); color: var(--paper); font-weight: 600;
}
.slip-date { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.1; color: #d8b878; }
.slip-empty { color: var(--muted); font-size: var(--step-small); }
.slip-group.is-swap { animation: slip-in 420ms var(--ease-out); }
@keyframes slip-in { from { opacity: 0.2; transform: translateY(6px); } }
@media (max-width: 520px) {
  .slip-ground { margin-inline: calc(var(--pad) * -0.6); padding: 16px 12px; }
  .slip { padding: 22px 18px 42px; }
  .slip-end { margin-inline: -18px; padding-inline: 18px; }
}

/* choose where you start: the radio pills */
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pick label { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); font-weight: 600; transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.pick input:checked + span { background: var(--ink); color: var(--paper); }
.pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.pick label:active span { transform: scale(0.97); }
.join-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- full-colour panel inside the sheet ---------- */
.field-panel {
  display: grid; gap: 28px; padding: clamp(28px, 4.5vw, 56px); margin-inline: calc(var(--pad) * -0.5);
  border-radius: var(--radius); background: var(--frame); color: var(--on-dark);
}
.field-panel .head { max-width: 16ch; }
.field-panel p { max-width: 46ch; }
.field-panel .head + p { margin-top: 18px; }
.field-panel .ticks li { color: var(--on-dark); }
.field-panel .button { background: var(--paper); color: var(--ink); justify-self: start; }
@media (hover: hover) and (pointer: fine) { .field-panel .button:hover { background: #fffaf2; } }
@media (min-width: 760px) {
  .field-panel.with-pic { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}
.field-panel img { border-radius: var(--radius-inner); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 559.98px) { .field-panel img { aspect-ratio: 4 / 3; } }

/* ---------- reasons (big lines with one sentence each) ---------- */
.reasons { display: grid; gap: 30px; }
.reasons li { display: grid; gap: 6px; }
.reasons h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.12; }
.reasons p { max-width: 52ch; }
@media (min-width: 760px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
}

/* facts in two columns (cooking, nutrition) */
.duo { display: grid; gap: 28px 40px; }
@media (min-width: 640px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.duo h3 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 600; margin-bottom: 10px; }
.duo dl { display: grid; gap: 10px; }
.duo dl div { display: grid; gap: 0; }
.duo dt { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.duo ul { display: grid; gap: 6px; list-style: none; padding: 0; }
.duo ul li { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }

/* the letter */
.letter { max-width: 560px; margin-inline: auto; }
.letter-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); }
.letter-body { margin-top: 24px; display: grid; gap: 1em; }
.letter-body p + p { margin-top: 0; }
.letter mark { background: var(--sand); color: inherit; padding: 0.05em 0.25em; border-radius: 4px; }
.sign { margin-top: 28px; }
.sign strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--step-lead); line-height: 1.1; }
.sign span { font-size: var(--step-small); color: var(--muted); }

/* cross-links at the end of a listing page */
.next { display: grid; gap: 18px; align-items: center; padding: clamp(22px, 3vw, 32px); margin-inline: calc(var(--pad) * -0.5); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 640px) { .next { grid-template-columns: 160px minmax(0, 1fr); } }
.next img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-inner); }
.next h2 { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.next p { margin-top: 6px; }
.next .link { display: inline-block; margin-top: 10px; }

/* ---------- the basket bar ---------- */
.basket-bar {
  position: sticky; bottom: var(--gap); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 40px calc(var(--pad) * -0.5) 0; padding: 10px 10px 10px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}
.basket-bar p { font-weight: 600; line-height: 1.3; font-size: var(--step-small); }
.basket-bar p span { display: block; font-weight: 400; color: var(--on-dark-soft); }
.basket-bar .button { background: var(--paper); color: var(--ink); min-height: 44px; padding: 0 20px; }
.basket-bar.is-in { animation: bar-in 420ms var(--ease-out); }
@keyframes bar-in { from { transform: translateY(24px); opacity: 0; } }
@media (hover: hover) and (pointer: fine) { .basket-bar .button:hover { background: #fffaf2; } }

/* ---------- order page ---------- */
.groups { display: grid; gap: 12px; }
.group { border-radius: var(--radius-inner); background: var(--surface); }
.group-head {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%;
  padding: 12px 18px 12px 12px; text-align: left; border-radius: var(--radius-inner); transition: background-color var(--t-hover) ease;
}
.group-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.group-name { display: block; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.05; }
.group-count { display: block; font-family: var(--font-text); font-size: var(--step-small); font-weight: 500; }
.group-toggle { font-size: var(--step-small); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) { .group-head:hover { background: #e3d9c8; } }
.group-body { padding: 4px 18px 20px; display: grid; gap: 6px; }
.group-body .row { margin-inline: 0; padding: 14px 0; }
.group-body .stepper { background: var(--paper); }
.group-body .stepper.has-qty { background: var(--ink); }
.group-body .more { font-size: var(--step-small); }
.o-row { display: grid; gap: 8px; padding: 12px 0; }
.o-row + .o-row { margin-top: 2px; }
.o-row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.o-row-head strong { font-weight: 600; }
.o-lines { display: grid; gap: 8px; }
.o-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.form-block { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form-block legend { padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-size: var(--step-head); line-height: 1.02; font-weight: 500; }
.form-block .sub { font-weight: 600; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); font-weight: 500; transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.chips input:checked + span { background: var(--ink); color: var(--paper); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.chips label:active span { transform: scale(0.97); }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; }
.field small, .field .hint { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--radius-inner);
  background: var(--surface); font-size: max(16px, 1rem);
  transition: background-color var(--t-hover) ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { background: #e3d9c8; }
.field input::placeholder, .field textarea::placeholder { color: #6e7360; }
.form-hint { max-width: 52ch; }

.summary { display: grid; gap: 16px; }
.summary h2 { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }
.sum-items { display: grid; gap: 10px; }
.sum-items li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-items li > span { display: grid; }
.sum-items small { font-size: var(--step-small); color: var(--muted); }
.sum-items em { font-style: normal; font-weight: 600; font-size: var(--step-small); white-space: nowrap; }
.sum-items strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-items .is-new { animation: rise 360ms var(--ease-out); }
.sum-items li.sum-empty { display: block; color: var(--ink); }
.sum-total { font-weight: 600; }
.sum-meta { display: grid; gap: 8px; font-size: var(--step-small); }
.sum-meta div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.sum-meta dt { color: var(--muted); }
.sum-meta dd { font-weight: 600; overflow-wrap: anywhere; }
.sum-error { padding: 12px 14px; border-radius: var(--radius-inner); background: #f3dcd2; color: #6b2414; font-weight: 600; font-size: var(--step-small); }
.sum-note { font-size: var(--step-small); color: var(--muted); }
.summary-card {
  position: absolute; z-index: 2; top: 24px; right: 24px; left: 24px; max-width: 420px; margin-left: auto;
  max-height: calc(100% - 48px); overflow: auto; padding: 28px; border-radius: var(--radius-inner);
  background: var(--paper); color: var(--ink);
}
.summary-card .button { position: sticky; bottom: 0; }
.summary-inline { padding: 24px; margin-inline: calc(var(--pad) * -0.5); border-radius: var(--radius); background: var(--surface); }
@media (max-width: 1079.98px) { .summary-card { display: none; } }
@media (min-width: 1080px) { .summary-inline { display: none; } }

/* ---------- contact: a card on a full-bleed photograph ---------- */
.visit { position: relative; margin-top: var(--gap); border-radius: var(--radius); overflow: hidden; min-height: min(86svh, 820px); background: var(--sand); }
.visit > .visit-pics { position: absolute; inset: 0; }
.visit-pics > img { object-position: 30% 50%; }
.visit-card {
  position: relative; z-index: 1; display: grid; gap: 14px; width: min(420px, calc(100% - 32px));
  margin: 60px 60px 60px auto; padding: 32px 32px 0; border-radius: var(--radius-inner); background: var(--paper); overflow: hidden;
}
.visit-card h2 { font-size: var(--step-head); line-height: 1.02; }
.visit-card dl { display: grid; gap: 10px; }
.visit-card dl div { display: flex; justify-content: space-between; gap: 16px; }
.visit-card dt { color: var(--muted); }
.visit-card dd { font-weight: 600; text-align: right; }
.visit-card .button { margin: 12px -32px 0; border-radius: 0; min-height: 56px; }
@media (max-width: 759.98px) {
  .visit { min-height: 0; display: grid; overflow: visible; background: transparent; }
  .visit > .visit-pics { position: relative; height: 70svh; max-height: 560px; border-radius: var(--radius); }
  .visit-card { margin: -80px 16px 0; width: auto; padding: 24px 24px 0; }
  .visit-card .button { margin-inline: -24px; }
}

/* ---------- footer: photograph half, menu half ---------- */
.site-foot { display: grid; gap: var(--gap); margin-top: var(--gap); color: var(--on-dark); }
.foot-pic { border-radius: var(--radius); overflow: hidden; min-height: 300px; background: var(--sand); }
.foot-pic img { width: 100%; height: 100%; object-fit: cover; }
.foot-menu { display: grid; align-content: start; gap: 40px; padding: 28px var(--pad) 8px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); }
.foot-links { display: grid; gap: 4px; }
.foot-links a {
  font-family: var(--font-display); font-size: var(--step-head); line-height: 1.12; font-weight: 500;
  text-decoration: none; display: inline-block; transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease;
}
.foot-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 0.05em; }
@media (hover: hover) and (pointer: fine) {
  .foot-links:hover a { color: var(--on-dark-soft); }
  .foot-links a:hover { color: var(--on-dark); transform: translateX(12px); }
}
.foot-blocks { display: grid; gap: 24px 40px; font-size: var(--step-small); }
@media (min-width: 560px) { .foot-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-blocks h2 { font-family: var(--font-text); font-size: var(--step-small); font-weight: 600; margin-bottom: 6px; }
.foot-blocks p { max-width: none; }
.foot-blocks a { font-weight: 600; }
.foot-legal { font-size: var(--step-small); color: var(--on-dark-soft); max-width: 56ch; }
.foot-legal a { color: inherit; }
@media (min-width: 900px) {
  .site-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(80svh, 620px); }
  .foot-menu { grid-template-rows: auto auto auto 1fr; }
  .foot-menu { padding: 72px var(--pad) 32px; gap: 48px; }
  .foot-legal { align-self: end; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07); } }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines .line > span { animation: line-up 900ms var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js [data-load] { animation: rise 640ms var(--ease-out) both; animation-delay: var(--d, 420ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .shutter[data-reveal] img { transform: scale(1.1); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .stage-photo > img.is-on:not(.plate) { animation: drift 26s var(--ease-soft) both alternate infinite; }
  .stage-photo > img { transition: opacity 1.6s ease; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-leave 200ms var(--ease-exit) both; }
  ::view-transition-new(root) { animation: vt-arrive 420ms var(--ease-out) 40ms both; }
  ::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: var(--ease-in-out); }
  ::view-transition-old(*.picture), ::view-transition-new(*.picture) { height: 100%; object-fit: cover; }
}
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  .stage-photo > img { transition: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- print-free odds and ends ---------- */
noscript p { padding: 16px 20px; border-radius: var(--radius-inner); background: var(--surface); }

/* ---------- order page and small layout pieces ---------- */
.order-form > .form-sec { padding-top: clamp(92px, 8vw, 120px); }
.order-form > .form-sec:first-child { padding-top: clamp(56px, 6vw, 96px); }
.order-form .head { margin-bottom: 0; }
.sum-sent { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border-radius: var(--radius-inner); background: var(--sand); font-size: var(--step-small); }
.sum-sent .link { font-size: var(--step-small); }
.split-lists .choose { margin-inline: 0; }
.check.cocopeat { margin-top: 14px; }
.next p + p { margin-top: 10px; }
.next .link + .link { margin-left: 18px; }
.pic + .slip-ground { margin-top: 8px; }
.sec-head + .reasons { margin-top: 8px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { background: #f3dcd2; }
.doors-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 32px; }
.empty-doors > p { margin-bottom: 18px; }
@media (max-width: 560px) {
  .doors-3 { gap: 12px 10px; }
  .doors-3 .door-name { font-size: var(--step-body); }
}
@media (max-width: 1079.98px) {
  .stage-short .stage-photo { height: clamp(200px, 30svh, 340px); }
}

/* the order page cart */
.cart { display: grid; margin: 4px 0 28px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.cart-line > span { display: grid; min-width: 0; }
.cart-line b { font-weight: 600; }
.cart-line small { font-size: var(--step-small); color: var(--muted); }
.check.cart-line { justify-content: flex-start; }
.order-form > .summary-inline { padding-top: 28px; margin-top: 72px; }
.pic video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-inner); background: var(--sand); }

/* ---------- pictures that take turns ---------- */
.rot { position: relative; display: block; overflow: hidden; background: var(--sand); }
.rot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.rot > img.is-on { opacity: 1; }
.rot > img.plate { object-fit: contain; padding: 6px; background: var(--sand); }
.door-pic.rot > img { transition: opacity 1.4s ease, transform 700ms var(--ease-out); }
span.row-thumb { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .rot[data-rotate] > img.is-on:not(.plate) { animation: settle 6s var(--ease-soft) both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (hover: hover) and (pointer: fine) {
  .door:hover .door-pic.rot > img { transform: scale(1.045); animation: none; }
}
.rot-toggle { margin-top: 18px; font-size: var(--step-small); font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; min-height: 44px; }
.hero-centred .rot-toggle { display: block; margin-inline: auto; }
.door-soon { display: inline-block; margin-left: 6px; font-family: var(--font-text); font-size: var(--step-small); font-weight: 600; color: var(--muted); vertical-align: middle; }

/* raw materials */
.item { align-items: flex-start; padding: 14px 0; }
.item-name { display: grid; gap: 2px; min-width: 0; }
.item-name b { font-weight: 600; }
.item-name small { font-size: var(--step-small); color: var(--muted); max-width: 46ch; }
.item-multi { display: grid; gap: 10px; justify-content: stretch; }
.item-vars { display: grid; gap: 8px; }
.items-pic { margin-bottom: 28px; }

/* mushroom powder */
.powder-panel { display: grid; gap: 24px; padding: clamp(24px, 4vw, 44px); margin-inline: calc(var(--pad) * -0.5); border-radius: var(--radius); background: var(--sand); }
.powder-panel .rot { aspect-ratio: 16 / 9; border-radius: var(--radius-inner); order: -1; }
.powder { display: grid; gap: 10px; }
.powder h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.1; }

/* reviews */
.reviews { display: grid; gap: 28px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review { margin: 0; display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-inner); background: var(--surface); }
.review img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.25; }
.review figcaption { font-size: var(--step-small); display: grid; }
.review figcaption span { color: var(--muted); }
.foot-toggle { display: inline; margin: 0 0 0 4px; min-height: 0; color: inherit; }
.powder-panel .status-off { color: var(--ink); }
.powder-panel .status-off i { border-color: var(--ink); }
.summary-inline .sum-note { font-size: var(--step-body); color: var(--ink); }
@media (min-width: 900px) { .foot-legal { max-width: none; } }

/* FSSAI badge: pinned to the photo panel, so it stays in view on wide screens */
.fssai-badge {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  border-radius: var(--radius-inner); background: #fff; color: var(--ink); text-decoration: none;
  font-size: var(--step-small); line-height: 1.3;
  transition: transform var(--t-press) var(--ease-out);
}
.fssai-badge img { width: 64px; height: auto; flex: none; }
.fssai-badge > span { display: grid; }
.fssai-badge b { font-weight: 600; }
.fssai-badge:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .fssai-badge:hover b { text-decoration: underline; text-underline-offset: 0.2em; } }
@media (min-width: 1080px) { .fssai-badge { top: 18px; left: 18px; } .fssai-badge img { width: 76px; } }
.stage-photo .summary-card { top: 96px; max-height: calc(100% - 120px); }
.foot-fssai { width: 88px; height: auto; margin-bottom: 10px; padding: 6px 8px; border-radius: 8px; background: #fff; }

/* delivery and terms */
.terms { margin-top: 44px; padding: clamp(22px, 3vw, 32px); margin-inline: calc(var(--pad) * -0.5); border-radius: var(--radius); background: var(--surface); }
.terms h3 { font-family: var(--font-text); font-size: var(--step-body); font-weight: 600; margin-bottom: 12px; }
.credits-list { display: grid; gap: 18px; }
.credits-list { gap: 32px; }
.credit { display: grid; gap: 14px; }
@media (min-width: 640px) { .credit { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; } }
.credit img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-inner); background: var(--sand); }
.credit p { line-height: 1.6; }
.credit p { font-size: var(--step-body); }
