/*
 * Market stall — a storefront theme for Farm to Fork farms selling to households.
 * The farm's stall at the market as a shop: the name painted on the sign board, the crops in a big grid of
 * pictures each with its price on a painted sign, the stall's four paints in solid blocks down the page.
 * Colours and lettering come from the theme settings as :root variables printed by the layout (--ground, --paper,
 * --surface, --ink, --muted, --accent, --field, --band-1..4, --font-display, --font-text …).
 * Square corners everywhere, one chunky button shape, no rules, no shadows at rest, no gradients.
 * The paints: .p0 .p1 .p2 .p3 set --pt/--pt-ink (the block) and --alt/--alt-ink (a contrasting block beside it).
 */

:root {
  --step-small: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --step-ui: 1rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.125rem, 1.2rem + 3.6vw, 4.5rem);
  --step-sign: clamp(1.5rem, 1.15rem + 1vw, 2.125rem);
  --margin: clamp(16px, 2.4vw, 36px);
  --gap: 8px;
  --gap-l: clamp(24px, 3.4vw, 56px);
  --section: clamp(64px, 8.5vw, 136px);
  --max: 1560px;
  --top-h: 68px;
  --control: 52px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --ring: var(--ink);
  --btn: var(--accent);
  --btn-ink: var(--accent-ink);
  --error: #a3201a;
  --glyph: 0.6;
}
/* the average width of a display letter, so the farm's name is sized to fit two lines in each lettering */
.l-signwriter { --glyph: 0.74; }
.l-chalk { --glyph: 0.62; }

/* ------------------------------------------------------------------ paints */

.p0 { --pt: var(--band-1); --pt-ink: var(--band-1-ink); --alt: var(--band-3); --alt-ink: var(--band-3-ink); }
.p1 { --pt: var(--band-2); --pt-ink: var(--band-2-ink); --alt: var(--band-4); --alt-ink: var(--band-4-ink); }
.p2 { --pt: var(--band-3); --pt-ink: var(--band-3-ink); --alt: var(--band-2); --alt-ink: var(--band-2-ink); }
.p3 { --pt: var(--band-4); --pt-ink: var(--band-4-ink); --alt: var(--band-1); --alt-ink: var(--band-1-ink); }
.is-paper { --pt: var(--paper); --pt-ink: var(--ink); }

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
svg.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: square; stroke-linejoin: miter; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  font-size: var(--step-head);
}
h3, h4 { font-weight: 700; font-size: var(--step-body); line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--ink); color: var(--band-2); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
input, textarea { caret-color: currentColor; }
.num { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 16px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
html { scrollbar-color: var(--ink) var(--surface); }

/* ------------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control); padding: 0 24px;
  border: 0; border-radius: 0;
  background: var(--btn); color: var(--btn-ink);
  font-family: var(--font-text); font-weight: 700; font-size: var(--step-ui); line-height: 1.1; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .icon { transform: translateX(3px); } }
.btn.ink { --btn: var(--ink); --btn-ink: var(--paper); }
.btn.on-paint { --btn: var(--paper); --btn-ink: var(--ink); }
.btn.quiet { --btn: var(--surface); --btn-ink: var(--ink); }
.btn-big { min-height: 60px; padding: 0 28px; font-size: var(--step-body); }
.btn-wide { width: 100%; }
.btn[disabled], .btn.is-busy { cursor: progress; }
.btn.is-busy { opacity: 0.8; }
.btn.is-off { --btn: var(--surface); --btn-ink: var(--muted); cursor: default; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
.text-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; color: inherit; font-size: var(--step-small); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: transform var(--dur-press) var(--ease-out); }
.icon-btn:active { transform: scale(0.94); }

.input, .select, .textarea {
  display: block; width: 100%;
  min-height: var(--control); padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font-size: var(--step-ui); line-height: 1.3;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.textarea { min-height: 112px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer; max-width: 100%; text-overflow: ellipsis; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label, .label { font-weight: 700; font-size: var(--step-ui); }
.hint { font-size: var(--step-small); color: var(--muted); margin: 0; }
.field-error { margin: 6px 0 0; font-size: var(--step-small); font-weight: 700; color: var(--error); }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-top: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.notice { background: var(--band-2); color: var(--band-2-ink); padding: 16px 18px; margin: 0 0 20px; font-weight: 500; }
.notice.is-error { background: #fbe0db; color: #5e130f; }
.notice p:last-child { margin: 0; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice a { font-weight: 700; }

.stepper { display: inline-grid; grid-template-columns: 48px 56px 48px; height: 48px; background: var(--ink); color: var(--paper); }
.stepper .step { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: inherit; transition: transform var(--dur-press) var(--ease-out); }
.stepper .step:active { transform: scale(0.86); }
.stepper .qty { width: 56px; border: 0; background: var(--paper); color: var(--ink); text-align: center; font-weight: 700; font-size: var(--step-body); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.stepper .qty::-webkit-outer-spin-button, .stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .qty:focus-visible { outline: 3px solid var(--band-2); outline-offset: -3px; }
.stepper .step:focus-visible { outline: 3px solid var(--band-2); outline-offset: -3px; }

.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; min-width: 48px; padding: 0 14px;
  border: 0; border-radius: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-weight: 700; font-size: var(--step-ui); line-height: 1; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.add-btn:active { transform: scale(0.94); }
.add-btn.is-added { background: var(--band-3); color: var(--band-3-ink); }
.add-btn .icon { transition: transform 260ms var(--ease-out); }
.add-btn.is-added .icon { transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) { .add-btn:hover { background: var(--ink); color: var(--paper); } }

/* ------------------------------------------------------------------ announcement and the sign bar */

.announce { background: var(--ink); color: var(--paper); font-size: var(--step-small); font-weight: 700; --ring: var(--paper); }
.announce .wrap { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; padding-block: 6px; }
.announce p { margin: 0; }
.announce a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 32px; }
@media (hover: hover) and (pointer: fine) { .announce a:hover { text-decoration: underline; } }

.top {
  position: sticky; top: 0; z-index: 40;
  --hd-bg: var(--field); --hd-ink: var(--field-ink);
  background: var(--hd-bg); color: var(--hd-ink); --ring: var(--hd-ink);
  transition: background-color 300ms ease, color 300ms ease;
}
.top-row { display: flex; align-items: center; gap: 12px; min-height: var(--top-h); }
.wordmark {
  flex: 0 1 auto; min-width: 0; margin-right: auto;
  text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem); line-height: 0.92; padding: 6px 0;
  overflow-wrap: anywhere;
}
.wordmark img { width: var(--logo-w, 120px); max-width: 44vw; height: auto; }
.top-nav { display: none; }
.top-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.top-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: var(--step-ui); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.top-links a[aria-current="page"] { background: var(--hd-ink); color: var(--hd-bg); }
@media (hover: hover) and (pointer: fine) { .top-links a:not([aria-current]):hover { text-decoration: underline; text-underline-offset: 0.3em; } }
.top-tools { display: flex; align-items: center; gap: 2px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 8px; text-decoration: none; font-weight: 700; font-size: var(--step-ui); }
.tool-account span, .tool-label { display: none; }
.bag-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; background: var(--hd-ink); color: var(--hd-bg); font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform 260ms var(--ease-out), background-color 300ms ease, color 300ms ease; }
.bag-count.is-bumped { transform: scale(1.3); }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: none; font-weight: 700; cursor: pointer; color: inherit; }
.menu-toggle span { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; padding-right: 12px; }
.secure { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--step-ui); }
.minimal .top-tools { gap: 16px; }
.minimal .wordmark { margin-right: auto; }
@media (min-width: 1000px) {
  .top-nav { display: block; flex: 1 1 auto; }
  .wordmark { margin-right: 24px; max-width: 34vw; }
  .menu-toggle { display: none; }
  .tool-account span, .tool-label { display: inline; }
  .tool { padding: 0 10px; }
}
@media (max-width: 999px) { .back-link span { display: none; } }
@media (max-width: 420px) { .tool-search { display: none; } }

.menu-sheet {
  position: fixed; inset: var(--top-h) 0 0; z-index: 39; overflow-y: auto;
  background: var(--ink); color: var(--paper); --ring: var(--paper);
  transform: translateY(-8px); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.menu-sheet.is-open { transform: none; opacity: 1; }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-sheet li { background: var(--pt); color: var(--pt-ink); }
.menu-sheet a { display: block; padding: 18px var(--margin); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(2rem, 9vw, 3rem); line-height: 1; text-decoration: none; }
.menu-sheet a:focus-visible { outline-color: var(--pt-ink); outline-offset: -6px; }
body.menu-open { overflow: hidden; }
body.menu-open .top { position: fixed; left: 0; right: 0; top: 0; --hd-bg: var(--ink) !important; --hd-ink: var(--paper) !important; }

/* ------------------------------------------------------------------ section scaffolding */

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-head h2 { max-width: 22ch; }
.sec-text { max-width: 40ch; margin: 0; font-size: var(--step-lead); line-height: 1.35; }
.sec-title { font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); margin: 0 0 24px; }
.prose { max-width: 66ch; }
.prose p, .prose li { line-height: 1.6; }
.prose h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); margin: 1.4em 0 0.5em; }
.prose h3 { font-size: var(--step-lead); margin: 1.2em 0 0.4em; }
.prose img { margin: 1.5em 0; }
.prose a { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.2em; }
.pre { white-space: pre-line; }

/* the coloured signs a stall hangs over each heap (collections) */
.hang {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  min-height: 104px; padding: 16px 18px 18px;
  background: var(--pt, var(--ink)); color: var(--pt-ink, var(--paper)); --ring: var(--pt-ink, var(--paper));
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: clamp(1.375rem, 1rem + 1.1vw, 2.125rem); line-height: 0.95; text-decoration: none;
  transition: transform var(--dur-press) var(--ease-out);
}
.hang::after {
  content: ""; flex: none; align-self: flex-end; width: 22px; height: 22px; margin-bottom: 0.1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 18 18 6M8 6h10v10' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 18 18 6M8 6h10v10' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'/></svg>") center / contain no-repeat;
  transition: transform 220ms var(--ease-out);
}
.hang:active { transform: scale(0.98); }
.hang:focus-visible { outline-offset: -6px; }
.hang.ink { --pt: var(--ink); --pt-ink: var(--paper); }
@media (hover: hover) and (pointer: fine) { .hang:hover::after { transform: translate(4px, -4px); } .hang:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; } }
.hang-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--gap); }
.hang-row > li { display: grid; }

/* ------------------------------------------------------------------ the stall front (hero) */

.hero { background: var(--field); color: var(--field-ink); --ring: var(--field-ink); overflow: clip; }
.hero-grid { display: grid; gap: 40px; padding-block: clamp(20px, 3.4vw, 48px) clamp(40px, 5.5vw, 88px); align-items: center; }
.hero-title {
  font-size: min(17vw, calc(92vw / (var(--fit) * var(--glyph))));
  line-height: var(--display-leading); max-width: none;
}
.hero-sentence { margin: clamp(20px, 2.4vw, 32px) 0 0; max-width: 38ch; font-size: var(--step-lead); line-height: 1.35; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(24px, 3vw, 40px); }
.hero-note { margin: 0; max-width: 36ch; font-size: var(--step-ui); }
.hero-pic { position: relative; margin: 0; justify-self: center; width: min(100%, 560px); transform: rotate(2.5deg); }
.hero-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--band-3); }
.hero-pic figcaption { position: absolute; left: -10px; bottom: 18px; max-width: 80%; padding: 8px 12px; background: var(--band-2); color: var(--band-2-ink); font-size: var(--step-small); font-weight: 700; transform: rotate(-2.5deg); }
.hero-signs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.hero-signs .hang { min-height: clamp(120px, 14vw, 200px); }
.hero-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-row .hang { min-height: clamp(88px, 9vw, 132px); }
@media (min-width: 700px) { .hero-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
@media (min-width: 1000px) {
  .hero.has-pic .hero-grid, .hero.has-signs .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); }
  .hero-title { font-size: min(11.5vw, calc(56vw / (var(--fit) * var(--glyph) * 0.97))); }
  .hero.name-only .hero-title { font-size: min(13vw, calc(90vw / (var(--fit) * var(--glyph) * 1.05))); }
  .hero-pic { width: min(100%, 520px); max-height: 74vh; }
  .hero-pic img { max-height: 70vh; }
}
@media (max-width: 999px) { .hero-pic { width: min(92%, 440px); transform: rotate(2deg); } }

/* ------------------------------------------------------------------ the price signs (harvest board) */

.signs-sec { background: var(--band-2); color: var(--band-2-ink); --ring: var(--band-2-ink); padding-block: var(--section); }
.signs-head { display: grid; gap: 20px 48px; margin-bottom: clamp(28px, 4vw, 56px); align-items: end; }
.signs-word { width: min(100%, calc(var(--chars) * 21vw)); }
.giant { display: inline-block; white-space: nowrap; font-size: 6rem; line-height: 0.8; margin: 0; }
.signs-sentence { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.signs-meta { max-width: 44ch; }
.signs-empty { background: var(--paper); color: var(--ink); padding: 24px; font-weight: 700; }
@media (min-width: 900px) {
  .signs-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .signs-word { width: min(100%, calc(var(--chars) * 11vw)); }
}
.heap + .heap { margin-top: clamp(28px, 3vw, 44px); }
.heap-name { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--gap); padding: 10px 16px; background: var(--pt); color: var(--pt-ink); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1; }
.heap-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; background: var(--pt-ink); color: var(--pt); font-family: var(--font-text); font-size: 0.55em; letter-spacing: 0; }
.crates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gap); }
.crate { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; background: var(--paper); color: var(--ink); --ring: var(--ink); }
.crate-pic { display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; background: var(--pt); color: var(--pt-ink); text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 3.5rem; line-height: 1; }
.crate-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.crate-main { min-width: 0; container-type: inline-size; }
.crate-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 8px; }
.crate-name { font-weight: 700; font-size: var(--step-lead); line-height: 1.15; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crate-name:hover { text-decoration: underline; } .crate:hover .crate-pic img { transform: scale(1.06); } }
.crate-picked { font-size: var(--step-small); color: var(--muted); }
.crate-low { font-size: var(--step-small); font-weight: 700; background: var(--band-1); color: var(--band-1-ink); padding: 1px 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chips form { margin: 0; }
.chip {
  display: flex; align-items: stretch; width: 100%; min-height: 48px; padding: 0;
  border: 0; background: var(--surface); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer;
  font-size: var(--step-ui); line-height: 1.2;
  transition: transform var(--dur-press) var(--ease-out), background-color 160ms ease;
}
.chip-unit { order: 1; flex: 1 1 auto; min-width: 0; align-self: center; padding: 8px 10px 8px 12px; overflow-wrap: anywhere; }
.chip-price { order: 2; align-self: center; padding: 8px 12px 8px 0; font-weight: 700; }
.chip-act { order: 3; display: grid; place-items: center; padding: 0 4px 0 12px; background: var(--ink); color: var(--paper); font-weight: 700; transition: background-color 180ms ease, color 180ms ease; }
.chip-plus { order: 4; position: relative; flex: none; width: 34px; background: var(--ink); color: var(--paper); transition: background-color 180ms ease, color 180ms ease; }
.chip-plus::before, .chip-plus::after, .tile-add .add-btn::before, .tile-add .add-btn::after { content: ""; position: absolute; top: 50%; width: 14px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform 260ms var(--ease-out); }
.chip-plus::before, .chip-plus::after { left: 6px; }
.chip-plus::after, .tile-add .add-btn::after { transform: rotate(90deg); }
.chip.is-added .chip-plus::after, .tile-add .add-btn.is-added::after { transform: rotate(180deg); }
.chip:active { transform: scale(0.98); }
.chip.is-added .chip-act, .chip.is-added .chip-plus { background: var(--band-3); color: var(--band-3-ink); }
.chip.is-out { cursor: default; color: var(--muted); }
.chip.is-out .chip-unit, .chip.is-out .chip-price { text-decoration: line-through; text-decoration-thickness: 2px; }
.chip.is-out .chip-act { background: transparent; color: var(--muted); padding-right: 12px; }
@media (hover: hover) and (pointer: fine) { button.chip:hover, a.chip:hover { background: var(--band-2); color: var(--band-2-ink); } }
@media (max-width: 520px) {
  .crate { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .crate-pic { width: 64px; height: 64px; font-size: 2.25rem; }
}
/* a narrow crate keeps the size, the price and the plus; the word "Add" stays for screen readers and field.js */
@container (max-width: 300px) {
  .chip-act { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
  .chip { position: relative; }
  .chip-plus { width: 44px; }
  .chip-plus::before, .chip-plus::after { left: 15px; }
  .chip-price { padding-right: 10px; }
  .chip.is-out .chip-act { position: static; width: auto; height: auto; clip: auto; padding: 0 10px 0 0; align-self: center; }
}

/* ------------------------------------------------------------------ the van (delivery) */

.van { background: var(--band-4); color: var(--band-4-ink); --ring: var(--band-4-ink); --btn: var(--paper); --btn-ink: var(--ink); padding-block: var(--section); }
.van-grid { display: grid; gap: 88px; }
.van-grid > * { min-width: 0; }
.van-copy h2 { font-size: clamp(2.125rem, 1.1rem + 3vw, 4rem); }
.van-text { margin: 24px 0 0; max-width: 36ch; font-size: var(--step-lead); line-height: 1.35; }
.area-form label { display: block; font-weight: 700; margin: 32px 0 10px; }
.area-row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.area-row .select-wrap { flex: 1 1 280px; min-width: 0; }
.area-row .select { border-color: var(--paper); }
.area-answer { margin-top: 28px; }
.answer-day { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(3rem, 1.8rem + 5vw, 6.5rem); line-height: 0.86; margin: 0 0 14px; }
.answer-text { max-width: 44ch; margin: 0; }
.van-fee { display: inline-flex; flex-wrap: wrap; margin: 32px 0 0; font-weight: 700; }
.van-fee span { padding: 12px 16px; background: var(--band-2); color: var(--band-2-ink); }
.van-fee span + span { background: var(--paper); color: var(--ink); }
.days-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--gap); align-content: start; }
.day-board { margin: 0; padding: 18px 20px 20px; background: var(--pt); color: var(--pt-ink); min-height: 180px; }
@media (max-width: 999px) {
  .days-board { grid-template-columns: 1fr; }
  .day-board { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 4px 18px; min-height: 0; }
  .day-head { grid-row: 1 / 3; margin: 0; align-content: start; }
}
.day-head { display: grid; gap: 2px; margin-bottom: 12px; }
.day-word { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(3rem, 2.2rem + 2.4vw, 4.75rem); line-height: 0.82; }
.day-date { font-weight: 700; font-size: var(--step-ui); }
.day-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slip-row { display: grid; gap: 0; padding: 6px 0 0; }
.slip-what { font-weight: 700; line-height: 1.25; }
.slip-when { font-size: var(--step-small); white-space: normal; }
.slip-row.is-full .slip-what, .slip-row.is-full .slip-when { text-decoration: line-through; }
.slip-row.is-mine { background: var(--ink); color: var(--paper); margin-inline: -10px; padding: 8px 10px; }
.slip-row.is-mine .slip-what::before { content: "Your area: "; }
.day-empty { font-weight: 700; }
@media (min-width: 1000px) { .van-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-l); align-items: start; } }

/* ------------------------------------------------------------------ the picture grid (tiles) */

.feat, .journal, .related, .more-colls, .more-posts { padding-block: var(--section); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .tiles { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .tiles.has-big .tile.is-big { grid-column: span 2; grid-row: span 2; }
  .tiles.has-big .tile.is-big .tile-pic { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
}
@media (max-width: 699px) { .tiles.big-phone .tile.is-big { grid-column: span 2; } }
.tile { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tile-link { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; text-decoration: none; }
.tile-link:focus-visible { outline-offset: 4px; }
.tile-pic { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--alt); color: var(--alt-ink); container-type: inline-size; }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), filter 300ms ease; }
.tile-paint { margin: 0;
  position: absolute; left: 0; right: 0; bottom: max(58px, 18cqw); display: block; padding: 0 7cqw; text-wrap: balance;
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 0.88;
  font-size: min(30cqw, calc(84cqw / (var(--len) * var(--glyph) * 1.06)));
}
.tile-flag { position: absolute; left: 0; top: 0; z-index: 1; background: var(--ink); color: var(--paper); padding: 8px 12px; font-size: var(--step-small); font-weight: 700; }
.tile-sign {
  position: relative; z-index: 1; align-self: flex-start; display: flex; flex-direction: column-reverse;
  margin: -46px 0 0; max-width: calc(100% - 20px); padding: 10px 14px 12px;
  background: var(--pt); color: var(--pt-ink);
  transition: transform 260ms var(--ease-out);
}
.tile-name { font-family: var(--font-text); font-weight: 700; font-size: var(--step-ui); line-height: 1.2; overflow-wrap: anywhere; }
.tile-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0 0 4px; }
.tile-price > .num { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; font-size: var(--step-sign); line-height: 1; }
.tile-from { font-family: var(--font-text); font-weight: 700; font-size: 0.5em; letter-spacing: 0; }
.tile-unit { font-size: var(--step-small); font-weight: 700; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 10px 2px 0; font-size: var(--step-ui); color: var(--muted); line-height: 1.4; }
.tile-low { color: var(--ink); font-weight: 700; }
.tile.is-out .tile-pic img { filter: grayscale(1); }
.tile-add { position: absolute; right: 8px; top: 8px; z-index: 2; margin: 0; }
.tile-add .add-btn, .add-btn.tile-add { min-height: 44px; }
.tile-add .add-btn { position: relative; padding-left: 38px; }
.tile-add .add-btn::before, .tile-add .add-btn::after { left: 14px; }
.add-btn.is-choose { font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .tile-pic img { transform: scale(1.045); }
  .tile-link:hover .tile-sign { transform: translateY(-6px); }
  .tile-link:hover .tile-name { text-decoration: underline; text-decoration-thickness: 2px; }
}
.tile-link:active .tile-sign { transform: scale(0.98); }
@media (min-width: 1000px) {
  .has-big .tile.is-big .tile-sign { margin-top: -72px; padding: 14px 18px 16px; }
  .has-big .tile.is-big .tile-name { font-size: var(--step-lead); }
  .has-big .tile.is-big .tile-price > .num { font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.75rem); }
}
@media (max-width: 699px) {
  .big-phone .tile.is-big .tile-sign { margin-top: -56px; padding: 12px 14px 14px; }
  .big-phone .tile.is-big .tile-price > .num { font-size: 2.25rem; }
}
@media (max-width: 520px) {
  .tile-add .add-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .add-btn.is-choose { display: none; }
  .tile-add .add-btn { min-width: 44px; padding: 0; }
  .tile-add .add-btn::before, .tile-add .add-btn::after { left: 15px; }
  .tile-paint { bottom: 36px; font-size: min(22cqw, calc(84cqw / (var(--len) * var(--glyph) * 1.06))); }
  .tile-sign { margin-top: -30px; max-width: calc(100% - 10px); padding: 8px 10px 10px; }
  .tile-price > .num { font-size: 1.375rem; }
}

/* ------------------------------------------------------------------ farm boxes: crates */

.boxes { background: var(--band-3); color: var(--band-3-ink); --ring: var(--band-3-ink); padding-block: var(--section); }
.crate-row { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .crate-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .crate-row { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } }
.box-crate { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 40px); background: var(--paper); color: var(--ink); --ring: var(--ink); }
.box-name { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 0.92; }
.box-what { margin: 0; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.box-in { margin: 0; max-width: 46ch; }
.box-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; order: 5; }
.box-facts li { padding: 6px 10px; background: var(--surface); font-size: var(--step-small); font-weight: 500; }
.box-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.box-price { margin: 0; padding: 10px 16px 12px; background: var(--band-2); color: var(--band-2-ink); display: flex; align-items: baseline; gap: 8px; }
.box-price .num { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1; }
.box-per { font-weight: 700; }
.boxes .sec-head h2 { max-width: 14ch; }
@media (min-width: 900px) {
  .crate-row.is-one { grid-template-columns: 1fr; }
  .is-one .box-crate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; column-gap: var(--gap-l); padding: 0; }
  .is-one .box-crate > :not(.box-foot) { grid-column: 1; margin-inline: clamp(28px, 3vw, 48px); }
  .is-one .box-name { margin-top: clamp(28px, 3vw, 48px); }
  .is-one .box-facts { margin-bottom: clamp(28px, 3vw, 48px); align-self: start; }
  .is-one .box-foot { grid-column: 2; grid-row: 1 / -1; margin: 0; padding: clamp(28px, 3vw, 48px); background: var(--band-2); color: var(--band-2-ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; }
  .is-one .box-price { padding: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .is-one .box-price .num { font-size: clamp(3rem, 1.8rem + 3vw, 5.5rem); }
  .is-one .box-per { font-size: var(--step-lead); }
}

/* ------------------------------------------------------------------ who grows it */

.about { padding-block: var(--section); }
.about-grid { display: grid; gap: 32px; }
.about-side { position: relative; overflow: hidden; background: var(--band-1); color: var(--band-1-ink); aspect-ratio: 4 / 5; max-height: 80vh; width: 100%; }
.about-side img { width: 100%; height: 100%; object-fit: cover; }
.about-words { aspect-ratio: auto; max-height: none; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(320px, 40vw, 600px); --ring: var(--band-1-ink); }
.about-words h2 { margin: 0; }
.about-words .about-first { margin: 0; }
.about-copy h2 { margin-bottom: clamp(20px, 2.4vw, 32px); }
.about-first { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); line-height: 1.25; font-weight: 500; max-width: 32ch; }
.about-first.is-long { font-size: var(--step-lead); max-width: 44ch; }
.about-p { max-width: 62ch; }
.about-sign { display: grid; margin: 28px 0 0; }
.about-sign strong { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--step-sign); line-height: 1; }
.about-sign span { color: var(--muted); margin-top: 6px; }
.about-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 28px 0 0; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-l); align-items: start; }
  .about-side { position: sticky; top: calc(var(--top-h) + 24px); }
  .about-copy > .about-p:first-child { margin-top: 0; font-size: var(--step-lead); line-height: 1.4; }
}

/* ------------------------------------------------------------------ picture with text: halves meeting edge to edge */

.split { display: grid; }
.split > * { min-width: 0; }
.split-pic { position: relative; margin: 0; min-height: 300px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); color: var(--paper); }
.split-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-pic figcaption { position: absolute; left: 0; bottom: 0; max-width: 90%; padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: var(--step-small); font-weight: 500; }
.split-pic.is-paint { background: var(--band-2); color: var(--band-2-ink); display: flex; align-items: flex-end; padding: var(--margin); }
.split-paint { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem); line-height: 0.85; overflow-wrap: anywhere; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 104px) var(--margin); background: var(--band-1); color: var(--band-1-ink); --ring: var(--band-1-ink); }
.split-inner { display: grid; gap: 22px; }
.split-words { display: grid; gap: 22px; }
.split-copy h2 { max-width: 14ch; }
.split-copy p { margin: 0; font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.split-copy .split-acts { display: flex; flex-wrap: wrap; gap: var(--gap); font-size: var(--step-ui); max-width: none; }
.split.no-pic .split-copy { padding-inline: 0; }
.split.no-pic .split-copy h2 { font-size: clamp(2.5rem, 1.2rem + 5vw, 6.5rem); max-width: 12ch; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-pic { aspect-ratio: auto; min-height: 600px; }
  .split.pic-right .split-pic { order: 2; }
  .split-copy { padding-inline: clamp(32px, 5vw, 88px); }
  .split.no-pic { grid-template-columns: 1fr; }
  .split.no-pic .split-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); align-items: end; }
}

/* ------------------------------------------------------------------ what people say */

.says { background: var(--ink); color: var(--paper); --ring: var(--paper); --btn: var(--band-2); --btn-ink: var(--band-2-ink); padding-block: var(--section); }
.says-grid { display: grid; gap: var(--gap); margin-top: clamp(28px, 3vw, 44px); }
.says-main { margin: 0; display: grid; gap: 24px; align-content: start; padding: clamp(24px, 3vw, 44px); background: var(--paper); color: var(--ink); }
.says-pic { display: block; width: 120px; height: 120px; overflow: hidden; background: var(--band-3); }
.says-pic img { width: 100%; height: 100%; object-fit: cover; }
.says-main blockquote { margin: 0; }
.says-open { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.05; max-width: 26ch; margin: 0 0 16px; }
.says-tail { max-width: 52ch; margin: 0; }
.says-main figcaption { display: grid; gap: 2px; }
.who { font-weight: 700; }
.what { font-size: var(--step-small); }
.says-more { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
.says-more li { padding: 22px 24px; background: var(--pt); color: var(--pt-ink); --ring: var(--pt-ink); }
.says-more p { margin: 0 0 8px; }
.says-more .what { margin: 0; }
@media (min-width: 1000px) {
  .says-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .says-main { grid-template-columns: auto minmax(0, 1fr); }
  .says-main .says-pic { grid-row: 1 / 3; }
}

/* ------------------------------------------------------------------ journal: posts as picture blocks */

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .posts.n1 { grid-template-columns: 1fr; } }
@media (min-width: 1000px) {
  .posts.n3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .posts.is-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts.is-page.n1 { grid-template-columns: 1fr; }
  .posts.n1 .post a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; align-content: start; padding-bottom: 0; }
  .posts.n1 .post-pic { grid-column: 1; grid-row: 1 / 4; margin: 0; aspect-ratio: 16 / 9; }
  .posts.n1 .post-title { grid-column: 2; padding: 32px 32px 0; font-size: clamp(1.875rem, 1.3rem + 1.4vw, 2.625rem); }
  .posts.n1 .post-meta { grid-column: 2; padding: 12px 32px 0; }
  .posts.n1 .post-excerpt { grid-column: 2; padding: 16px 32px 32px; font-size: var(--step-lead); line-height: 1.4; }
}
.post a { display: flex; flex-direction: column; height: 100%; padding-bottom: 22px; background: var(--pt); color: var(--pt-ink); --ring: var(--pt-ink); text-decoration: none; transition: transform var(--dur-press) var(--ease-out); }
.post a:active { transform: scale(0.99); }
.post-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); color: var(--alt-ink); margin-bottom: 18px; }
.post-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-paint { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(3rem, 2rem + 3vw, 5.5rem); line-height: 0.85; }
.post-title { padding: 0 20px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem); line-height: 0.98; }
.post-meta { padding: 8px 20px 0; font-size: var(--step-small); font-weight: 500; }
.post-excerpt { padding: 10px 20px 0; max-width: 50ch; }
@media (hover: hover) and (pointer: fine) { .post a:hover .post-pic img { transform: scale(1.04); } .post a:hover .post-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; } }

/* ------------------------------------------------------------------ newsletter band */

.news { background: var(--band-2); color: var(--band-2-ink); --ring: var(--band-2-ink); padding-block: clamp(56px, 7vw, 112px); }
.news-grid { display: grid; gap: 28px; align-items: end; }
.news-copy p { margin: 16px 0 0; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.news-form label:not(.hp) { display: block; font-weight: 700; margin-bottom: 8px; }
.news-row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.news-row .input { flex: 1 1 240px; width: auto; }
@media (min-width: 900px) { .news-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); } }

/* ------------------------------------------------------------------ one big word */

.shout-link { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 52svh; padding-block: 28px 20px; background: var(--field); color: var(--field-ink); --ring: var(--field-ink); text-decoration: none; overflow: hidden; transition: background-color 160ms ease, color 160ms ease; }
.shout-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.shout-sentence { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }
.shout-arrow { flex: none; transition: transform 240ms var(--ease-out); }
.shout-word { font-size: min(26vw, calc(150vw / var(--chars))); line-height: 0.8; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .shout-link:hover { background: var(--ink); color: var(--paper); } .shout-link:hover .shout-arrow { transform: translate(6px, -6px); } }
.shout-link:focus-visible { background: var(--ink); color: var(--paper); outline-offset: -8px; outline-color: var(--paper); }

/* ------------------------------------------------------------------ footer: the back of the stall */

.foot { background: var(--ink); color: var(--paper); --ring: var(--paper); --btn: var(--band-2); --btn-ink: var(--band-2-ink); padding-top: var(--section); }
.foot-invite h2 { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 6rem); max-width: 14ch; }
.foot-invite { display: grid; gap: 20px var(--gap-l); align-items: end; }
.foot-go p { margin: 0 0 24px; max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }
@media (min-width: 900px) { .foot-invite { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.foot-call { margin: clamp(48px, 6vw, 96px) auto 0; }
.foot-call a { display: inline-block; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(2.5rem, 0.8rem + 7.6vw, 9rem); line-height: 0.9; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .foot-call a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.08em; } }
.foot-cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block: clamp(40px, 5vw, 72px); }
.foot-h3 { font-size: var(--step-ui); margin-bottom: 10px; }
.foot-col p { margin: 0; max-width: 32ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { text-decoration: underline; } }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-bottom: 28px; font-size: var(--step-ui); }
.foot-legal p { margin: 0; }
.foot-credits { flex: 1 1 100%; order: 3; }
.awning { display: grid; grid-template-columns: repeat(4, 1fr); height: clamp(16px, 2vw, 28px); }
.awning span { background: var(--pt); }
.foot-min { padding-block: 32px; font-size: var(--step-small); color: var(--muted); }
.foot-min p { margin: 0; }

/* ------------------------------------------------------------------ the bag drawer */

.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 14, 0.5); opacity: 0; transition: opacity 280ms ease; }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(460px, 100vw); display: flex; flex-direction: column;
  background: var(--ground); color: var(--ink);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18); /* taste-skill-ignore: the drawer floats over the page */
  transform: translateX(100%); transition: transform 320ms var(--ease-drawer);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; min-height: var(--top-h); background: var(--field); color: var(--field-ink); --ring: var(--field-ink); }
.drawer-head h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.drawer-notice { margin: 12px 20px 0; padding: 12px 14px; background: var(--band-2); color: var(--band-2-ink); font-weight: 700; font-size: var(--step-small); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer-empty { padding: 24px 0; color: var(--muted); }
.drawer-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); display: grid; gap: 10px; }
.drawer-note { margin: 0; font-size: var(--step-small); color: var(--muted); }
.drawer-foot .text-link { justify-self: center; min-height: 44px; display: inline-flex; align-items: center; }
.sums { margin: 0; display: grid; gap: 2px; }
.sums > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.sums dt, .sums dd { margin: 0; }
.sums dd { font-weight: 700; text-align: right; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; transition: opacity 220ms ease, transform 220ms var(--ease-out); }
.line + .line { border-top: 0; }
.line.is-leaving { opacity: 0; transform: translateX(16px); }
.line-img { position: relative; display: block; width: 72px; height: 72px; overflow: hidden; background: var(--band-3); }
.line-img img { width: 72px; height: 72px; object-fit: cover; }
.line-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--band-3-ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2rem; }
.line-title { font-weight: 700; text-decoration: none; }
.line-unit { margin: 2px 0 8px; font-size: var(--step-small); color: var(--muted); }
.line-problem { margin: 0 0 8px; font-size: var(--step-small); font-weight: 700; color: var(--error); }
.line-end { display: grid; justify-items: end; align-content: start; }
.line-total { margin: 0; font-weight: 700; }
.drawer .stepper { height: 44px; grid-template-columns: 44px 52px 44px; }

/* ------------------------------------------------------------------ toasts */

.toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast { margin: 0; padding: 14px 18px; background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2); transition: opacity 300ms ease, transform 300ms var(--ease-out); pointer-events: auto; } /* taste-skill-ignore: toasts float */
.toast.is-error { background: #7d1a14; color: #fff; }
.toast.is-entering, .toast.is-leaving { opacity: 0; transform: translateY(16px); }
body.has-sticky-buy .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------ motion: entrances (only when the script runs) */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-title, .js .hero-sentence, .js .hero-act { animation: rise 760ms var(--ease-out) both; }
.js .hero-sentence { animation-delay: 80ms; }
.js .hero-act { animation-delay: 150ms; }
.js .hero-pic { animation: stick 820ms var(--ease-out) 120ms both; }
.js .hero-row .hang, .js .hero-signs .hang { animation: hang 620ms var(--ease-out) both; }
.js .hero-row .hang:nth-child(2), .js .hero-signs .hang:nth-child(2) { animation-delay: 70ms; }
.js .hero-row .hang:nth-child(3), .js .hero-signs .hang:nth-child(3) { animation-delay: 140ms; }
.js .hero-row .hang:nth-child(4), .js .hero-signs .hang:nth-child(4) { animation-delay: 210ms; }
.js .page-sign h1 { animation: rise 700ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes stick { from { opacity: 0; transform: rotate(9deg) scale(1.08); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes hang { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@media (max-width: 999px) { @keyframes stick { from { opacity: 0; transform: rotate(8deg) scale(1.06); } to { opacity: 1; transform: rotate(2deg); } } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .js .hero-title, .js .hero-sentence, .js .hero-act, .js .hero-row .hang, .js .hero-signs .hang, .js .page-sign h1 { animation: fade 300ms ease both; }
  .js .hero-pic { animation: fade 300ms ease both; }
  .tile-pic img, .tile-sign, .crate-pic img, .post-pic img, .post a, .drawer, .menu-sheet, .toast, .line, .add-btn .icon, .chip-plus::after, .tile-add .add-btn::after, .btn, .btn .icon, .add-btn, .chip, .hang, .hang::after, .stepper .step, .shout-arrow, .pick-opt, .day, .icon-btn, .bag-count, .gallery-main img { transition-property: opacity, background-color, color !important; }
  .drawer:not(.is-open), .menu-sheet:not(.is-open) { opacity: 0; }
  .btn:active, .add-btn:active, .chip:active, .hang:active, .tile-link:active .tile-sign, .post a:active, .stepper .step:active { transform: none !important; }
  .js .gallery-main img { animation: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ================================================================== shop pages */

/* the page's painted sign: every page opens with its name on the stall's colour, under the sign bar */
.page-sign { background: var(--field); color: var(--field-ink); --ring: var(--field-ink); --btn: var(--ink); --btn-ink: var(--paper); padding-block: clamp(20px, 3vw, 44px) clamp(36px, 5vw, 72px); }
.page-sign-grid { display: grid; gap: 20px 48px; align-items: end; }
.page-sign h1 { font-size: min(15vw, calc(92vw / (var(--fit, 8) * var(--glyph) * 1.06))); max-width: 100%; }
.page-sign .lead { margin: 0; max-width: 40ch; }
.page-sign .lead p { margin: 0 0 0.5em; }
.page-sign .count { margin: 12px 0 0; font-weight: 700; }
.page-sign .input { border-color: var(--field-ink); }
.sign-price { margin: 0 0 12px; display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px 12px; background: var(--band-2); color: var(--band-2-ink); font-weight: 700; }
.sign-price .num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; }
@media (min-width: 1000px) {
  .page-sign-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px var(--gap-l); }
  .page-sign h1 { font-size: min(9vw, calc(56vw / (var(--fit, 8) * var(--glyph) * 1.06))); }
  .page-sign-grid > h1:only-child { grid-column: 1 / -1; font-size: min(10vw, calc(90vw / (var(--fit, 8) * var(--glyph) * 1.06))); }
}
.shop-body { padding-block: clamp(24px, 3vw, 40px) var(--section); }
.empty-sign { background: var(--paper); padding: clamp(28px, 5vw, 56px); margin: 0 0 40px; }
.empty-sign h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); margin-bottom: 12px; }
.empty-sign .lead { margin-bottom: 24px; }
.sec-title + .tiles { margin-bottom: 24px; }
.all-link { margin: 40px 0 0; }

/* collection: the bar of choices */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px; margin-bottom: clamp(24px, 3vw, 40px); background: var(--paper); }
.filter { display: grid; gap: 6px; min-width: 0; flex: 1 1 140px; }
.filter > label { font-weight: 700; font-size: var(--step-small); }
.filter .select { min-height: 48px; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 auto; }
.toggle { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; background: var(--surface); font-weight: 700; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform var(--dur-press) var(--ease-out); }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle:has(input:checked) { background: var(--ink); color: var(--paper); }
.toggle span { display: inline-flex; align-items: center; gap: 10px; }
.toggle span::before { content: ""; flex: none; width: 18px; height: 18px; border: 3px solid currentColor; }
.toggle:has(input:checked) span::before { width: 9px; height: 16px; margin: -4px 4px 0 5px; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.toggle:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.toggle:active { transform: scale(0.97); }
.filter-sort { flex: 0 1 230px; }
.filter-clear { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 20px; margin: 48px 0 0; }
.pager p { margin: 0; font-weight: 700; }
.more-colls { background: var(--paper); }
.more-colls h2 { margin-bottom: 28px; }

/* collections: a sign over each heap */
.heaps { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .heaps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .heaps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.heap-card { display: flex; flex-direction: column; background: var(--pt); color: var(--pt-ink); --ring: var(--pt-ink); text-decoration: none; transition: transform var(--dur-press) var(--ease-out); }
.heap-card:active { transform: scale(0.99); }
.heap-pic { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); color: var(--alt-ink); }
.heap-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.heap-paint { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 0.86; overflow-wrap: anywhere; }
.heap-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 16px 20px 20px; }
.heap-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--step-sign); line-height: 1; }
.heap-n { font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .heap-card:hover .heap-pic img { transform: scale(1.04); } .heap-card:hover .heap-title { text-decoration: underline; text-decoration-thickness: 3px; } }

/* product */
.product { padding-bottom: var(--section); }
.product-grid { display: grid; gap: 28px; padding-top: clamp(16px, 2.4vw, 32px); }
.product-grid > * { min-width: 0; }
@media (min-width: 1000px) { .product-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); align-items: start; } .buy-col { position: sticky; top: calc(var(--top-h) + 20px); } }
.gallery-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--band-3); color: var(--band-3-ink); container-type: inline-size; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.js .gallery-main img { animation: settle 1200ms var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
.gallery-paint { margin: 0;
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 6cqw; text-wrap: balance;
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 0.86;
  font-size: calc(86cqw / (var(--len) * var(--glyph) * 1.06));
}
.thumbs { display: flex; gap: var(--gap); margin-top: var(--gap); overflow-x: auto; }
.thumb { flex: none; width: 88px; height: 88px; padding: 0; border: 0; background: var(--surface); cursor: pointer; opacity: 0.7; transition: opacity 160ms ease; }
.thumb[aria-current="true"] { opacity: 1; outline: 4px solid var(--ink); outline-offset: -4px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 0.9; overflow-wrap: anywhere; }
.tag-line { margin: 16px 0 0; max-width: 38ch; font-size: var(--step-lead); line-height: 1.35; }
.price-sign { display: inline-block; margin-top: 24px; padding: 14px 20px 16px; background: var(--band-2); color: var(--band-2-ink); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.price { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.02em; font-size: clamp(2.5rem, 1.8rem + 2.2vw, 4rem); line-height: 0.92; }
.price-unit { font-weight: 700; font-size: var(--step-lead); }
.price-was { font-weight: 700; }
.tag-note { margin: 6px 0 0; font-weight: 700; }
.tag-tax { margin: 6px 0 0; font-size: var(--step-small); font-weight: 500; }
.buy { margin-top: 24px; }
.pick { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.pick legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.pick-list { display: grid; gap: 6px; }
.pick-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; background: var(--paper); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform var(--dur-press) var(--ease-out); }
.pick-opt:active { transform: scale(0.99); }
.pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-opt:has(input:checked) { background: var(--ink); color: var(--paper); }
.pick-opt:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.pick-opt.is-out { color: var(--muted); cursor: not-allowed; }
.pick-opt.is-out .pick-name, .pick-opt.is-out .pick-price { text-decoration: line-through; }
.pick-name { font-weight: 700; }
.pick-price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.375rem; line-height: 1; }
.pick-left { font-size: var(--step-small); min-width: 52px; text-align: right; font-weight: 700; }
.buy-row { display: flex; gap: var(--gap); align-items: stretch; flex-wrap: wrap; }
.buy-row .stepper { height: 60px; grid-template-columns: 52px 60px 52px; }
.buy-btn { flex: 1 1 160px; }
.buy-btn[disabled] { --btn: var(--surface); --btn-ink: var(--muted); cursor: not-allowed; }
.buy-btn.is-added { --btn: var(--band-3); --btn-ink: var(--band-3-ink); }
.stock-line { margin: 14px 0 0; display: inline-block; padding: 6px 10px; background: var(--band-1); color: var(--band-1-ink); font-weight: 700; }
.preorder { margin: 12px 0 0; background: var(--band-2); color: var(--band-2-ink); padding: 10px 12px; font-weight: 500; }
.facts { display: grid; gap: 4px; margin: 28px 0 0; }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 14px; background: var(--paper); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.deliver-to { margin-top: var(--gap); background: var(--band-4); color: var(--band-4-ink); --ring: var(--band-4-ink); padding: 18px; }
.deliver-to p { margin: 0 0 12px; }
.deliver-to .select { border-color: var(--paper); }
.area-mini { display: flex; gap: var(--gap); flex-wrap: wrap; }
.area-mini > label { flex: 1 1 100%; font-weight: 700; font-size: var(--step-ui); }
.area-mini .select-wrap { flex: 1 1 220px; }
.product-story, .product-reviews { padding-top: var(--section); }
.story-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-l); } }
.rev-sum { margin-top: 16px; max-width: 30ch; }
.review-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: var(--gap); }
.review-list li { padding: 20px 22px; background: var(--pt); color: var(--pt-ink); }
.review-list p { margin: 0 0 6px; max-width: 58ch; }
.review-rating { font-size: var(--step-small); }
.review-form-wrap > summary { list-style: none; display: inline-flex; }
.review-form-wrap:not([open]) > .review-form { display: none; }
.review-form-wrap > summary::-webkit-details-marker { display: none; }
.review-form { margin-top: 20px; background: var(--paper); padding: 24px; max-width: 640px; }
.rating { border: 0; padding: 0; margin: 0 0 18px; }
.rating legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rate { position: relative; }
.rate input { position: absolute; opacity: 0; }
.rate span { display: grid; place-items: center; width: 48px; height: 48px; background: var(--surface); font-weight: 700; cursor: pointer; transition: background-color 160ms ease; }
.rate input:checked + span { background: var(--ink); color: var(--paper); }
.rate input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.rating-row .hint { margin-left: 8px; }
.related { padding-top: max(var(--section), 104px); padding-bottom: 0; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--ink); color: var(--paper); --ring: var(--paper); box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.16); transform: translateY(110%); transition: transform 300ms var(--ease-drawer); padding-bottom: env(safe-area-inset-bottom); } /* taste-skill-ignore: the buy bar floats */
.sticky-buy.is-shown { transform: none; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.sticky-inner p { margin: 0; min-width: 0; }
.sticky-name { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-unit { font-size: var(--step-small); }
@media (min-width: 1000px) { .sticky-buy { display: none; } }

/* content pages and the journal */
.doc { display: grid; gap: var(--gap); padding-block: clamp(24px, 3vw, 40px) var(--section); }
.doc-board { background: var(--paper); padding: clamp(24px, 5vw, 64px); min-width: 0; }
.doc-board.prose { max-width: none; }
.doc-board > * { max-width: 66ch; }
.doc-aside { display: grid; gap: var(--gap); align-content: start; }
.doc-plate { width: 100%; max-height: 72svh; object-fit: cover; }
@media (min-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .doc-aside { position: sticky; top: calc(var(--top-h) + 20px); }
  .doc.has-plate .doc-plate { grid-column: 1 / -1; }
}
.credit-list { padding-left: 20px; }
.credit-list li { margin-bottom: 8px; }
.search-form { display: flex; gap: var(--gap); max-width: 640px; }
.search-form .input { flex: 1; min-width: 0; }
.search-pages { padding-top: 48px; }

/* delivery page */
.ship { padding-block: clamp(24px, 3vw, 40px) var(--section); display: grid; gap: clamp(40px, 5vw, 72px); }
.ship-boards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ship-board { padding: 22px 24px 24px; background: var(--pt); color: var(--pt-ink); }
.ship-board h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--step-sign); line-height: 1; margin-bottom: 12px; }
.ship-board p { margin: 0 0 8px; }
.ship-when { font-weight: 700; }
.ship-fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px !important; }
.ship-fee .num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2rem; line-height: 1; }
.ship-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ship-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 14px 18px; background: var(--paper); }
.ship-ask { font-size: var(--step-lead); max-width: 48ch; margin: 0; }
.ship-ask a { font-weight: 700; white-space: nowrap; }
.ship-boards:has(> :only-child) { grid-template-columns: minmax(0, 640px); }

/* farm boxes page and sign-up */
.boxes-page { background: transparent; color: inherit; padding-block: clamp(24px, 3vw, 40px) 0; }
.how { padding-block: var(--section); }
.how h2 { margin-bottom: 28px; }
.how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); }
.how-list li { padding: 24px; background: var(--pt); color: var(--pt-ink); font-size: var(--step-body); }
.how-list strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--step-sign); line-height: 1; margin-bottom: 10px; }
@media (min-width: 900px) { .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.box-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .box-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); align-items: start; } .box-aside { position: sticky; top: calc(var(--top-h) + 20px); } }
.in-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.in-list li { padding: 6px 12px; background: var(--pt); color: var(--pt-ink); font-weight: 700; }
.receipt-sub { margin: 24px 0 6px; }
.receipt-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 12px 16px; background: var(--band-2); color: var(--band-2-ink); font-weight: 700; }
.receipt-big .num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2.5rem; line-height: 1; }

/* forms as white boards (farm box, account, checkout) */
.sheet-form { background: var(--paper); padding: clamp(20px, 4vw, 40px); margin-bottom: var(--gap); }
.sheet-form h3 { margin: 8px 0 16px; font-size: var(--step-lead); }
.form-block { border: 0; margin: 0 0 var(--gap); padding: clamp(20px, 3.5vw, 36px); background: var(--paper); min-width: 0; }
.form-block legend { float: left; width: 100%; padding: 0; margin-bottom: 20px; }
.form-block legend + * { clear: left; }
.form-block legend h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.sub-block { margin-top: 24px; }
.form-block legend + .hint, .form-block > .hint { margin-bottom: 16px; }
.sub-block h3 { margin-bottom: 12px; }
.choice-row { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .choice-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--band-2); flex: none; }
.choice > span { display: grid; gap: 2px; }
.choice:has(input:checked) { background: var(--ink); color: var(--paper); }
.choice:has(input:checked) .hint { color: var(--paper); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 3px; }
.choice.wide { margin-bottom: var(--gap); }
.days { margin-top: 16px; }
.days-zone { margin: 0 0 8px; }
.day-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.day { position: relative; display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); cursor: pointer; min-height: 64px; transition: background-color 160ms ease, transform var(--dur-press) var(--ease-out); }
.day input { position: absolute; opacity: 0; }
.day-name { font-weight: 700; }
.day-cut { font-size: var(--step-small); color: var(--muted); }
.day:has(input:checked) { background: var(--band-2); color: var(--band-2-ink); }
.day:has(input:checked) .day-cut { color: var(--band-2-ink); }
.day:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.day:active { transform: scale(0.98); }
.day.is-full { cursor: not-allowed; color: var(--muted); }
.day.is-full .day-name { text-decoration: line-through; }
.windows { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }
.zone-msg { margin: 0 0 18px; padding: 12px 14px; background: var(--band-2); color: var(--band-2-ink); font-weight: 700; }
.zone-msg.is-error { background: #fbe0db; color: #5e130f; }
.gift { margin-top: 24px; }
.gift > label { display: block; font-weight: 700; margin-bottom: 8px; }
.bank { background: var(--surface); padding: 16px; }
.card .notice { background: var(--band-2); color: var(--band-2-ink); }
.place-btn { margin: 8px 0 24px; min-height: 64px; font-size: var(--step-lead); }
.form-acts { display: flex; align-items: center; gap: 16px; margin: 8px 0 0; }

/* the bag page */
.bag-grid { display: grid; gap: 28px; padding-block: clamp(24px, 3vw, 40px) var(--section); }
@media (min-width: 1000px) { .bag-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-l); align-items: start; } .bag-receipt { position: sticky; top: calc(var(--top-h) + 20px); } }
.bag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bag-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 20px; padding: 12px; background: var(--paper); }
.bag-line.has-problem { background: #fbeee9; }
.bag-img { position: relative; display: block; width: 96px; height: 96px; overflow: hidden; background: var(--pt); color: var(--pt-ink); }
.bag-img img { width: 100%; height: 100%; object-fit: cover; }
.bag-img .line-ph { color: var(--pt-ink); font-size: 2.5rem; }
.bag-item { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.bag-item .line-title { font-size: var(--step-lead); line-height: 1.15; }
.bag-item .line-unit { margin: 0; }
.bag-item .text-btn { padding: 2px 0; min-height: 36px; }
.bag-line .line-total { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.5rem; text-align: right; min-width: 6ch; }
@media (max-width: 699px) {
  .bag-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 12px; }
  .bag-img { width: 72px; height: 72px; grid-row: 1 / 3; }
  .bag-item { grid-column: 2 / 4; }
  .bag-line .stepper { grid-column: 2; justify-self: start; }
  .bag-line .line-total { grid-column: 3; font-size: 1.25rem; }
}
.bag-actions { display: flex; align-items: center; gap: 20px; margin: 16px 0; }
.js .bag-actions .btn { display: none; }
.bag-note { margin-top: 24px; max-width: 560px; }
.bag-suggest { margin-top: 24px; }

/* the receipt (bag, checkout, order) */
.receipt { background: var(--paper); color: var(--ink); padding: clamp(20px, 3vw, 32px); }
.receipt-title, .slip-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); line-height: 0.95; margin-bottom: 8px; }
.receipt .sums { margin: 18px 0; }
.receipt .is-total { margin-top: 8px; padding: 12px 16px !important; background: var(--band-2); color: var(--band-2-ink); align-items: baseline; }
.receipt .is-total dt { font-weight: 700; }
.receipt .is-total dd { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1; }
.receipt-note { font-size: var(--step-small); color: var(--muted); margin: 12px 0; }
.receipt-note.is-error { color: var(--error); font-weight: 700; }
.code-form { margin: 18px 0; }
.code-form > label, .area-mini > label { display: block; font-weight: 700; margin-bottom: 8px; }
.code-on { margin: 0; }
.receipt .area-mini { margin-top: 18px; }
.receipt .btn-wide { margin-top: 8px; }

/* checkout (Field's template, the stall's look) */
.page-checkout .top-row { min-height: 60px; }
.co-head { padding-block: clamp(20px, 3vw, 40px) 20px; }
.co-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem); }
.co-head .lead { margin: 10px 0 0; }
.checkout { padding-bottom: var(--section); }
.co-grid { display: grid; gap: var(--gap); }
@media (min-width: 1000px) { .co-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); align-items: start; } .co-side { position: sticky; top: calc(var(--top-h) + 16px); } }
@media (max-width: 999px) { .co-side { order: -1; } .co-side [data-place] { display: none; } }
.co-lines { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.co-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.co-img { position: relative; width: 60px; height: 60px; background: var(--band-3); }
.co-img img, .co-img .line-ph { width: 60px; height: 60px; object-fit: cover; }
.co-img .line-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; }
.co-qty { position: absolute; right: -8px; top: -8px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 0.875rem; font-weight: 700; }
.co-name { display: block; font-weight: 700; line-height: 1.3; }
.co-each { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.co-total { font-weight: 700; }

/* order status (Field's template) */
.page-head { position: relative; isolation: isolate; padding-block: clamp(24px, 4vw, 56px) clamp(32px, 4vw, 56px); color: var(--field-ink); --ring: var(--field-ink); }
.page-head::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--field); }
.page-head h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); max-width: 18ch; }
.page-head .lead { margin: 16px 0 0; }
.page-head .text-link { color: inherit; }
.order-grid { display: grid; gap: 28px; padding-block: clamp(24px, 3vw, 40px) var(--section); }
@media (min-width: 1000px) { .order-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-l); align-items: start; } }
.steps { list-style: none; margin: 0 0 var(--gap); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.step-item { display: grid; gap: 6px; align-content: start; padding-bottom: 6px; }
.step-bar { position: relative; display: block; height: 16px; overflow: hidden; background: var(--surface); }
.step-item.is-done .step-bar { background: var(--band-3); }
.step-item.is-current .step-bar::after { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--band-2); }
.step-label { font-weight: 700; line-height: 1.25; }
.step-when { font-size: var(--step-small); color: var(--muted); }
.steps.is-cancelled .step-bar { background: var(--surface); }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; gap: 2px; } .step-item { grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; } .step-bar { height: 100%; min-height: 44px; } }
.hand, .pay-transfer { background: var(--paper); padding: clamp(20px, 3.5vw, 36px); margin-bottom: var(--gap); }
.hand h2, .pay-transfer h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 14px; }
.hand-day { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-sign); line-height: 1; }
.order-account, .order-help { margin: 20px 0 0; }

/* accounts */
.auth { padding-block: clamp(24px, 4vw, 56px) var(--section); }
.auth-grid { display: grid; gap: var(--gap); }
.auth-sign { padding: clamp(24px, 4vw, 56px); background: var(--field); color: var(--field-ink); --ring: var(--field-ink); }
.auth-sign h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); max-width: 10ch; }
.auth-sign .lead { margin: 18px 0 0; }
.auth-sheet { background: var(--paper); padding: clamp(24px, 4vw, 48px); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 24px 0 0; }
@media (min-width: 900px) { .auth-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; } .auth-sign { display: flex; flex-direction: column; justify-content: space-between; } }
.acct-head h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); }
.tab-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(20px, 3vw, 32px); }
.acct-tabs { margin-bottom: var(--gap); }
.crate-tab { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; text-decoration: none; font-weight: 700; background: var(--paper); color: var(--ink); transition: background-color 160ms ease, transform var(--dur-press) var(--ease-out); }
.crate-tab:active { transform: scale(0.97); }
.crate-tab.is-on { background: var(--ink); color: var(--paper); }
.tab-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 8px; background: var(--band-2); color: var(--band-2-ink); font-size: 0.875rem; }
.acct-panel { background: var(--paper); padding: clamp(20px, 4vw, 44px); margin-bottom: var(--section); }
.panel-h { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 24px; }
.empty-board { background: var(--surface); padding: clamp(24px, 4vw, 44px); margin: 0 0 24px; }
.empty-board h2, .empty-board h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 0.95; margin-bottom: 12px; }
.acct-table { width: 100%; border-collapse: collapse; }
.acct-table th { text-align: left; font-size: var(--step-small); color: var(--muted); font-weight: 700; padding: 10px 12px 10px 0; }
.acct-table td { padding: 14px 12px 14px 0; border-top: 4px solid var(--ground); vertical-align: middle; }
.acct-table .n { text-align: right; }
.acct-table td > a.line-title, .acct-table .line-unit { display: block; }
.acct-table .acts { text-align: right; }
.acct-table form { margin: 0; }
@media (max-width: 699px) {
  .acct-table thead { display: none; }
  .acct-table, .acct-table tbody, .acct-table tr, .acct-table td { display: block; }
  .acct-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-top: 6px solid var(--ground); }
  .acct-table td { border: 0; padding: 0; }
  .acct-table td.acts { grid-column: 1 / 3; text-align: left; margin-top: 8px; }
}
.box-row { display: grid; gap: 16px; padding: 20px; background: var(--surface); margin-bottom: var(--gap); }
.box-row.is-off { opacity: 0.75; }
.box-row h3 { font-size: var(--step-lead); }
.box-when { font-weight: 700; margin: 6px 0 4px; }
.box-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-start; }
.box-acts form { margin: 0; }
.pause-form { display: flex; gap: 8px; }
.cancel-box > summary { list-style: none; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box form { display: grid; gap: 8px; margin-top: 8px; max-width: 360px; }
@media (min-width: 900px) { .box-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.addr-grid { display: grid; gap: var(--gap); margin-bottom: 24px; }
@media (min-width: 700px) { .addr-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.addr { background: var(--surface); padding: 20px; }
.addr.is-main { background: var(--band-2); color: var(--band-2-ink); }
.addr.is-main .muted, .addr.is-main .hint { color: var(--band-2-ink); }
.addr h3 { margin-bottom: 8px; }
.addr-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.addr-acts form { margin: 0; }
.acct-panel .sheet-form { background: var(--surface); }
.details-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .details-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }

/* errors and the locked shop */
.error-sec { padding-block: clamp(32px, 6vw, 96px) var(--section); }
.error-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.error-code { display: flex; margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(5rem, 2rem + 14vw, 15rem); line-height: 1; }
.error-code span { display: grid; place-items: center; min-width: 0.9em; padding: 0.06em 0.08em 0; background: var(--pt); color: var(--pt-ink); }
.error-copy h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 5rem); max-width: 14ch; }
.error-copy .lead { margin: 18px 0 28px; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.error-debug { white-space: pre-wrap; font-size: 13px; margin-top: 24px; background: var(--paper); padding: 16px; overflow: auto; }
.shutter { display: flex; align-items: flex-end; margin: 0; width: 100%; aspect-ratio: 5 / 4; max-width: 560px; padding: clamp(20px, 3vw, 40px); background: var(--field); color: var(--field-ink); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(2.75rem, 1.6rem + 4vw, 5.5rem); line-height: 0.86; overflow-wrap: anywhere; }
@media (min-width: 900px) { .error-grid { grid-template-columns: auto minmax(0, 1fr); } .locked .error-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.shop-pass { margin-top: 24px; max-width: 520px; }
.shop-pass label { display: block; font-weight: 700; margin-bottom: 8px; }

/* ------------------------------------------------------------------ phones: shorter page, same content */
@media (max-width: 699px) {
  :root { --section: 56px; --top-h: 60px; }
  .crates { grid-template-columns: 1fr; }
  .day-board { min-height: 0; }
  .days-board { grid-template-columns: 1fr 1fr; }
  .day-word { font-size: 2.75rem; }
  .says-more li:nth-child(n+3) { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-call a { font-size: clamp(2rem, 11vw, 3.25rem); }
  .facts > div { grid-template-columns: 80px minmax(0, 1fr); }
  .hero-act .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) { .days-board { grid-template-columns: 1fr; } }
@media (max-width: 699px) { .hang-row .hang, .doc-aside .hang { min-height: 76px; } }
.after-grid { margin: clamp(20px, 2.4vw, 32px) 0 0; }
