/* Sunday Stock: an example greengrocer's shop by In Good Order. Fictional business, produce and prices.
   Art direction from the concept: warm market paper, a heavy plum headline, tomato-red actions and cream price labels laid
   over real produce. The photographs carry the colour; the page stays warm and quiet around them.
   Shapes: buttons and labels 10px, the box pill fully rounded, photographs square-cornered with a soft radius. */

@font-face {
  font-family: "Stock Grotesk";
  src: url(/bearing/fonts/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4ebdd;
  --paper-deep: #ecdfcc;
  --card: #fbf6ee;
  --plum: #3b0d28;
  --plum-soft: #5b1d40;
  --red: #c2352a;
  --red-hover: #a62a20;
  --ink: #2b1620;
  --ink-dim: rgba(43, 22, 32, 0.72);
  --rule: rgba(59, 13, 40, 0.15);
  --rule-strong: rgba(59, 13, 40, 0.38);
  --kraft: #c69a6d;
  --kraft-dark: #9d7046;
  --tomato: #d8402f; --carrot: #e8822f; --cabbage: #7fa155; --potato: #d9b76a; --mushroom: #d8ccb6; --beet: #7d2346;
  --font: "Stock Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(18px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; scroll-padding-top: 96px; }
body { min-height: 100vh; background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2.5px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -80px; z-index: 60; padding: 10px 14px; background: var(--plum); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 10px; }
.price, .pill-total, .sums dd, .line-amount, .line-cost, .view-card .num { font-variant-numeric: tabular-nums; }

/* ---------- Example notice ---------- */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 8px var(--pad); background: var(--plum); color: #f5e6ea; font-size: 13.5px; }
.demo-bar strong { font-weight: 650; color: #fff; }
.demo-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.demo-bar a { display: inline-flex; align-items: center; min-height: 32px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); text-underline-offset: 3px; }
.demo-bar a:hover { text-decoration-color: #fff; }
.demo-bar :focus-visible { outline-color: #fff; }

/* ---------- Header ---------- */
.mast {
  position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px clamp(18px, 3vw, 48px);
  max-width: var(--max); margin: 0 auto; padding: 14px var(--pad); background: rgba(244, 235, 221, 0.94); backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) { .mast { background: var(--paper); } }
.wordmark { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.045em; color: var(--red); text-decoration: none; white-space: nowrap; }
.mast-nav { display: flex; justify-content: center; gap: clamp(16px, 2.6vw, 44px); }
.mast-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 560; color: var(--plum); text-decoration: none; }
.mast-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.mast-nav a:hover::after, .mast-nav a[aria-current="true"]::after { transform: scaleX(1); }
.box-pill {
  display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--plum); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .2s;
}
.box-pill:hover { background: var(--plum-soft); }
.box-pill:focus-visible { outline-color: var(--red); }
.pill-basket { position: relative; width: 22px; height: 16px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; }
.pill-basket::before { content: ""; position: absolute; left: -5px; right: -5px; top: -2px; height: 2px; background: currentColor; border-radius: 2px; }
.pill-basket::after { content: ""; position: absolute; left: 3px; right: 3px; top: -9px; height: 9px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.pill-rule { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.3); }
.pill-items { font-weight: 500; opacity: 0.9; }
.pill-total { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.pill-go { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--red); }
.pill-go::before { content: ""; position: absolute; left: 12px; top: 19px; width: 15px; height: 2px; background: #fff; }
.pill-go::after { content: ""; position: absolute; left: 19px; top: 15px; width: 8px; height: 8px; border-right: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(45deg); }
.box-pill.bump .pill-total, .mobile-bar.bump .mb-total { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.16); } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "title title" "copy photo"; gap: clamp(20px, 2.6vw, 36px) clamp(24px, 4vw, 64px); align-items: start; max-width: var(--max); margin: 0 auto; padding: clamp(24px, 3.5vw, 52px) var(--pad) clamp(48px, 6vw, 88px); }
.hero-copy { grid-area: copy; align-self: center; padding-bottom: 28px; }
.hero h1 { grid-area: title; font-size: clamp(50px, 7.4vw, 116px); font-weight: 820; line-height: 0.92; letter-spacing: -0.055em; color: var(--plum); padding-bottom: 0.06em; text-wrap: balance; }
.hero-lede { max-width: 32em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-dim); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(22px, 2.8vw, 34px); }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-dim); }
.hero-note span { font-weight: 650; color: var(--plum); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 24px; border-radius: var(--radius); font-size: 17px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-soft); }
.btn.wide { width: 100%; }
.plus { position: relative; width: 14px; height: 14px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.plus::after { transform: rotate(90deg); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16.5px; font-weight: 600; color: var(--plum); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(194, 53, 42, 0.5); text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: var(--red); }

.hero-figure { position: relative; grid-area: photo; }
.hero-photo { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 22px 60px rgba(59, 13, 40, 0.18); }
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-dim); }
.hotspots { list-style: none; }
.hs { position: absolute; }
.hs-cabbage { left: 24%; top: 31%; }
.hs-carrots { left: 49%; top: 25%; }
.hs-beetroot { left: 72%; top: 27%; }
.hs-tomatoes { left: 21%; top: 69%; }
.hs-potatoes { left: 52%; top: 62%; }
.hs-mushrooms { left: 81%; top: 58%; }
.hs button { position: relative; display: block; transform: translate(-50%, -50%); }
.hs-pin { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 5px rgba(251, 246, 238, 0.42), 0 3px 10px rgba(43, 22, 32, 0.35); transition: transform .25s var(--ease), background .2s; }
.hs-pin::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.hs-tag {
  position: absolute; left: 50%; bottom: calc(100% + 10px); display: grid; min-width: max-content; padding: 8px 12px 9px; border-radius: 9px;
  background: var(--card); color: var(--ink); text-align: left; box-shadow: 0 8px 24px rgba(43, 22, 32, 0.28);
  transform: translate(-50%, 4px); opacity: 0; transition: opacity .22s, transform .3s var(--ease); pointer-events: none;
}
.hs-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.hs-price { font-size: 13.5px; color: var(--ink-dim); }
.hs-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 5px 10px; border-radius: 7px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 650; }
.hs-act::after { content: "+"; font-size: 16px; line-height: 1; }
.hs.in-box .hs-act { background: var(--plum); }
.hs.in-box .hs-act::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-2px); }
/* On wide screens the labels stay up, like price cards on a market stall. */
@media (min-width: 1001px) { .hs .hs-tag { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; } .hs button:hover .hs-tag { transform: translate(-50%, -3px); } }
.hs button:hover .hs-tag, .hs button:focus-visible .hs-tag, .hs.show .hs-tag { opacity: 1; transform: translate(-50%, 0); }
.hs button:hover .hs-pin, .hs button:focus-visible .hs-pin { transform: scale(1.15); }
.hs button:focus-visible { outline: none; }
.hs button:focus-visible .hs-pin { box-shadow: 0 0 0 3px var(--plum), 0 0 0 6px #fff; }
.hs.in-box .hs-pin::after { background: var(--plum); width: 12px; height: 12px; }
/* Before anyone interacts, the labels show briefly so the photograph reads as shoppable. */
.hotspots.intro .hs .hs-tag { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Box sizes ---------- */
.boxes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(24px, 4vw, 64px); align-items: center; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 3.4vw, 44px) var(--pad); border-block: 1px solid var(--rule); }
.boxes h2, .counter-head h2, .when-head h2, .how h2 { font-size: clamp(32px, 3.4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: var(--plum); padding-bottom: 0.04em; }
.boxes-head p, .counter-head p, .when-head p { margin-top: 10px; max-width: 34em; color: var(--ink-dim); }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); border: 0; }
.size { position: relative; display: block; }
.size input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.size-card { display: grid; gap: 2px; height: 100%; padding: 16px 18px 18px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: rgba(251, 246, 238, 0.55); transition: border-color .2s, background .2s, box-shadow .2s; }
.size-name { font-size: 22px; font-weight: 780; letter-spacing: -0.03em; color: var(--plum); }
.size-for { font-size: 15px; color: var(--ink-dim); }
.size-kg { margin-top: 8px; font-size: 14px; font-weight: 650; color: var(--plum); }
.size input:hover + .size-card { border-color: var(--plum); }
.size input:checked + .size-card { border-color: var(--plum); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--plum); }
.size input:checked + .size-card .size-kg { color: var(--red); }
.size input:focus-visible + .size-card { outline: 2.5px solid var(--plum); outline-offset: 3px; }

/* ---------- Counter and box ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 400px); gap: clamp(24px, 3.4vw, 48px); align-items: start; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pad) 0; }
.counter-head { margin-bottom: clamp(20px, 2.4vw, 30px); }
.produce { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.item { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--rule), 0 10px 30px rgba(59, 13, 40, 0.06); overflow: hidden; }
.tile { aspect-ratio: 4 / 3; background-image: url(/website-design/examples/sunday-stock/produce.webp); background-size: 300% 200%; background-repeat: no-repeat; }
.tile-tomatoes { background-position: 0 0; }
.tile-carrots { background-position: 50% 0; }
.tile-cabbage { background-position: 100% 0; }
.tile-potatoes { background-position: 0 100%; }
.tile-mushrooms { background-position: 50% 100%; }
.tile-beetroot { background-position: 100% 100%; }
.item-text { padding: 16px 18px 4px; }
.item h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; color: var(--plum); }
.price { margin-top: 2px; font-size: 17px; font-weight: 650; color: var(--ink); }
.price span { font-weight: 450; color: var(--ink-dim); }
.note { margin-top: 4px; font-size: 14.5px; color: var(--ink-dim); }
.item-buy { margin-top: auto; padding: 14px 18px 18px; }
.add-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 18px; border-radius: var(--radius); background: var(--red); color: #fff; font-size: 16.5px; font-weight: 650; transition: background .2s; }
.add-btn:hover { background: var(--red-hover); }
.add-btn .plus { width: 14px; height: 14px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 6px; border-radius: var(--radius); background: var(--plum); color: #fff; }
.qty-row .amount { font-size: 16.5px; font-weight: 700; }
.qty-row .amount small { display: block; font-size: 12.5px; font-weight: 500; opacity: 0.8; }
.round { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: background .15s; }
.round:hover { background: rgba(255, 255, 255, 0.26); }
.round::before, .round.more::after { content: ""; position: absolute; left: 12px; top: 18px; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.round.more::after { transform: rotate(90deg); }
.round:disabled { opacity: 0.35; cursor: default; }
.qty-row :focus-visible { outline-color: #fff; }
.no-js .item-buy { display: none; }

.box-panel { position: sticky; top: 96px; padding: 22px 22px 24px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 0 var(--rule), 0 18px 50px rgba(59, 13, 40, 0.1); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--plum); }
.panel-size { font-size: 13.5px; font-weight: 600; color: var(--ink-dim); }
.no-js .box-panel, .no-js .mobile-bar, .no-js .box-pill { display: none; }

/* The crate: a cardboard box whose contents rise in each item's colour as it fills. */
.crate { position: relative; height: 128px; margin-top: 16px; border: 3px solid var(--kraft-dark); border-top: 0; border-radius: 0 0 10px 10px; background: linear-gradient(#f0e3cf, #e8d6bc); overflow: hidden; }
.crate-small { height: 96px; }
.crate-lip { position: absolute; inset: 0 0 auto; height: 10px; background: repeating-linear-gradient(90deg, var(--kraft) 0 26px, var(--kraft-dark) 26px 28px); opacity: 0.55; }
.crate-fill { position: absolute; inset: auto 0 0; display: flex; flex-direction: column-reverse; height: 0%; transition: height .6s var(--ease); }
.crate-fill.over { box-shadow: inset 0 3px 0 var(--red); }
.seg { flex: var(--share, 1) 1 0; min-height: 3px; transition: flex-grow .6s var(--ease); }
.seg + .seg { border-bottom: 1.5px solid rgba(251, 246, 238, 0.65); }
.seg-tomato { background: var(--tomato); } .seg-carrot { background: var(--carrot); } .seg-cabbage { background: var(--cabbage); }
.seg-potato { background: var(--potato); } .seg-mushroom { background: var(--mushroom); } .seg-beet { background: var(--beet); }
.fill-line { margin-top: 10px; font-size: 14px; color: var(--ink-dim); }
.fill-line strong { color: var(--plum); }
.fill-line.over { color: var(--red); font-weight: 600; }
.lines { list-style: none; margin-top: 14px; border-top: 1px solid var(--rule); }
.line { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot name cost" "dot ctrl ctrl"; gap: 4px 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.line.is-new { animation: line-in .5s var(--ease); }
@keyframes line-in { from { background: rgba(194, 53, 42, 0.1); } }
.line-dot { grid-area: dot; align-self: start; margin-top: 6px; width: 10px; height: 10px; border-radius: 3px; }
.line-name { grid-area: name; font-size: 15.5px; font-weight: 650; color: var(--plum); }
.line-cost { grid-area: cost; font-size: 15.5px; font-weight: 650; }
.line-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 10px; }
.line-amount { min-width: 72px; font-size: 14px; color: var(--ink-dim); }
.mini { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--rule-strong); transition: border-color .15s, background .15s; }
.mini:hover { border-color: var(--plum); background: rgba(59, 13, 40, 0.05); }
.mini::before, .mini.more::after { content: ""; position: absolute; left: 9px; top: 14px; width: 11px; height: 1.8px; background: var(--plum); }
.mini.more::after { transform: rotate(90deg); }
.mini:disabled { opacity: 0.35; cursor: default; }
.line-remove { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.lines-empty { padding: 14px 0; font-size: 14.5px; color: var(--ink-dim); border-bottom: 1px solid var(--rule); }
.sums { margin-top: 14px; }
.sums div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.sums dt { color: var(--ink-dim); }
.sums dd { font-weight: 600; }
.sums .sum-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--plum); font-size: 20px; }
.sums .sum-total dt { color: var(--plum); font-weight: 700; }
.sums .sum-total dd { color: var(--plum); font-weight: 800; }
.fee-note { margin: 6px 0 16px; font-size: 13.5px; color: var(--ink-dim); }
.box-panel .btn, .sheet .btn { margin-top: 14px; }

/* ---------- When and where ---------- */
.when { max-width: var(--max); margin: clamp(64px, 8vw, 112px) auto 0; padding: 0 var(--pad); }
.when-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(24px, 4vw, 64px); margin-top: clamp(24px, 3vw, 36px); padding-top: 26px; border-top: 2px solid var(--plum); }
.choice-set { border: 0; display: grid; gap: 10px; align-content: start; }
.choice-set legend, .field > span, .dates-label { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice > span { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: rgba(251, 246, 238, 0.5); font-size: 15px; color: var(--ink-dim); transition: border-color .2s, background .2s; }
.choice strong { font-size: 16.5px; font-weight: 650; color: var(--plum); }
.choice input:hover + span { border-color: var(--plum); }
.choice input:checked + span { border-color: var(--plum); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--plum); }
.choice input:focus-visible + span { outline: 2.5px solid var(--plum); outline-offset: 3px; }
.choice input:disabled + span { opacity: 0.45; cursor: default; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot-grid .choice > span { justify-content: center; text-align: center; }
.field { display: grid; gap: 4px; }
.field select { min-height: 52px; padding: 0 44px 0 16px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); appearance: none; cursor: pointer;
  background-color: rgba(251, 246, 238, 0.5); background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%), linear-gradient(135deg, var(--plum) 50%, transparent 50%);
  background-position: calc(100% - 23px) 52%, calc(100% - 17px) 52%; background-size: 6px 6px; background-repeat: no-repeat; font-size: 16px; }
.field select:hover { border-color: var(--plum); }
.area-note { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--red); }
.area-note[hidden], .dates[hidden] { display: none; }
.date-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.date-chips button { display: grid; min-width: 120px; min-height: 52px; padding: 7px 14px; border-radius: var(--radius); border: 1.5px solid var(--plum); background: var(--card); text-align: left; transition: background .2s, border-color .2s; }
.date-chips .d-day { font-size: 15px; font-weight: 700; color: var(--plum); }
.date-chips .d-state { font-size: 12.5px; color: var(--ink-dim); }
.date-chips button[aria-pressed="true"] { border-style: dashed; border-color: var(--rule-strong); background: transparent; }
.date-chips button[aria-pressed="true"] .d-day { color: var(--ink-dim); text-decoration: line-through; }

/* ---------- How it works ---------- */
.how { max-width: var(--max); margin: clamp(64px, 8vw, 112px) auto 0; padding: 0 var(--pad); }
.how-steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); margin-top: clamp(20px, 2.6vw, 32px); padding-top: 22px; border-top: 2px solid var(--plum); counter-reset: none; }
.how-steps li { font-size: 16.5px; line-height: 1.55; color: var(--ink-dim); }
.how-steps strong { display: block; font-size: 19px; font-weight: 750; letter-spacing: -0.015em; color: var(--plum); }
.how-steps li:first-child strong { font-size: 24px; }

/* ---------- Footer ---------- */
.foot { max-width: var(--max); margin: clamp(64px, 8vw, 112px) auto 0; padding: 26px var(--pad) 40px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 14px clamp(24px, 4vw, 56px); font-size: 14.5px; color: var(--ink-dim); }
.foot-mark { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--red); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--plum); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Mobile box bar ---------- */
.mobile-bar { display: none; }

/* ---------- Dialogs ---------- */
dialog { color: var(--ink); }
.sheet, .review { border: 0; background: var(--card); box-shadow: 0 30px 80px rgba(43, 22, 32, 0.3); }
.sheet::backdrop, .review::backdrop { background: rgba(43, 22, 32, 0.4); }
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; max-height: 86vh; margin: 0; border-radius: 18px 18px 0 0; }
.sheet[open] { animation: sheet-up .36s var(--ease); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-inner { padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.sheet-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: var(--plum); }
.close { position: relative; width: 44px; height: 44px; border-radius: 50%; }
.close:hover { background: rgba(59, 13, 40, 0.06); }
.close span::before, .close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--plum); transform: translate(-50%, -50%) rotate(45deg); }
.close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.review { width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; border-radius: 16px; }
.review[open] { animation: rise .36s var(--ease); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.review-inner { padding: clamp(20px, 3.4vw, 40px); }
.review-note { margin-top: 2px; font-size: 14px; color: var(--ink-dim); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 48px); margin-top: 18px; }
.mini-head { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.review-lines { list-style: none; margin-top: 8px; border-top: 1px solid var(--rule); }
.review-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.review-lines .r-name { font-weight: 650; color: var(--plum); }
.review-lines .r-amt { color: var(--ink-dim); font-weight: 450; }
.review-weight { margin-top: 8px; font-size: 14px; color: var(--ink-dim); }
.review-when { margin-top: 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--plum); }
.review-often { margin-top: 4px; font-size: 14.5px; color: var(--ink-dim); }
.review-problem { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: rgba(194, 53, 42, 0.1); color: var(--red-hover); font-weight: 600; }
.review-problem[hidden] { display: none; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.done-lede { margin-top: 4px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.15; color: var(--plum); }
.done-lede:focus { outline: none; }
.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.view-card { margin-top: 8px; padding: 16px; border-radius: var(--radius); background: var(--paper); font-size: 14.5px; line-height: 1.5; }
.view-card p + p, .view-card ul + p { margin-top: 8px; }
.view-card ul { list-style: none; }
.view-card li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--rule-strong); }
.view-card .v-head { font-weight: 750; color: var(--plum); }
.view-pack { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13.5px; background: #fffdf8; }
.view-takings dl div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.view-takings dt { color: var(--ink-dim); }
.view-takings dd { font-weight: 650; }
[data-step][hidden] { display: none; }

/* Fly to the box: a copy of the produce tile travels to the box total when something is added. */
.fly-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.flyer { position: absolute; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 8px 20px rgba(43, 22, 32, 0.3); background-size: 300% 200%; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .produce { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast-nav { gap: 18px; }
}
@media (max-width: 1000px) {
  /* Phones and tablets: headline, then the shoppable photograph, then the copy and the button. */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "photo" "copy"; }
  .hero-copy { padding-bottom: 0; }
  .mast { grid-template-columns: minmax(0, 1fr) auto; }
  .mast-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .boxes { grid-template-columns: minmax(0, 1fr); }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .box-panel { display: none; }
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 40; display: block; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 235, 221, 0.96); border-top: 1px solid var(--rule); backdrop-filter: blur(8px);
  }
  .mobile-bar button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 8px 0 20px; border-radius: 999px; background: var(--plum); color: #fff; text-align: left; }
  .mb-count { font-size: 15px; opacity: 0.9; }
  .mb-total { font-size: 18px; font-weight: 750; }
  .mb-go { padding: 9px 16px; border-radius: 999px; background: var(--red); font-size: 15px; font-weight: 650; }
  body { padding-bottom: 90px; }
  .when-form { grid-template-columns: minmax(0, 1fr); }
  .views { grid-template-columns: minmax(0, 1fr); }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .box-pill { min-height: 46px; gap: 10px; padding: 0 6px 0 14px; font-size: 14.5px; }
  .pill-label, .pill-items, .pill-rule, .pill-basket { display: none; }
  .pill-total { font-size: 16.5px; }
  .pill-go { width: 34px; height: 34px; }
  .pill-go::before { left: 10px; top: 16px; width: 13px; }
  .pill-go::after { left: 16px; top: 12px; }
  .hs-tag { display: none; }
  .hs-pin { width: 18px; height: 18px; }
  .hotspots.intro .hs .hs-tag { display: none; }
  .hero-figure figcaption { font-size: 13px; }
  .sizes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .size-card { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 14px 16px; }
  .size-kg { margin-top: 0; }
  .produce { grid-template-columns: minmax(0, 1fr); }
  .item { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .tile { aspect-ratio: auto; min-height: 100%; grid-row: span 2; }
  .item-text { padding: 14px 14px 2px; }
  .item h3 { font-size: 18px; }
  .note { display: none; }
  .item-buy { padding: 10px 14px 14px; }
  .add-btn, .qty-row { min-height: 44px; }
  .in-box-word { display: none; }
  .slot-grid { grid-template-columns: minmax(0, 1fr); }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .review { width: 100vw; max-width: 100vw; max-height: 100%; height: 100%; border-radius: 0; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 24px; }
  .hero h1 { font-size: 48px; }
}

/* ---------- Reduced motion: every state still changes; nothing travels or grows. ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
