/* Layout: a full-bleed photographic opening scene, then quiet columns of text on white,
   like a farm's own newsletter. One bright look on purpose (morning light), in every theme. */
:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --paper-2: #f3f2ec;
  --ink: #1d2a1f;
  --ink-2: #4b594d;
  --ink-3: #7b867c;
  --leaf: #2e6b31;
  --leaf-deep: #214f24;
  --mist: #edf3ea;
  --line: #e4e2d9;
  --rule: #d6e0d2;             /* hairline on the mist cards */
  --track: #d5e3d1;            /* "one day's worth" under the nutrition bars: a light step of leaf on mist */
  --leaf-lift: #3c8540;        /* a hovered bar */
  --on-leaf: #ffffff;
  --font-display: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-hand: "Klee One", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --gutter: max(20px, 5vw);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }   /* menu links jump straight to their section (no smooth scroll through the 3D scenes) */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.9; font-feature-settings: "palt"; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */
.site-header { position: absolute; z-index: 10; top: env(safe-area-inset-top, 0px); left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 22px var(--gutter); }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .14em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; gap: 28px; font-size: .88rem; letter-spacing: .08em; }
.site-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--leaf); }
.site-nav .nav-order { color: var(--leaf); font-weight: 700; }
@media (max-width: 760px) { .site-nav a:not(.nav-order) { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 260vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#scene:active { cursor: grabbing; }
.hero-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.no-gpu #scene { display: none; }
.no-gpu .hero-fallback { display: block; }

.hero-copywrap { position: absolute; inset: 0; display: grid; align-items: center; padding-inline: var(--gutter); pointer-events: none; }
.hero-copy { grid-area: 1 / 1; max-width: 30rem; will-change: opacity, transform; position: relative; }
.hero-copy::before { content: ""; position: absolute; inset: -70px -90px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 82%, transparent), color-mix(in srgb, var(--paper) 0%, transparent)); }
.hero-copy a, .hero-copy button { pointer-events: auto; }
.eyebrow { font-size: .8rem; letter-spacing: .3em; color: var(--leaf); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
.hero h1 span, .hero h2 span { white-space: nowrap; }   /* keep each line of the headline whole */
.hero h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
.lead { margin-top: 22px; color: var(--ink-2); font-size: 1.02rem; max-width: 23em; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 28px; background: var(--leaf); color: var(--on-leaf); font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--leaf-deep); }
.season { font-size: .82rem; color: var(--ink-3); letter-spacing: .06em; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); font-size: .78rem; letter-spacing: .2em; color: var(--ink-3); pointer-events: none; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 38px; margin: 10px 0 0 6px; background: linear-gradient(var(--ink-3), transparent); }

@media (max-width: 760px) {
  .hero-copywrap { align-items: start; padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
  .hero h1 { font-size: 2.15rem; }
  .hero h2 { font-size: 1.9rem; }
  .lead { margin-top: 14px; font-size: .95rem; }
  .hero-actions { margin-top: 18px; }
  .scroll-cue { left: 50%; transform: translateX(-50%); text-align: center; }
  .scroll-cue::after { margin-inline: auto; }
}

/* ---------------------------------------------------------------- field: the band holds still in the middle of the
   screen for --travel of scrolling while the camera moves in depth (js/field.js), then scrolls on. The end of the
   hero just above it is held for the same stretch, so the whole screen stands still (CSS sticky only).
   40.6vw: the photo at full width, minus the strips kept around the band for the plants that rise into view and
   for the whole picture sinking (js/field.js STROKE, PAN) — the band is cropped instead of the photo being zoomed in */
main { --band: min(80vh, 40.6vw); --travel: 110vh; --hold: calc((100vh - var(--band)) / 2); }   /* on main: the section after the group needs --band too */
@supports (height: 1svh) { main { --band: min(80svh, 40.6vw); --travel: 110svh; --hold: calc((100svh - var(--band)) / 2); } }
@media (max-width: 760px) {
  main { --band: 62vh; --travel: 88vh; }
  @supports (height: 1svh) { main { --band: 62svh; --travel: 88svh; } }
}
.hold-group { display: flow-root; }
/* the hero sticks with its bottom edge right on top of the held band. The group ends --band early (the negative
   margin below; flow-root keeps it inside), so the hero is let go at the same moment as the band. */
.hold-group .hero { position: sticky; top: calc(var(--hold) - 260vh); }
.field { position: relative; height: calc(var(--band) + var(--travel)); margin-bottom: calc(-1 * var(--band)); }
.hold-group + * { margin-top: var(--band); }
.field-stage { position: sticky; top: var(--hold); height: var(--band); overflow: hidden; background: var(--mist); }
.field-photo, #field-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-photo { object-fit: cover; object-position: 38% 48%; transition: opacity .6s; }
.field.is-live .field-photo { opacity: 0; }
/* white copy on the field: a soft shade in the lower left keeps it readable over the leaves; it fades in as the
   band settles in the middle of the screen (js/field.js adds .copy-in) */
.field-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(110% 85% at 0% 100%, rgba(16, 34, 18, .45), rgba(16, 34, 18, 0) 62%); }
.field-copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(22px, 8%, 64px); color: #fff; text-shadow: 0 1px 2px rgba(10, 24, 12, .25), 0 4px 22px rgba(10, 24, 12, .4); opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.16, .84, .24, 1); }
.field.copy-in .field-copy { opacity: 1; transform: none; }
.field-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .3em; opacity: .92; }
.field-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); color: #fff; }
.field-copy h2 span { white-space: nowrap; }
@media (max-width: 760px) {   /* on a phone the big head fills the lower half: put the copy over the rows below the horizon */
  .field-copy { top: 33%; bottom: auto; }
  .field-stage::after { background: radial-gradient(130% 55% at 0% 45%, rgba(16, 34, 18, .45), rgba(16, 34, 18, 0) 65%); }
}
@media (prefers-reduced-motion: reduce) { .field-copy { opacity: 1; transform: none; transition: none; } }
@media (prefers-reduced-motion: reduce) {
  .hold-group .hero { position: relative; top: auto; }
  .field { height: auto; margin-bottom: 0; }
  .hold-group + * { margin-top: 0; }
  .field-stage { position: relative; top: 0; }
}

/* ---------------------------------------------------------------- morning */
.morning { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.morning-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.morning h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.morning-body { display: grid; gap: 34px; color: var(--ink-2); max-width: 32em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.timeline li { padding: 16px 0 0; display: grid; gap: 2px; }
.timeline time { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timeline span { font-size: .85rem; letter-spacing: .2em; color: var(--ink-3); }
.hand { font-family: var(--font-hand); font-size: 1.12rem; color: var(--leaf-deep); line-height: 1.8; }
.hand span { display: block; font-size: .9rem; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 760px) { .morning-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------------------------------------------------------------- floret (how to eat): a turning icon */
.floret { padding: 0 var(--gutter) clamp(80px, 12vw, 150px); }
.floret-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.floret-visual { display: grid; justify-items: center; gap: 12px; }
.floret-figure { position: relative; margin: 0; width: clamp(170px, 22vw, 240px); aspect-ratio: 1 / 1; max-width: 100%; border-radius: 50%; overflow: hidden; background: var(--mist); will-change: transform; }
#floret-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: zoom-in; opacity: 0; transition: opacity .8s; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.floret-figure.ready #floret-scene { opacity: 1; }
.floret-figure.pressing #floret-scene { cursor: grabbing; }
.floret-hint { margin: 0; font-size: .74rem; letter-spacing: .08em; color: var(--ink-3); opacity: 0; transition: opacity .6s; text-align: center; }
.floret-figure.ready + .floret-hint { opacity: 1; }
.no-gpu .floret-hint, .floret-figure.no-gpu + .floret-hint { display: none; }
.floret-fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-gpu .floret-fallback, .floret-figure.no-gpu .floret-fallback { display: block; }
.no-gpu #floret-scene, .floret-figure.no-gpu #floret-scene { display: none; }
.floret-copy { display: grid; gap: 20px; color: var(--ink-2); max-width: 30em; }
.floret-copy .eyebrow { margin-bottom: -8px; }
.floret-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--ink); }
.tip { background: var(--mist); border-radius: 4px; padding: 18px 20px; font-size: .92rem; }
.tip-title { font-family: var(--font-hand); font-size: 1.05rem; color: var(--leaf-deep); margin-bottom: 4px; }
@media (max-width: 760px) {
  .floret-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}

/* ---------------------------------------------------------------- order */
.order { padding: 0 var(--gutter) clamp(80px, 12vw, 140px); }
.order-card { max-width: 1040px; margin: 0 auto; background: var(--mist); border-radius: 4px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 36px clamp(32px, 5vw, 64px); align-items: center; }
.order-main { display: grid; gap: 10px; justify-items: start; }
.order-main .eyebrow { margin-bottom: 4px; }
.order-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.order-meta { color: var(--ink-2); font-size: .92rem; }
.btn-ext { margin-left: .45em; font-size: .9em; }   /* leaves this site */
.order-note { margin-top: -4px; font-size: .74rem; color: var(--ink-3); letter-spacing: .04em; }
.price { font-family: var(--font-display); font-size: 2rem; margin: 6px 0 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: .78rem; color: var(--ink-3); margin-left: 10px; letter-spacing: .06em; }

/* nutrition, per 100 g raw, as % of the daily reference. The pale track is one day's worth (100%);
   a bar that passes it overflows the track, with a small notch where "1 日分" was. */
.nutri { --max: 140; --name: 5rem; --room: 3.6rem; --gap: 14px; margin: 0; display: grid; gap: 18px; padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid var(--rule); }
.nutri-head { display: grid; gap: 4px; }
.nutri-head .eyebrow { margin: 0; }
.nutri-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: .06em; line-height: 1.5; color: var(--ink); }
.nutri-title span { display: inline-block; }
.nutri-chart { position: relative; padding-top: 22px; }
.nutri-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nutri-row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); column-gap: var(--gap); align-items: center; padding: 3px 0; border-radius: 4px; transition: opacity .25s; }
.nutri-row:focus { outline: none; }
.nutri-row:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
.nutri-list:has(.nutri-row:hover) .nutri-row:not(:hover) { opacity: .55; }
.nutri-name { font-size: .9rem; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.nutri-name small { display: block; margin-top: 1px; font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); }
.nutri-plot { position: relative; height: 30px; }
.nutri-track, .nutri-bar { position: absolute; left: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; }
.nutri-track { width: calc((100% - var(--room)) * 100 / var(--max)); background: var(--track); }
.nutri-bar { width: calc((100% - var(--room)) * var(--v)); background: var(--leaf); transition: background-color .2s; }
.nutri-row:hover .nutri-bar, .nutri-row:focus-visible .nutri-bar { background: var(--leaf-lift); }
.nutri-plot::after { content: ""; position: absolute; top: 50%; left: calc((100% - var(--room)) * 100 / var(--max)); width: 2px; height: 8px; margin: -4px 0 0 -1px; background: var(--mist); opacity: 0; }
.nutri-row.is-over .nutri-plot::after { opacity: 1; }
/* numbers line up just past the "1 日分" line; a bar that passes it pushes its number out with it */
.nutri-val { position: absolute; top: 50%; left: calc((100% - var(--room)) * max(var(--v), 100 / var(--max)) + 8px); transform: translateY(-50%); font-family: var(--font-display); font-size: 1.12rem; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.nutri-val small { margin-left: 1px; font-size: .66em; }
.nutri-row.is-over .nutri-val { color: var(--ink); font-weight: 700; }
.nutri-ping { position: absolute; top: 50%; left: calc((100% - var(--room)) * 100 / var(--max)); width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 1.5px solid var(--leaf); border-radius: 50%; opacity: 0; pointer-events: none; }
.nutri.is-in .nutri-row.is-over .nutri-ping { animation: nutri-ping .9s cubic-bezier(.16, .84, .24, 1) both; }
@keyframes nutri-ping { from { opacity: .75; transform: scale(.4); } to { opacity: 0; transform: scale(3.4); } }
.nutri-guide { position: absolute; top: 0; bottom: 0; left: calc(var(--name) + var(--gap)); right: 0; pointer-events: none; }
.nutri-guide::before { content: ""; position: absolute; top: 20px; bottom: 2px; left: calc((100% - var(--room)) * 100 / var(--max)); width: 1px; background: var(--ink-3); opacity: .45; }
.nutri-guide span { position: absolute; top: 0; left: calc((100% - var(--room)) * 100 / var(--max)); transform: translateX(-50%); font-size: .7rem; line-height: 1.4; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }
.nutri-unit { position: absolute; top: 0; left: 0; margin: 0; font-size: .7rem; line-height: 1.4; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }
.nutri-tip { position: absolute; z-index: 2; margin: 0; padding: 6px 12px 7px; display: grid; justify-items: center; border-radius: 6px; background: var(--paper); box-shadow: 0 1px 2px rgba(29, 42, 31, .08), 0 6px 18px rgba(29, 42, 31, .1); font-size: .7rem; line-height: 1.35; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 6px)); }
.nutri-tip[hidden] { display: none; }
.nutri-tip b { font-size: .95rem; letter-spacing: .02em; color: var(--ink); }
.nutri-note { font-size: .7rem; line-height: 1.7; color: var(--ink-3); }

/* entrance: only once js/nutrition.js arms it (reduced motion never arms, so the chart is simply there) */
.nutri.is-armed .nutri-head .eyebrow, .nutri.is-armed .nutri-title span, .nutri.is-armed .nutri-name, .nutri.is-armed .nutri-guide, .nutri.is-armed .nutri-unit, .nutri.is-armed .nutri-val, .nutri.is-armed .nutri-note { opacity: 0; }
.nutri.is-armed .nutri-head .eyebrow, .nutri.is-armed .nutri-title span { transform: translateY(16px); }
.nutri.is-armed .nutri-name { transform: translateX(-8px); }
.nutri.is-armed .nutri-track { clip-path: inset(0 100% 0 0); }
.nutri.is-in .nutri-head .eyebrow, .nutri.is-in .nutri-title span { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, .84, .24, 1); }
.nutri.is-in .nutri-title span:nth-child(1) { transition-delay: .08s; }
.nutri.is-in .nutri-title span:nth-child(2) { transition-delay: .16s; }
.nutri.is-in .nutri-unit { opacity: 1; transition: opacity .8s ease .3s; }
.nutri.is-in .nutri-name { opacity: 1; transform: none; transition: opacity .7s ease calc(.18s + var(--i) * .07s), transform .9s cubic-bezier(.16, .84, .24, 1) calc(.18s + var(--i) * .07s); }
.nutri.is-in .nutri-track { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.16, .84, .24, 1) calc(.25s + var(--i) * .07s); }
.nutri.is-in .nutri-guide { opacity: 1; transition: opacity .8s ease .75s; }
.nutri.is-in .nutri-val { opacity: 1; transition: opacity .35s ease calc(.5s + var(--i) * .11s); }
.nutri.is-in .nutri-note { opacity: 1; transition: opacity 1s ease 1.7s; }

@media (max-width: 760px) {
  .order-card { grid-template-columns: minmax(0, 1fr); }
  .nutri { --name: 5rem; --room: 3.4rem; --gap: 12px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); font-size: .82rem; color: var(--ink-3); display: grid; gap: 6px; }
.site-footer > * { max-width: 1040px; width: 100%; margin: 0 auto; }
.site-footer .small { font-size: .76rem; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: 999px; font-size: .88rem; max-width: calc(100vw - 32px); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

