/*
 * Orchard — a Farm to Fork storefront theme for coffee, fruit and premium produce.
 * The farm's story first, set like a book about the place: one large photograph holds still on the stage while the
 * reading column scrolls beside it; the harvest is listed plot by plot like the prices of a good menu; book-serif
 * headings, quiet colour, a lot of room. Colours and lettering come from theme.json as :root variables printed by the
 * layout (--ground, --paper, --surface, --ink, --muted, --accent, --field, --band-1..3, --font-display, --font-text …).
 * Square corners and one button shape; space and steps of tone instead of rules; shadows only on what floats.
 */

/* The book serifs set the middle dot off-centre; this face borrows a well-spaced one from the system serif for that one character. */
@font-face { font-family: "Orchard Dot"; src: local("Georgia"), local("Noto Serif"), local("Times New Roman"), local("DejaVu Serif"); unicode-range: U+00B7; }

:root {
  --o-text: "Orchard Dot", var(--font-text);
  --o-display: "Orchard Dot", var(--font-display);
  --step-small: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5625rem);
  --step-title: clamp(1.4375rem, 1.15rem + 0.75vw, 1.875rem);
  --step-head: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
  --step-display: clamp(2.75rem, 1.5rem + 4.4vw, 5.75rem);
  --margin: clamp(16px, 3.4vw, 56px);
  --gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(88px, 10vw, 168px);
  --max: 1440px;
  --top-h: 72px;
  --control: 50px;
  --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;
  --dur-pop: 200ms;
  --dur-sheet: 340ms;
  /* Error colours mixed from the palette's ink so they read on light and dark grounds alike. */
  --error: color-mix(in srgb, #c62f27 62%, var(--ink));
  --error-bg: color-mix(in srgb, #c62f27 13%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 12%, transparent);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; scrollbar-color: var(--muted) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--o-text);
  font-size: var(--step-body);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
svg.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--o-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3, h4 { font-weight: 600; font-size: var(--step-body); line-height: 1.3; }
strong, b { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.num { font-variant-numeric: lining-nums; white-space: nowrap; }
/* Facts in a line, separated by a drawn dot (the serif's own middle dot sits off-centre). */
.dots > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 0.6em; border-radius: 50%; background: currentColor; vertical-align: 0.3em; opacity: 0.8; }
.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.4; max-width: 40ch; }
.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: 600; }
.skip:focus { top: 16px; }
main { display: block; }
main:focus { outline: none; }
[hidden] { display: none !important; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--control); padding: 0 30px;
  border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--o-text); font-weight: 600; font-size: 1rem; line-height: 1.15; letter-spacing: 0.005em; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.on-field { background: var(--field-ink); color: var(--field); }
.btn.quiet { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); }
  .btn.ink:hover { background: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
  .btn.quiet:hover { background: color-mix(in srgb, var(--surface) 80%, var(--ink)); }
  .btn.on-field:hover { background: color-mix(in srgb, var(--field-ink) 86%, var(--field)); }
}
.btn .icon { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .icon-arrow-right, .invite .btn:hover .icon { transform: translateX(3px); } }
.btn-wide { width: 100%; }
.btn[disabled], .btn.is-busy { cursor: progress; }
.btn.is-busy { background: var(--muted); color: var(--paper); }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.24em; }
.text-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font-weight: 600; 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: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: transform var(--dur-press) var(--ease-out), background-color 160ms ease; }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--surface); } }

.input, .select, .textarea {
  display: block; width: 100%;
  min-height: var(--control); padding: 12px 14px;
  border: 1px solid var(--muted); border-radius: 0; /* taste-skill-ignore: a form field needs a visible edge (3:1 non-text contrast) */
  background: var(--paper); color: var(--ink);
  font-size: 1rem; line-height: 1.3;
  transition: border-color 160ms ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.textarea { min-height: 112px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: none; cursor: pointer; max-width: 100%; text-overflow: ellipsis; }
.select option { background: var(--paper); color: var(--ink); }
.select-wrap { position: relative; min-width: 0; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); outline: 1px solid var(--error); outline-offset: -1px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field > label, .label { font-weight: 600; font-size: 1rem; }
.hint { font-size: var(--step-small); color: var(--muted); margin: 0; }
.field-error { margin: 6px 0 0; font-size: var(--step-small); font-weight: 600; 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: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.notice { background: var(--surface); padding: 16px 18px; margin: 0 0 20px; }
.notice.is-error { background: var(--error-bg); color: var(--ink); }
.notice.is-error strong { color: var(--error); }
.notice p:last-child { margin: 0; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice a { font-weight: 600; }

/* Quantity stepper */
.stepper { display: inline-grid; grid-template-columns: 44px 52px 44px; height: 44px; border: 1px solid var(--muted); background: var(--paper); } /* taste-skill-ignore: a form field needs a visible edge */
.stepper .step { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--ink); transition: transform var(--dur-press) var(--ease-out), background-color 160ms ease; }
.stepper .step:active { transform: scale(0.88); }
@media (hover: hover) and (pointer: fine) { .stepper .step:hover { background: var(--surface); } }
.stepper .qty { width: 52px; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 1rem; -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 { outline: 2px solid var(--ink); outline-offset: -2px; }

.add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; min-width: 44px; padding: 0 14px;
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  font-family: var(--o-text); font-weight: 600; font-size: var(--step-small); line-height: 1; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.add-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .add-btn:hover { background: var(--ink); color: var(--paper); } }
.add-btn.is-added { background: var(--accent); color: var(--accent-ink); }
.add-btn .icon { transition: transform 260ms var(--ease-out); }
.add-btn.is-added .icon { transform: rotate(90deg) scale(0.9); }

/* ------------------------------------------------------------------ header: a plain bar */

.announce { background: var(--surface); color: var(--ink); font-size: var(--step-small); }
.announce .wrap { min-height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; padding-block: 8px; }
.announce p { margin: 0; }
.announce a { text-decoration: underline; text-underline-offset: 0.22em; }
.top { position: relative; z-index: 30; background: var(--ground); color: var(--ink); }
.top-row { display: flex; align-items: center; gap: 12px 28px; min-height: var(--top-h); }
.wordmark { flex: 0 1 auto; min-width: 0; text-decoration: none; font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.01em; font-size: var(--step-lead); line-height: 1.08; padding: 8px 0; text-wrap: balance; }
.wordmark img { width: var(--logo-w, 120px); max-width: 44vw; height: auto; }
.top-nav { display: none; flex: 1 1 auto; min-width: 0; }
.top-links { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 4px 26px; }
.top-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-decoration: none; }
.top-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
@media (hover: hover) and (pointer: fine) { .top-links a:hover { text-decoration: underline; text-underline-offset: 0.35em; } }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }
.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-size: 1rem; transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .tool:hover { background: var(--surface); } }
.tool-label { display: none; }
.tool-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bag-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; font-family: var(--o-text); transition: transform 260ms var(--ease-out); }
.bag-count.is-bumped { transform: scale(1.25); }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.menu-toggle .menu-close-icon, .menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: inline-grid; }
.menu-toggle .icon { display: block; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; font-weight: 600; text-decoration: none; }
.secure { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--muted); font-size: var(--step-small); }
@media (max-width: 599px) { .back-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 1200px) {
  .top-nav { display: block; }
  .menu-toggle { display: none; }
  .tool-label { display: inline; }
  .tool-account span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .wordmark { max-width: 20ch; }
}
@media (min-width: 1000px) {
  .top { position: sticky; top: 0; }
  html { scroll-padding-top: calc(var(--top-h) + 24px); }
}

.menu-sheet { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--ground); color: var(--ink); padding: calc(var(--top-h) + 24px) 0 48px; opacity: 0; transform: translateY(-10px); transition: opacity 240ms var(--ease-out), transform var(--dur-sheet) var(--ease-drawer); }
.menu-sheet.is-open { opacity: 1; transform: none; }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet-links a { display: block; padding: 8px 0; font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(2rem, 8.4vw, 3rem); line-height: 1.1; text-decoration: none; }
.sheet-more { margin-top: 32px !important; }
.sheet-more a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 0.22em; }
body.menu-open .top { position: fixed; inset: 0 0 auto; z-index: 55; }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ the split: reading column beside the stage */

.split { display: grid; }
.split-read { min-width: 0; padding-inline: var(--margin); }
.split-read > * { max-width: 36rem; }
.stage { position: relative; overflow: hidden; order: -1; height: 58svh; min-height: 300px; background: var(--field); color: var(--field-ink); }
.stage-pic { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1600ms ease; }
.stage-pic.is-on { opacity: 1; z-index: 1; }
.stage-pic img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.stage-pic.is-on img { animation: drift 26s var(--ease-in-out) infinite alternate; }
@keyframes drift { from { transform: scale(1.01); } to { transform: scale(1.07) translate3d(-1%, -0.6%, 0); } }
.stage-cap { position: absolute; left: 0; bottom: 0; z-index: 2; max-width: min(90%, 30rem); padding: 10px 16px; background: var(--paper); color: var(--ink); font-size: var(--step-small); line-height: 1.35; }
.stage-cap a { text-decoration: none; font-weight: 600; }
.stage-where { font-style: italic; }
.stage-where::before { content: "\2014\00a0"; font-style: normal; }
@media (hover: hover) and (pointer: fine) { .stage-cap a:hover { text-decoration: underline; } }
.stage.is-plate { display: grid; place-items: center; text-align: center; padding: var(--margin); }
.stage-plate { display: grid; gap: 14px; justify-items: center; }
.stage-place { margin: 0; font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1; font-size: clamp(2.75rem, 1.6rem + 4.4vw, 6rem); max-width: 9ch; text-wrap: balance; }
.stage-region { margin: 0; font-size: var(--step-lead); font-style: italic; color: var(--field-muted); }
.split.no-stage .split-read { width: 100%; max-width: 46rem; margin-inline: auto; }
@media (max-width: 999px) {
  .stage-cap { top: 0; bottom: auto; }
  .stage.is-plate { height: 36svh; min-height: 220px; }
  .split.is-short .stage { height: 200px; min-height: 0; }
  .split.is-short .stage.is-plate { display: none; }
}
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split-read { grid-column: 1; grid-row: 1; padding-left: var(--margin); padding-right: clamp(40px, 5vw, 96px); }
  .stage { grid-column: 2; grid-row: 1; order: 0; position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h)); min-height: 520px; }
  .split.no-stage { grid-template-columns: minmax(0, 1fr); }
  .split.no-stage .split-read { grid-column: 1; padding-inline: var(--margin); }
}

/* the opening page in the reading column */
.cover { display: flex; flex-direction: column; gap: 40px; padding-block: 40px 32px; }
.cover-body { margin-block: auto; }
.cover-title { font-size: var(--step-display); max-width: 12ch; }
.cover-title.is-long { font-size: clamp(2.25rem, 1rem + 3.2vw, 4rem); max-width: 13ch; }
.cover-sentence { margin: clamp(20px, 2.4vw, 32px) 0 0; font-size: var(--step-lead); line-height: 1.42; max-width: 32ch; }
.cover-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: clamp(28px, 3vw, 40px) 0 0; }
.cover-note { margin: 24px 0 0; max-width: 40ch; color: var(--muted); font-size: 1rem; }
.cover-note strong { color: var(--ink); }
.cover-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.cover-links a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--o-display); font-size: var(--step-lead); letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.25em; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .cover-links a:hover { text-decoration-color: currentColor; } }
@media (min-width: 1000px) {
  .split.is-opening .cover { min-height: calc(100svh - var(--top-h)); padding-block: 56px 40px; }
  .split.is-short .split-read { min-height: calc(100svh - var(--top-h)); display: flex; flex-direction: column; justify-content: center; }
}

/* the farm's story, read beside the stage */
.story { padding-block: var(--section) calc(var(--section) * 0.75); }
.split .cover + .story { padding-top: calc(var(--section) * 0.6); }
.story-h { margin-bottom: 32px; }
.letter p { max-width: 34em; line-height: 1.68; }
.letter .letter-first { font-size: var(--step-lead); line-height: 1.5; }
.sign { margin: 40px 0 2px; font-size: var(--step-lead); font-style: italic; font-family: var(--o-display); }
.sign-role { margin: 0; color: var(--muted); font-size: var(--step-small); }
.story-reach { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.story-reach a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 0.22em; }
.split.no-stage .story { padding-block: calc(var(--section) / 2); }

/* ------------------------------------------------------------------ page heads */

.page-head { padding-block: clamp(40px, 6vw, 104px) clamp(28px, 3.4vw, 56px); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 22px; }
.page-head > p.muted { margin-top: 12px; }
.sec-title { font-size: var(--step-head); margin: 64px 0 32px; }

/* ------------------------------------------------------------------ the harvest, plot by plot */

.ready { padding-block: calc(var(--section) / 2); }
.split + .ready, .ready:first-child { padding-top: var(--section); }
.ready-grid { display: grid; gap: 40px; }
.ready-sentence { margin: 22px 0 0; font-size: var(--step-lead); line-height: 1.42; max-width: 28ch; }
.ready-meta { margin: 16px 0 0; color: var(--muted); font-size: var(--step-small); max-width: 34ch; }
.ready-pic { position: relative; display: block; margin-top: 32px; width: min(100%, 300px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); text-decoration: none; }
.ready-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ready-pic:hover img { transform: scale(1.03); } }
.ready-cap { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: var(--step-small); }
.ready-all { margin: 24px 0 0; }
.ready-empty { background: var(--paper); padding: 24px; }
.plot { break-inside: avoid; margin-bottom: clamp(36px, 4vw, 56px); }
.plot-name { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.012em; font-size: var(--step-title); line-height: 1.12; margin-bottom: 18px; }
.crops { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.crop-head { margin: 0; }
.crop-name { font-size: var(--step-body); font-weight: 600; line-height: 1.3; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crop-name:hover { text-decoration: underline; } }
.crop-note { margin: 2px 0 0; color: var(--muted); font-size: var(--step-small); line-height: 1.4; }
.crop-low { color: var(--ink); font-weight: 600; }
.sizes { list-style: none; margin: 6px 0 0; padding: 0; }
.size { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; min-height: 46px; }
.size-unit { min-width: 0; color: var(--muted); font-size: 1rem; }
.size-price { font-weight: 600; text-align: right; }
.size form { margin: 0; }
.size.is-out .size-unit, .size.is-out .size-price { text-decoration: line-through; text-decoration-thickness: 1px; }
.size-out { font-size: var(--step-small); color: var(--muted); min-width: 68px; text-align: right; }
.size-choose { min-width: 68px; text-align: right; font-size: var(--step-small); }
@media (max-width: 520px) { .size .add-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .size .add-btn { min-height: 44px; } }
@media (min-width: 1000px) {
  .ready-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: start; }
  .ready-side { grid-column: 1 / 5; position: sticky; top: calc(var(--top-h) + 32px); }
  .ready-list { grid-column: 5 / 13; columns: 2; column-gap: clamp(40px, 4.4vw, 72px); }
}
@media (min-width: 700px) and (max-width: 999px) { .ready-list { columns: 2; column-gap: 40px; } }

/* ------------------------------------------------------------------ plates (product tiles) */

.tile { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.tile-link { grid-column: 1 / -1; grid-row: 1; display: block; color: inherit; text-decoration: none; }
.tile-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out), filter 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover .tile-pic img { transform: scale(1.035); }
  .tile-link:hover .title-plate .plate-name { transform: translateY(-3px); }
  .tile-link:hover .tile-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}
.tile.is-out .tile-pic img { filter: grayscale(1); }
.title-plate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 9%; text-align: center; background: var(--band-1); color: var(--band-1-ink); }
.title-plate.tone-2 { background: var(--band-2); color: var(--band-2-ink); }
.title-plate.tone-3 { background: var(--band-3); color: var(--band-3-ink); }
.plate-name { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.015em; line-height: 1.1; font-size: var(--step-title); text-wrap: balance; overflow-wrap: anywhere; transition: transform 500ms var(--ease-out); }
.plate-name, .plate-where { margin: 0; }
.plate-where { font-size: var(--step-small); font-style: italic; line-height: 1.35; max-width: 22ch; }
.tile-flag { position: absolute; left: 0; top: 0; z-index: 1; background: var(--paper); color: var(--ink); padding: 6px 10px; font-size: var(--step-small); font-weight: 600; }
.tile-cap { display: grid; gap: 2px; padding: 14px 0 0; }
.tile:has(.tile-add) .tile-cap { padding-right: 56px; }
.tile-name { font-family: var(--o-display); font-weight: var(--display-weight); font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.tile-price { margin: 2px 0 0; font-size: 1rem; }
.tile-price .num { font-weight: 600; }
.tile-unit { color: var(--muted); }
.tile-note { margin: 2px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.tile-low { margin: 2px 0 0; color: var(--ink); font-weight: 600; font-size: var(--step-small); }
.tile-add { grid-column: 2; grid-row: 1; align-self: end; z-index: 2; margin: 0; }
.tile-add .add-btn { padding: 0; width: 44px; min-height: 44px; }
.tile-add .add-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 12px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px var(--gap); } }
@media (min-width: 1100px) { .related-tiles, .bag-suggest .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tile:has(.tile-add) .tile-cap { padding-right: 48px; } .tile-name { font-size: 1.0625rem; } }

/* the shelf: a featured collection as one row that runs off the page */
.feat { padding-block: calc(var(--section) / 2); }
.feat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.feat-more { display: flex; align-items: center; gap: 20px; margin: 0; }
.shelf-nav { display: inline-flex; gap: 4px; }
.shelf { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: max(var(--margin), calc((100% - var(--max)) / 2 + var(--margin))); scrollbar-width: thin; scrollbar-color: var(--muted) transparent; padding-bottom: 20px; }
.shelf-row { display: flex; gap: var(--gap); width: max-content; padding-inline: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); }
.shelf-item { flex: 0 0 clamp(232px, 26vw, 388px); scroll-snap-align: start; }
.shelf.is-short .shelf-item { flex-basis: clamp(232px, 29vw, 420px); }
.shelf::-webkit-scrollbar { height: 6px; }
.shelf::-webkit-scrollbar-thumb { background: var(--muted); }
.shelf::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 599px) { .shelf-item { flex-basis: 70vw; } }
.related { padding-block: calc(var(--section) * 1.3) calc(var(--section) / 2); }

/* ------------------------------------------------------------------ the wide picture */

.wide { padding-block: calc(var(--section) / 2); }
.wide-pic { position: relative; margin: 0; height: clamp(320px, 52vw, 86svh); overflow: hidden; background: var(--surface); }
.wide-pic img { width: 100%; height: 100%; object-fit: cover; }
.wide-cap { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: flex-end; padding-block: 10px; font-size: var(--step-small); }
.wide-cap { color: var(--ink); }
.wide.has-pic .wide-cap { position: static; justify-content: flex-end; color: var(--muted); }
.wide-left.has-pic .wide-cap { justify-content: flex-end; }
.wide-right.has-pic .wide-cap { justify-content: flex-start; }
.wide-body { position: relative; }
.wide-sheet { background: var(--paper); padding: clamp(24px, 4vw, 56px); max-width: 36rem; }
.wide-sheet h2 { margin-bottom: 20px; }
.wide-text { font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; }
.wide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 28px 0 0; }
@media (min-width: 760px) {
  .wide.has-pic .wide-body { margin-top: clamp(-220px, -14vw, -120px); }
  .wide.has-pic .wide-cap { padding-inline: var(--margin); }
  .wide-right .wide-sheet { margin-left: auto; }
}
@media (max-width: 759px) { .wide.has-pic .wide-body { padding-inline: 0; } .wide.has-pic .wide-sheet { margin-top: -48px; margin-inline: var(--margin); position: relative; } }
.wide.no-pic { background: var(--band-2); color: var(--band-2-ink); padding-block: clamp(72px, 9vw, 144px); margin-block: calc(var(--section) / 2); }
.wide.no-pic .wide-sheet { background: none; padding: 0; max-width: none; display: grid; gap: 24px var(--gap); }
.wide.no-pic .text-link { color: var(--band-2-ink); }
.wide.no-pic .btn { background: var(--band-2-ink); color: var(--band-2); }
@media (min-width: 700px) {
  .wide.no-pic .wide-sheet { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .wide.no-pic h2 { grid-column: 1 / 7; margin: 0; font-size: var(--step-display); max-width: 11ch; }
  .wide.no-pic .wide-text, .wide.no-pic .wide-actions { grid-column: 8 / 13; }
  .wide.no-pic .wide-text { margin: 0; align-self: end; }
  .wide-right.no-pic h2 { grid-column: 7 / 13; grid-row: 1; }
  .wide-right.no-pic .wide-text, .wide-right.no-pic .wide-actions { grid-column: 1 / 6; }
}

/* ------------------------------------------------------------------ delivery: the live answer and the week's runs */

.deliv { padding-block: calc(var(--section) / 2); }
.deliv-grid { display: grid; gap: 48px; }
.deliv-grid > * { min-width: 0; }
.deliv-text { margin: 22px 0 0; max-width: 34ch; font-size: var(--step-lead); line-height: 1.42; }
.deliv-live { margin-top: 36px; }
.area-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.area-row { display: flex; flex-wrap: wrap; gap: 8px; }
.area-row .select-wrap { flex: 1 1 260px; }
.area-answer { margin-top: 32px; min-height: 132px; }
.answer-day { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--step-head); line-height: 1.02; margin: 0 0 14px; }
.answer-text { max-width: 40ch; }
.times { background: var(--paper); padding: clamp(24px, 3.4vw, 52px); }
.times-title { font-family: var(--o-display); font-weight: var(--display-weight); font-size: var(--step-title); letter-spacing: -0.012em; line-height: 1.12; margin-bottom: 8px; }
.times-day { margin-top: 28px; }
.times-date { font-size: var(--step-body); font-weight: 600; margin-bottom: 6px; }
.times-date span { font-weight: 400; color: var(--muted); }
.times-rows { list-style: none; margin: 0; padding: 0; }
.times .slip-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 20px; flex-wrap: wrap; padding: 8px 12px; margin-inline: -12px; transition: background-color 300ms ease; }
.times .slip-what { min-width: 0; }
.times .slip-when { color: var(--muted); font-size: 1rem; }
.times .slip-row.is-full .slip-what { color: var(--muted); text-decoration: line-through; }
.times .slip-row.is-mine { background: var(--surface); }
.times .slip-row.is-mine .slip-what { font-weight: 600; }
.times .slip-row.is-mine .slip-when { color: var(--ink); }
.times-fees { margin: 32px 0 0; color: var(--muted); font-size: var(--step-small); }
.times-empty { color: var(--muted); }
@media (min-width: 1000px) {
  .deliv-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .deliv-copy { grid-column: 1 / 6; }
  .times { grid-column: 7 / 13; }
}

/* ------------------------------------------------------------------ farm boxes on the farm's colour */

.boxes { background: var(--field); color: var(--field-ink); padding-block: clamp(80px, 9vw, 152px); margin-block: calc(var(--section) / 2); }
.boxes a:not(.btn) { color: var(--field-ink); }
.boxes-grid { display: grid; gap: 48px; }
.boxes-head p { margin: 20px 0 0; max-width: 32ch; font-size: var(--step-lead); line-height: 1.42; }
.boxes-head p + p { font-size: 1rem; }
.plans { display: grid; gap: 56px var(--gap); }
.plan { display: flex; flex-direction: column; align-items: flex-start; max-width: 30rem; }
.plan-name { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.012em; font-size: var(--step-title); line-height: 1.12; }
.plan-price { margin: 18px 0 0; font-family: var(--o-display); font-size: var(--step-head); line-height: 1; letter-spacing: var(--display-tracking); }
.plan-per { font-family: var(--o-text); font-size: 1rem; letter-spacing: 0; color: var(--field-muted); }
.plan-what { margin: 22px 0 0; max-width: 36ch; }
.plan-lines { list-style: none; margin: 16px 0 28px; padding: 0; display: grid; gap: 4px; color: var(--field-muted); font-size: 1rem; }
.plan-full { margin: 0; font-weight: 600; }
@media (min-width: 700px) {
  .boxes-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
  .boxes-head { grid-column: 1 / 6; }
  .plans { grid-column: 7 / 13; }
}
@media (min-width: 1000px) {
  .boxes-head { grid-column: 1 / 5; }
  .plans { grid-column: 6 / 13; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans.is-one { grid-template-columns: minmax(0, 1fr); }
}
.boxes-page { margin-top: 0; }
.how { padding-block: var(--section); }
.how h2 { margin-bottom: 40px; }
.how-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px var(--gap); }
.how-list li { max-width: 34ch; font-size: var(--step-body); }
.how-list strong { display: block; font-family: var(--o-display); font-weight: var(--display-weight); font-size: var(--step-lead); line-height: 1.2; margin-bottom: 8px; }
@media (min-width: 900px) { .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ reviews: the one centred moment */

.reviews { padding-block: var(--section); text-align: center; }
.reviews-h { margin-bottom: clamp(32px, 4vw, 56px); }
.review-main { margin: 0 auto; max-width: 52rem; display: grid; justify-items: center; }
.review-thumb { display: block; width: 96px; height: 96px; margin-bottom: 28px; overflow: hidden; }
.review-thumb img { width: 96px; height: 96px; object-fit: cover; }
.review-main blockquote { margin: 0; }
.review-open { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.015em; font-size: var(--step-title); line-height: 1.22; margin: 0 auto; max-width: 28ch; text-wrap: balance; }
.review-tail { margin: 22px auto 0; max-width: 46ch; }
.review-main figcaption { margin-top: 28px; display: grid; gap: 2px; font-size: 1rem; }
.who { font-weight: 600; }
.what { color: var(--muted); }
.what a { color: var(--ink); }
.review-more { list-style: none; margin: clamp(56px, 6vw, 96px) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px clamp(32px, 5vw, 80px); text-align: left; }
.review-more li { flex: 0 1 22rem; }
.review-more p { margin: 0 0 6px; max-width: 40ch; }
.review-more .what { font-size: var(--step-small); }

/* ------------------------------------------------------------------ journal */

.journal { padding-block: calc(var(--section) / 2); }
.journal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.journal-head p { margin: 0; }
.journal-grid { display: grid; gap: 40px var(--gap); }
.journal-lead a, .journal-list a { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.journal-pic { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.journal-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.journal-title { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.015em; font-size: var(--step-title); line-height: 1.12; text-wrap: balance; }
.journal-meta { color: var(--muted); font-size: var(--step-small); }
.journal-excerpt { max-width: 46ch; }
.journal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; align-content: start; }
.journal-list .journal-title { font-size: var(--step-lead); }
@media (hover: hover) and (pointer: fine) {
  .journal-lead a:hover img, .post-row a:hover img { transform: scale(1.03); }
  .journal-lead a:hover .journal-title, .journal-list a:hover .journal-title, .post-row a:hover .journal-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}
@media (min-width: 900px) {
  .journal-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .journal-lead { grid-column: 1 / 8; }
  .journal-list { grid-column: 9 / 13; }
  .journal-grid.is-one .journal-lead { grid-column: 1 / 9; }
}

/* ------------------------------------------------------------------ newsletter and the closing invitation */

.news { background: var(--surface); padding-block: clamp(64px, 7vw, 112px); margin-top: calc(var(--section) / 2); }
.news-grid { display: grid; gap: 32px var(--gap); }
.news-copy p { margin: 18px 0 0; max-width: 36ch; }
.news-form label:not(.hp) { display: block; font-weight: 600; margin-bottom: 8px; }
.news-row { display: flex; flex-wrap: wrap; gap: 8px; }
.news-row .input { flex: 1 1 220px; width: auto; }
@media (min-width: 900px) {
  .news-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .news-copy { grid-column: 1 / 7; }
  .news-form { grid-column: 8 / 13; }
}
.split + .news, .news + .foot { margin-top: 0; }
.invite { padding-block: var(--section); }
.invite-grid { display: grid; gap: 28px var(--gap); align-items: end; }
.invite h2 { max-width: 18ch; }
.invite p { margin: 0; }
@media (min-width: 900px) { .invite-grid { grid-template-columns: minmax(0, 1fr) auto; } }

/* ------------------------------------------------------------------ footer: the colophon */

.foot { background: var(--paper); color: var(--ink); margin-top: calc(var(--section) / 2); padding-top: clamp(64px, 8vw, 128px); }
.news + .foot, .boxes + .foot, .wide.no-pic + .foot { margin-top: 0; }
.foot-invite { display: grid; gap: 24px var(--gap); align-items: end; padding-bottom: clamp(48px, 6vw, 88px); }
.foot-invite h2 { max-width: 16ch; }
.foot-invite p { margin: 14px 0 0; max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; }
.foot-action { margin: 0; }
.foot-cols { display: grid; gap: 32px var(--gap); padding-bottom: 48px; }
.foot-h3 { font-family: var(--o-display); font-weight: var(--display-weight); font-size: var(--step-lead); letter-spacing: -0.01em; margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-col ul a, .foot-col p a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { text-decoration: underline; } }
.foot-col p { margin: 0 0 8px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-block: 24px 32px; font-size: var(--step-small); color: var(--muted); }
.foot-legal p { margin: 0; }
.foot-legal a { color: var(--ink); }
.foot-credits { flex: 1 1 100%; order: 3; max-width: 70ch; }
@media (min-width: 700px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .foot-invite { grid-template-columns: minmax(0, 1fr) auto; } }
.foot-min { padding-block: 32px; font-size: var(--step-small); color: var(--muted); }
.foot-min p { margin: 0; }
.foot-min a { color: var(--ink); }

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

.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--ink) 36%, transparent); opacity: 0; transition: opacity 300ms ease; }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(440px, 100vw); display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.16); /* taste-skill-ignore: the drawer floats over the page */
  transform: translateX(100%); transition: transform var(--dur-sheet) var(--ease-drawer);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 28px; min-height: var(--top-h); }
.drawer-head h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.drawer-notice { margin: 0 28px 12px; padding: 12px 14px; background: var(--surface); font-weight: 600; font-size: var(--step-small); }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 28px; overscroll-behavior: contain; }
.drawer-empty { padding: 24px 0; color: var(--muted); }
.drawer-foot { padding: 20px 28px calc(20px + env(safe-area-inset-bottom)); background: var(--surface); 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: 4px; }
.sums > div { display: flex; justify-content: space-between; gap: 16px; }
.sums dt, .sums dd { margin: 0; }
.sums dd { font-weight: 600; text-align: right; }
.sums .is-total { font-family: var(--o-display); font-size: var(--step-lead); padding-top: 10px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0 22px; transition: opacity 220ms ease, transform 220ms var(--ease-out); }
.line.is-leaving { opacity: 0; transform: translateX(16px); }
.line-img { display: block; width: 64px; height: 80px; background: var(--band-1); overflow: hidden; position: relative; }
.line-img img { width: 64px; height: 80px; object-fit: cover; }
.line-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--band-1-ink); font-family: var(--o-display); font-weight: var(--display-weight); font-size: 1.75rem; }
.line-title { font-family: var(--o-display); font-size: 1.125rem; line-height: 1.25; text-decoration: none; }
.line-unit { margin: 2px 0 10px; font-size: var(--step-small); color: var(--muted); }
.line-problem { margin: 0 0 8px; font-size: var(--step-small); font-weight: 600; color: var(--error); }
.line-end { display: grid; justify-items: end; align-content: start; }
.line-total { margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------ 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: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); transition: opacity 300ms ease, transform 300ms var(--ease-out); pointer-events: auto; } /* taste-skill-ignore: toasts float */
.toast.is-error { background: var(--error); color: var(--paper); }
.toast.is-entering, .toast.is-leaving { opacity: 0; transform: translateY(16px); }
body.has-sticky-buy .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }

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

.empty-note, .empty-board { background: var(--paper); padding: clamp(28px, 5vw, 64px); margin: 0 0 48px; max-width: 52rem; }
.empty-note h2, .empty-note h3, .empty-board h2, .empty-board h3 { font-family: var(--o-display); font-weight: var(--display-weight); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.08; margin-bottom: 14px; }
.empty-note .lead, .empty-board .lead { margin-bottom: 24px; }
.prose { max-width: 38rem; }
.prose p, .prose li { line-height: 1.68; }
.prose > p:first-child, .prose > .lead:first-child { font-size: var(--step-lead); line-height: 1.5; }
.prose h2 { font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.375rem); margin: 1.6em 0 0.5em; }
.prose h3 { margin: 1.4em 0 0.4em; font-size: var(--step-body); }
.prose img { margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose a { text-underline-offset: 0.22em; }
.pre { white-space: pre-line; }
.all-link { margin-top: 48px; }
.credit-list { padding-left: 20px; }
.credit-list li { margin-bottom: 8px; }

/* chapter: content pages and journal posts */
.chapter { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 104px) calc(var(--section) / 2); }
.chapter-head h1 { font-size: clamp(2.25rem, 1.2rem + 2.8vw, 3.875rem); line-height: 1.04; max-width: 12ch; }
.chapter-meta { margin: 20px 0 0; color: var(--muted); font-size: var(--step-small); }
.chapter-body { min-width: 0; }
.chapter-pic { margin: 0 0 clamp(32px, 4vw, 56px); }
.chapter-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.chapter-pic figcaption { margin-top: 10px; color: var(--muted); font-size: var(--step-small); }
@media (min-width: 1000px) {
  .chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: start; }
  .chapter-head { grid-column: 1 / 5; position: sticky; top: calc(var(--top-h) + 32px); }
  .chapter-body { grid-column: 5 / 12; }
  .page-article .chapter-body { grid-column: 5 / 13; }
}
.page-doc .deliv { padding-top: calc(var(--section) / 3); }

/* contents lists (more collections, more posts, browse from search) */
.contents-sec { padding-block: var(--section) calc(var(--section) / 2); }
.contents-sec.is-flush { padding-block: 24px 0; }
.contents-grid { display: grid; gap: 28px var(--gap); }
.contents { list-style: none; margin: 0; padding: 0; }
.contents a { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 10px; text-decoration: none; }
.contents-name { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: -0.015em; font-size: var(--step-title); line-height: 1.1; }
.contents-meta { color: var(--muted); font-size: var(--step-small); white-space: nowrap; }
.contents a .icon { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contents a:hover .contents-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; } .contents a:hover .icon { transform: translateX(5px); } }
@media (min-width: 700px) { .contents { columns: 2; column-gap: var(--gap); } .contents li { break-inside: avoid; } }
@media (min-width: 1000px) {
  .contents-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .contents-grid > h2 { grid-column: 1 / 5; }
  .contents { grid-column: 5 / 13; }
}

/* collections: the contents page */
.toc { list-style: none; margin: 0; padding: 0; }
.toc-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; padding-block: 14px; text-decoration: none; }
.toc-pic { position: relative; display: block; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.toc-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.toc-pic .title-plate { padding: 0; }
.toc-pic .plate-name { font-size: 1.75rem; }
.toc-name { font-family: var(--o-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.75rem); line-height: 1.05; }
.toc-count { color: var(--muted); font-size: var(--step-small); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .toc-row:hover .toc-pic img { transform: scale(1.06); } .toc-row:hover .toc-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } }
@media (min-width: 760px) { .toc-row { grid-template-columns: 120px minmax(0, 1fr) auto; } .toc-pic { width: 120px; } }

/* collection */
.coll-head { display: grid; gap: 20px 48px; align-items: end; }
.coll-head h1 { max-width: 12ch; }
.coll-intro .lead { margin: 0 0 8px; }
.coll-intro .lead p { margin: 0; }
@media (min-width: 900px) { .coll-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; padding: 0 0 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { display: grid; gap: 6px; min-width: 160px; flex: 1 1 160px; }
.filter > label { font-weight: 600; font-size: var(--step-small); }
.filter .select { min-height: 46px; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 0 20px; flex: 0 1 auto; min-width: 0; }
.filter-checks .check { padding-top: 0; align-items: center; }
.filter-sort { flex: 0 1 220px; }
.filter-clear { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 56px 0 0; }
.pager p { margin: 0; color: var(--muted); }

/* search */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 46rem; }
.search-form .input { flex: 1 1 260px; width: auto; min-height: 58px; font-family: var(--o-display); font-size: var(--step-lead); }
.search-form .btn { min-height: 58px; }
.search-body { padding-bottom: calc(var(--section) / 2); }
.search-pages { padding-top: 56px; }
.search-pages h2 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem); }
.link-list { list-style: none; padding: 0; margin: 16px 0 0; }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }

/* product: the split */
.product-split { display: grid; }
.gallery { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .title-plate { padding: 8%; }
.gallery-main .plate-name { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem); max-width: 18ch; }
.gallery-main .plate-where { font-size: var(--step-lead); max-width: 24ch; }
.thumbs { display: flex; gap: 8px; padding: 8px; overflow-x: auto; background: var(--ground); }
.thumb { flex: none; width: 72px; height: 88px; padding: 0; border: 0; background: var(--surface); cursor: pointer; opacity: 0.72; transition: opacity 160ms ease; }
.thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-read { min-width: 0; padding: 28px var(--margin) 0; }
.product-read > * { max-width: 34rem; }
.product-title { font-size: clamp(2.125rem, 1.2rem + 2.3vw, 3.5rem); line-height: 1.04; }
.tag-line { margin: 16px 0 0; max-width: 34ch; font-size: var(--step-lead); line-height: 1.42; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 28px 0 0; }
.price { font-family: var(--o-display); font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.price-unit { color: var(--muted); }
.price-was { color: var(--muted); }
.tag-note { margin: 8px 0 0; font-weight: 600; }
.tag-tax { margin: 6px 0 0; font-size: var(--step-small); color: var(--muted); }
.buy { margin-top: 28px; }
.pick { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.pick legend { font-weight: 600; 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: 52px; padding: 0 16px; border: 1px solid var(--muted); background: var(--paper); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform var(--dur-press) var(--ease-out); } /* taste-skill-ignore: a radio choice needs a visible edge */
.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); border-color: var(--ink); }
.pick-opt:has(input:focus-visible) { outline: 2px solid var(--ink); 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, .pick-price { font-weight: 600; }
.pick-left { font-size: var(--step-small); min-width: 52px; text-align: right; }
.buy-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.buy-row .stepper { height: var(--control); grid-template-columns: 46px 52px 46px; }
.buy-btn { flex: 1 1 200px; }
.buy-btn[disabled] { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.buy-btn.is-added { background: var(--ink); color: var(--paper); }
.stock-line { margin: 14px 0 0; font-weight: 600; }
.preorder { margin: 12px 0 0; background: var(--surface); padding: 10px 12px; }
.facts { margin: 40px 0 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.facts > div:nth-child(odd) { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.facts dt { color: var(--muted); font-style: italic; font-family: var(--o-display); }
.facts dd { margin: 0; }
.deliver-to { margin-top: 28px; background: var(--paper); padding: 20px; }
.deliver-to p { margin: 0 0 12px; }
.area-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.area-mini > label { flex: 1 1 100%; display: block; font-weight: 600; margin-bottom: 0; }
.area-mini .select-wrap { flex: 1 1 220px; }
.product-story, .product-reviews { padding-top: clamp(64px, 7vw, 112px); }
.product-story h2, .product-reviews h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.625rem); margin-bottom: 20px; }
.review-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 28px; }
.review-list p { margin: 0 0 4px; max-width: 58ch; }
.review-rating { font-size: var(--step-small); color: var(--muted); }
.review-form-wrap > summary { list-style: none; display: inline-flex; }
.product-reviews { padding-bottom: 24px; }
.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: 600; 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: 44px; height: 44px; border: 1px solid var(--muted); font-weight: 600; cursor: pointer; transition: background-color 160ms ease; } /* taste-skill-ignore: a radio choice needs a visible edge */
.rate input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rate input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rating-row .hint { margin-left: 8px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12); transform: translateY(110%); visibility: hidden; transition: transform 300ms var(--ease-drawer), visibility 0s linear 300ms; padding-bottom: env(safe-area-inset-bottom); } /* taste-skill-ignore: sticky buy bar floats */
.sticky-buy.is-shown { transform: none; visibility: visible; transition: transform 300ms var(--ease-drawer), visibility 0s; }
.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: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1000px) {
  .product-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .gallery { position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h)); min-height: 520px; display: flex; flex-direction: column; }
  .gallery-main { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; max-height: none; }
  .product-read { padding: clamp(40px, 5vw, 80px) var(--margin) 0 clamp(40px, 5vw, 96px); }
  .sticky-buy { display: none; }
}

/* farm box sign-up */
.box-head h1 { max-width: 14ch; }
.box-grid { display: grid; gap: 32px; padding-bottom: calc(var(--section) / 2); }
@media (min-width: 1000px) { .box-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; } .box-aside { position: sticky; top: calc(var(--top-h) + 24px); } }

/* paper sheets: forms, receipts, slips */
.sheet-form { background: var(--paper); padding: clamp(20px, 4vw, 40px); margin-bottom: 24px; }
.sheet-form h3 { margin: 8px 0 16px; }
.box-form.sheet-form { background: none; padding: 0; }
.form-block { border: 0; margin: 0 0 12px; padding: clamp(20px, 3.5vw, 40px); background: var(--paper); min-width: 0; }
.form-block legend { float: left; width: 100%; padding: 0; margin-bottom: 22px; }
.form-block legend + * { clear: left; }
.form-block legend h2 { font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.375rem); }
.sub-block { margin-top: 28px; }
.sub-block h3 { margin-bottom: 12px; }
.choice-row { display: grid; gap: 8px; }
@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; border: 1px solid var(--muted); background: var(--paper); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; } /* taste-skill-ignore: a radio choice needs a visible edge */
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--paper); flex: none; }
.choice > span { display: grid; gap: 2px; }
.choice:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice:has(input:checked) .hint { color: var(--paper); }
.choice:not(:has(input:checked)) input { accent-color: var(--ink); }
.choice.wide { margin-bottom: 8px; }
.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; border: 1px solid var(--muted); cursor: pointer; min-height: 64px; transition: background-color 160ms ease, transform var(--dur-press) var(--ease-out); } /* taste-skill-ignore: a radio choice needs a visible edge */
.day input { position: absolute; opacity: 0; }
.day-name { font-weight: 600; }
.day-cut { font-size: var(--step-small); color: var(--muted); }
.day:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day:has(input:checked) .day-cut { color: var(--paper); }
.day:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.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(--surface); font-weight: 600; }
.zone-msg.is-error { background: var(--error-bg); color: var(--error); }
.gift { margin-top: 28px; }
.gift > label { display: block; font-weight: 600; margin-bottom: 8px; }
.bank { background: var(--surface); padding: 16px; }
.card .notice { background: var(--surface); }
.place-btn { margin: 8px 0 24px; min-height: 60px; font-size: var(--step-body); }
.form-acts { display: flex; align-items: center; gap: 16px; margin: 8px 0 0; }

.slip { background: var(--paper); color: var(--ink); padding: clamp(24px, 3vw, 40px); }
.slip-title { font-family: var(--o-display); font-weight: var(--display-weight); font-size: var(--step-title); letter-spacing: -0.015em; line-height: 1.08; margin-bottom: 8px; }
.slip-day { margin-top: 28px; font-size: var(--step-body); }
.slip .slip-rows { list-style: none; margin: 12px 0 0; padding: 0; }
.slip .slip-row { padding: 8px 0; }
.slip-end { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 0; }
.slip-end .num { font-family: var(--o-display); font-size: var(--step-head); line-height: 1; }

/* bag page */
.page-cart .page-head { padding-bottom: 28px; }
.bag-grid { display: grid; gap: 32px; padding-bottom: calc(var(--section) / 2); }
@media (min-width: 1000px) { .bag-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: start; } .bag-receipt { position: sticky; top: calc(var(--top-h) + 24px); } }
.bag-table { width: 100%; border-collapse: collapse; }
.bag-table th { text-align: left; font-size: var(--step-small); font-weight: 600; color: var(--muted); padding: 0 12px 12px; }
.bag-table th:first-child { padding-left: 0; }
.bag-table th.n, .bag-table td.n { text-align: right; }
.bag-table th.c, .bag-table td.c { text-align: center; }
.bag-table td { padding: 20px 12px; vertical-align: middle; border-top: 1px solid var(--rule); }
.bag-img { width: 96px; padding-left: 0 !important; }
.bag-img img, .bag-img .line-ph { width: 80px; height: 100px; object-fit: cover; position: static; display: grid; background: var(--band-1); }
.bag-item .line-title, .bag-item .line-unit, .bag-item .line-problem { display: block; }
.bag-item .line-title { font-size: var(--step-lead); }
.bag-item .text-btn { padding: 4px 0; min-height: 36px; }
tr.has-problem td { background: var(--error-bg); }
.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; }
@media (max-width: 699px) {
  .bag-table thead { display: none; }
  .bag-table, .bag-table tbody, .bag-table tr, .bag-table td { display: block; }
  .bag-table tr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--rule); }
  .bag-table td { padding: 0; border: 0; }
  .bag-img { grid-row: 1 / 3; width: auto; }
  .bag-img img, .bag-img .line-ph { width: 72px; height: 90px; }
  .bag-item { grid-column: 2 / 4; }
  .bag-table td.n[data-label="Price"] { display: none; }
  .bag-table td.c { grid-column: 2; text-align: left; }
  .bag-table td.line-total { grid-column: 3; align-self: center; font-weight: 600; }
}
.receipt .sums { margin: 20px 0; }
.receipt .sums > div { padding: 5px 0; }
.receipt .is-total { margin-top: 10px; padding-top: 16px !important; }
.receipt-note { font-size: var(--step-small); color: var(--muted); margin: 12px 0; }
.receipt-note.is-error { color: var(--error); font-weight: 600; }
.code-form { margin: 20px 0; }
.code-form > label, .area-mini > label { display: block; font-weight: 600; margin-bottom: 8px; }
.code-on { margin: 0; }
.receipt .area-mini { margin-top: 20px; }

/* checkout */
.page-checkout .top-row { min-height: 64px; }
.co-head { padding-block: clamp(24px, 4vw, 56px) 24px; }
.co-head h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }
.co-head .lead { margin-top: 10px; }
.checkout { padding-bottom: calc(var(--section) / 2); }
.co-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .co-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); 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: 14px; }
.co-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.co-img { position: relative; width: 56px; height: 70px; background: var(--band-1); }
.co-img img, .co-img .line-ph { width: 56px; height: 70px; object-fit: cover; }
.co-img .line-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.375rem; }
.co-qty { position: absolute; right: -8px; top: -8px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; }
.co-name { display: block; font-weight: 600; line-height: 1.3; }
.co-each { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.co-total { font-weight: 600; }

/* order status */
.order-head h1 { max-width: 14ch; }
.order-grid { display: grid; gap: 32px; padding-bottom: calc(var(--section) / 2); }
@media (min-width: 1000px) { .order-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; } }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step-item { display: grid; gap: 8px; align-content: start; }
.step-bar { position: relative; display: block; height: 6px; overflow: hidden; background: var(--surface); }
.step-item.is-done .step-bar { background: var(--ink); }
.step-item.is-current .step-bar::after { content: ""; position: absolute; inset: 0 55% 0 0; background: var(--ink); }
.step-label { font-weight: 600; 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: 6px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 44px; } .step-bar { height: 100%; min-height: 44px; } }
.hand, .pay-transfer { background: var(--paper); padding: clamp(20px, 3.5vw, 40px); margin-bottom: 12px; }
.hand h2, .pay-transfer h2 { font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.375rem); margin-bottom: 14px; }
.hand-day { font-family: var(--o-display); font-size: var(--step-lead); }
.order-account, .order-help { margin: 20px 0 0; }

/* accounts */
.auth { padding-block: clamp(32px, 6vw, 88px); }
.auth h1 { font-size: clamp(2.5rem, 1.5rem + 3vw, 4.25rem); }
.auth .lead { margin: 18px 0 32px; }
.auth-form { max-width: 30rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 28px 0 0; max-width: 30rem; }
.acct-head h1 { max-width: 14ch; }
.tab-row { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: flex-end; }
.crate-tab { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-family: var(--o-display); font-size: var(--step-lead); color: var(--muted); border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.crate-tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .crate-tab:hover { color: var(--ink); } }
.tab-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; border-radius: 11px; background: var(--ink); color: var(--paper); font-family: var(--o-text); font-size: 0.8125rem; }
.acct-tabs { margin: 8px 0 24px; }
.acct-panel { background: var(--paper); padding: clamp(20px, 4vw, 48px); margin-bottom: calc(var(--section) / 2); }
.panel-h { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.625rem); margin-bottom: 24px; }
.acct-table { width: 100%; border-collapse: collapse; }
.acct-table th { text-align: left; font-size: var(--step-small); color: var(--muted); font-weight: 600; padding: 10px 12px 10px 0; }
.acct-table td { padding: 16px 12px 16px 0; border-top: 1px solid var(--rule); vertical-align: middle; }
.acct-table .n { text-align: right; }
.acct-table td > a.line-title, .acct-table .line-unit { display: block; }
.acct-table .line-unit { font-size: var(--step-small); color: var(--muted); }
.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: 16px 0; border-top: 1px solid var(--rule); }
  .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: 8px; }
.box-row.is-off { opacity: 0.75; }
.box-row h3 { font-family: var(--o-display); font-weight: var(--display-weight); font-size: var(--step-lead); }
.box-when { font-weight: 600; 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; }
.pause-form .select { min-height: var(--control); }
.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: 8px; 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(--ink); color: var(--paper); }
.addr.is-main .muted, .addr.is-main .hint { color: var(--paper); }
.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(--ground); }
.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-cover .cover-action { gap: 16px 28px; }
.error-debug { white-space: pre-wrap; font-size: 13px; margin-top: 24px; background: var(--paper); padding: 16px; overflow: auto; max-width: 100%; }
.shop-pass { margin-top: 28px; max-width: 520px; }
.shop-pass label { display: block; font-weight: 600; margin-bottom: 8px; }

/* blog */
.blog-body { padding-bottom: calc(var(--section) / 2); }
.journal-lead.is-page { margin-bottom: clamp(56px, 6vw, 96px); }
.journal-lead.is-page a { max-width: 64rem; }
.journal-lead.is-page .journal-title { font-size: var(--step-head); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.post-row a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; text-decoration: none; color: inherit; align-items: start; }
.post-pic { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.post-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.post-pic .plate-name { font-size: 2rem; }
.post-text { display: grid; gap: 8px; align-content: start; }
@media (min-width: 900px) { .post-row a { grid-template-columns: 220px minmax(0, 1fr); gap: var(--gap); } }

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

/* Entrances are armed by orchard.js on the visitor's first scroll, and only for what is still below the screen:
   nothing is ever hidden from someone who has not scrolled (a print, a full-page capture, a reader that does not scroll). */
[data-reveal] { transition: opacity 760ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.is-armed [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(20px); }
/* Pictures unveil from the bottom edge and settle, slowly. */
.wide-pic[data-reveal], .ready-pic[data-reveal], .chapter-pic[data-reveal] { transition: clip-path 1200ms var(--ease-out); }
.wide-pic[data-reveal] img, .ready-pic[data-reveal] img, .chapter-pic[data-reveal] img { transition: transform 1600ms var(--ease-out); }
.is-armed .wide-pic[data-reveal]:not(.is-in), .is-armed .ready-pic[data-reveal]:not(.is-in), .is-armed .chapter-pic[data-reveal]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(0 0 14% 0); }
.is-armed .wide-pic[data-reveal]:not(.is-in) img, .is-armed .ready-pic[data-reveal]:not(.is-in) img, .is-armed .chapter-pic[data-reveal]:not(.is-in) img { transform: scale(1.06); }
.is-arming [data-reveal], .is-arming [data-reveal] img { transition: none !important; }
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; } }
/* The opening page arrives in reading order; the stage's first picture settles. */
.js .cover-title, .js .cover-sentence, .js .cover-action, .js .cover-note, .js .cover-links, .js .product-head, .js .auth > *, .js .chapter-head { animation: rise 1000ms var(--ease-out) both; }
.js .cover-sentence, .js .auth > :nth-child(2) { animation-delay: 90ms; }
.js .cover-action, .js .auth > :nth-child(3) { animation-delay: 170ms; }
.js .cover-note, .js .auth > :nth-child(4) { animation-delay: 240ms; }
.js .cover-links { animation-delay: 320ms; }
.js .stage-pic.is-on:first-child, .js .stage-plate { animation: unveil 1600ms var(--ease-out) both; }
.js .gallery-main img { animation: settle 1600ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 0 8% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.reveal-all [data-reveal] img { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  [data-reveal] { transition: opacity 300ms ease; }
  .is-armed [data-reveal]:not(.is-in) { transform: none; }
  .is-armed .wide-pic[data-reveal]:not(.is-in), .is-armed .ready-pic[data-reveal]:not(.is-in), .is-armed .chapter-pic[data-reveal]:not(.is-in) { clip-path: none; }
  .is-armed [data-reveal]:not(.is-in) img { transform: none; }
  .js .cover-title, .js .cover-sentence, .js .cover-action, .js .cover-note, .js .cover-links, .js .product-head, .js .auth > *, .js .chapter-head,
  .js .stage-pic.is-on:first-child, .js .stage-plate { animation: fade 300ms ease both; }
  .stage-pic.is-on img, .js .gallery-main img { animation: none; }
  .stage-pic { transition-duration: 300ms; }
  .tile-pic img, .ready-pic img, .journal-pic img, .post-pic img, .toc-pic img, .plate-name, .drawer, .menu-sheet, .toast, .line,
  .add-btn .icon, .btn, .btn .icon, .add-btn, .stepper .step, .contents a .icon, .day, .pick-opt { transition-property: opacity, background-color, color !important; }
  .drawer:not(.is-open) { opacity: 0; }
  .menu-sheet { transform: none; }
  .btn:active, .add-btn:active, .day:active, .pick-opt:active, .icon-btn:active, .stepper .step:active { transform: none !important; }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 699px) {
  :root { --section: 72px; --top-h: 64px; }
  .cover { padding-block: 32px 24px; gap: 28px; }
  .story-h { margin-bottom: 22px; }
  .ready-pic { width: 58%; }
  .times .slip-row { padding-block: 6px; }
  .area-answer { min-height: 0; }
  .feat-head .shelf-nav { display: none !important; }
  .facts > div { grid-template-columns: 88px minmax(0, 1fr); }
  .review-more li:nth-child(n+3) { display: none; }
}
