/* =========================================================
   THE WEEKLY HARVEST — home page (index.html only)
   Colour-blocked layout: pale olive welcome panel, white intro, pale
   mustard how-it-works, pale olive "why" band, newsletter on cream #FAEEDA.
   Loaded after style.css and theme.css (shared palette, menu bar, footer);
   everything here is scoped to the home page.
   ========================================================= */

.home {
  /* palette: css/theme.css */
  --home-radius:  16px;
  --home-max:     1200px;   /* same content width as Abel & Cole */
  --home-pad:     max(var(--gutter), calc((100% - var(--home-max)) / 2 + var(--gutter)));

  background: var(--paper);
  color: var(--ink);
}
.home main { padding-top: 0; }   /* the farm scene starts at the very top, under the see-through menu bar */

/* Section titles use the wordmark font with clean edges, like "Recipes you missed"
   on the recipes page (the cut-paper edge filter was taken off on 2026-11-26). */
.home-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.9vw, 60px);   /* same size as "Picked this week" */
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  filter: none;
}

/* ---------- Welcome: the farm collage, one cut-out per layer ---------- */
/* The whole 16:9 stage shows, full width, just below the fixed menu bar,
   so every piece of the Canva design can be seen; the strip behind the
   menu bar is the sky's own blue */
.home-eco {
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(90deg, #427FC2, #4F8CC5 50%, #2F78BE);   /* the top of the sky */
}
.eco__stage {
  position: relative;
  left: -1%;
  width: 102%;   /* a hair wider than the screen, so no edge shows as the pieces drift */
  aspect-ratio: 4268.75 / 2400;   /* the Canva design's own shape */
}
/* --eco-scroll is set from the page scroll (main.js): far layers lag behind, near ones keep up */
.eco__layer {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  translate: 0 calc(var(--eco-scroll, 0) * (1 - var(--d, 1)) * 1px);
  will-change: transform;
}
.eco__layer img {
  display: block;
  width: 100%;
  height: auto;
}
/* The sky a touch bigger than the stage, so no edge shows as it moves. The hills
   keep their exact size and place, so the far tree stands right on their edge */
.eco__layer--sky { left: -2%; top: -4%; width: 104%; }
/* The wordmark centred at the bottom of the welcome scene, just above its bottom edge. */
.eco__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  justify-content: center;
  align-content: end;
  padding-bottom: clamp(20px, 3.5vw, 56px);
  margin: 0;
  pointer-events: none;
  translate: 0 calc(var(--eco-scroll, 0) * (1 - var(--d, 1)) * 1px);
}
.eco__logo {
  display: grid;
  place-items: center;
  width: clamp(320px, 52vw, 880px);   /* sized up 2026-11-26 (was 260px–38vw–640px) */
  aspect-ratio: 1600 / 515;
  container-type: inline-size;
  background: #FBE68A;   /* butter-yellow block behind the title (asked for again 2026-11-26) */
  border-radius: clamp(10px, 1.4vw, 20px);
}
.eco__wordmark {
  font-family: "Lilita One", sans-serif;   /* kept out of Food Think */
  font-size: 13.5cqw;
  font-weight: 400;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  color: #27500a;
}

/* Bees buzzing round the title's four corners: each hovers on its own little loop.
   The right-hand bees are flipped so they all face the title. */
.eco__logo { position: relative; }
.eco__bee {
  position: absolute;
  width: 10cqw;
  height: auto;
  pointer-events: none;
  animation: eco-buzz 2.4s ease-in-out infinite;
}
.eco__bee--tl { top: -7%;  left: -6%;  --flip: 1;  --tilt: -10deg; animation-duration: 2.2s; }
.eco__bee--tr { top: -10%; right: -6%; --flip: -1; --tilt: 10deg;  animation-duration: 2.7s; animation-delay: -.6s; }
.eco__bee--bl { bottom: -10%; left: -7%; --flip: 1;  --tilt: 8deg;  animation-duration: 2.5s; animation-delay: -1.1s; }
.eco__bee--br { bottom: -7%; right: -7%; --flip: -1; --tilt: -8deg; animation-duration: 2.1s; animation-delay: -.3s; }
.eco__bee--in { bottom: 14%; right: 9%; width: 7cqw; --flip: -1; --tilt: 6deg; animation-duration: 1.9s; animation-delay: -.9s; }   /* inside the yellow box, beside "Harvest" */
@keyframes eco-buzz {
  0%   { transform: scaleX(var(--flip)) translate(0, 0) rotate(var(--tilt)); }
  25%  { transform: scaleX(var(--flip)) translate(6px, -5px) rotate(calc(var(--tilt) + 6deg)); }
  50%  { transform: scaleX(var(--flip)) translate(-3px, -9px) rotate(var(--tilt)); }
  75%  { transform: scaleX(var(--flip)) translate(-6px, -2px) rotate(calc(var(--tilt) - 6deg)); }
  100% { transform: scaleX(var(--flip)) translate(0, 0) rotate(var(--tilt)); }
}
@media (prefers-reduced-motion: reduce) {
  .eco__bee { animation: none; transform: scaleX(var(--flip)) rotate(var(--tilt)); }
}

/* Badge in the bottom-right: the paragraphs' typewriter font (IBM Plex Mono)
   in dark green capitals, on a white scalloped circle with a dashed green line inside */
.eco__badge {
  position: absolute;
  right: clamp(12px, 3vw, 48px);
  bottom: clamp(48px, 11vw, 160px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(130px, 13vw, 190px);
  aspect-ratio: 1;
  margin: 0;
  translate: 0 calc(var(--eco-scroll, 0) * (1 - var(--d, 1)) * 1px);
}
.eco__badge-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(31, 36, 20, .18));
}
.eco__badge-fill { fill: #fff; }
.eco__badge-dash {
  fill: none;
  stroke: #27500A;
  stroke-width: 2.4;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
}
.eco__badge-text {
  position: relative;
  max-width: 56%;   /* inside the dashed line */
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: clamp(9px, .85vw, 12.5px);
  line-height: 1.3;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  color: #27500A;
}

/* Animals and veg give a little wiggle when the mouse touches them */
.eco__layer[data-in="pop"] img { cursor: pointer; }

/* ---------- Picked this week: centred text + four rounded photos ---------- */
/* Dark green display lettering and typewriter body text on butter yellow. */
.home-picked {
  --picked-ink: #1F4D2B;
  padding: clamp(48px, 5vw, 72px) var(--home-pad);
  text-align: center;
  background: #FBE68A;
  color: var(--picked-ink);
}
/* Match the welcome wordmark, with clean edges like "Recipes you missed". */
.home-picked__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(30px, 3.9vw, 60px);   /* a little smaller than the other titles, to stay on one line */
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #2B4C30;   /* the logo's green */
  filter: none;   /* clean edges, like "Recipes you missed" */
}
.home-title,
.home-picked__title { text-wrap: balance; }   /* even lines, never one word left on its own */
/* Full-size screens: "Picked this week, packed by hand" on one line. It can be a
   little wider than the 1200px column, so flex centring lets it spill out evenly
   on both sides (it still fits inside the screen) */
@media (min-width: 1024px) {
  .home-picked__title {
    display: flex;
    justify-content: center;
    white-space: nowrap;
  }
}
.home-picked__lead,
.home-picked__text {
  max-width: 1120px;   /* one line each on a wide screen; wraps evenly on smaller ones */
  text-wrap: balance;
  margin: 10px auto 0;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: .04em;
}
.home-picked__lead { margin-top: 22px; }
.home-picked__punch { font-weight: 700; font-size: 17px; }   /* the closing line: bold, 2px bigger */
.home-picked__photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 3vw, 40px);
}
.home-picked__photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: var(--home-radius);
}

/* Card titles in capitals, like the logo */
.home-news__card-title,
.home-why__headline {
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* White label on the how-it-works cards */
.home-label {
  position: relative;
  max-width: 340px;
  padding: 12px 18px 14px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(31, 36, 20, .12);
  text-align: left;
}
.home-label h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.home-label h3 span {
  margin-left: 6px;
  font-weight: 500;
  color: var(--rust);
}
.home-label p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; }

/* ---------- How it works: three cards, drawing on top, label below ---------- */
.home-how {
  padding: clamp(48px, 5vw, 72px) var(--home-pad);
  text-align: center;
  background: var(--mustard-light);
}
.home-how__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}
.home-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--home-radius);
  background: var(--butter);
}
.home-step:nth-child(2) { background: var(--sky); }
.home-step:nth-child(3) { background: #DCE7C4; }
.home-step .how-card__art { width: min(100%, 240px); height: auto; overflow: visible; }
.home-step .how-card__ink { stroke: var(--ink); }
.home-step .home-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: none;
}
.home-step .how-card__text {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: .04em;
}
.home-step .how-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: .04em;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
/* Card time: handwritten like the name beside the logo (Nothing You Could Do,
   same-colour outline of 7% of the size, rough marker edges) */
.home-step .how-card__when {
  margin: 6px 0 0;
  font-family: "Nothing You Could Do", cursive;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: .03em;   /* a touch tighter than the logo, so "Wednesday · 8am to 8pm" fits on one line */
  -webkit-text-stroke: .07em currentColor;
  paint-order: stroke fill;
  filter: url(#markerEdgeSm);
  color: var(--rust);
}
.home-step .how-card__text { flex: 1; margin: 6px 0 0; font-size: 15px; line-height: 1.55; }
.home-step .how-card__link {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rust);
}
.home-step .how-card__link:hover { color: var(--rust-dark); }

/* ---------- Why: pale olive band, rust fact box ---------- */
/* ---------- Choose your box: the Veg & Fruit page's three crates, on white ---------- */
.home-boxes {
  padding: clamp(48px, 5vw, 72px) var(--home-pad);
  text-align: center;
  background: var(--paper);
}
.home-boxes__text { max-width: 34em; margin: clamp(14px, 1.2vw, 18px) auto 0; font-size: 16px; line-height: 1.55; }
.home-boxes .fb-boxes { --fb-max: 960px; margin-top: clamp(24px, 3vw, 40px); }

.home-why {
  padding: clamp(48px, 5vw, 72px) var(--home-pad);
  background: var(--sage-light);
  color: var(--ink);
}
.home-why__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.home-why .home-title { color: var(--olive-dark); }
.home-why__title { margin-bottom: clamp(24px, 3vw, 40px); text-align: center; }
.home-why__quote {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.home-why__photo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: clamp(24px, 3vw, 36px);
  border-radius: var(--home-radius);
}
.home-why__box {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--home-radius);
  background: var(--rust);
}
.home-why__headline {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2;
  color: var(--cream-text);
}
/* Four figures in a 2 x 2 grid, split by thin white lines */
.home-why__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 18px;
}
.home-why__stat {
  margin: 0;
  padding: 0 clamp(12px, 1.6vw, 24px);
  border-left: 1.5px solid rgba(255, 255, 255, .7);
}
.home-why__stat:nth-child(odd) { padding-left: 0; border-left: 0; }
.home-why__source { margin: 16px 0 0; font-size: 12px; opacity: .8; }
.home-why__stat strong {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1;
}
.home-why__stat figcaption { margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
.home-why__more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-why__more:hover { color: var(--butter); }
.home-why__box { color: var(--cream-text); }   /* light text stays on the rust box */


/* ---------- Newsletter: one cream #FAEEDA background (--cream-text) ---------- */
.home-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--cream-text);   /* #FAEEDA */
}
.home-news__title {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 0;
  text-align: center;
  color: var(--rust);
}
/* Centred in the left half, mirroring the card on the right */
.home-news__text {
  padding: clamp(28px, 3vw, 44px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px);
  text-align: center;
}
/* The opening news, straight under the title, across both halves */
.home-news__lede {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  max-width: 40em;
  margin: clamp(14px, 1.6vw, 22px) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
}
.home-news__lede strong {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--rust);
  white-space: nowrap;
}
.home-news__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
}
/* The falling veg land under the text, on the white side */
.home-news .news__drop {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  height: clamp(320px, 30vw, 420px);
  margin-top: clamp(16px, 2vw, 28px);
}
.home-news__card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--home-radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(31, 36, 20, .15);
}
.home-news__card-title {
  margin: 0 0 18px;
  font-family: "Lilita One", sans-serif;   /* kept out of Food Think */
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.home-news .news__form { margin: 0; padding: 0; border: 0; }
.home-news .news__field input { border-color: #D9D9D9; border-radius: 6px; background: #EFEFEF; color: var(--ink); }
.home-news .news__field input:focus { border-color: var(--mustard); box-shadow: 0 0 0 3px rgba(201, 143, 61, .3); }
.home-news .news__submit { background: #27500A; color: var(--cream-text); font-size: 15px; padding: 13px 24px; }
.home-news .news__submit:hover { background: #1C3A07; }
.home-news .news__thanks { color: var(--olive); }


/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .home-news,
  .home-why__top { grid-template-columns: minmax(0, 1fr); }
  .home-why__photo { margin-left: auto; margin-right: auto; }
  .home-news { background: var(--cream-text); }
  .home-news__text { padding: 16px var(--gutter) 24px; }
  .home-news .news__drop { height: clamp(220px, 40vw, 320px); }
  .home-news__panel { padding: 40px var(--gutter) 48px; }
}
/* Phones: photos two by two, how-it-works cards stacked */
@media (max-width: 640px) {
  .home-picked__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-how__steps { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .home-why__stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-why__stat { padding: 16px 0 0; border-left: 0; border-top: 1.5px solid rgba(255, 255, 255, .7); }
  .home-why__stat:first-child { padding-top: 0; border-top: 0; }
  .home-why__stat:nth-child(odd) { padding-top: 16px; border-top: 1.5px solid rgba(255, 255, 255, .7); }
  .home-why__stat:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- Body text: typewriter everywhere on the home page, in sentence case ---------- */
/* Same as the "Picked this week" and how-it-works paragraphs (IBM Plex Mono
   Medium); each keeps its own size and colour */
.home .home-boxes__text,
.home .fb-box__items,
.home .home-why__quote,
.home .home-why__stat figcaption,
.home .home-why__source,
.home .home-news__lede,
.home .news__consent,
.home .news__thanks {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .04em;
  line-height: 1.55;
}
.home .home-boxes__text,
.home .home-why__quote,
.home .home-news__lede { font-size: 15px; }

/* Scroll reveal: things sliding in from the sides never make the page scroll sideways */
.home main { overflow-x: clip; }
