/* Staged Thanksgiving home section. Enqueued only when DJD_PUBLISH_THANKS_ABALONE_TURQUOISE is true. */
:root{--ink:#1D1E20;--pond:#2F7A4F;--pond-dark:#1F5637;--pumpkin:#F08A24;--cream:#FFF8EE}
*{box-sizing:border-box}

.djd-season-thanks{
  position:relative;overflow:hidden;min-height:0;
  padding:clamp(4.4rem,7vw,6.2rem) 1.4rem 0;
  background:
    radial-gradient(ellipse at 78% 92%, rgba(255,150,30,.38), transparent 46%),
    radial-gradient(ellipse at 12% 0%, rgba(255,236,180,.5), transparent 42%),
    linear-gradient(165deg, #F6B15A 0%, #F08A24 48%, #D26512 100%);
  color:var(--ink);
}
.djd-leaf-layer,.djd-table-props{position:absolute;inset:0;pointer-events:none}
.djd-leaf-layer{z-index:0}
.djd-leaf-layer svg,.djd-table-props svg{position:absolute;overflow:visible}
.djd-harvest{position:relative;z-index:1;max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(280px,.9fr) minmax(340px,1.2fr);gap:clamp(1.2rem,3.5vw,3rem);align-items:end;min-height:640px}
.djd-harvest-copy{padding:0 0 4.2rem;max-width:34rem;position:relative;z-index:3}
.djd-eyebrow{font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.78rem;color:#6A2E08;margin:0 0 .7rem}
.djd-harvest-copy h2{
  font-family:var(--wp--preset--font-family--shrikhand),Georgia,serif;font-weight:400;
  font-size:clamp(2.3rem,5.2vw,3.7rem);line-height:1.05;color:#2A1408;
  margin:0 0 1rem;text-wrap:balance;text-shadow:0 1px 0 rgba(255,248,230,.45), 0 0 18px rgba(255,248,230,.25);
}
.djd-harvest-copy .djd-cozy{font-size:1.15rem;line-height:1.55;color:#3B1F0E;margin:0 0 1.7rem;max-width:28rem}
.djd-buttons{display:flex;flex-wrap:wrap;gap:.8rem}
.djd-btn{display:inline-block;text-decoration:none;font-weight:800;border-radius:999px;padding:.85rem 1.45rem;font-size:1rem;line-height:1.2}
.djd-btn-pond{background:var(--pond-dark);color:#fff;box-shadow:0 8px 18px rgba(31,86,55,.28)}
.djd-btn.djd-btn-outline{background:transparent;color:#2A1408;border:2px solid rgba(42,20,8,.7)}

.djd-harvest-stage{position:relative;min-height:620px;z-index:2}
.djd-table{
  position:absolute;left:-8%;right:-10%;bottom:0;height:230px;
  background:
    repeating-linear-gradient(90deg, rgba(60,28,8,.1) 0 3px, transparent 3px 46px),
    linear-gradient(180deg,#B57A3C 0%, #8B4E1C 30%, #6B3512 72%, #4A240C 100%);
  border-radius:10px 10px 0 0;
  box-shadow:inset 0 10px 14px rgba(255,220,150,.18), inset 0 -18px 20px rgba(40,16,4,.28), 0 -8px 30px rgba(90,30,0,.2);
  transform:perspective(700px) rotateX(14deg);
  transform-origin:center bottom;
}
.djd-table::before{
  content:"";position:absolute;left:0;right:0;top:0;height:14px;
  background:linear-gradient(180deg,#C4894A,#8B4E1C);border-radius:10px 10px 0 0;
}
/* soft plaid runner */
.djd-runner{
  position:absolute;left:8%;right:8%;top:20px;height:64px;border-radius:4px;
  background-color:#7A2418;
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0 10px,
      rgba(244,228,195,.55) 10px 13px,
      transparent 13px 22px,
      rgba(31,86,55,.45) 22px 25px,
      transparent 25px 36px,
      rgba(244,228,195,.35) 36px 38px,
      transparent 38px 48px),
    repeating-linear-gradient(0deg,
      transparent 0 8px,
      rgba(244,228,195,.45) 8px 10px,
      transparent 10px 18px,
      rgba(31,86,55,.35) 18px 20px,
      transparent 20px 32px);
  box-shadow:0 4px 10px rgba(40,10,0,.28);
  opacity:.95;
}

.djd-harvest-cup{
  position:absolute;bottom:156px;margin:0;background:#FFF8EE;
  padding:10px 10px 32px;border-radius:3px;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset, 8px 18px 24px rgba(40,16,4,.38);
  z-index:3;
}
.djd-harvest-cup img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%;background:#d9c4a0}
.djd-harvest-cup figcaption{
  position:absolute;left:10px;right:10px;bottom:8px;
  font-size:.68rem;font-weight:700;letter-spacing:.04em;
  text-align:center;color:#5C3510;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.djd-harvest-cup--harvest{left:4%;width:min(220px,36%);height:300px;transform:rotate(-4deg);z-index:4}
.djd-harvest-cup--playlist{right:5%;width:min(226px,37%);height:348px;transform:rotate(3.5deg);z-index:3}
.djd-harvest-cup--knomie{display:none}
.djd-harvest.has-knomie .djd-harvest-cup--knomie{display:block;left:36%;width:min(200px,32%);height:290px;bottom:156px;transform:rotate(-1deg);z-index:2}

/* table props sit on the runner */
.prop{position:absolute;pointer-events:none;filter:drop-shadow(4px 8px 6px rgba(40,16,4,.35))}
.prop--wheat{left:36%;bottom:168px;width:92px;height:150px;z-index:2;transform:rotate(-12deg)}
.prop--pumpkin-lg{left:30%;bottom:150px;width:118px;height:100px;z-index:5;transform:rotate(-6deg)}
.prop--pumpkin-md{left:48%;bottom:148px;width:86px;height:76px;z-index:5;transform:rotate(8deg)}
.prop--pumpkin-sm{right:38%;bottom:146px;width:62px;height:56px;z-index:5;transform:rotate(-10deg)}
.prop--gourd{right:28%;bottom:152px;width:78px;height:70px;z-index:4;transform:rotate(16deg)}
.prop--acorn-a{left:42%;bottom:150px;width:28px;height:36px;z-index:6;transform:rotate(-24deg)}
.prop--acorn-b{right:34%;bottom:148px;width:24px;height:32px;z-index:6;transform:rotate(18deg)}
.prop--leaf-a{left:27%;bottom:158px;width:40px;height:40px;z-index:6;transform:rotate(-28deg)}
.prop--leaf-b{left:54%;bottom:152px;width:34px;height:34px;z-index:6;transform:rotate(36deg)}
.prop--leaf-c{right:24%;bottom:160px;width:38px;height:38px;z-index:6;transform:rotate(20deg)}


/* warm string lights */
.djd-lights{position:absolute;top:0;left:0;right:150px;height:92px;z-index:4;pointer-events:none;overflow:visible}
.djd-lights-wire{position:absolute;top:0;left:0;width:100%;height:80px;overflow:visible}
.djd-bulb{position:absolute;width:16px;margin-left:-8px;display:flex;flex-direction:column;align-items:center}
.djd-bulb .cap{width:8px;height:6px;background:linear-gradient(#6B4A22,#3B2410);border-radius:1px 1px 0 0;box-shadow:0 1px 0 #2A1808}
.djd-bulb .glass{
  width:14px;height:20px;border-radius:50% 50% 46% 46% / 42% 42% 58% 58%;
  background:radial-gradient(circle at 38% 32%, #FFF8DC 0%, #FFE08A 32%, #F0A030 78%, #D26512 100%);
  box-shadow:
    0 0 8px 3px rgba(255,200,80,.95),
    0 0 22px 8px rgba(255,150,40,.55),
    0 0 40px 16px rgba(255,120,20,.22);
  animation:djd-bulb-flicker 3.2s ease-in-out infinite;
}
.djd-bulb:nth-child(3n) .glass{animation-duration:2.6s;animation-delay:.4s}
.djd-bulb:nth-child(3n+1) .glass{animation-duration:3.6s;animation-delay:1.1s}
.djd-bulb:nth-child(3n+2) .glass{animation-duration:2.9s;animation-delay:.2s}

/* fireplace / candle glow behind the table */
.djd-hearth{
  position:absolute;left:40%;right:-8%;bottom:-18%;height:62%;
  pointer-events:none;z-index:0;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(255,196,80,.88) 0%, rgba(255,130,20,.42) 38%, rgba(255,90,10,.12) 60%, transparent 76%);
  animation:djd-hearth-flicker 2.8s ease-in-out infinite;
  transform-origin:50% 90%;
}
.djd-hearth-2{
  position:absolute;left:8%;width:36%;bottom:-12%;height:42%;
  pointer-events:none;z-index:0;
  background:radial-gradient(ellipse at 50% 80%, rgba(255,170,50,.28) 0%, transparent 70%);
  animation:djd-hearth-flicker 3.4s ease-in-out infinite .6s;
  transform-origin:50% 100%;
}

/* little candle on the table */
.prop--candle{left:57%;bottom:150px;width:28px;height:54px;z-index:6;filter:drop-shadow(0 0 10px rgba(255,170,50,.85))}
.prop--candle .flame{transform-origin:50% 80%;animation:djd-flame 1.6s ease-in-out infinite}

@keyframes djd-bulb-flicker{
  0%,100%{filter:brightness(1);opacity:1}
  28%{filter:brightness(1.18)}
  42%{filter:brightness(.86)}
  58%{filter:brightness(1.1)}
  73%{filter:brightness(.94)}
}
@keyframes djd-hearth-flicker{
  0%,100%{opacity:.78;transform:scale(1)}
  35%{opacity:1;transform:scale(1.05)}
  55%{opacity:.82;transform:scale(1.015)}
  78%{opacity:.96;transform:scale(1.04)}
}
@keyframes djd-flame{
  0%,100%{transform:scale(1) translateX(0);opacity:1}
  40%{transform:scale(1.08,.92) translateX(.4px);opacity:.9}
  70%{transform:scale(.94,1.1) translateX(-.3px);opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .djd-bulb .glass,.djd-hearth,.djd-hearth-2,.prop--candle .flame{animation:none}
}



@media (max-width:800px){
  .djd-season-thanks{padding:5.2rem 1.1rem 0;min-height:0}
  .djd-lights{right:0;height:76px}
  
  .djd-bulb .glass{width:12px;height:16px}
  .djd-hearth{left:10%;right:-6%;height:48%}
  .djd-hearth-2{display:none}
  .prop--candle{left:52%;bottom:116px;width:22px;height:42px}
  .djd-harvest{grid-template-columns:1fr;min-height:0;gap:.6rem}
  .djd-harvest-copy{padding:0 0 .4rem;max-width:none}
  .djd-harvest-copy h2{font-size:clamp(2rem,10vw,2.6rem)}
  .djd-harvest-copy .djd-cozy{font-size:1.02rem;margin-bottom:1.1rem}
  .djd-btn{padding:.75rem 1.2rem;font-size:.95rem}
  .djd-harvest-stage{min-height:470px}
  .djd-table{height:180px;left:-4%;right:-4%}
  .djd-runner{height:48px;top:16px}
  .djd-harvest-cup--harvest{width:42%;height:230px;bottom:122px;left:2%}
  .djd-harvest-cup--playlist{width:44%;height:260px;bottom:122px;right:2%}
  .prop--wheat{left:38%;bottom:128px;width:64px;height:110px}
  .prop--pumpkin-lg{left:28%;bottom:118px;width:84px;height:72px}
  .prop--pumpkin-md{left:46%;bottom:116px;width:64px;height:56px}
  .prop--pumpkin-sm{right:40%;bottom:114px;width:46px;height:42px}
  .prop--gourd{right:26%;bottom:118px;width:56px;height:50px}
  .prop--acorn-a,.prop--acorn-b,.prop--leaf-a,.prop--leaf-b,.prop--leaf-c{display:none}
  /* keep background leaves lighter so type stays readable */
  .djd-leaf-layer svg{opacity:.55!important}
  .djd-leaf-layer svg.busy{display:none}
}
