:root {
  --ink: #432c22;
  --paper: #faf6ed;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
  padding: 0 clamp(18px, 5vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid #432c2220;
}
.brand { display: inline-flex; align-items: center; }
.top nav { font-size: 14px; }
main { position: relative; }
.chapters {
  position: fixed;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 5px;
  border-radius: 40px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 20px #2c1d171c;
}
.chapters a { display: grid; place-items: center; width: 42px; height: 36px; border-radius: 32px; font-size: 13px; font-variant-numeric: tabular-nums; }
.chapters a[aria-current] { background: var(--ink); color: var(--paper); }
.chapters a:hover:not([aria-current]) { background: #eaddcb; }
.chapter {
  min-height: max(590px, calc(100svh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: var(--tone);
  color: var(--chapter-ink);
  padding: 36px clamp(36px, 8vw, 132px) 62px;
}
.story { position: relative; z-index: 1; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 20px; }
h1, h2 { font: 400 clamp(76px, 10.5vw, 166px)/.81 var(--serif); letter-spacing: -.045em; margin: 0 0 20px; }
h1 em { display: block; font-weight: 400; }
.chapter h2 { font-size: clamp(68px, 8.7vw, 135px); }
.description { margin: 6px 0 20px; }
.pill { border: 1px solid currentColor; min-height: 45px; padding: 8px 19px; border-radius: 40px; background: transparent; font-weight: 600; font-size: 14px; }
.pill:hover { background: var(--chapter-ink); color: var(--tone); }
.scene { min-height: min(55vw, calc(100svh - 130px)); position: relative; display: grid; place-items: center; }
.halo {
  position: absolute;
  width: min(94%, 670px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 29%, var(--tone), var(--accent) 78%);
  border: 1px solid color-mix(in srgb, var(--accent), var(--chapter-ink) 12%);
}
.halo::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--tone), transparent 38%);
}
.packshot { position: absolute; z-index: 1; inset: 3% 10%; }
.packshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(21px 25px 24px #30201838); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--paper); color: var(--ink); padding: 28px 5vw 78px; }
footer p { font-size: 13px; }
@media (max-width: 700px) {
  html { scroll-padding-top: 60px; }
  .top { height: 60px; }
  .top nav { display: none; }
  
  .story { text-align: center; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(63px, 15vw, 110px); }
  h1 em { display: inline; }
  .chapter h2 { font-size: clamp(66px, 14vw, 110px); }
  .description { margin-bottom: 12px; }
  
  .halo { width: min(80%, 385px); }
  
  .chapters { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.brand img { display: block; width: clamp(77px, 9vw, 112px); height: auto; }
.top .brand { flex-shrink: 0; }
.collection-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr);
  align-items: center;
  min-height: calc(100svh - 68px);
  padding: clamp(26px, 5vh, 64px) 6vw 65px 8vw;
  background: radial-gradient(ellipse at 72% 52%, #fff5df 0%, transparent 63%),
    linear-gradient(155deg, #faf6ed 22%, #f4e9db 79%);
}
.collection-copy { text-align: left; position: relative; z-index: 1; }
.collection-copy h1 { margin: 0 0 18px; width: min(100%, 590px); }
.collection-copy h1 img { display: block; width: 100%; }
.collection-copy p { font-size: clamp(16px, 1.9vw, 23px); max-width: 31ch; margin: 0 0 19px; }
.collection-copy .pill { display: inline-flex; align-items: center; --chapter-ink: var(--ink); --tone: var(--paper); }
.collection-art { position: relative; isolation: isolate; height: clamp(320px, 43vw, 580px); }
.collection-wave {
  position: absolute;
  width: 106%;
  height: 90%;
  top: 5%;
  left: -2%;
  object-fit: contain;
  opacity: .76;
}
.collection-lineup { position: absolute; inset: 0; padding: 0; margin: 0; list-style: none; }
.lineup-item {
  position: absolute;
  left: var(--left);
  top: var(--top);
  transform: translate(-50%, -50%);
  width: 17%;
  height: var(--height);
  z-index: var(--layer);
}
.lineup-item:hover, .lineup-item:focus-within { z-index: 5; }
.lineup-link {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  aspect-ratio: 1 / 2.3;
  max-height: 100%;
  border-radius: 9px;
  transition: transform .35s cubic-bezier(.25,.65,.3,1);
}
.lineup-link img {
  position: absolute;
  left: -42%;
  bottom: 0;
  width: 184%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(7px 17px 12px #54362942);
  pointer-events: none;
}
.lineup-name {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: min(160px, 34vw);
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 3px 14px #5436291c;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity .22s ease, transform .27s ease;
}
.lineup-link:hover, .lineup-link:focus-visible { transform: translateY(-8px); }
.lineup-link:hover .lineup-name, .lineup-link:focus-visible .lineup-name {
  opacity: 1;
  transform: translate(-50%, 0);
}
.lineup-item:nth-child(1) { --left: 16%; --top: 56%; --height: 57%; --layer: 2; }
.lineup-item:nth-child(2) { --left: 33.5%; --top: 46%; --height: 56%; --layer: 1; }
.lineup-item:nth-child(3) { --left: 51%; --top: 57%; --height: 67%; --layer: 3; }
.lineup-item:nth-child(4) { --left: 68.5%; --top: 46%; --height: 56%; --layer: 1; }
.lineup-item:nth-child(5) { --left: 86%; --top: 56%; --height: 57%; --layer: 2; }
@media (prefers-reduced-motion: reduce) {
  .lineup-link, .lineup-name { transition: none; }
  .lineup-link:hover, .lineup-link:focus-visible { transform: none; }
}
.chapter { column-gap: clamp(18px, 4vw, 65px); }
.chapter h2 { font-size: clamp(53px, 6.25vw, 106px); line-height: .9; }
.chapter .description { max-width: 49ch; }
.chapter:nth-of-type(even) .scene { grid-column: 1; grid-row: 1; }
.chapter:nth-of-type(even) .story { grid-column: 2; grid-row: 1; }
.scene { height: min(46vw, 545px, calc(100svh - 166px)); min-height: 0; }
.halo { width: min(86%, 100cqh, 530px); max-height: 98%; }
.ingredient-anchor {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ingredient { display: block; width: 100%; height: auto; filter: drop-shadow(4px 7px 9px #51341e40); }
.pyramid { max-width: 49ch; margin: 16px 0; border-block: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.pyramid summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.pyramid-content { overflow: hidden; overflow-anchor: none; }
.pyramid dl { margin: 1px 0 13px; display: grid; grid-template-columns: auto 1fr; gap: 7px 13px; font-size: 14px; }
.pyramid dt { font-weight: 700; }
.pyramid dd { margin: 0; }
.purchase { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
@media (max-width: 700px) {
  .collection-hero { grid-template-columns: 1fr; align-content: center; min-height: calc(100svh - 60px); padding: 25px 18px 66px; }
  .collection-copy { text-align: center; }
  .collection-copy h1 { width: min(88%, 430px); margin: 0 auto 12px; }
  .collection-copy p { max-width: 32ch; margin-inline: auto; }
  .collection-art { height: clamp(230px, 65vw, 350px); width: min(100%, 535px); margin-inline: auto; }
  .chapter { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 8px; padding: 12px 20px 62px; min-height: calc(100svh - 60px); }
  .chapter .scene, .chapter:nth-of-type(even) .scene { grid-column: 1; grid-row: 1; }
  .chapter .story, .chapter:nth-of-type(even) .story { grid-column: 1; grid-row: 2; }
  .scene { height: clamp(180px, 32svh, 300px); width: min(100%, 450px); margin-inline: auto; }
  .halo { width: min(68%, 260px); }
  .chapter .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .chapter h2 { font-size: clamp(40px, 11vw, 70px); margin-bottom: 10px; }
  .chapter .description { font-size: 14px; line-height: 1.43; margin-inline: auto; }
  .pyramid { max-width: 430px; margin: 10px auto; text-align: left; }
  .purchase { justify-content: center; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .collection-hero { view-timeline-name: --collection; }
    .lineup-item { --drift: -2%; }
    .lineup-item:nth-child(even) { --drift: -3.25%; }
    .lineup-item:nth-child(3) { --drift: -4.5%; }
    .lineup-link img {
      animation: lineup-drift linear both;
      animation-timeline: --collection;
      animation-range: exit 0% exit 100%;
    }
    @keyframes lineup-drift { to { translate: 0 var(--drift); } }
  }
}

.purchase .pill { display: inline-flex; align-items: center; }
.purchase .pill:disabled { opacity: .68; cursor: default; background: transparent; color: inherit; }
