/* chibie: shared styles for index.html and how.html */
:root {
  --fg:#1c1f1a; --muted:#6b7064; --line:#e3e5df; --bg:#fbfbf8; --card:#fbfbf8;
  --accent:#3f7d2c; --deep:#2c5a1f; --tint:#eef4e8; --neg:#b3402a;
}
@media (prefers-color-scheme: dark) {
  :root { --fg:#e8eae4; --muted:#9a9f93; --line:#2c2f29; --bg:#141612; --card:#141612; --accent:#8cc46f; --deep:#a9d68e; --tint:#1c2418; --neg:#e07a62; }
}
* { box-sizing:border-box; margin:0; }
html { scroll-behavior:smooth; }
[id] { scroll-margin-top:72px; }
body { font:15px/1.55 'Figtree', system-ui, sans-serif; color:var(--fg); background:var(--bg); }
a { color:inherit; }
img { max-width:100%; }
.wrap { max-width:960px; margin:0 auto; padding:0 16px; }
h1, h2, h3 { font-family:'Fraunces', Georgia, serif; font-variation-settings:'SOFT' 100, 'WONK' 0; color:var(--accent); font-weight:400; }
h2 { font-size:24px; line-height:1.15; margin-bottom:14px; }
h3 { font-size:17px; line-height:1.2; }
.muted { color:var(--muted); }
.small { font-size:13px; }

/* pre-launch marquee */
.marquee { background:var(--accent); color:var(--bg); font-size:13px; overflow:hidden; white-space:nowrap; }
.marquee .track { display:flex; width:max-content; animation:marquee 40s linear infinite; }
.marquee:hover .track { animation-play-state:paused; }
.marquee .run { display:flex; }
.marquee span { padding:7px 0; }
.marquee i { font-style:normal; opacity:.6; padding:7px 22px; }
.marquee a { font-weight:600; }
@keyframes marquee { to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation:none; } .marquee .run + .run { display:none; } .marquee .run { justify-content:center; } }

/* nav */
.nav { position:sticky; top:0; z-index:10; background:var(--bg); border-bottom:1px solid transparent; transition:border-color .2s; }
.nav.scrolled { border-bottom-color:var(--line); }
.nav .wrap { display:flex; align-items:center; gap:20px; height:58px; }
.brand { display:flex; align-items:baseline; gap:8px; text-decoration:none; }
.brand b { font:300 26px/1 'Fraunces', Georgia, serif; font-variation-settings:'opsz' 144, 'SOFT' 100, 'WONK' 0; color:var(--accent); }
.brand span { color:var(--muted); font-size:13px; }
.brand img { height:20px; align-self:center; }
.nav .links { display:flex; align-items:center; gap:20px; margin-left:auto; font-size:14px; }
.nav .links a { text-decoration:none; color:var(--muted); }
.nav .links a:hover { color:var(--accent); }
@media (max-width:760px) { .nav .links a:not(.btn) { display:none; } .brand img { display:none; } }

/* buttons */
.btn { display:inline-flex; align-items:center; font:600 14px/1 'Figtree', system-ui, sans-serif; text-decoration:none; border-radius:999px; padding:11px 18px; border:1px solid var(--accent); cursor:pointer; }
.btn.primary { background:var(--accent); color:var(--bg); }
.btn.sm { padding:7px 13px; font-size:13px; }
.nav .links .btn { color:var(--bg); }
.link { color:var(--accent); font-weight:600; font-size:14px; text-decoration:none; }
.link:hover { text-decoration:underline; }

/* containers: hairline, no shadow */
.card { border:1px solid var(--line); border-radius:14px; background:var(--card); }
.section { padding-top:56px; }

/* hero: text card sitting inside the leaf banner */
.hero { position:relative; margin-top:28px; margin-bottom:40px; min-height:420px; display:flex; align-items:center; padding:36px; }
.hero .leaves { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 35%; border-radius:22px; }
.hero-text { position:relative; max-width:540px; padding:28px 30px; border-radius:18px; background:color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.hero .status { font-size:13px; color:var(--muted); }
.hero .status b { color:var(--accent); font-weight:600; }
.hero h1 { font-weight:300; font-size:40px; line-height:1.08; font-variation-settings:'opsz' 144, 'SOFT' 100, 'WONK' 0; margin:10px 0 0; }
.hero h1 em { color:var(--deep); }
.hero .actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:18px; }
.hero .toast { position:absolute; width:min(46%, 460px); height:auto; right:1%; bottom:-40px; transform:rotate(-6deg); filter:drop-shadow(0 12px 18px rgba(30,40,20,.22)); }
@media (max-width:760px) {
  .hero { min-height:0; padding:16px 16px 190px; margin-top:16px; }
  .hero-text { padding:20px; }
  .hero h1 { font-size:28px; }
  .hero .toast { width:78%; right:2%; bottom:-30px; }
}

/* facts: three plain columns */
.facts { display:grid; grid-template-columns:repeat(3, 1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.fact { padding:20px 20px 20px 0; }
.fact + .fact { padding-left:20px; border-left:1px solid var(--line); }
.fact p { color:var(--muted); font-size:14px; }
.fact .big { font-variant-numeric:tabular-nums; } .fact .big { font:300 34px/1 'Fraunces', Georgia, serif; font-variation-settings:'opsz' 144, 'SOFT' 100, 'WONK' 0; color:var(--accent); margin-bottom:6px; }
.fact h3 { margin-bottom:6px; }
.fact .src { font-size:12px; margin-top:6px; }
@media (max-width:760px) {
  .facts { grid-template-columns:1fr; }
  .fact, .fact + .fact { padding:16px 0; border-left:0; }
  .fact + .fact { border-top:1px solid var(--line); }
}

/* dark mode: the sprout drawings have dark outlines, so sit them on a light chip */
@media (prefers-color-scheme: dark) {
  .why img, .varieties summary img, .hello .face img { background:#e9eee0; border-radius:10px; padding:4px; box-sizing:content-box; }
  .varieties summary img { height:24px; width:28px; }
  .mix .stack img { background:#e9eee0; border-color:#e9eee0; }
  .brand img, .cta .grow { filter:brightness(1.35) saturate(1.1); }
}

/* why microgreens */
.why { display:grid; grid-template-columns:repeat(4, 1fr); gap:28px; }
.why img { height:34px; width:auto; margin-bottom:10px; }
.why h3 { margin-bottom:6px; }
.why p { font-size:14px; color:var(--muted); }
@media (max-width:860px) { .why { grid-template-columns:1fr 1fr; gap:24px; } }
@media (max-width:480px) { .why { grid-template-columns:1fr; } }

/* varieties: expandable list */
.section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.section-head h2, .section-head h3 { margin:0; }
.varieties { border-top:1px solid var(--line); }
.varieties details { border-bottom:1px solid var(--line); transition:opacity .25s, background .25s; }
.varieties summary { list-style:none; display:flex; align-items:center; gap:12px; padding:12px 4px; cursor:pointer; }
.varieties summary::-webkit-details-marker { display:none; }
.varieties summary img { height:30px; width:34px; object-fit:contain; transition:transform .3s; }
.varieties summary b { font:400 19px/1.2 'Fraunces', Georgia, serif; font-variation-settings:'SOFT' 100, 'WONK' 0; color:var(--accent); font-weight:400; }
.varieties .flavor { color:var(--muted); font-size:13px; }
.varieties .price { margin-left:auto; font-weight:600; font-size:14px; }
.varieties summary::after { content:""; width:8px; height:8px; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(45deg) translateY(-3px); transition:transform .25s; margin:0 6px 0 4px; }
.varieties details[open] summary::after { transform:rotate(225deg) translateY(-2px); }
.varieties details[open] summary img, .varieties summary:hover img { transform:rotate(-8deg) scale(1.08); }
.varieties .more { display:grid; grid-template-columns:2fr 1fr 1fr 1.4fr; gap:12px 20px; padding:2px 4px 16px 50px; font-size:14px; overflow:hidden; }
.varieties .more em { display:block; font-style:normal; font-size:12px; color:var(--muted); margin-bottom:2px; }
@media (max-width:640px) { .varieties .more { grid-template-columns:1fr 1fr; padding-left:4px; } .varieties .more p:first-child { grid-column:1 / -1; } }
/* mix highlighting */
.varieties.focus details { opacity:.3; }
.varieties.focus details.hl { opacity:1; background:var(--tint); }

/* mixes */
.mixes { display:grid; grid-template-columns:repeat(auto-fill, minmax(165px, 1fr)); gap:10px; }
.mix { font:inherit; color:inherit; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; cursor:pointer; display:flex; flex-direction:column; gap:2px; transition:border-color .2s, background .2s, transform .2s; }
.mix:hover { border-color:var(--accent); }
.mix[aria-pressed="true"] { border-color:var(--accent); background:var(--tint); }
.mix .stack { display:flex; height:40px; margin-bottom:8px; }
.mix .stack img { height:36px; width:36px; object-fit:contain; background:var(--bg); border:1px solid var(--line); border-radius:50%; padding:4px; margin-right:-10px; transition:margin .25s; }
.mix:hover .stack img, .mix[aria-pressed="true"] .stack img { margin-right:2px; }
.mix b { font:400 18px/1.2 'Fraunces', Georgia, serif; font-variation-settings:'SOFT' 100, 'WONK' 0; color:var(--accent); font-weight:400; }
.mix span:last-child { font-size:13px; color:var(--muted); }
.note { font-size:13px; color:var(--muted); margin-top:14px; }

/* maybe later: pickable cards */
.later { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:10px; }
.later label { position:relative; cursor:pointer; }
.later input { position:absolute; opacity:0; pointer-events:none; }
.later span { display:block; height:100%; border:1px dashed var(--line); border-radius:14px; padding:14px 16px; font-size:13px; color:var(--muted); transition:border-color .2s, background .2s; }
.later b { display:block; font:400 18px/1.2 'Fraunces', Georgia, serif; font-variation-settings:'SOFT' 100, 'WONK' 0; color:var(--fg); font-weight:400; margin-bottom:4px; }
.later .rare b::after { content:"rare"; font:600 10px/1 'Figtree', system-ui, sans-serif; letter-spacing:.04em; text-transform:uppercase; color:var(--accent); margin-left:8px; vertical-align:middle; }
.later .nut { display:block; font-style:normal; font-size:12px; color:var(--accent); margin-top:8px; }
.later label:hover span { border-color:var(--accent); }
.later input:checked + span { border-style:solid; border-color:var(--accent); background:var(--tint); }
.later input:checked + span b { color:var(--accent); }
.later input:checked + span b::before { content:"✓ "; }
.later input:focus-visible + span { outline:2px solid var(--accent); outline-offset:2px; }
.picks-send { display:flex; align-items:center; gap:14px; margin-top:14px; flex-wrap:wrap; }
.picks-send .btn:disabled { opacity:.4; cursor:default; }

/* plain two-column list */
.plain { list-style:none; padding:0; border-top:1px solid var(--line); }
.plain li { display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-bottom:1px solid var(--line); font-size:14px; }
.plain li span:last-child { color:var(--muted); text-align:right; }

/* two columns */
.two { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width:760px) { .two { grid-template-columns:1fr; gap:32px; } }
.two p + p { margin-top:10px; }

/* timeline: line grows to today's step, dots fill in order */
.timeline { list-style:none; padding:0; position:relative; --fill:0px; }
.timeline::before, .timeline::after { content:""; position:absolute; left:5px; top:8px; width:2px; border-radius:2px; }
.timeline::before { bottom:8px; background:var(--line); }
.timeline::after { height:var(--fill); background:var(--accent); transition:height 1.4s cubic-bezier(.3,.7,.2,1); }
.timeline li { position:relative; padding:0 0 16px 26px; font-size:14px; opacity:0; transform:translateX(-8px); transition:opacity .5s, transform .5s; transition-delay:var(--d, 0s); }
.timeline.go li { transform:none; }
.timeline li::before { content:""; position:absolute; z-index:1; left:0; top:4px; width:12px; height:12px; border-radius:50%; background:var(--bg); border:2px solid var(--line); transition:background .3s, border-color .3s, transform .3s; transition-delay:var(--d, 0s); }
.timeline li b { color:var(--muted); font-weight:600; margin-right:6px; }
.timeline.go li.done, .timeline.go li.current { opacity:1; }
.timeline.go li.done::before { background:var(--accent); border-color:var(--accent); }
.timeline.go li.current::before { background:var(--accent); border-color:var(--accent); animation:ring 2.2s 1.4s infinite; }
.timeline.go li.done b, .timeline.go li.current b { color:var(--accent); }
.timeline li .here { display:inline-block; margin-left:8px; font-size:11px; font-weight:600; color:var(--accent); background:var(--tint); border-radius:999px; padding:1px 8px; opacity:0; transform:translateX(-4px); transition:opacity .4s 1.2s, transform .4s 1.2s; }
.timeline.go li .here { opacity:1; transform:none; }
.timeline.go li:not(.done):not(.current) { opacity:.55; }
@keyframes ring { 0% { box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 80%, 100% { box-shadow:0 0 0 9px transparent; } }

/* stock updates, sprouts growing out of the top edge */
.cta { position:relative; margin-top:88px; padding:32px; display:grid; grid-template-columns:1.1fr 1fr; gap:28px; align-items:center;
       background:linear-gradient(90deg, var(--card) 48%, color-mix(in srgb, var(--card) 0%, transparent) 78%), url(leaves.webp) right 30% / 60% auto no-repeat, var(--card); min-height:260px; }
.cta .grow { position:absolute; left:24px; bottom:100%; margin-bottom:-2px; height:44px; width:auto; }
.cta h2 { margin-bottom:4px; }
.news { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.news input { flex:1 1 200px; min-width:0; font:inherit; color:inherit; background:transparent; border:1px solid var(--line); border-radius:999px; padding:10px 16px; }
.news input:focus { outline:2px solid var(--accent); outline-offset:-1px; border-color:transparent; }
.news button:disabled { opacity:.5; cursor:default; }
.pickup { font-size:14px; margin-top:18px; max-width:420px; }
.pickup b { display:block; color:var(--accent); font-weight:600; margin-bottom:2px; }
@media (max-width:760px) { .cta { grid-template-columns:1fr; padding:22px; background:linear-gradient(180deg, transparent, var(--card) 38%), url(leaves.webp) center 20% / cover no-repeat, var(--card); padding-top:150px; } }

/* footer */
.footer { margin-top:72px; padding:24px 0 40px; border-top:1px solid var(--line); }
.footer .wrap { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; font-size:14px; color:var(--muted); }
.footer .wrap a { text-decoration:none; }
.footer .wrap a:hover { color:var(--accent); }
.footer .brand { margin-right:auto; }

/* gentle fade-in (only when JS is on) */
.js .reveal { opacity:0; transform:translateY(10px); transition:opacity .5s ease, transform .5s ease; transition-delay:var(--d, 0s); }
.js .reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity:1; transform:none; transition:none; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  html { scroll-behavior:auto; }
}
