:root {
  --cream: #F6EEDF;
  --paper: #FFF9F0;
  --ink: #1E1638;
  --cobalt: #2F4BDB;
  --bubblegum: #EF6FA6;
  --candy: #F9CADC;
  --mint: #A9E8BF;
  --aqua: #5ED0C5;
  --lilac: #C990E2;
  --red: #E8262F;
  --red-strong: #C81D27;
  --butter: #FFE07A;
  --peach: #FBB9A3;
  --coral: #FF7A6B;

  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;

  --radius: 28px;
  --radius-lg: 36px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --pop: 0 4px 0 var(--ink);
  --pop-lg: 0 6px 0 var(--ink);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.55;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}
/* With overflow: clip on html, a hidden body becomes its own scroll container and
   swallows touch-action from html. Keep it visible where clip is supported. */
@supports (overflow: clip) {
  body { overflow-x: visible; }
  .announce, .footer, .header { overflow-x: clip; }
}
img, svg { display: block; max-width: 100%; }
img.mag { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--bubblegum); color: var(--cream); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
}
.h2 { font-family: var(--display); font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.01em; margin-bottom: .35em; }
.h2--sm { font-size: clamp(32px, 4vw, 54px); }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; padding: 0 var(--gutter); }
.section-head p:last-child { margin-bottom: 0; font-size: 1.08em; }
.section-head--left { text-align: left; margin: 0; padding: 0; }

.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--pop);
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: box-shadow .18s, background-color .2s, color .2s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { box-shadow: var(--pop-lg); }
.btn:active { box-shadow: 0 1px 0 var(--ink); }
.btn--red { --bg: var(--red-strong); --fg: var(--cream); }
.btn--cream { --bg: var(--cream); --fg: var(--ink); }
.btn--ink { --bg: var(--ink); --fg: var(--cream); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: none; }
.btn--ghost:hover { --bg: var(--candy); box-shadow: var(--pop); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 19px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow { font-weight: 800; text-decoration: none; border-bottom: 3px solid var(--bubblegum); padding-bottom: 2px; }
.link-arrow span { display: inline-block; transition: transform .2s; }
.link-arrow:hover span { transform: translateX(6px); }

.sticker {
  display: inline-block;
  font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink);
  padding: 8px 18px 10px;
  border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: var(--pop);
  transform: rotate(-4deg);
  margin: 0 0 18px;
}
.sticker--butter { background: var(--butter); }
.sticker--mint { background: var(--mint); }

.price { font-family: var(--display); font-size: 26px; }

/* cursor */
.cursor { position: fixed; left: 0; top: 0; width: 44px; z-index: 1000; pointer-events: none; opacity: 0; will-change: transform; }
.cursor__art { filter: drop-shadow(0 6px 6px rgba(30, 22, 56, .3)); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary, .has-cursor [data-magnets] .magnet { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor input[type="range"], .has-cursor input[type="date"] { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* announce + header */
.announce { background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; overflow: hidden; }
.announce__track { display: flex; justify-content: space-around; gap: 48px; padding: 9px var(--gutter); white-space: nowrap; }
@media (max-width: 860px) {
  .announce__track { justify-content: flex-start; width: max-content; animation: ticker 18s linear infinite; }
  .announce__track span:nth-child(n+2)::before { content: '✦'; margin-right: 48px; color: var(--butter); }
}
@media (min-width: 861px) { .announce__track span:nth-child(n+4) { display: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }

.header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: var(--header-h); padding: 0 var(--gutter);
  background: rgba(246, 238, 223, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 2px 0 rgba(30, 22, 56, .08); }
.header__logo { display: block; width: 168px; }
.header__logo svg { width: 100%; height: auto; overflow: visible; }
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; transition: background-color .2s; }
.nav a:hover, .nav a.is-active { background: var(--candy); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.bag-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--butter); box-shadow: var(--pop); cursor: pointer;
  display: grid; place-items: center;
}
.bag-btn svg { width: 24px; height: 24px; }
.bag-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: var(--cream); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.bag-btn__count[data-empty="true"] { background: var(--cream); color: var(--ink); }
.burger { display: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--cream); box-shadow: var(--pop); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .3s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 28px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header { grid-template-columns: 1fr auto; }
}
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .header__logo { width: 132px; }
  .bag-btn, .burger { width: 46px; height: 46px; }
  .burger span:first-child { top: 16px; }
  .burger span:last-child { top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
