/* VERDANCE — fermented botanical skincare
   Light organic editorial. Everything botanical is procedural SVG line art. */

:root{
  --paper:#f6f2ea;
  --paper-deep:#efe9dd;
  --cream:#fdfbf5;
  --moss:#4a5d43;
  --moss-deep:#37452f;
  --ink:#2d3428;
  --ink-dim:#5b6353;
  --blush:#d9a196;
  --blush-deep:#b97a6d;
  --blush-text:#a05a4c; /* AA-safe on paper for small labels */
  --hairline:rgba(74,93,67,.22);
  --spring:cubic-bezier(.34,1.45,.44,1);
  --soft:cubic-bezier(.22,.8,.3,1);
  --radius:20px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:"Karla",sans-serif;
  font-size:1rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{background:var(--blush);color:var(--moss-deep)}
em{font-style:italic}
h1,h2,h3,.gh-title{font-family:"Fraunces",serif;font-weight:400;color:var(--moss-deep)}
a{color:inherit}

.skip{position:absolute;left:-999px;top:0;background:var(--moss);color:var(--cream);padding:.6rem 1rem;z-index:100;border-radius:0 0 12px 0}
.skip:focus{left:0}
:focus-visible{outline:2px solid var(--moss);outline-offset:3px;border-radius:4px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- loader ---------- */
.loader{
  position:fixed;inset:0;z-index:60;background:var(--paper);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1rem;
  transition:opacity .7s var(--soft),visibility .7s;
}
.loader.done{opacity:0;visibility:hidden;pointer-events:none}
.loader-sprout path{fill:none;stroke:var(--moss);stroke-width:3;stroke-linecap:round}
.sprout-stem{stroke-dasharray:30;stroke-dashoffset:30}
.sprout-leaf{stroke-dasharray:60;stroke-dashoffset:60}
.loader.grow .sprout-stem{animation:draw .7s var(--soft) forwards}
.loader.grow .sprout-leaf{animation:draw .8s var(--soft) .35s forwards}
.loader.grow .sprout-leaf-2{animation-delay:.6s}
@keyframes draw{to{stroke-dashoffset:0}}
.loader-word{font-family:"Fraunces",serif;font-size:1.25rem;letter-spacing:.14em;color:var(--moss);text-transform:lowercase}

/* ---------- nav ---------- */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.1rem clamp(1.2rem,4vw,3rem);
  transition:background .4s,box-shadow .4s,padding .4s;
}
.nav.scrolled{background:rgba(246,242,234,.86);backdrop-filter:blur(10px);box-shadow:0 1px 0 var(--hairline);padding-block:.7rem}
.nav-mark{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--moss-deep);font-family:"Fraunces",serif;font-size:1.3rem;letter-spacing:.02em}
.nav nav{display:flex;gap:clamp(1rem,3vw,2.2rem)}
.nav nav a{
  text-decoration:none;font-size:.86rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-dim);
  position:relative;padding-bottom:2px;
}
.nav nav a::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1.5px;background:var(--moss);transform:scaleX(0);transform-origin:left;transition:transform .45s var(--spring)}
.nav nav a:hover::after,.nav nav a:focus-visible::after{transform:scaleX(1)}
.nav-bag{
  display:flex;align-items:center;gap:.4rem;background:var(--cream);border:1px solid var(--hairline);
  border-radius:999px;padding:.45rem .85rem;cursor:pointer;color:var(--moss-deep);
  font-family:"Karla",sans-serif;font-weight:700;font-size:.85rem;
  transition:transform .4s var(--spring),background .3s;
}
.nav-bag:hover{background:#fff}
.nav-bag.bump{animation:bump .5s var(--spring)}
@keyframes bump{30%{transform:scale(1.14) rotate(-3deg)}}
.bag-count{min-width:1.05rem;text-align:center}

/* ---------- spine vine ---------- */
.spine{
  position:absolute;top:0;left:clamp(4px,1.6vw,22px);width:clamp(26px,3vw,48px);
  z-index:1;pointer-events:none;overflow:visible;
}
.spine path,.spine circle{fill:none;stroke:var(--moss);will-change:stroke-dashoffset}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;border:none;cursor:pointer;text-decoration:none;text-align:center;
  font-family:"Karla",sans-serif;font-weight:700;font-size:.9rem;letter-spacing:.04em;
  padding:.85rem 1.7rem;border-radius:999px;
  transition:transform .45s var(--spring),background .3s,color .3s,box-shadow .3s;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.97)}
.btn-solid{background:var(--moss);color:var(--cream);box-shadow:0 8px 20px -10px rgba(55,69,47,.55)}
.btn-solid:hover{background:var(--moss-deep)}
.btn-ghost{background:transparent;color:var(--moss-deep);border:1.5px solid var(--hairline)}
.btn-ghost:hover{border-color:var(--moss)}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  padding:7rem clamp(1.4rem,7vw,8rem) 4.5rem;
  overflow:hidden;
}
.hero-vine{position:absolute;bottom:0;height:min(100%,900px);width:auto;pointer-events:none;overflow:visible}
.hero-vine path,.hero-vine circle,.hero-vine ellipse{fill:none;stroke:var(--moss);stroke-linecap:round}
.hero-vine-left{left:clamp(-90px,-3vw,0px);opacity:.9}
.hero-vine-right{right:clamp(-120px,-4vw,-10px);transform:scaleX(-1);opacity:.75}
.hero-copy{position:relative;z-index:2;max-width:56rem;margin-left:clamp(0rem,6vw,7rem)}
.hero-kicker{
  font-size:.8rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--blush-text);
  margin-bottom:1.6rem;
}
.hero-title{
  font-size:clamp(3.1rem,10.5vw,8.6rem);
  line-height:.98;letter-spacing:-.02em;font-weight:300;
  margin-bottom:1.8rem;
}
.hero-title em{font-weight:400;color:var(--moss)}
.hero-title .line{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.hero-title .line span{display:inline-block;transform:translateY(115%)}
.hero-title .line:last-child{margin-left:clamp(1.2rem,8vw,9rem)}
.hero-sub{max-width:36rem;color:var(--ink-dim);font-size:clamp(1rem,1.4vw,1.15rem);margin-bottom:2.2rem}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap}
.hero-foot{
  position:absolute;bottom:1.6rem;left:clamp(1.4rem,7vw,8rem);right:clamp(1.4rem,7vw,8rem);
  display:flex;justify-content:space-between;gap:1rem;
  font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim);
}
.hero-scroll-hint{position:relative;padding-left:1.6rem}
.hero-scroll-hint::before{
  content:"";position:absolute;left:0;top:50%;width:1rem;height:1.5px;background:var(--blush-deep);
  animation:hint 2.4s var(--soft) infinite;
}
@keyframes hint{0%,100%{transform:scaleX(.4);opacity:.5}50%{transform:scaleX(1);opacity:1}}

.reveal-up{opacity:0;transform:translateY(18px)}
.no-motion .reveal-up,.reveal-up.shown{opacity:1;transform:none;transition:opacity .9s var(--soft),transform .9s var(--spring)}

/* ---------- field note ---------- */
.note{
  position:relative;
  padding:clamp(6rem,14vh,11rem) clamp(1.4rem,7vw,8rem);
  display:grid;grid-template-columns:minmax(0,1fr);
}
.note-index{font-size:.78rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--blush-text);margin-bottom:1.4rem}
.note-text{
  font-family:"Fraunces",serif;font-weight:300;
  font-size:clamp(1.5rem,3.4vw,2.7rem);line-height:1.32;color:var(--ink);
  max-width:52rem;margin-left:auto;margin-right:clamp(0rem,4vw,4rem);
}
.note-text em{color:var(--moss);font-weight:400}
.note-flourish{width:min(520px,70%);margin:3rem 0 0 clamp(0rem,10vw,10rem);overflow:visible}
.note-flourish path,.note-flourish circle{fill:none;stroke:var(--blush-deep);stroke-linecap:round}

/* ---------- ferment (sticky scrub) ---------- */
.ferment{position:relative;z-index:2;background:var(--cream);border-block:1px solid var(--hairline)}
.has-scrub .ferment{height:320svh}
.ferment-sticky{
  display:grid;
  grid-template-columns:minmax(15rem,1.1fr) minmax(0,1.4fr) minmax(15rem,1.1fr);
  gap:clamp(1.5rem,4vw,4rem);align-items:center;
  padding:6rem clamp(1.4rem,5vw,6rem) 3rem;
  min-height:100svh;
}
.has-scrub .ferment-sticky{position:sticky;top:0;height:100svh}
.chapter-index{font-size:.78rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--blush-text);margin-bottom:1rem}
.chapter-title{font-size:clamp(2.1rem,4.6vw,3.6rem);line-height:1.06;letter-spacing:-.015em;font-weight:300}
.ferment-days{
  margin-top:2.2rem;font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-dim);
  border:1px solid var(--hairline);border-radius:999px;display:inline-block;padding:.45rem 1rem;
  font-variant-numeric:tabular-nums;background:var(--paper);
}
.ferment-stage{display:flex;justify-content:center}
#plant-svg{width:min(100%,440px);height:auto;overflow:visible}
#plant-svg path,#plant-svg circle,#plant-svg ellipse{fill:none;stroke:var(--moss);stroke-linecap:round;stroke-linejoin:round}
.ferment-notes{display:grid}
.f-note{grid-area:1/1;opacity:0;transform:translateY(16px);transition:opacity .6s var(--soft),transform .6s var(--spring);pointer-events:none}
.f-note.active{opacity:1;transform:none;pointer-events:auto}
.no-scrub .f-note{grid-area:auto;opacity:1;transform:none;pointer-events:auto;margin-bottom:2.2rem}
.f-eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--blush-text);margin-bottom:.7rem}
.f-note h3{font-size:clamp(1.5rem,2.4vw,2rem);margin-bottom:.8rem;font-weight:400}
.f-note p:last-child{color:var(--ink-dim);max-width:26rem}

/* ---------- method ---------- */
.method{padding:clamp(6rem,14vh,10rem) clamp(1.4rem,7vw,8rem)}
.chapter-head{margin-bottom:clamp(3rem,7vh,5rem)}
.method .chapter-head{margin-left:clamp(0rem,4vw,4rem)}
.method-list{list-style:none;max-width:64rem;margin-left:auto;display:grid;gap:0}
.method-item{
  display:grid;grid-template-columns:auto 1fr;gap:clamp(1.2rem,4vw,3.5rem);align-items:start;
  padding:2.4rem 0;border-top:1px solid var(--hairline);
}
.method-item:last-child{border-bottom:1px solid var(--hairline)}
.method-item:nth-child(2){margin-left:clamp(0rem,5vw,5rem)}
.method-item:nth-child(3){margin-left:clamp(0rem,9vw,9rem)}
.method-no{font-family:"Fraunces",serif;font-size:clamp(2rem,4vw,3.2rem);font-weight:300;color:var(--blush-deep);line-height:1}
.method-item h3{font-size:clamp(1.4rem,2.2vw,1.9rem);margin-bottom:.6rem;font-weight:400}
.method-item p{color:var(--ink-dim);max-width:34rem}

/* ---------- shop ---------- */
.shop{position:relative;z-index:2;padding:clamp(5rem,12vh,9rem) clamp(1.4rem,5vw,6rem);background:var(--paper-deep);border-top:1px solid var(--hairline)}
.shop .chapter-head{text-align:left;margin-left:clamp(0rem,3vw,3rem)}
.shop-row{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(1.2rem,2.6vw,2.4rem);align-items:end;max-width:78rem;margin:0 auto;
}
.product{
  position:relative;background:var(--cream);border:1px solid var(--hairline);border-radius:var(--radius);
  padding:2.2rem 1.8rem 1.9rem;
  transition:transform .6s var(--spring),box-shadow .5s;
}
.product:hover{transform:translateY(-8px);box-shadow:0 26px 44px -28px rgba(55,69,47,.4)}
.product-hero-card{background:var(--moss);border-color:var(--moss);color:var(--cream)}
.product-hero-card h3{color:var(--cream)}
.product-hero-card .product-spec{color:rgba(253,251,245,.75)}
.product-hero-card .product-price{color:var(--cream)}
.product-hero-card .btn-solid{background:var(--paper);color:var(--moss-deep);box-shadow:0 8px 20px -10px rgba(0,0,0,.4)}
.product-hero-card .btn-solid:hover{background:#fff}
.product-tag{
  position:absolute;top:1.2rem;right:1.2rem;font-size:.68rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  background:var(--blush);color:var(--moss-deep);border-radius:999px;padding:.35rem .8rem;
}
.product-art{position:relative;display:flex;justify-content:center;padding:1.4rem 0 1.8rem}
.bottle{width:clamp(110px,10vw,150px);height:auto;overflow:visible;transition:transform .6s var(--spring)}
.product:hover .bottle{transform:translateY(-4px) rotate(-1.5deg)}
.bt-glass{fill:var(--paper);stroke:var(--moss);stroke-width:2.5}
.product-hero-card .bt-glass{fill:var(--moss-deep)}
.bt-cap{fill:var(--moss);stroke:none}
.product-hero-card .bt-cap{fill:var(--blush)}
.bt-pipette{fill:var(--blush);stroke:none}
.bt-label{fill:var(--cream);stroke:var(--hairline);stroke-width:1}
.bt-mark{fill:none;stroke:var(--moss);stroke-width:2;stroke-linecap:round}
.bt-line{stroke:var(--hairline);stroke-width:1.6;stroke-linecap:round}
.bloom{position:absolute;inset:0;margin:auto;width:100%;height:100%;pointer-events:none;overflow:visible}
.bloom path{fill:none;stroke:var(--blush-deep);stroke-width:2;stroke-linecap:round}
.product-hero-card .bloom path{stroke:var(--blush)}
.product-info h3{font-size:1.45rem;font-weight:400;margin-bottom:.4rem}
.product-spec{font-size:.86rem;color:var(--ink-dim);margin-bottom:1.3rem;min-height:2.6em}
.product-buy{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.product-price{font-family:"Fraunces",serif;font-size:1.5rem;color:var(--moss-deep)}
.btn-bag{padding:.7rem 1.3rem;font-size:.82rem}
.btn-bag.added{background:var(--blush-deep);color:#fff}
.shop-note{max-width:78rem;margin:2.4rem auto 0;font-size:.86rem;color:var(--ink-dim);font-style:italic}

/* ---------- greenhouse ---------- */
.greenhouse{position:relative;padding:clamp(6rem,15vh,11rem) clamp(1.4rem,7vw,8rem) clamp(9rem,20vh,13rem);overflow:hidden}
.gh-vine{position:absolute;left:0;right:0;bottom:-6px;width:100%;height:auto;pointer-events:none;overflow:visible}
.gh-vine path,.gh-vine circle,.gh-vine ellipse{fill:none;stroke:var(--moss);stroke-linecap:round;opacity:.55}
.gh-inner{position:relative;max-width:44rem;margin-left:clamp(0rem,8vw,9rem)}
.gh-title{font-size:clamp(2.2rem,5.4vw,4.2rem);line-height:1.06;font-weight:300;letter-spacing:-.015em;margin-bottom:1.4rem}
.gh-title em{color:var(--blush-deep)}
.gh-sub{color:var(--ink-dim);max-width:34rem;margin-bottom:2rem}
.gh-form{display:flex;gap:.7rem;flex-wrap:wrap;max-width:32rem}
.gh-form input{
  flex:1 1 14rem;border:1.5px solid var(--hairline);background:var(--cream);border-radius:999px;
  padding:.85rem 1.3rem;font:inherit;color:var(--ink);
  transition:border-color .3s;
}
.gh-form input::placeholder{color:#8f978a}
.gh-form input:focus{outline:none;border-color:var(--moss)}
.gh-confirm{margin-top:1rem;color:var(--moss);font-weight:500;min-height:1.5em}

/* ---------- footer ---------- */
.footer{
  position:relative;z-index:2;
  border-top:1px solid var(--hairline);background:var(--paper);
  padding:2.2rem clamp(1.4rem,5vw,4rem);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;
  font-size:.85rem;color:var(--ink-dim);
}
.footer a{color:var(--moss-deep)}
.footer-fine{flex-basis:100%;font-size:.78rem}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:1.6rem;transform:translate(-50%,140%);
  background:var(--moss-deep);color:var(--cream);border-radius:999px;
  padding:.8rem 1.5rem;font-size:.9rem;font-weight:500;z-index:55;
  transition:transform .55s var(--spring);
  box-shadow:0 14px 30px -14px rgba(45,52,40,.6);
  max-width:min(90vw,26rem);text-align:center;
}
.toast.show{transform:translate(-50%,0)}

/* ---------- guide + 404 ---------- */
.guide-body{max-width:46rem;margin:0 auto;padding:5.5rem 1.4rem 4rem}
.guide-body h1{font-size:clamp(2.2rem,6vw,3.4rem);font-weight:300;margin:1.2rem 0 1.6rem;line-height:1.08}
.guide-body h2{font-size:1.45rem;font-weight:400;margin:2.6rem 0 .8rem;color:var(--moss-deep)}
.guide-body p,.guide-body li{color:var(--ink-dim)}
.guide-body p{margin-bottom:1rem}
.guide-body ul,.guide-body ol{padding-left:1.3rem;margin-bottom:1rem}
.guide-body li{margin-bottom:.5rem}
.guide-body code{background:var(--paper-deep);border:1px solid var(--hairline);border-radius:6px;padding:.08em .4em;font-size:.86em;color:var(--moss-deep)}
.guide-body strong{color:var(--ink)}
.back{display:inline-block;text-decoration:none;font-size:.85rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--moss);margin-bottom:1rem}

.err{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem;gap:.4rem}
.err svg{overflow:visible;margin-bottom:1.4rem}
.err svg path{fill:none;stroke:var(--moss);stroke-width:3;stroke-linecap:round}
.err h1{font-size:clamp(2.4rem,7vw,4rem);font-weight:300}
.err p{color:var(--ink-dim);max-width:26rem;margin-bottom:1.4rem}

/* ---------- responsive ---------- */
@media (max-width:1060px){
  .ferment-sticky{grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr}
  .ferment-head{grid-column:1/-1}
  .ferment-head br{display:none}
}
@media (max-width:820px){
  .shop-row{grid-template-columns:1fr;max-width:26rem}
  .product{align-items:center}
  .nav nav{display:none}
  .hero-vine-right{display:none}
  .hero-vine-left{left:-70px;opacity:.32}
  .method-item:nth-child(2),.method-item:nth-child(3){margin-left:0}
  .note-text{margin-right:0}
}
@media (max-width:640px){
  .ferment-sticky{grid-template-columns:1fr;padding-top:5rem;gap:1.2rem;align-content:start}
  #plant-svg{width:min(72vw,300px)}
  .ferment-days{margin-top:1.2rem}
  .hero-title .line:last-child{margin-left:1rem}
  .hero-foot{flex-direction:column;gap:.5rem}
  .br-d{display:none}
  .spine{display:none}
  .gh-form{flex-direction:column}
  .gh-form .btn{width:100%}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s!important;transition-duration:.001s!important}
  .hero-title .line span{transform:none}
  .reveal-up{opacity:1;transform:none}
  .note-text .w{opacity:1}
  .loader{display:none}
}
