/* harvest.css — dedicated Thanksgiving pack. NOT a reskin of halloween:
   own species, own motion grammar (waddle/peck/sway vs spooky drift/flicker),
   warm harvest palette. Loaded by pages alongside themes.css.            */

:root{--hv-wheat:#d9a441;--hv-cranberry:#8e2f3c;--hv-pumpkin:#c96f1e;
      --hv-cream:#f5e6c8;--hv-leaf:#b8552a}

/* persistent set dressing — wheat row along bottom edge, pointer-safe */
.hv-wheatfield{position:fixed;left:0;right:0;bottom:0;height:34px;z-index:3;
  pointer-events:none;opacity:.55;
  background:repeating-linear-gradient(90deg,transparent 0 26px,
    linear-gradient(180deg,transparent 0 8px,var(--hv-wheat) 8px 34px) 26px 34px)}
.hv-wheatfield i{position:absolute;bottom:0;width:2px;height:30px;
  background:var(--hv-wheat);transform-origin:bottom center;
  animation:hv-sway var(--sws,3.2s) ease-in-out infinite alternate}
@keyframes hv-sway{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}

/* turkey — waddles across the bottom edge with a peck-bob, NOT the owl path */
.hv-turkey{position:fixed;bottom:6px;left:-70px;z-index:6;font-size:30px;
  pointer-events:auto;cursor:pointer;
  animation:hv-waddle var(--tk,18s) linear forwards}
@keyframes hv-waddle{
  0%{transform:translateX(0) rotate(0)}
  12%{transform:translateX(12vw) rotate(-3deg)}
  14%{transform:translateX(13vw) rotate(8deg)}   /* peck */
  16%{transform:translateX(14vw) rotate(0)}
  50%{transform:translateX(52vw) rotate(0)}
  52%{transform:translateX(53vw) rotate(8deg)}   /* peck */
  54%{transform:translateX(54vw) rotate(0)}
  100%{transform:translateX(115vw) rotate(0)}}
.hv-turkey.gobble{animation-play-state:paused}
.hv-gobble{position:fixed;z-index:7;font:700 13px/1 ui-monospace,monospace;
  color:var(--hv-cranberry);pointer-events:none;
  animation:hv-pop 1.1s ease-out forwards}
@keyframes hv-pop{0%{transform:translateY(0) scale(.6);opacity:0}
  20%{opacity:1;transform:translateY(-14px) scale(1.15)}
  100%{transform:translateY(-44px) scale(1);opacity:0}}

/* pilgrim hat buckle corner badge — static set dressing, top-left */
.hv-hat{position:fixed;top:0;left:18px;z-index:4;width:54px;height:38px;
  pointer-events:none;opacity:.9;
  background:
   linear-gradient(90deg,transparent 20px,#3a2c22 20px 34px) 0 22px/54px 6px no-repeat,
   radial-gradient(ellipse at 50% 100%,#4a382a 0 60%,transparent 62%) 0 0/54px 30px no-repeat}
.hv-hat::after{content:'';position:absolute;left:22px;top:22px;width:10px;height:6px;
  border:2px solid var(--hv-wheat);box-sizing:border-box;background:transparent}

/* warm wash — replaces fog for harvest: subtle amber vignette, pointer-safe */
.hv-warm{position:fixed;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(120% 90% at 50% 110%,rgba(201,111,30,.10),transparent 60%),
             linear-gradient(180deg,rgba(245,230,200,.05),transparent 30%)}

/* cornucopia emoji drifting up from bottom-right, sparse */
.hv-cornu{position:fixed;bottom:-40px;z-index:5;font-size:22px;pointer-events:none;
  animation:hv-rise var(--cr,16s) linear forwards}
@keyframes hv-rise{to{transform:translateY(-110vh) rotate(14deg)}}

/* pie slice parachute — slow diagonal drop with sway */
.hv-pie{position:fixed;top:-40px;z-index:5;font-size:20px;pointer-events:none;
  animation:hv-piedrop var(--pd,12s) linear forwards}
@keyframes hv-piedrop{
  0%{transform:translate(0,0) rotate(-8deg)}
  25%{transform:translate(-3vw,30vh) rotate(8deg)}
  50%{transform:translate(-6vw,55vh) rotate(-6deg)}
  75%{transform:translate(-9vw,80vh) rotate(8deg)}
  100%{transform:translate(-12vw,110vh) rotate(-8deg)}}

body.th-harvest .th-whisper{color:#b06a28;text-shadow:0 1px 0 rgba(60,30,10,.25)}
@media (prefers-reduced-motion:reduce){
  .hv-wheatfield i,.hv-turkey,.hv-cornu,.hv-pie,.hv-gobble{animation:none!important}
}

/* harvest-native species (replaces th-* reuse — no halloween deps) */
.hv-leaf{position:fixed;top:-30px;z-index:5;pointer-events:none;
  font-size:var(--ls,16px);opacity:0;
  animation:hv-leaffall var(--lt2,10s) linear forwards}
@keyframes hv-leaffall{
  0%{opacity:0;transform:translate(0,0) rotate(0)}
  8%{opacity:.9}
  50%{transform:translate(var(--lx,4vw),50vh) rotate(240deg)}
  100%{opacity:.4;transform:translate(calc(var(--lx,4vw)*2),105vh) rotate(520deg)}}
.hv-whisper{position:fixed;z-index:6;font:italic 13px/1.3 Georgia,serif;
  color:#b06a28;pointer-events:none;opacity:0;
  animation:hv-fadeinout var(--wt,8s) ease-in-out forwards}
@keyframes hv-fadeinout{0%{opacity:0}15%{opacity:.85}80%{opacity:.7}100%{opacity:0}}
