/* Sift — siftcooking.com
   Rebuilt from the Framer site. Desktop measurements come from a 1440px viewport;
   the phone breakpoint matches Framer's (max-width: 809.98px). */

@font-face {
  font-family: "From Where You Are";
  src: url("/assets/fonts/FromWhereYouAre-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d2642;
  --red: #be353a;
  --sky: #e7eefa;
  --line: #d4d5d8;
  --muted: #666666;
  --white: #ffffff;

  --mono: "Sometype Mono", ui-monospace, monospace;
  --hand: "From Where You Are", "Comic Sans MS", cursive;

  --nav-h: 72px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: none; }
h1, h2, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.85; }

.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link.is-current::after,
.nav__link:hover::after { transform: scaleX(1); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: var(--white);
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 16px 24px;
}

.nav__logo { display: flex; flex: 0 0 auto; }

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1 1 auto;
}
.nav__menu .btn { margin-left: 4px; }   /* 20px links gap + 4 = 24px group gap */
.nav__pot { margin-left: 4px; }
.nav__menu-pot { display: none; }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: -6px 0 -6px auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #999999;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav[data-open="true"] .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  --s: 1;   /* scale for the hand-drawn composition */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100vh;
}

.hero__left {
  display: flex;
  justify-content: flex-end;
  background: var(--sky);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  max-width: 100%;
  padding: 80px;
}

.hero__stage {
  position: relative;
  flex: 0 0 auto;
  width: calc(516px * var(--s));
  height: calc(556px * var(--s));
}

.hero__title {
  position: absolute;
  left: calc(90px * var(--s));
  top: calc(127px * var(--s));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(32px * var(--s));
}

.hero h1 {
  font-size: calc(80px * var(--s));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: left;
}

.btn--wide { width: 100%; }

.hero__notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Positions are centres relative to the top-left of the H1 block */
.note,
.arrow {
  position: absolute;
  left: calc(var(--x) * var(--s));
  top: calc(var(--y) * var(--s));
  transform: translate(-50%, -50%) rotate(var(--r));
}

.note {
  color: var(--red);
  font-family: var(--hand);
  font-size: calc(14px * var(--s));
  line-height: 1.6;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.arrow { width: calc(var(--w) * var(--s)); height: calc(var(--h) * var(--s)); }

.note--tastes    { --x: -43.7px; --y: -93.5px; --r: -19deg; }
.note--pantry    { --x: 375.8px; --y: -92.5px; --r: 27deg; }
.note--smart     { --x: 77.6px;  --y: 408.1px; --r: -6deg; }
.note--context   { --x: 300.4px; --y: 400.1px; --r: 6deg; }

.arrow--tastes   { --x: -4.6px;  --y: -47.1px; --w: 70px; --h: 39px;  --r: 16deg; }
.arrow--pantry   { --x: 348.6px; --y: -29.7px; --w: 25px; --h: 98px;  --r: 20deg; }
.arrow--smart    { --x: 56.1px;  --y: 325.8px; --w: 25px; --h: 129px; --r: 183deg; }
.arrow--context  { --x: 274.6px; --y: 325.3px; --w: 70px; --h: 116px; --r: 187deg; }

.hero__right {
  position: relative;
  overflow: hidden;
}

.hero__gingham {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__collage {
  position: absolute;
  top: 50%;
  left: 63px;
  width: min(79.02%, 600px);
  aspect-ratio: 563 / 611;
  height: auto;
  transform: translateY(-50%);
  object-fit: cover;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 50vh;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature:nth-child(odd)  { align-items: flex-end; }
.feature:nth-child(even) { align-items: flex-start; }

/* Divider lines, as drawn in Framer */
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--line);
  pointer-events: none;
}
.feature:nth-child(1)::after { border-width: 1px 1px 1px 0; }
.feature:nth-child(2)::after { border-width: 1px 0 1px 0; }
.feature:nth-child(3)::after { border-width: 0 1px 1px 0; }
.feature:nth-child(4)::after { border-width: 0 0 1px 0; }

.feature__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 600px;
  max-width: 100%;
  height: 100%;
  justify-content: center;
  padding: 24px 48px;
}

.feature__inner img { height: 160px; width: auto; }

.feature__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.feature h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.feature p { line-height: 1.6; }

/* ---------- The Headnotes ---------- */

.headnotes {
  display: flex;
  justify-content: center;
  background: var(--sky);
}

.headnotes__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  padding: 96px 48px;
}

.headnotes__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
}

.headnotes h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.headnotes__rule { width: 235px; height: 2px; }

.headnotes p { line-height: 1.6; }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--white) url("/assets/images/footer-grid.jpg") center / cover no-repeat;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: calc(var(--container) + 200px);
  margin: 0 auto;
  padding: 100px 100px 40px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer__logo { display: flex; }

.footer__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.footer__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.footer__handle {
  font-size: 14px;
  line-height: 22.4px;
  letter-spacing: -0.02em;
}

.footer__legal {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  line-height: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}
.footer__legal a { text-decoration: underline; }

.footer__pot {
  position: absolute;
  top: 171px;
  right: -15px;
  width: 146px;
  height: 125px;
  pointer-events: none;
}

/* ---------- Animations (timings copied from the Framer site) ---------- */

/* On load: headline lines, button and collage fade in */
.hero h1 .line { display: block; }

.hero h1 .line,
.fade-in {
  animation: fade-in 0.4s cubic-bezier(0.44, 0, 0.56, 1) var(--d, 0s) both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* On load: each label pops in with its arrow (Framer spring, bounce 0.2) */
.note-group {
  position: absolute;
  inset: 0;
  transform-origin: calc(var(--ox) * var(--s)) calc(var(--oy) * var(--s));
  animation: pop-in 0.6s linear var(--d) both;
}
.note-group--smart   { --ox: 77.6px;  --oy: 343.8px; --d: 1.4s; }
.note-group--pantry  { --ox: 372.6px; --oy: -52.2px; --d: 1.6s; }
.note-group--tastes  { --ox: -25.4px; --oy: -65.7px; --d: 1.8s; }
.note-group--context { --ox: 292.6px; --oy: 339.8px; --d: 2s; }

@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.5); }
  10%  { opacity: 0.45; transform: scale(0.64); }
  25%  { opacity: 0.85; transform: scale(0.88); }
  40%  { opacity: 1; transform: scale(1.02); }
  55%  { transform: scale(1.045); }
  75%  { transform: scale(1.01); }
  100% { opacity: 1; transform: scale(1); }
}

/* On scroll: fade in once half the element is visible */
.js .reveal {
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.44, 0, 0.56, 1) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line, .fade-in, .note-group { animation: none; }
  .js .reveal { opacity: 1; transition: none; }
}

/* ---------- Tablet (Framer breakpoint: 810–1199px) ---------- */

@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 724px 480px;
    height: auto;
  }
  .hero__left { justify-content: center; align-items: flex-start; }
  .hero__inner { width: 100%; padding: 0; align-items: flex-start; }
  .hero__stage { margin-top: 120px; }
  .hero__right { overflow: visible; }
  .hero__gingham { overflow: hidden; }
  .hero__collage {
    top: -33px;
    left: 196px;
    width: 51.95%;
    transform: none;
  }

  .feature:nth-child(odd),
  .feature:nth-child(even) { align-items: stretch; }
  .feature__inner { width: 100%; }

  .headnotes__inner { flex-direction: column; padding: 48px; }
  .headnotes__col { flex: none; width: 100%; }

}

/* ---------- Phone (Framer breakpoint: < 810px) ---------- */

@media (max-width: 809.98px) {
  :root { --nav-h: 64px; }

  .nav { border-bottom: 1px solid transparent; }
  .nav__bar { flex-wrap: wrap; gap: 0; }
  .nav__toggle { display: block; }

  .nav__menu {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px 32px;
  }
  .nav__menu .nav__link { display: flex; align-items: center; height: 40px; }
  .nav[data-open="true"] .nav__menu { display: flex; }
  .nav[data-open="true"] .nav__bar { height: auto; }
  .nav__menu .btn { margin: 16px 0 0; }
  .nav__pot { display: none; }
  .nav__menu { order: 2; }
  .nav__menu-pot {
    display: none;
    position: absolute;
    top: 182px;
    right: -41px;
    width: 142px;
    height: 120px;
    pointer-events: none;
  }
  .nav[data-open="true"] .nav__menu-pot { display: block; }
  .nav { overflow-x: clip; }

  .hero {
    --s: 0.6375;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 70vh 30vh;
    height: auto;
  }

  .hero__left { justify-content: center; overflow: visible; }
  .hero__inner { width: 100%; padding: 0; }
  .hero__stage { margin-top: -16px; }

  .hero__notes { --s: 1; }
  .note { font-size: 9px; }
  .note--tastes    { --x: -26px;   --y: -50.5px; }
  .note--pantry    { --x: 237.5px; --y: -49px; }
  .note--smart     { --x: 49px;    --y: 266px; }
  .note--context   { --x: 191px;   --y: 262.5px; }
  .arrow--tastes   { --x: -2.5px;  --y: -22.5px; --w: 44px;   --h: 24px; }
  .arrow--pantry   { --x: 220px;   --y: -9px;    --w: 15.6px; --h: 62.4px; }
  .arrow--smart    { --x: 50.5px;  --y: 210.5px; --w: 16.3px; --h: 90.3px; }
  .arrow--context  { --x: 175px;   --y: 209px;   --w: 44.4px; --h: 81.2px; }
  .note-group--tastes  { --ox: -14px; --oy: -36px; }
  .note-group--pantry  { --ox: 229px; --oy: -29px; }
  .note-group--smart   { --ox: 50px;  --oy: 238px; }
  .note-group--context { --ox: 183px; --oy: 236px; }

  .hero__right { overflow: visible; }
  .hero__gingham { overflow: hidden; }
  .hero__collage {
    top: -34px;
    left: 50%;
    width: 65.07%;
    height: auto;
    aspect-ratio: 244 / 263;
    transform: translateX(-50%);
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
  }
  .feature,
  .feature:nth-child(odd),
  .feature:nth-child(even) { align-items: center; }
  .feature::after,
  .feature:nth-child(n)::after { border-width: 0 0 1px 0; }
  .feature:first-child::after { border-top-width: 1px; }
  .feature__inner { height: auto; padding: 48px 24px; }
  .feature:nth-child(3) { justify-content: flex-start; }

  .headnotes__inner {
    flex-direction: column;
    gap: 24px;
    padding: 48px 24px;
  }
  .headnotes__col { flex: none; width: 100%; }

  .footer__inner {
    align-items: center;
    gap: 0;
    padding: 48px 24px 0;
    min-height: 406px;
    justify-content: flex-start;
  }
  .footer__top {
    flex-direction: column;
    gap: 0;
  }
  .footer__links {
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }
  .footer__links .btn { margin-top: 7px; }
  .footer__social { align-self: center; margin-top: 24px; }

  .footer__legal { width: max-content; }
  .footer__legal span { display: block; }
  .footer__legal .dot { display: none; }

  .footer__pot { top: 289px; right: -37px; }
}

/* =================================================================
   Inner pages
   ================================================================= */

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.about__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
}

.about__basket {
  position: absolute;
  top: 50%;
  left: calc(43.75% - 130px);
  width: 56%;
  height: auto;
  aspect-ratio: 399 / 316;
  transform: translateY(-50%);
  object-fit: cover;
}

.about__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 1;
  object-fit: cover;
}

.about__copy {
  display: flex;
  align-items: center;
  background: var(--sky);
  padding: 96px 48px;
}

.about__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 504px;
}

.about h2,
.legal h2,
.join h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.about__rule { width: 100px; height: 11px; }

.about__copy a,
.legal a.u { text-decoration: underline; }

.about__sign {
  display: flex;
  gap: 16px;
  margin-top: -8px;
}

/* ---------- Terms & Privacy ---------- */

.legal {
  display: flex;
  justify-content: center;
}

.legal__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  padding: 96px 48px;
}

.legal__body p { margin: 20px 0 0; }
.legal__body > :first-child { margin-top: 0; }
.legal__body strong { font-weight: 700; }
.legal__body ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.legal__body li {
  position: relative;
  padding-left: 18.56px;
}
.legal__body li::before {
  content: "•";
  position: absolute;
  left: 0;
}
.legal__body li p { margin: 0; }

/* ---------- Join Now & Thank You ---------- */

.join {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-top: var(--nav-h);
  background: var(--sky);
}

.join__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 504px;
  text-align: center;
}

.join__inner p + p:not(.join__follow) { margin-top: -8px; }

.join__rule { width: 120px; height: 6px; }

.join__follow {
  letter-spacing: -0.02em;
  color: var(--red);
  font-family: var(--hand);
  font-size: 11px;
  line-height: 1.6;
}

.join__icons {
  display: flex;
  gap: 24px;
}
.join__icons a { display: flex; width: 34px; height: 34px; }
.join__icons img { width: 34px; height: 34px; }

.join__handle {
  font-size: 14px;
  line-height: 22.4px;
  letter-spacing: -0.02em;
}

.join__strip {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 15vh;
  aspect-ratio: 10 / 1;
  max-width: none;
  transform: translateX(-50%);
  object-fit: cover;
}

@media (max-width: 809.98px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__copy { order: -1; padding: 88px 24px 48px; }
  .about__art { height: 400px; }
  .about__art { align-items: flex-start; padding-top: 84px; }
  .about__basket { position: static; width: calc(100% - 98px); transform: none; }


  .legal__inner { padding: 88px 24px 48px; }

  .join {
    flex-direction: column;
    min-height: 100vh;
  }
  .join__inner {
    flex: 1 0 auto;
    justify-content: center;
    padding: 48px;
    margin-bottom: 0;
  }
  .join__strip {
    position: static;
    width: auto;
    height: 20vh;
    transform: none;
    align-self: flex-start;
  }
  .join { overflow: hidden; }
}

@media (min-width: 810px) and (max-width: 1199.98px) {
  .about { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .about__copy { order: -1; padding: 96px 48px 47px; }
  .about__inner { max-width: none; }
  .about__art { height: 475px; align-items: flex-start; padding-top: 75px; }
  .about__basket { position: static; width: 273px; transform: none; }

  .legal__inner { padding: 96px 48px 48px; }
}
