@font-face {
  font-family: Archivo;
  src: url("archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --ink: #2d141c;
  --cream: #fff3e9;
  --line: #fff3e97a;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(24px, 5.5vw, 100px);
  --screen: 100vh;
  --screen: 100svh;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #35141f;
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
p, h1, h2, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px #29131c; }
::selection { background: #ffd0bd; color: #35141f; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 12px 16px; color: var(--ink); background: var(--cream); }
.glass { background: #ffede3; color: var(--ink); border: 1px solid #fff6ed; border-radius: 12px; }

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: calc(15px + env(safe-area-inset-top)) clamp(16px, 2.4vw, 36px) 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo {
  justify-self: start;
  min-width: 160px;
  padding-inline: 18px;
  display: grid;
  place-items: center;
  height: 48px;
  font-size: 22px;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -.055em;
}
.menu {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 3px;
}
.menu a, .signup, .bag {
  display: grid;
  place-items: center;
  font-size: .875rem;
  font-weight: 650;
  min-height: 40px;
  padding-inline: clamp(12px, 1.05vw, 20px);
  white-space: nowrap;
}
.menu a { position: relative; border-radius: 8px; }
.menu a[aria-current], .menu a:hover { background: #f4c8bd; }
.header-actions { display: flex; justify-self: end; gap: 8px; }
.signup, .bag { height: 48px; }
.signup:hover, .bag:hover, .logo:hover { background: #ffd7c6; }
.bag { position: relative; width: 48px; padding: 0; }
.bag svg { width: 21px; }
#bag-count {
  position: absolute;
  right: -5px;
  top: -4px;
  min-width: 20px;
  padding: 2px 4px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--cream);
  font-size: .75rem;
}

.story { position: relative; isolation: isolate; touch-action: pan-y pinch-zoom; }
.stage {
  position: sticky;
  z-index: 0;
  top: 0;
  height: var(--screen);
  margin-bottom: calc(-1 * var(--screen));
  overflow: hidden;
  pointer-events: none;
  background: #781e48;
}
.backdrop, .light-falloff, .can, .petals { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop {
  background: linear-gradient(150deg, var(--edge), var(--deep) 92%);
}
.backdrop::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 73%;
  height: 126%;
  content: "";
  background: radial-gradient(ellipse closest-side,
    var(--light) 0%, var(--middle) 32%, color-mix(in srgb, var(--middle) 48%, transparent) 58%,
    color-mix(in srgb, var(--middle) 12%, transparent) 80%, transparent 100%);
  transform: translate3d(calc(var(--pool-x, 51vw) - 50%), calc(var(--pool-y, 44svh) - 50%), 0);
}
.backdrop-peach { --light: #ffb08c; --middle: #ec6d70; --edge: #9a2a57; --deep: #671947; }
.backdrop-cherry { --light: #ff9bbd; --middle: #f54c87; --edge: #a71953; --deep: #741239; opacity: 0; }
.backdrop-plum { --light: #f1a1ed; --middle: #ca5dcc; --edge: #872887; --deep: #531776; opacity: 0; }
.light-falloff {
  background: linear-gradient(to bottom, #3d104c31, transparent 28%, transparent 69%, #480d5029);
}
.can-shadow {
  position: absolute;
  left: 0;
  top: 0;
  width: 340px;
  height: 77px;
  opacity: .78;
  background:
    radial-gradient(ellipse 47% 40% at 44% 48%, #3d15276e, transparent 100%),
    radial-gradient(ellipse 50% 48% at 50% 52%, #4f1b3655, transparent 100%);
  transform: translate(calc(50vw - 150px), calc(73svh - 40px));
}
.can-still {
  position: absolute;
  left: 51%;
  top: 44%;
  width: auto;
  height: min(64svh, 63vw);
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(19deg);
}
.can { opacity: 0; }
.stage.ready .can { opacity: 1; }
.stage.ready .can-still { opacity: 0; }

.chapters { position: relative; z-index: 1; }
.chapter {
  display: grid;
  align-items: center;
  position: relative;
  min-height: max(650px, var(--screen));
  overflow: clip;
  padding: 108px var(--gutter) 48px;
}
.hero { cursor: grab; user-select: none; }
.story.dragging, .story.dragging .hero { cursor: grabbing; user-select: none; }
.hero-intro {
  position: absolute;
  left: var(--gutter);
  top: 26%;
  width: max-content;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
}
.eyebrow span { flex: none; width: 16px; height: 1px; background: currentColor; }
.hero h1, .chapter h2 {
  margin: 18px 0 0;
  font-size: clamp(3.5rem, 7.2vw, 7.2rem);
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -.077em;
  line-height: .88;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(3.4rem, 6.85vw, 6.65rem); }
.scroll-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  font-size: .875rem;
  font-weight: 650;
}
.scroll-link span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 100%;
}
.scroll-link:hover, .flavour-nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.hero-controls { position: absolute; left: var(--gutter); bottom: calc(6% + clamp(138px, 13vw, 198px)); }
.shades { display: flex; gap: 2px; align-items: center; }
.shades button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #391322;
}
.shades button::before {
  content: "";
  border-radius: 2px;
  width: 21px;
  height: 4px;
  background: #e5aeae;
  transform: scaleX(.62);
  transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}
.shades button[aria-pressed="true"]::before, .shades button:hover::before { background: #fff3e9; transform: scaleX(1); }
.rotate {
  position: absolute;
  left: 65%;
  top: 44%;
  display: grid;
  place-content: center;
  justify-items: center;
  width: clamp(62px, 6vw, 86px);
  aspect-ratio: 1;
  gap: 3px;
  border-radius: 50%;
  font-weight: 750;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}
.rotate svg { width: 32px; }
.rotate:hover { transform: scale(1.06); }
.rotate:active, .add:active { transform: scale(.97); }
.hint {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  padding: 8px 12px;
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}
.media {
  position: absolute;
  display: grid;
  left: var(--gutter);
  bottom: 5%;
  width: clamp(210px, 24vw, 354px);
  height: clamp(128px, 13vw, 188px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #452030;
}
.media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .4s cubic-bezier(.23, 1, .32, 1); }
.media:hover img { transform: scale(1.06); }
.media > span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  background: #37131f;
  font-size: .875rem;
  font-weight: 650;
}
.hero-buy { position: absolute; right: var(--gutter); bottom: 5%; width: clamp(280px, 32vw, 510px); }
.hero-buy h2 { margin: 0 0 13px; font-size: clamp(1.55rem, 2.55vw, 2.65rem); letter-spacing: -.05em; text-transform: uppercase; }
.purchase { display: grid; grid-template-columns: minmax(86px, .76fr) minmax(126px, 1.26fr); gap: 10px; }
.price, .add { min-height: 70px; }
.price { display: grid; place-content: center; justify-items: center; gap: 3px; padding: 6px; }
.price small { color: #623543; font-size: .8125rem; font-weight: 650; }
.price strong { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.add {
  background: #35121f;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}
.add:hover { background: #531c32; }

.chapter-copy { width: min(100%, 550px); }
.right-copy { justify-self: end; width: min(40%, 530px); }
.left-copy { justify-self: start; width: min(53%, 640px); }
.description { max-width: 30ch; margin-top: 23px; font-size: clamp(1.02rem, 1.55vw, 1.3rem); font-weight: 550; line-height: 1.45; }
.ingredient-list { max-width: 395px; margin-top: clamp(20px, 4vh, 44px); border-top: 1px solid var(--line); }
.ingredient-list div { display: grid; grid-template-columns: .9fr 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.3; }
.ingredient-list dt { font-weight: 750; }
.flavour-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  width: fit-content;
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}
.flavour-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  border-bottom: 3px solid transparent;
  font-size: .9375rem;
  font-weight: 650;
}
.flavour-nav a[aria-current] { border-color: currentColor; }
.press h2, .shop h2 { font-size: clamp(3.2rem, 5.3vw, 5.8rem); }
.press-photo {
  width: min(100%, 530px);
  height: clamp(160px, 26vh, 300px);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #462029;
}
.press-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shop-controls { display: grid; gap: 9px; width: min(100%, 370px); margin-top: 28px; }
.shop-controls label { font-size: .875rem; font-weight: 700; }
.shop-controls select { min-height: 47px; width: 100%; padding: 0 14px; font-weight: 650; }

.footer { position: relative; z-index: 2; padding: 44px var(--gutter) 20px; background: #3e1535; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.footer-brand a { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.footer-brand p { margin-top: 8px; }
.signup-form { width: min(100%, 400px); scroll-margin-top: 120px; }
.signup-form label { display: block; margin-bottom: 9px; font-weight: 700; }
.signup-form div { display: flex; gap: 6px; }
.signup-form input, .signup-form button, .close {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--cream);
}
.signup-form input { flex: 1; min-width: 0; background: transparent; color: var(--cream); }
.signup-form input::placeholder { color: #efcdc7; opacity: 1; }
.signup-form button, .close { background: var(--cream); color: var(--ink); font-weight: 700; }
#signup-status { min-height: 1.4em; margin-top: 6px; font-size: .875rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 17px; font-size: .875rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: .22em; }
.bag-dialog {
  width: min(420px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: #fce5dc;
  color: var(--ink);
}
.bag-dialog::backdrop { background: #260e1ac4; }
.bag-dialog form { float: right; margin-left: 5px; }
.bag-dialog h2 { margin: 10px 0 25px; font-size: 1.9rem; letter-spacing: -.04em; }
.bag-dialog ul { clear: both; display: grid; gap: 9px; padding: 0; list-style: none; }
.bag-dialog li { display: flex; justify-content: space-between; gap: 12px; }
.bag-dialog li button { min-height: 40px; padding: 4px; border: 0; background: none; text-decoration: underline; color: var(--ink); }
#bag-total { font-weight: 750; }
.bag-note { margin-top: 16px; font-size: .875rem; }

@media (max-width: 980px) {
  .logo { min-width: 122px; }
  .rotate { left: auto; right: 5%; }
  .right-copy { width: 42%; }
  .left-copy { width: 46%; }
  .hero-intro { left: 4%; }
  .hero-buy { right: 4%; }
  .hero-controls, .media { left: 4%; }
}
@media (max-width: 730px) {
  :root { --gutter: 20px; }
  .site-header { grid-template-columns: 1fr auto; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 0; }
  .logo, .signup, .bag { height: 43px; }
  .logo { min-width: 112px; font-size: 20px; padding-inline: 12px; }
  .signup { min-height: 43px; }
  .bag { width: 43px; }
  .menu { grid-row: 2; grid-column: 1 / -1; justify-self: center; width: min(100%, 414px); justify-content: space-around; }
  .menu a { padding-inline: clamp(6px, 2vw, 15px); min-height: 39px; }
  .chapter { min-height: max(730px, var(--screen)); align-items: start; padding: calc(var(--nav-clearance, 104px) + 33px) var(--gutter) 32px; }
  .backdrop::before { width: 148%; height: 77%; }
  .hero-intro { top: calc(var(--nav-clearance, 104px) + 32px); left: 20px; }
  .hero h1 { font-size: clamp(2.55rem, 9.9vw, 4.2rem); margin-top: 9px; }
  .hero h1 br, .chapter h2 br { display: none; }
  .eyebrow { font-size: .75rem; letter-spacing: .095em; gap: 7px; }
  .eyebrow span { width: 13px; }
  .scroll-link { margin-top: 1px; gap: 7px; }
  .scroll-link span { width: 24px; height: 24px; }
  .hero-controls { bottom: auto; top: 46%; left: 12px; }
  .shades { flex-direction: column; }
  .shades button { width: 41px; height: 41px; }
  .shades button::before { height: 16px; width: 4px; transform: scaleY(.65); }
  .shades button[aria-pressed="true"]::before, .shades button:hover::before { transform: scaleY(1); }
  .rotate { left: auto; right: 14px; top: 43%; width: 57px; font-size: .875rem; }
  .rotate svg { width: 26px; }
  .hero-buy { left: 20px; right: 20px; bottom: 73px; width: auto; }
  .hero-buy h2 { font-size: clamp(1.5rem, 6.7vw, 2.65rem); margin-bottom: 8px; }
  .price, .add { min-height: 56px; }
  .media {
    left: 20px;
    right: 20px;
    bottom: 16px;
    width: auto;
    height: 45px;
    grid-template-columns: 63px 1fr;
  }
  .media > span { position: static; min-height: 0; }
  .hint { display: none; }
  .chapter:not(.hero) { overflow: visible; }
  .chapter-copy { justify-self: stretch; width: auto; }
  .chapter h2 { font-size: clamp(2.6rem, 11.2vw, 4.6rem); margin-top: 13px; text-wrap: initial; }
  .hero-buy h2 { font-size: clamp(1.5rem, 6.7vw, 2.65rem); margin-top: 0; }
  .description { margin-top: 11px; max-width: 31ch; }
  .ingredient-list { margin-top: 16px; }
  .ingredient-list div { padding-block: 7px; font-size: .9rem; }
  .flavour-nav { margin-top: 10px; }
  .press-photo { width: min(100%, 365px); height: clamp(88px, 13svh, 130px); margin-top: 13px; }
  .shop-controls { width: min(100%, 410px); margin-top: 14px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: stretch; gap: 13px; }
  .footer-top { gap: 26px; }
}
@media (max-width: 350px) {
  .menu a { font-size: .77rem; padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
