/* Copied from How does a tree work? by scripts/explainer.mjs, so the pages match. Don't edit here. */
:root{
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  --head:"Fredoka","Trebuchet MS","Segoe UI",system-ui,sans-serif;
  --body:"Atkinson Hyperlegible",Verdana,"Segoe UI",system-ui,sans-serif;
  --water:#2F6FB5; --sugar:#D98E1F; --leaf:#3E8E41;
  --page:#CDE8F3;
  --sky-bg:#CDE8F3; --sky-ink:#12324A;
  --leaf-bg:#DCEFD2; --leaf-ink:#1D3B1A;
  --time-bg:#D6E4F2; --time-ink:#1B2A4A;
  --msg-bg:#E6EFC7; --msg-ink:#2C3510;
  --branch-bg:#E9E2C4; --branch-ink:#35300F;
  --trunk-bg:#E7D2BC; --trunk-ink:#3A2415;
  --bark-bg:#6E4A30; --bark-ink:#F6EBDD;
  --seed-bg:#F3D9DE; --seed-ink:#4A1D2A;
  --soil-bg:#4A3325; --soil-ink:#F3E6D6;
  --deep-bg:#2B1E17; --deep-ink:#EFE2D2;
  --people-bg:#1E2B1C; --people-ink:#E4F0DC;
  --nav-bg:rgba(255,255,255,.88); --nav-ink:#1D2B22;
  --fig-bg:#FFFDF8; --fig-ink:#23201C;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --page:#13283A;
    --sky-bg:#13283A; --sky-ink:#D6EAF5;
    --leaf-bg:#15291A; --leaf-ink:#D5ECCB;
    --time-bg:#161F33; --time-ink:#D7E2F4;
    --msg-bg:#1D2612; --msg-ink:#E3EDC4;
    --branch-bg:#26220F; --branch-ink:#EDE5C3;
    --trunk-bg:#2A1C12; --trunk-ink:#EAD6C0;
    --seed-bg:#2E1820; --seed-ink:#F4D8DF;
    --nav-bg:rgba(20,28,24,.9); --nav-ink:#E6EFE6;
    --water:#6AA6E8; --sugar:#F0B454;
    --fig-bg:#1C201D; --fig-ink:#EDE8E0;
  }
}
:root[data-theme="dark"]{
  --page:#13283A;
  --sky-bg:#13283A; --sky-ink:#D6EAF5;
  --leaf-bg:#15291A; --leaf-ink:#D5ECCB;
  --time-bg:#161F33; --time-ink:#D7E2F4;
  --msg-bg:#1D2612; --msg-ink:#E3EDC4;
  --branch-bg:#26220F; --branch-ink:#EDE5C3;
  --trunk-bg:#2A1C12; --trunk-ink:#EAD6C0;
  --seed-bg:#2E1820; --seed-ink:#F4D8DF;
  --nav-bg:rgba(20,28,24,.9); --nav-ink:#E6EFE6;
  --water:#6AA6E8; --sugar:#F0B454;
  --fig-bg:#1C201D; --fig-ink:#EDE8E0;
}
*,*::before,*::after{box-sizing:inherit}
html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(env(safe-area-inset-top,0px) + 64px);scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--page);font-family:var(--body);font-size:1.125rem;line-height:1.6;color:var(--sky-ink)}
img,svg{max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--sugar);outline-offset:3px;border-radius:4px}

/* nav */
.bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:var(--nav-bg);color:var(--nav-ink);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid rgba(0,0,0,.08)}
.bar-in{display:flex;align-items:center;gap:.75rem;max-width:1100px;margin:0 auto;padding:.5rem 1rem}
.bar nav{display:flex;gap:.25rem;overflow-x:auto;scrollbar-width:none;flex:1;-webkit-overflow-scrolling:touch}
.bar nav::-webkit-scrollbar{display:none}
.bar nav a{white-space:nowrap;text-decoration:none;font-family:var(--head);font-weight:600;font-size:.95rem;padding:.35rem .7rem;border-radius:999px}
.bar nav a:hover,.bar nav a[aria-current="true"]{background:rgba(62,142,65,.18)}

/* hero */
.hero{background:var(--sky-bg);color:var(--sky-ink);padding:2rem 1rem 0}
.hero-in{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:1.5rem;align-items:end}
.hero h1{font-family:var(--head);font-weight:700;font-size:clamp(3rem,9vw,6.5rem);line-height:.92;letter-spacing:-.02em;margin:0 0 1rem}
.hero .lede{font-size:1.25rem;max-width:30ch;margin:0 0 1.25rem}
.go{font-family:var(--head);font-weight:600;font-size:1.1rem;border:0;border-radius:999px;padding:.75rem 1.3rem;background:var(--leaf);color:#fff;cursor:pointer}
.go[aria-pressed="true"]{background:var(--water)}
.hint{font-size:.95rem;margin:.75rem 0 0;max-width:34ch;opacity:.85}
.hero-copy{padding-bottom:6rem}
.hero svg{display:block;width:100%;height:auto}
.hot{cursor:pointer}
.hot:hover .lbl rect,.hot:focus .lbl rect{fill:var(--sugar)}
.lbl rect{fill:#fff;stroke:#1D2B22;stroke-width:1.5}
.lbl text{font-family:var(--head);font-weight:600;font-size:15px;fill:#1D2B22}
.flow{opacity:0;transition:opacity .4s}
.on .flow{opacity:1}
.flow path{fill:none;stroke-width:5;stroke-linecap:round;stroke-dasharray:2 14}
.on .flow path{animation:run 1.6s linear infinite}
.flow .up{stroke:var(--water)}
.flow .down{stroke:var(--sugar);animation-direction:reverse!important}
@keyframes run{to{stroke-dashoffset:-32}}
@media (prefers-reduced-motion:reduce){.on .flow path{animation:none}}
.legend{margin:0;display:flex;gap:1rem;flex-wrap:wrap;font-size:.95rem;margin-top:.75rem}
.legend b{display:inline-block;width:1.4rem;height:.35rem;border-radius:3px;vertical-align:middle;margin-right:.35rem}
@media (max-width:820px){
  .hero-in{grid-template-columns:1fr}
  .hero-copy{padding-bottom:0}
}

/* sections */
section.zone{padding:2.5rem 1rem;--grad:linear-gradient(to bottom,var(--top,var(--bg)) 0,var(--bg) 2.5rem,var(--bg) calc(100% - 2.5rem),var(--bot,var(--bg)) 100%);background-color:var(--bg);background-image:var(--grad)}
.zone-in{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:minmax(0,15rem) minmax(0,42rem);gap:2.5rem;justify-content:start}
.zone-head{position:sticky;top:5rem;align-self:start}
.zone h2{font-family:var(--head);font-weight:700;font-size:clamp(2rem,4.5vw,3rem);line-height:1;margin:0 0 .75rem;letter-spacing:-.01em}
.zone-head p{margin:0;font-size:1.05rem;opacity:.9}
.where{font-family:var(--head);font-weight:500;font-size:1rem;margin:0 0 .5rem;opacity:.75}
@media (max-width:820px){.zone-in{grid-template-columns:1fr;gap:1.5rem}.zone-head{position:static}}

.topic{padding:1.25rem 0 1.4rem;border-top:2px dotted currentColor}
.topic:first-child{border-top:0;padding-top:0}
.topic h3{font-family:var(--head);font-weight:600;font-size:1.45rem;line-height:1.2;margin:0 0 .4rem;display:flex;gap:.6rem;align-items:flex-start}
.topic h3 span{flex:1}
.topic p{margin:0;max-width:62ch}
.words{margin-top:.6rem;font-size:.95rem;line-height:1.5}
.words b{font-family:var(--head);font-weight:600;margin-right:.35rem}
.words i{font-style:normal;display:inline-block;padding:.05rem .5rem;margin:.15rem .2rem 0 0;border-radius:6px;border:1px solid currentColor;opacity:.85}

.z-sky{--bg:var(--sky-bg);color:var(--sky-ink)}
.z-leaf{--bg:var(--leaf-bg);color:var(--leaf-ink)}
.z-time{--bg:var(--time-bg);color:var(--time-ink)}
.z-msg{--bg:var(--msg-bg);color:var(--msg-ink)}
.z-branch{--bg:var(--branch-bg);color:var(--branch-ink)}
.z-trunk{--bg:var(--trunk-bg);color:var(--trunk-ink)}
.z-bark{--bg:var(--bark-bg);color:var(--bark-ink)}
.z-seed{--bg:var(--seed-bg);color:var(--seed-ink)}
.z-soil{--bg:var(--soil-bg);color:var(--soil-ink)}
.z-deep{--bg:var(--deep-bg);color:var(--deep-ink)}
.z-people{--bg:var(--people-bg);color:var(--people-ink)}
.z-trunk{background-image:repeating-radial-gradient(circle at -40% 50%, transparent 0 38px, rgba(58,36,21,.06) 38px 40px),var(--grad)}


.skip{position:absolute;left:1rem;top:-4rem;z-index:20;background:var(--fig-bg);color:var(--fig-ink);padding:.6rem 1rem;border-radius:8px;font-family:var(--head);font-weight:600}
.skip:focus{top:calc(env(safe-area-inset-top,0px) + .5rem)}
main:focus{outline:none}
.words{margin:.6rem 0 0}
.fig{margin:1.6rem 0 2rem;background:var(--fig-bg);color:var(--fig-ink);border-radius:20px;padding:1rem 1rem 1.1rem}
.fig svg{display:block;width:100%;height:auto;margin:.5rem 0 0}
.fig .tx{font-family:var(--head);font-weight:500;font-size:15px;fill:var(--fig-ink)}
.fig .ts{font-size:13px}
.fig-title{font-family:var(--head);font-weight:600;font-size:1.3rem;line-height:1.2}
.fig [data-hl]{transition:opacity .25s}
.fig .dim{opacity:.15}
.ctl{display:flex;flex-wrap:wrap;gap:.45rem;margin:.8rem 0 .2rem}
.ctl button{min-height:44px;min-width:44px;font-family:var(--head);font-weight:600;font-size:1rem;line-height:1.1;padding:.45rem .95rem;border-radius:999px;border:2px solid var(--fig-ink);background:transparent;color:var(--fig-ink);cursor:pointer}
.ctl button:hover{background:rgba(127,127,127,.15)}
.ctl button[aria-pressed="true"]{background:var(--fig-ink);color:var(--fig-bg)}
.range{display:block;margin:.8rem 0 .2rem;font-family:var(--head);font-weight:600}
.range span{display:block}
.range input{width:100%;height:44px;accent-color:#3E8E41;margin:0;cursor:pointer}
.cap{margin:.4rem 0 0;min-height:3.2em;max-width:62ch}
.fig-note{margin:.5rem 0 0;font-size:.9rem;opacity:.8;max-width:62ch}
.flowline{fill:none;stroke-linecap:round;stroke-dasharray:3 12;animation:run 1.4s linear infinite}
@media (prefers-reduced-motion:reduce){.flowline{animation:none;stroke-dasharray:3 8}.fig [data-hl]{transition:none}}
@media (forced-colors:active){.ctl button,.go{border:2px solid ButtonText}.ctl button[aria-pressed="true"]{outline:3px solid Highlight}.fig .dim{opacity:.35}}
.brand{display:flex;align-items:center;gap:.5rem;margin:0;flex:none;font-family:var(--head);font-weight:500;font-size:.85rem;line-height:1.1}
.brand-by{max-width:5.5em}
.brand img{display:block;height:40px;width:auto}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .brand img{background:#fff;border-radius:6px;padding:3px 5px}}
:root[data-theme="dark"] .brand img{background:#fff;border-radius:6px;padding:3px 5px}
@media (max-width:640px){
 .bar-in{flex-wrap:wrap;row-gap:.35rem;padding:.4rem .75rem .35rem}
 .brand{flex:1;gap:.4rem;font-size:.8rem}.brand-by{max-width:5.5em}.brand img{height:32px}.pro{font-size:.9rem;padding:.35rem .8rem} .bar nav{order:3;flex-basis:100%;margin:0 -.75rem;padding:0 .5rem}
 html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + 108px)}
 .zone-head{top:7rem}
}

.pro{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:.4rem 1rem;border-radius:999px;background:#3E8E41;color:#fff;text-decoration:none;font-family:var(--head);font-weight:600;font-size:.95rem;white-space:nowrap}
.pro:hover{background:#2F6F32}
@media (forced-colors:active){.pro{border:2px solid LinkText}}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.brand-link{display:block;border-radius:6px}
.words-h{font-family:var(--head);font-weight:600;margin-right:.2rem}

.kw{text-decoration:underline dotted 2px;text-underline-offset:.22em;cursor:pointer;border-radius:3px;-webkit-tap-highlight-color:transparent}
.kw:hover,.kw.hint{text-decoration-style:solid}
.kw[aria-pressed="true"]{text-decoration:underline solid 3px;text-decoration-color:#F2C200}
.gw{display:inline-block;margin:.3rem .5rem 0 0;font-size:.95rem;line-height:1.5}
.gw dfn{font-style:normal;font-weight:700;padding:0 .2em;margin:0 -.1em;border-radius:.35em .6em .4em .7em;
 background-image:linear-gradient(100deg,rgba(255,221,51,0) 0,rgba(255,221,51,.9) 2.5%,rgba(255,214,31,.95) 92%,rgba(255,221,51,0) 100%);
 background-repeat:no-repeat;background-position:0 62%;background-size:0% 78%;
 transition:background-size .6s cubic-bezier(.25,.85,.35,1),color .2s;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.gw.lit dfn{background-size:100% 78%;color:#1D1D1B}
@media (prefers-reduced-motion:reduce){.gw dfn{transition:none}}
@media (forced-colors:active){.gw.lit dfn{outline:2px solid Highlight}}

.bar{position:sticky}
.progress{position:absolute;left:0;right:0;bottom:-3px;height:3px;pointer-events:none}
.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#3E8E41,#7A5234);transition:width .1s linear}
.finish{background:var(--people-bg);color:var(--people-ink);padding:3rem 1rem 1rem}
.finish-in{max-width:42rem;margin:0 auto}
.finish h2{font-family:var(--head);font-weight:700;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.05;margin:0 0 .75rem}
.finish p{margin:0 0 1rem;max-width:62ch}
.finish a{color:inherit;text-underline-offset:.2em}
.share-msg{margin-left:.5rem;font-size:.95rem}

.consent{position:fixed;left:1rem;right:1rem;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:30;max-width:34rem;margin:0 auto;background:var(--fig-bg);color:var(--fig-ink);border-radius:18px;padding:1rem 1.1rem;box-shadow:0 6px 30px rgba(0,0,0,.25);font-size:1rem}
.consent[hidden]{display:none}
.consent p{margin:0 0 .6rem}.consent p:last-child{margin:0;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.go.ghost{background:transparent;color:var(--fig-ink);border:2px solid var(--fig-ink)}
.consent a{color:inherit;font-size:.9rem}

.bubble{position:absolute;z-index:15;pointer-events:none;background:#FFFDF3;color:#1D1D1B;border:2px solid #1D1D1B;border-radius:12px;padding:.2rem .55rem;font-family:var(--head);font-weight:600;font-size:1rem;line-height:1.3;max-width:min(20rem,calc(100vw - 16px));box-shadow:0 4px 14px rgba(0,0,0,.18)}
.bubble[hidden]{display:none}
.bubble::after{content:"";position:absolute;left:var(--ax,50%);top:100%;width:10px;height:10px;background:#FFFDF3;border-right:2px solid #1D1D1B;border-bottom:2px solid #1D1D1B;transform:translate(-50%,-5px) rotate(45deg)}
.bubble.below::after{top:auto;bottom:100%;transform:translate(-50%,5px) rotate(225deg)}
.bubble mark{background-image:linear-gradient(100deg,rgba(255,221,51,0) 0,rgba(255,221,51,.9) 2.5%,rgba(255,214,31,.95) 92%,rgba(255,221,51,0) 100%);background-color:transparent;color:inherit;background-repeat:no-repeat;background-position:0 62%;background-size:0% 78%;padding:0 .15em;border-radius:.35em .6em .4em .7em}
.bubble.pop{animation:bpop .18s ease-out}
.bubble.pop mark{animation:bsweep .55s .08s cubic-bezier(.25,.85,.35,1) forwards}
@keyframes bpop{from{opacity:0;transform:translateY(4px) scale(.96)}to{opacity:1;transform:none}}
@keyframes bsweep{to{background-size:100% 78%}}
@media (prefers-reduced-motion:reduce){.bubble.pop{animation:none}.bubble.pop mark{animation:none;background-size:100% 78%}}

.totop{position:fixed;right:max(1rem,env(safe-area-inset-right,0px));bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:20;width:52px;height:52px;border-radius:50%;border:2px solid #fff;background:#3E8E41;color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:opacity .2s,transform .2s}
.totop svg{width:24px;height:24px}
.totop:hover{background:#2F6F32;transform:translateY(-2px)}
.totop[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.totop{transition:none}.totop:hover{transform:none}}
@media (forced-colors:active){.totop{border-color:ButtonText}}

.kw,.kw[aria-pressed="true"],.kw.hint,.gw dfn,.gw.lit dfn{font-size:inherit}
/* explainer pages */
.hero .hint{max-width:34ch}
.topic a{color:inherit;text-decoration-thickness:2px;text-underline-offset:3px}
/* fungi page */
.spot-safe{font-weight:700;margin:0 0 1rem}
.spots{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.spot{margin:0;background:var(--fig-bg);color:var(--fig-ink);border-radius:20px;overflow:hidden}
.spot svg{display:block;width:100%;height:auto}
.spot figcaption{padding:.8rem 1rem 1rem}
.spot h3{font-family:var(--head);font-weight:600;font-size:1.25rem;margin:0 0 .5rem;line-height:1.15}
.spot h3 i{display:block;font-family:var(--body);font-weight:400;font-size:.9rem;opacity:.75}
.spot ol{margin:0 0 .6rem;padding-left:1.5rem}
.spot li{margin:.25rem 0}
.spot li::marker{font-family:var(--head);font-weight:700}
.spot p{margin:.35rem 0}
