/* The home page: science fact, then fiction, with a twist of citrus.

   Home only. site.css still styles the shared pieces (the finder, the record
   rows, the footer); on the home page they read the dark palette below
   through site.css's own variables. Everything here is prefixed z- so it
   never meets site.css's .btn, .chip or .reveal, or site.js's handlers on them.

   --z-lime is the brand accent. --z-s is the season's accent and --z-spot its
   glow; home.js sets them when the reader picks a season. The defaults below
   are autumn's, the season the page renders with before any script runs. */

body.zest{
  --paper:#111311; --grid:#1C1F1B; --zone:#191C18; --rule:#2C312A;
  --ink:#F4F3EE; --muted:#A9ADA3;
  --record:#C6F432; --project:#FF7A1A; --on-project:#111311;
  --z-lime:#C6F432; --z-lime-deep:#7FA012; --z-ink:#111311; --z-card:#191C18;
  --z-line:#2C312A; --z-line-2:#33382F; --z-text:#F4F3EE; --z-soft:#C9CCC3; --z-muted:#A9ADA3;
  --z-s:#FF7A1A; --z-spot:rgba(255,122,26,.16);
  --z-display:"Bricolage Grotesque","Archivo",Inter,system-ui,sans-serif;
  --z-sans:Inter,"Archivo",system-ui,sans-serif;
  --z-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  background:var(--z-ink);color:var(--z-text);overflow-x:hidden;
}
body.zest main{overflow-x:clip}
body.zest ::selection{background:var(--z-lime);color:var(--z-ink)}
body.zest :focus-visible{outline:3px solid var(--z-lime);outline-offset:3px}
.z-wrap{max-width:1320px;margin:0 auto;padding:0 24px}
.z-eyebrow{margin:0;font:700 12px/1 var(--z-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--z-s)}
.z-h2{margin:0;font-family:var(--z-display);font-weight:800;font-size:clamp(40px,5vw,68px);line-height:.95;letter-spacing:-.04em}

/* header */
.z-head{position:relative;z-index:20;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px;padding-top:22px}
.z-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--z-text)}
.z-brand span{font-family:var(--z-display);font-weight:800;font-size:24px;letter-spacing:-.02em}
.z-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px}
.z-navlink{position:relative;color:var(--z-text);text-decoration:none;font:500 15px/1.2 var(--z-sans);padding:10px 4px}
.z-navlink::after{content:"";position:absolute;left:4px;right:4px;bottom:4px;height:2px;background:var(--z-lime);transform:scaleX(0);transform-origin:left;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.z-navlink:hover::after,.z-navlink[aria-current="page"]::after{transform:scaleX(1)}
.z-seasons{display:flex;flex-wrap:wrap;align-items:center;gap:2px;padding:4px;border-radius:999px;background:#1C1F1B;box-shadow:inset 0 0 0 1px var(--z-line-2)}
.z-season-btn{appearance:none;border:0;background:transparent;color:var(--z-soft);font:600 13px/1 var(--z-sans);min-height:40px;padding:0 14px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:background .2s,color .2s,transform .15s}
.z-season-btn:hover{color:var(--z-text);transform:translateY(-1px)}
.z-season-btn[aria-pressed="true"]{background:var(--z-text);color:var(--z-ink)}
.z-season-btn i{width:10px;height:10px;border-radius:50%;display:inline-block}

/* garland */
.z-garland{position:relative;z-index:15;margin-top:14px;height:58px;overflow:hidden}
@media (max-width:720px){.z-orn:nth-child(n+11){display:none}}
@media (max-width:420px){.z-orn:nth-child(n+8){display:none}}
.z-garland svg.z-string{position:absolute;left:24px;right:24px;top:0;width:calc(100% - 48px);height:30px}
.z-garland-row{position:relative;display:flex;justify-content:space-between;padding:0 6px}
.z-orn{width:26px;height:48px;display:flex;flex-direction:column;align-items:center;transform-origin:50% 0;animation:z-swing 2.8s ease-in-out infinite alternate}
.z-orn::before{content:"";width:2px;height:12px;background:#3A3F37}
.z-orn:hover{animation-duration:.5s}
.z-orn svg{width:24px;height:24px}
@keyframes z-swing{0%{transform:rotate(-9deg)}100%{transform:rotate(9deg)}}
.z-twinkle{animation:z-twinkle 1.6s ease-in-out infinite alternate}
@keyframes z-twinkle{0%{opacity:.35}100%{opacity:1}}

/* weather */
#z-fx{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:30}
.z-fall{position:absolute;top:-60px;pointer-events:none;animation:z-fall linear infinite}
.z-fall>div{width:100%;height:100%}
.z-fall svg,.z-burst-fly svg{display:block;width:100%;height:100%}
@keyframes z-fall{0%{top:-60px}100%{top:105vh}}
.z-sway-a{animation:z-sway-a 3.4s ease-in-out infinite alternate}
.z-sway-b{animation:z-sway-b 4.6s ease-in-out infinite alternate}
@keyframes z-sway-a{0%{transform:translateX(-26px) rotate(-40deg)}100%{transform:translateX(26px) rotate(60deg)}}
@keyframes z-sway-b{0%{transform:translateX(18px) rotate(30deg)}100%{transform:translateX(-30px) rotate(-70deg)}}
.z-burst{position:absolute;width:0;height:0;pointer-events:none;z-index:6}
.z-burst-fly{position:absolute;left:-11px;top:-11px;width:22px;height:22px;animation:z-burst .95s cubic-bezier(.15,.7,.3,1) forwards}
.z-burst-fly.z-far{animation-name:z-burst-far}
@keyframes z-burst{0%{transform:translateY(0) scale(.4) rotate(0);opacity:1}100%{transform:translateY(-92px) scale(1) rotate(200deg);opacity:0}}
@keyframes z-burst-far{0%{transform:translateY(0) scale(.4) rotate(0);opacity:1}100%{transform:translateY(-150px) scale(1.15) rotate(-260deg);opacity:0}}

/* hero */
.z-hero{position:relative;z-index:10;padding-top:48px;padding-bottom:72px}
.z-spot{position:absolute;inset:-160px;pointer-events:none;background:radial-gradient(520px circle at var(--mx,70%) var(--my,30%),var(--z-spot),transparent 65%)}
.z-bursts{position:absolute;inset:0;pointer-events:none}
.z-hero-grid{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:56px}
.z-hero-copy{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:28px}
.z-badge{margin:0;display:inline-flex;align-self:flex-start;align-items:center;gap:10px;padding:8px 14px 8px 8px;border-radius:999px;background:#1C1F1B;box-shadow:inset 0 0 0 1px var(--z-line-2);font:700 12px/1 var(--z-mono);letter-spacing:.08em;text-transform:uppercase;color:#E3E5DD}
.z-badge span{padding:6px 10px;border-radius:999px;background:var(--z-s);color:var(--z-ink)}
.z-h1{margin:0;font-family:var(--z-display);font-weight:800;font-size:clamp(54px,8.4vw,124px);line-height:.9;letter-spacing:-.045em}
.z-h1>span{display:block}
.z-h1 .z-then{color:var(--z-lime)}
.z-h1 .z-sq{position:relative;display:inline-block}
.z-squiggle{position:absolute;left:0;bottom:-.18em;width:100%;height:.26em;overflow:visible}
.z-squiggle path{fill:none;stroke:var(--z-s);stroke-width:7;stroke-linecap:round;stroke-dasharray:420;stroke-dashoffset:420;animation:z-draw 1.4s .4s cubic-bezier(.6,0,.2,1) forwards}
@keyframes z-draw{to{stroke-dashoffset:0}}
.z-sub{margin:0;max-width:540px;font:400 20px/1.55 var(--z-sans);color:var(--z-soft)}
.z-ctas{display:flex;flex-wrap:wrap;gap:14px}
.z-stats{margin:8px 0 0;display:flex;flex-wrap:wrap;gap:14px 40px}
.z-stats div{display:flex;flex-direction:column;gap:4px}
.z-stats dt{font:500 12px/1 var(--z-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--z-muted)}
.z-stats dd{margin:0;font-family:var(--z-display);font-weight:800;font-size:40px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.z-stats .z-lime{color:var(--z-lime)}
.z-hint{margin:0;display:flex;flex-wrap:wrap;gap:6px 18px;font:500 13px/1.4 var(--z-mono);color:var(--z-muted)}
.z-hint .ro-ver b{font-weight:700;color:var(--z-soft)}
.z-hint .ro-ver i{font-style:normal;margin-left:.4em}

/* buttons */
.z-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border-radius:999px;font:700 16px/1 var(--z-sans);text-decoration:none;cursor:pointer;border:0;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s}
.z-btn:hover{transform:translateY(-2px) rotate(-1deg)}
.z-btn svg{width:18px;height:18px;flex:none}
.z-btn-lime{background:var(--z-lime);color:var(--z-ink);box-shadow:0 6px 0 var(--z-lime-deep)}
.z-btn-lime:hover{box-shadow:0 9px 0 var(--z-lime-deep)}
.z-btn-lime:active{transform:translateY(3px);box-shadow:0 2px 0 var(--z-lime-deep)}
.z-btn-ghost{background:transparent;color:var(--z-text);box-shadow:inset 0 0 0 2px #3A3F37}
.z-btn-ghost:hover{box-shadow:inset 0 0 0 2px var(--z-text)}
.z-btn-dark{background:var(--z-ink);color:var(--z-lime)}
.z-btn-sm{min-height:44px;padding:0 18px;font-size:14px}
.z-btn-sm svg{width:16px;height:16px}

/* the fact-to-fiction card */
.z-card-col{flex:1 1 400px;min-width:0;max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:18px;position:relative}
.z-stamp{position:absolute;right:-34px;top:-78px;width:120px;height:120px;z-index:3;animation:z-spin 22s linear infinite}
.z-stamp svg{width:120px;height:120px}
@keyframes z-spin{to{transform:rotate(360deg)}}
.z-flip-wrap{height:440px;perspective:1600px;transition:transform .25s ease-out}
.z-flip{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.3,1.35,.4,1)}
.z-flip.is-fiction{transform:rotateY(180deg)}
.z-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:28px;padding:34px;display:flex;flex-direction:column;gap:18px;overflow:hidden;color:var(--z-ink)}
.z-face-fact{background:var(--z-text);box-shadow:0 30px 60px -30px rgba(0,0,0,.7)}
.z-face-fiction{background:var(--z-lime);transform:rotateY(180deg);box-shadow:0 30px 60px -30px rgba(198,244,50,.45)}
.z-face-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.z-tag{font:700 12px/1 var(--z-mono);letter-spacing:.12em;text-transform:uppercase;padding:8px 12px;border-radius:8px;background:var(--z-ink);color:var(--z-lime)}
.z-face-note{font:600 13px/1 var(--z-sans);color:#4A4F46;text-transform:capitalize}
.z-face-fiction .z-face-note{color:#2B3313;text-transform:none}
.z-fact{margin:0;flex:1 1 auto;display:flex;align-items:center;font-family:var(--z-display);font-weight:700;font-size:clamp(24px,2.6vw,34px);line-height:1.12;letter-spacing:-.02em}
.z-source{display:flex;align-items:center;gap:10px;font:500 13px/1.4 var(--z-sans);color:#4A4F46}
.z-source svg{width:18px;height:18px;flex:none}
.z-face h2{margin:0;font-family:var(--z-display);font-weight:800;font-size:clamp(34px,3.6vw,52px);line-height:.95;letter-spacing:-.035em}
.z-whatif-big{margin:0;flex:1 1 auto;font:400 19px/1.5 var(--z-sans);color:#1E2410}
.z-face .z-btn{align-self:flex-start}
.z-card-ctl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.z-card-ctl>div{display:flex;gap:10px}
.z-pos{font:500 13px/1 var(--z-mono);color:var(--z-muted)}

/* the ticker */
.z-ticker{position:relative;z-index:10;background:var(--z-lime);color:var(--z-ink);padding:18px 0;overflow:hidden;transform:rotate(-1.2deg);margin:8px -20px 0;box-shadow:0 0 0 6px var(--z-ink)}
.z-ticker-track{display:flex;gap:48px;width:max-content;animation:z-tick 48s linear infinite}
.z-ticker:hover .z-ticker-track,.z-ticker:focus-within .z-ticker-track{animation-play-state:paused}
@keyframes z-tick{to{transform:translateX(-50%)}}
.z-ticker a{display:inline-flex;align-items:center;gap:48px;white-space:nowrap;color:var(--z-ink);text-decoration:none;font-family:var(--z-display);font-weight:800;font-size:28px;letter-spacing:-.02em}
.z-ticker a:hover{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px}
.z-ticker svg{width:22px;height:22px}

/* the featured cards */
.z-sec{position:relative;z-index:10;display:flex;flex-direction:column;gap:32px}
.z-feat{padding-top:112px;padding-bottom:40px}
.z-sec-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px}
.z-sec-head>div:first-child{display:flex;flex-direction:column;gap:12px}
.z-chips{display:flex;flex-wrap:wrap;gap:10px}
.z-chip{appearance:none;border:0;cursor:pointer;min-height:44px;padding:0 18px;border-radius:999px;font:600 14px/1 var(--z-sans);background:#1C1F1B;color:#E3E5DD;box-shadow:inset 0 0 0 1px var(--z-line-2);transition:transform .15s,background .2s,color .2s}
.z-chip:hover{transform:translateY(-2px) rotate(-1.5deg)}
.z-chip[aria-pressed="true"]{background:var(--z-lime);color:var(--z-ink);box-shadow:none}
.z-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}
.z-card{position:relative;display:flex;flex-direction:column;gap:14px;min-height:300px;padding:26px;border-radius:24px;background:var(--z-card);color:var(--z-text);text-decoration:none;overflow:hidden;box-shadow:inset 0 0 0 1px var(--z-line);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s;animation:z-card-in .55s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0ms)}
.z-card:hover{transform:translateY(-6px) rotate(-.6deg);box-shadow:inset 0 0 0 2px var(--z-lime),0 24px 48px -24px rgba(198,244,50,.35)}
@keyframes z-card-in{0%{transform:translateY(24px) scale(.97);opacity:0}100%{transform:none;opacity:1}}
.z-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font:700 11px/1 var(--z-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--z-muted)}
.z-card-top svg{width:20px;height:20px;color:var(--z-lime)}
.z-card-fact{margin:0;font:400 17px/1.5 var(--z-sans);color:#D9DCD2}
.z-card h3{margin:auto 0 0;font-family:var(--z-display);font-weight:800;font-size:30px;line-height:1;letter-spacing:-.03em}
.z-card-whatif{position:absolute;left:0;right:0;bottom:0;padding:26px;background:var(--z-lime);color:var(--z-ink);transform:translateY(101%);transition:transform .38s cubic-bezier(.2,.8,.2,1)}
.z-card:hover .z-card-whatif,.z-card:focus-visible .z-card-whatif{transform:none}
.z-card-whatif p{margin:0;font:500 17px/1.45 var(--z-sans)}
.z-card-whatif p:first-child{margin-bottom:10px;font:700 11px/1 var(--z-mono);letter-spacing:.12em;text-transform:uppercase}
@media (hover:none){.z-card-whatif{position:static;transform:none;margin:8px -26px -26px}}
.z-more{display:flex;flex-wrap:wrap;gap:14px;align-items:center}

/* the archive, restyled: site.css's finder and rows on the dark palette */
.z-archive{position:relative;z-index:10;padding-top:96px}
.z-archive .z-sec-head{margin-bottom:28px}
.z-archive .rows .ti{font-family:var(--z-display);font-weight:700;letter-spacing:-.02em}
.z-archive .rows .wi{font-family:var(--z-sans);font-style:normal;color:var(--z-soft)}
.z-archive .q{background:#1C1F1B;color:var(--z-text);border-color:var(--z-line-2)}
.z-archive .fine a{color:var(--z-lime)}

/* how it works */
.z-how{padding-top:96px;padding-bottom:112px;gap:44px}
.z-how-steps{position:relative}
.z-dash{position:absolute;left:8%;top:58px;width:84%;height:20px}
.z-dash path{stroke:#3A3F37;stroke-width:3;fill:none;stroke-dasharray:6 10;animation:z-dash 1.2s linear infinite}
@keyframes z-dash{to{stroke-dashoffset:-32}}
.z-how ol{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.z-how li{display:flex;flex-direction:column;gap:16px;padding:28px;border-radius:24px;background:var(--z-card);box-shadow:inset 0 0 0 1px var(--z-line)}
.z-num{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;color:var(--z-ink);font-family:var(--z-display);font-weight:800;font-size:32px}
.z-how h3{margin:0;font-family:var(--z-display);font-weight:800;font-size:28px;letter-spacing:-.02em}
.z-how li p{margin:0;font:400 17px/1.55 var(--z-sans);color:var(--z-soft)}
.z-restore{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;border-radius:28px;background:var(--z-text);color:var(--z-ink)}
.z-restore p{margin:0;font-family:var(--z-display);font-weight:700;font-size:26px;letter-spacing:-.02em}
.z-wobble:hover{animation:z-wob .5s ease-in-out}
@keyframes z-wob{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}

/* the footer site.css draws, widened to the page */
body.zest footer.wrap{max-width:1320px;padding-left:24px;padding-right:24px;margin-top:0}

.z-logo .z-ln{stroke-dasharray:60;stroke-dashoffset:60;animation:z-draw 2.4s cubic-bezier(.6,0,.2,1) infinite alternate}
.z-pop{animation:z-pop .7s cubic-bezier(.3,1.6,.5,1) both}
@keyframes z-pop{0%{transform:scale(.6) rotate(-6deg);opacity:0}100%{transform:none;opacity:1}}

@media (prefers-reduced-motion:reduce){
  .z-fall,.z-burst{display:none}
  .z-ticker-track,.z-orn,.z-twinkle,.z-stamp,.z-logo .z-ln,.z-dash path,.z-card,.z-pop{animation:none!important}
  .z-logo .z-ln{stroke-dashoffset:0}
  .z-squiggle path{animation:none;stroke-dashoffset:0}
  .z-flip,.z-flip-wrap{transition:none}
}
