.orchard-story {
  --ink:#263f33; --secondary:#46594c; --rule:#64745f; --paper:#f2f0e5; --btn:#f8f7ef; --accent:#326348;
  position:relative; isolation:isolate; width:100%; min-width:0; text-align:left; color:var(--ink); background:var(--paper);
  font:400 16px/1.5 system-ui,sans-serif;
}
[data-theme=dark] .orchard-story {
  --ink:#eeeecf; --secondary:#c8cbb8; --rule:#9eaf98; --paper:#24342e; --btn:#2a3a31; --accent:#c6d995;
}
.orchard-sticky {
  background:radial-gradient(ellipse at 65% 47%,#fcfaf0 0%,#ebeada 56%,#dddcc9 100%);
  border-block:1px solid #5c6d4936;
}
[data-theme=dark] .orchard-sticky {background:radial-gradient(ellipse at 65% 45%,#415046 0%,#27372f 58%,#1d2b25 100%)}
.orchard-layout {
  box-sizing:border-box; width:100%; max-width:1650px; margin:auto; position:relative;
  display:grid; grid-template-columns:minmax(0,0.75fr) minmax(0,1.65fr) auto;
  grid-template-areas:"head head pause" "crops view view" "copy view view" "hint hint detail" "steps steps steps";
  gap:clamp(12px,1.45vw,24px) clamp(16px,3vw,56px);
  padding:clamp(18px,3vw,48px) clamp(16px,5vw,84px) clamp(16px,2vw,32px);
}
.orchard-layout > * {min-width:0}
.orchard-head {grid-area:head;align-self:center}
.orchard-kicker,.orchard-index {font:600 clamp(11px,.78vw,13px)/1.4 system-ui,sans-serif;letter-spacing:.15em;text-transform:uppercase;color:var(--secondary)}
.orchard-head .orchard-title {font:500 clamp(32px,4.5vw,76px)/1.08 Georgia,serif;letter-spacing:-.055em;color:var(--ink);margin:6px 0 0;overflow-wrap:break-word}
.orchard-control,.orchard-detail,.orchard-crops button,.orchard-nav button {cursor:pointer;color:var(--ink);font:inherit;background:transparent}
.orchard-control,.orchard-detail {justify-self:end;align-self:start;border:1px solid var(--rule);border-radius:24px;padding:8px 14px;min-height:44px;font:600 12px/1.35 system-ui,sans-serif;background:var(--btn)}
.orchard-control {grid-area:pause;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.orchard-detail {grid-area:detail;align-self:center}
.orchard-story [hidden] {display:none}
.orchard-crops {grid-area:crops;align-self:start;justify-self:start;display:inline-flex;flex-wrap:wrap;max-width:100%;background:var(--btn);border:1px solid var(--rule);border-radius:24px;padding:3px}
.orchard-crops button {flex:1 1 auto;border:0;border-radius:20px;padding:6px 13px;min-height:44px;font:600 12px/1.35 system-ui,sans-serif}
.orchard-crops button[aria-pressed=true] {background:var(--ink);color:var(--paper)}
.orchard-view {grid-area:view;position:relative;align-self:stretch;min-height:clamp(250px,44svh,525px);overflow:hidden;touch-action:pan-y;cursor:grab;border-radius:12px}
.orchard-view:active {cursor:grabbing}
.orchard-view img,.orchard-view canvas {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.orchard-copy {grid-area:copy;align-self:center;overflow-wrap:break-word}
.orchard-copy .orchard-stage-title {color:var(--ink);font:500 clamp(25px,2.75vw,47px)/1.08 Georgia,serif;letter-spacing:-.045em;margin:8px 0}
.orchard-copy p,.orchard-hint {margin:0;color:var(--secondary);font:400 clamp(14px,1.03vw,17px)/1.48 system-ui,sans-serif}
.orchard-hint {grid-area:hint;align-self:center;font-size:12px}
.orchard-nav {grid-area:steps;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px 10px}
.orchard-nav button {display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 0 0;border:0;border-top:2px solid var(--rule);border-radius:0;text-align:left;line-height:1.35;font-size:clamp(12px,1vw,16px);overflow-wrap:anywhere}
.orchard-nav button[aria-current=step] {border-color:var(--accent);font-weight:700;color:var(--accent)}
.orchard-nav button span {font-size:11px;opacity:1;font-variant-numeric:tabular-nums}
.orchard-story button:focus-visible,.orchard-view:focus-visible,.orchard-skip:focus-visible {outline:3px solid var(--accent);outline-offset:2px}
.orchard-skip {position:absolute;inset:0 auto auto 8px;z-index:3;background:var(--btn);color:var(--ink);padding:8px}
.orchard-skip:not(:focus) {width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
.orchard-end {height:1px;outline:none}
@media (max-width:800px) {
  .orchard-layout {grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head pause" "crops detail" "view view" "copy copy" "hint hint" "steps steps";gap:12px 8px}
  .orchard-head .orchard-title {font-size:clamp(27px,5.5vw,42px)}
  .orchard-control {width:44px;height:44px;padding:0}
  .orchard-control-text {display:none}
  .orchard-icon {font-size:16px}
  .orchard-detail {padding:7px 10px;max-width:9em}
  .orchard-view {min-height:0;aspect-ratio:1.75}
  .orchard-copy .orchard-stage-title {font-size:clamp(23px,4.3vw,32px);margin:5px 0}
  .orchard-copy p {max-width:60ch}
  .orchard-nav {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media print {
  .orchard-control,.orchard-detail,.orchard-skip,.orchard-nav,.orchard-hint {display:none}
  .orchard-view {min-height:160px}
}

.orchard-icon {width:17px;height:17px;flex:none;fill:currentColor}
.orchard-control[data-paused="true"] .orchard-pause-icon,
.orchard-control[data-paused="false"] .orchard-play-icon {display:none}
.orchard-view[role="slider"]:focus-visible {outline:3px solid var(--accent);outline-offset:2px}
.orchard-page {margin:0;background:#f2f0e5;color:#263f33;font:400 16px/1.5 system-ui,sans-serif}
.orchard-page * {box-sizing:border-box}
.orchard-page .field-return {display:inline-block;margin:12px 5vw;padding:12px 2px;color:inherit;text-underline-offset:.2em}
.orchard-page .field-return:focus-visible {outline:3px solid currentColor;outline-offset:2px}
[data-theme=dark] .orchard-page {background:#24342e;color:#eeeecf}
.orchard-page noscript :is(h1,p) {margin-inline:5vw}
@media (max-width:420px) {
  .orchard-layout {grid-template-areas:"head pause" "crops crops" "detail detail" "view view" "copy copy" "hint hint" "steps steps"}
  .orchard-detail {justify-self:start}
  .orchard-layout:not(:has(.orchard-detail:not([hidden]))) {grid-template-areas:"head head" "crops crops" "view view" "copy copy" "hint hint" "steps steps"}
  .orchard-nav {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (forced-colors:active) {
  .orchard-crops button[aria-pressed=true] {outline:2px solid ButtonText;outline-offset:-4px}
  .orchard-nav button[aria-current=step] {border-block-start:4px solid Highlight}
}

.orchard-harvest {margin-top:1rem;border-top:1px solid var(--rule);padding-top:.75rem}
.orchard-copy .orchard-harvest-note {color:var(--ink);font-weight:600}
.orchard-harvest-actions {display:flex;gap:6px;flex-wrap:wrap;margin-top:.55rem}
.orchard-harvest-actions button {min-height:44px;padding:7px 13px;background:var(--btn);color:var(--ink);font:600 13px/1.35 system-ui,sans-serif;border:1px solid var(--rule);border-radius:24px;cursor:pointer}
.orchard-harvest-actions .orchard-pick {background:var(--ink);color:var(--paper)}
.orchard-specimen {display:flex;align-items:center;gap:.65rem;margin:.55rem 0}
.orchard-specimen svg {width:74px;height:55px;flex:none;background:#efeadd;border-radius:8px}
.orchard-specimen figcaption {color:var(--secondary);font:400 14px/1.45 system-ui,sans-serif}
.orchard-harvest-marker {box-sizing:border-box;position:absolute;pointer-events:none;transform:translate(-50%,-50%);width:26px;height:26px;border:2px solid #fff8d8;border-radius:50%;box-shadow:0 0 0 2px #233e2c,inset 0 0 0 1px #233e2c}
.orchard-view:has(.orchard-harvest-marker:not([hidden])) {cursor:crosshair}
@media (max-width:800px) {.orchard-harvest {margin-top:.7rem}}

/* Native page travel leaves room to explore each stage and scroll on past the harvest. */
.orchard-story {overflow-anchor:none}
.orchard-story::after {content:"";display:block;height:var(--orchard-track,0px)}
@media print {.orchard-story::after{display:none}}
.orchard-sticky {position:sticky;top:var(--orchard-inset,0px);z-index:1}
.orchard-model {grid-area:view;position:relative;display:grid;min-width:0}
.orchard-model .orchard-view {grid-area:1 / 1}
.orchard-head .orchard-title {text-wrap:balance}
.orchard-hint {border-inline-start:3px solid var(--accent);padding:4px 10px;color:var(--ink);font-weight:600}
.orchard-head .orchard-hint {margin-top:10px;max-width:62ch}
.orchard-harvest-marker {pointer-events:auto;z-index:1;display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:95%;height:auto;min-height:44px;padding:6px 12px;border:2px solid #fff4c7;border-radius:24px;background:#194732;color:#fff;font:700 13px/1.2 system-ui,sans-serif;cursor:pointer;box-shadow:0 0 0 2px #203b2c,0 2px 9px #152f2280}
.orchard-harvest-marker::before {content:'+';font-size:19px;color:#ffe797}
@media print {.orchard-story{padding-bottom:0}.orchard-sticky{position:static}.orchard-harvest-marker{display:none}}

/* Keep horizontal clipping while allowing the orchard to stick to the document viewport. */
@supports (overflow-x:clip) {body:has(.orchard-story) {overflow-x:clip}}

.orchard-story .orchard-harvest-marker{width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;box-shadow:none;justify-content:center}.orchard-harvest-marker::before{content:"";width:20px;height:20px;border:3px solid #fff5c5;background:#30563433;border-radius:50%;box-shadow:0 0 0 2px #254431}.orchard-story [hidden]{display:none!important}.orchard-model{align-self:stretch}.orchard-story img{pointer-events:none}

.orchard-model .orchard-film{object-fit:contain;pointer-events:none}

/* Reserve the viewport on its parent: WebKit can collapse an aspect-ratio grid child with absolutely positioned contents. */
.orchard-model{width:100%;display:block}.orchard-model .orchard-view{width:100%;height:100%;box-sizing:border-box}
@media(max-width:800px){.orchard-model{aspect-ratio:1.75;min-height:160px;align-self:start}.orchard-model .orchard-view{position:absolute;inset:0;min-height:0;aspect-ratio:auto}}
