:root {
  --cream: #F7F0E4;
  --cream-2: #EFE5D6;
  --ink: #3B2620;
  --ink-soft: #6A4A3C;
  --terra: #E4826A;
  --terra-deep: #A84E37;
  --sage: #B6C4A3;
  --mustard: #E2B549;
  --pink: #F3AEA8;
  --brown: #9E6B50;
  --olive: #8D9D6E;
  --accent: var(--terra);
  --serif: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', cursive;
  --sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  background: radial-gradient(120% 80% at 50% 30%, #FBF6EE 0%, var(--cream) 45%, var(--cream-2) 100%) fixed;
  overflow-x: hidden;
}
a { color: inherit; }

/* 3D scene sits behind everything */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.fallback { display: none; }
.no-webgl #scene { display: none; }
.no-webgl .fallback {
  display: block; position: fixed; z-index: 0; width: min(56vh, 70vw); left: 50%; top: 52%;
  transform: translate(-50%, -50%); border-radius: 24px; opacity: .95;
}

/* wordmark with mum's sun as the dot of the i */
.logo {
  font: 700 30px/1 var(--serif);
  font-variation-settings: 'SOFT' 100;
  text-decoration: none;
  letter-spacing: -.01em;
}
.i { position: relative; display: inline-block; }
.logo-dot { /* mum's sun: a plain yellow dot with a faint smile (same as the pouch) */
  position: absolute; left: 50%; top: -.04em; width: .28em; height: .28em;
  transform: translateX(-50%); border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='%23E2B549'/%3E%3Cpath d='M32 55Q50 71 68 55Q50 63 32 55Z' fill='%236B4636' fill-opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.nav.scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(247, 240, 228, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(59, 38, 32, .1);
}
.nav nav a.active { opacity: 1; text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav nav { display: flex; gap: 28px; font-size: 15px; }
.nav nav a { text-decoration: none; opacity: .8; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none; background: transparent; color: var(--ink);
  cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill-dark { background: var(--ink); color: var(--cream); }
.pill:focus-visible, .flavours button:focus-visible, input:focus-visible { outline: 3px solid var(--terra-deep); outline-offset: 3px; }

main, .foot { position: relative; z-index: 2; }
.panel { min-height: 100vh; padding: 120px var(--gutter) 80px; display: flex; align-items: center; }
.panel.right { justify-content: flex-end; }
.copy { max-width: 470px; }

/* hero */
.hero { position: relative; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 72px; }
.hero h1 {
  margin: 0; font: 700 clamp(56px, 8.6vw, 140px)/.9 var(--serif);
  font-variation-settings: 'SOFT' 100; letter-spacing: -.035em;
}
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { padding-left: .55em; }
.hero-side { max-width: 300px; }
.hero-side p { margin: 0 0 18px; color: var(--ink-soft); }
.hand { font: 700 34px/1.1 var(--hand); color: var(--terra-deep); margin: 0 0 10px; }
.hero-side .hand { color: var(--terra-deep); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  margin: 0; font-size: 13px; letter-spacing: .2em; opacity: .55;
}

/* section copy */
.kicker { margin: 0 0 12px; font: 700 26px/1 var(--hand); color: var(--terra-deep); }
h2 {
  margin: 0 0 22px; font: 650 clamp(38px, 4.6vw, 64px)/1 var(--serif);
  font-variation-settings: 'SOFT' 100; letter-spacing: -.025em;
}
h3 { margin: 0 0 2px; font: 650 19px/1.25 var(--serif); font-variation-settings: 'SOFT' 100; }
.copy p { margin: 0 0 14px; }
.sign { margin-top: 22px !important; font-size: 30px; }

.ingredients { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.ingredients li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.ingredients p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.swatch { width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.fine { font-size: 13px !important; line-height: 1.5; color: var(--ink-soft); border-top: 1px solid rgba(59,38,32,.18); padding-top: 12px; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: baseline; font-size: 18px; }
.steps b { font: 700 34px/1 var(--hand); color: var(--terra-deep); width: 22px; }
.boxes { display: flex; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.boxes span {
  width: 74px; height: 96px; border-radius: 8px; background: var(--c);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  font: 600 13px/1 var(--sans); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(59,38,32,.5);
}

.flavours { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.flavours button {
  font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: inline-flex; gap: 8px; align-items: center;
}
.flavours button::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.flavours button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.f-title { font: 650 30px/1.1 var(--serif); font-variation-settings: 'SOFT' 100; margin: 0 0 6px !important; }
.f-tag { display: inline-block; font: 700 24px/1 var(--hand); color: var(--terra-deep); }

.waitlist label { display: block; font-weight: 600; margin: 8px 0 8px; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: rgba(255, 252, 246, .8); font: 400 16px/1 var(--sans); color: var(--ink);
}
.form-note { font-size: 13.5px !important; color: var(--ink-soft); margin-top: 10px !important; }
.form-note.done { color: var(--terra-deep); font-weight: 600; }

.foot {
  padding: 48px var(--gutter) 40px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft);
  border-top: 1px solid rgba(59,38,32,.15); background: var(--cream);
}
.foot p { margin: 0; }
.logo.small { font-size: 26px; color: var(--ink); margin-bottom: 6px; }

/* paper grain, like the printed pouch */
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* soft cream scrim keeps text calm while ingredients drift behind it */
@media (min-width: 761px) {
  .copy { position: relative; isolation: isolate; }
  .copy::before {
    content: ''; position: absolute; inset: -70px -90px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(247, 240, 228, .94), rgba(247, 240, 228, .7) 62%, rgba(247, 240, 228, 0));
  }
}

/* handwritten ticker */
.ticker {
  position: relative; z-index: 2; overflow: hidden; padding: 14px 0;
  border-block: 1.5px solid var(--ink); background: var(--terra); color: var(--cream);
}
.ticker-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: tick 38s linear infinite; }
.ticker span { font: 700 clamp(26px, 3vw, 40px)/1 var(--hand); white-space: nowrap; }
.ticker i { width: 14px; height: 14px; border-radius: 50%; background: var(--mustard); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ingredients you can point at */
.hint { font: 700 22px/1 var(--hand); color: var(--terra-deep); margin: -8px 0 18px !important; }
.ingredients li { border-radius: 14px; padding: 6px 8px; margin: -6px -8px; transition: background .25s ease; outline: none; }
.ingredients li:hover, .ingredients li:focus-visible { background: rgba(228, 130, 106, .12); }
.ingredients li:focus-visible { box-shadow: 0 0 0 2px var(--terra-deep); }
.ingredients .swatch { transition: transform .25s ease; }
.ingredients li:hover .swatch, .ingredients li:focus-visible .swatch { transform: scale(1.35); }
@media (hover: none) { .hint { display: none; } }

/* the sign-off */
.signoff {
  position: relative; z-index: 2; min-height: 92vh; display: grid; place-content: center; text-align: center;
  padding: 80px var(--gutter);
}
.giant {
  margin: 0; font: 700 clamp(120px, 27vw, 420px)/.85 var(--serif); font-variation-settings: 'SOFT' 100;
  letter-spacing: -.04em; color: var(--terra);
}
.giant .logo-dot { width: .25em; height: .25em; top: -.01em; }
.signoff .hand { font-size: clamp(30px, 3.4vw, 44px); margin-top: 18px; }

/* small screens: the pouch floats above, copy sits on a soft card */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 14px 16px; }
  .nav nav { display: none; }
  .logo { font-size: 26px; }
  .pill { padding: 10px 16px; font-size: 14px; }
  .panel { padding: 92px 16px 48px; align-items: flex-end; }
  .panel.right { justify-content: flex-start; }
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 18px; padding-top: 54vh; padding-top: 54svh; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(44px, 13.5vw, 64px); }
  .hero h1 span:nth-child(2) { padding-left: 0; }
  .copy, .hero-side {
    max-width: none; width: 100%; padding: 22px 20px; border-radius: 22px;
    background: rgba(247, 240, 228, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px -28px rgba(59,38,32,.45);
  }
  .hero-side { padding: 18px 20px; }
  .copy { margin-top: 46vh; }
  h2 { font-size: clamp(32px, 9.5vw, 42px); }
  .boxes span { width: calc(25% - 8px); height: 82px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .pill, .pill:hover { transition: none; transform: none; }
}
