/* Dough-lightful Bites · 04 Kitchen Table
   Warm paper, chocolate ink, the brand pink, butter yellow. Fraunces (soft) for display,
   Nunito for reading, Caveat for the handwritten notes in the margins. */

:root {
  --paper: #FBF4EA;
  --paper-2: #F5E8D6;
  --paper-3: #EEDCC4;
  --card: #FFFBF4;
  --ink: #3B2219;
  --ink-2: #6E4B3A;
  --cocoa: #2E1A13;
  --pink: #FFB9D0;
  --pink-2: #FFD9E5;
  --pink-3: #FFEDF3;
  --rose: #B23A66;
  --butter: #F7D774;
  --butter-2: #FCEBB0;
  --kraft: #D9B58A;
  --error: #9E1F3F;
  --line: rgba(59, 34, 25, .14);
  --line-strong: rgba(59, 34, 25, .34);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .13 0 0 0 0 .09 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 6'%3E%3Cpath d='M0 3c2.5-2.5 5-2.5 7.5 0s5 2.5 7.5 0 5-2.5 7.5 0' fill='none' stroke='%23B23A66' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");

  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --ff-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --step--1: clamp(.84rem, .81rem + .12vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.18rem, 1.08rem + .45vw, 1.45rem);
  --step-2: clamp(1.42rem, 1.24rem + .85vw, 2rem);
  --step-3: clamp(1.75rem, 1.42rem + 1.55vw, 2.8rem);
  --step-4: clamp(2.2rem, 1.64rem + 2.7vw, 4.1rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.4vw, 5.9rem);

  --section: clamp(4rem, 2.8rem + 5vw, 8rem);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-photo: 0 2px 3px rgba(59, 34, 25, .1), 0 24px 40px -24px rgba(59, 34, 25, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 78px;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--grain), var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.012em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--rose);
}
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hand { font-family: var(--ff-hand); }
.nowrap { white-space: nowrap; }
.ph {
  background: repeating-linear-gradient(-45deg, rgba(247, 215, 116, .55) 0 6px, rgba(247, 215, 116, .22) 6px 12px);
  border-bottom: 2px dashed var(--rose);
  border-radius: 3px;
  padding: 0 .25em;
  font-style: normal;
  color: inherit;
  cursor: help;
}

/* ---------- type */
.display { font-size: var(--step-5); font-weight: 650; letter-spacing: -.028em; line-height: .98; }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-hand);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1;
  color: var(--rose);
  margin: 0 0 .45em;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; max-width: 36ch; }
.fine { font-size: var(--step--1); color: var(--ink-2); }
.link {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
  text-decoration-color: var(--pink);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: var(--rose); color: var(--rose); }
.link svg { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-left: .15em; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper); --sh: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.5em;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 800 var(--step-0)/1.1 var(--ff-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 5px 0 var(--sh);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--sh); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 var(--sh); transition-duration: .06s; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --sh: var(--butter); }
.btn-ghost:hover { --bg: var(--card); }
.btn-pink { --bg: var(--pink); --fg: var(--ink); --sh: var(--butter); }
.btn-butter { --bg: var(--butter); --fg: var(--ink); --sh: var(--pink); }
.btn-small { min-height: 44px; padding: .6em 1.1em; font-size: var(--step--1); box-shadow: 3px 4px 0 var(--sh); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 0 0 var(--sh); }
.btn.is-done { --bg: var(--rose); --fg: #fff; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--card); cursor: pointer;
  transition: transform .3s var(--spring), background-color .2s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { transform: rotate(90deg); background: var(--pink-2); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--grain), var(--paper);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(59, 34, 25, .55); }
.header-inner { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; border-radius: 14px; }
.brand-mark { width: 46px; height: 46px; flex: none; transition: transform .6s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-16deg) scale(1.06); }
.brand-word { display: flex; flex-direction: column; line-height: .86; }
.brand-1 {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.36rem; letter-spacing: -.015em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand-2 { font-family: var(--ff-hand); font-weight: 700; font-size: 1.45rem; color: var(--rose); margin: .05em 0 0 .15em; }
.site-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  position: relative; display: block; padding: .55rem .95rem; border-radius: 999px;
  font-weight: 800; text-decoration: none; transition: background-color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .28rem; height: 6px;
  background: var(--squiggle) repeat-x 0 0 / 20px 6px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current] { background: var(--pink); }
.site-nav a[aria-current]::after { display: none; }
.site-nav .nav-home { display: none; }
.nav-doodle { display: none; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  height: 48px; padding: 0 .85rem 0 .9rem;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
  font-weight: 800; font-size: var(--step--1); cursor: pointer;
  box-shadow: 3px 4px 0 var(--butter);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.basket-btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--butter); }
.basket-btn svg { width: 24px; height: 24px; }
.basket-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: .82rem; font-weight: 900;
  display: inline-grid; place-items: center;
}
.basket-count.is-empty { background: var(--paper-3); color: var(--ink); }
.basket-btn.bump .basket-count { animation: bump .6s var(--spring); }
.basket-btn.bump svg { animation: jiggle .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes jiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
.nav-toggle {
  display: none; width: 48px; height: 48px; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--card); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: inline-grid; }
  .basket-label { display: none; }
  .brand-1 { font-size: 1.18rem; }
  .brand-2 { font-size: 1.28rem; }
  .brand-mark { width: 40px; height: 40px; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 59;
    background: var(--grain), var(--paper);
    padding: clamp(1.5rem, 6vw, 3rem) var(--gutter) 3rem;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
  }
  .site-header.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease); }
  .site-nav ul { flex-direction: column; gap: .1rem; }
  .site-nav .nav-home { display: block; }
  .site-nav a {
    font-family: var(--ff-display); font-size: var(--step-4); font-weight: 600; letter-spacing: -.02em;
    padding: .2rem 0; border-radius: 8px; background: none !important;
    font-variation-settings: "SOFT" 100, "WONK" 1;
  }
  .site-nav a::after { left: 0; right: auto; width: 3ch; bottom: .1rem; }
  .site-nav a[aria-current] { color: var(--rose); }
  .nav-doodle { display: block; width: min(260px, 70%); margin: 2.5rem 0 0; transform: rotate(-8deg); }
}

/* ---------- decorative helpers */
.polaroid {
  margin: 0; background: #fffdf8; padding: 12px 12px 0; border-radius: 3px;
  box-shadow: var(--shadow-photo);
  transition: transform .6s var(--spring);
}
.polaroid picture, .polaroid img { width: 100%; }
.polaroid img { aspect-ratio: 1; object-fit: cover; border-radius: 1px; }
.polaroid figcaption {
  font-family: var(--ff-hand); font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem); font-weight: 600;
  line-height: 1.05; text-align: center; padding: .55rem .25rem .7rem; color: var(--ink);
}
.credit {
  display: block; font-family: var(--ff-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-2); margin-top: .3rem; line-height: 1.3;
}
.tape {
  position: absolute; top: -14px; left: 50%; width: 92px; height: 28px; z-index: 2;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(247, 215, 116, .78);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 0, 82% 0, 88% 10%, 94% 0, 100% 8%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 18% 100%, 12% 90%, 6% 100%, 0 92%);
}
.tape.pink { background: rgba(255, 185, 208, .82); }
.wave {
  display: block; width: 100%; height: clamp(22px, 3vw, 46px); margin-bottom: -1px;
  background: var(--grain), var(--paper-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C120 8 240 8 360 24s240 22 360 6 240-24 360-8 240 22 360 10V48H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C120 8 240 8 360 24s240 22 360 6 240-24 360-8 240 22 360 10V48H0z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.wave.flip { transform: scaleY(-1); margin: -1px 0 0; }
.scallop { position: relative; z-index: 1; }
.scallop::before, .scallop::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: radial-gradient(circle at 14px var(--sy, 14px), var(--scallop) 13.4px, transparent 14px) 0 0 / 28px 14px repeat-x;
}
.scallop::before { bottom: 100%; }
.scallop::after { top: 100%; --sy: 0px; }
.sprinkles { position: absolute; pointer-events: none; color: var(--ink); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }

/* cookie drawings */
.cookie { width: 100%; height: auto; overflow: visible; }
.kraft-box { width: 100%; height: auto; overflow: visible; }
.stamp { width: 100%; height: auto; }
@keyframes wobble {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-7deg) scale(1.04); }
  55% { transform: rotate(5deg) scale(1.04); }
  80% { transform: rotate(-2deg) scale(1.01); }
  100% { transform: rotate(0) scale(1); }
}

/* reveal + draw-in (only when JS runs; reduced motion skips it below) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .draw .ck-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .draw .ck-paint, .js .draw .ck-plate { opacity: 0; transition: opacity .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 450ms); }
.js .draw.is-in .ck-line { stroke-dashoffset: 0; }
.js .draw.is-in .ck-paint, .js .draw.is-in .ck-plate { opacity: 1; }

/* ---------- sections */
.section { padding-block: var(--section); position: relative; }
.section-tint { background: var(--grain), var(--paper-2); }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.75rem); }
.section-head h2 { font-size: var(--step-4); }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; margin: .8em 0 0; max-width: 52ch; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow { transform-origin: center; }

/* ---------- home: hero */
.hero { position: relative; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(3.5rem, 2rem + 6vw, 7.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.hero h1 { margin: .12em 0 .32em; }
.hero h1 .swash { position: relative; display: inline-block; }
.hero h1 .swash svg { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .22em; color: var(--pink); z-index: -1; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem 1.1rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; list-style: none; padding: 0;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0; font-weight: 700; color: var(--ink-2); font-size: var(--step--1);
}
.hero-facts li { display: flex; align-items: center; gap: .55rem; }
.hero-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--ink); flex: none; }
.hero-facts strong { color: var(--ink); font-weight: 900; font-size: var(--step-0); }
.hero-art { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1.04; justify-self: center; }
.hero-art .polaroid { position: absolute; }
.hero-art .p1 { width: 60%; left: 3%; top: 3%; transform: rotate(-5deg); }
.hero-art .p2 { width: 47%; right: 0; top: 27%; transform: rotate(6deg); }
.hero-art .polaroid:hover { transform: rotate(0) scale(1.02); z-index: 3; }
.hero-art .hc-big { position: absolute; width: 38%; left: -2%; bottom: -9%; z-index: 2; }
.hero-art .hc-small { position: absolute; width: 22%; right: 6%; top: -2%; z-index: 2; }
.hero-art .hc-big, .hero-art .hc-small { cursor: default; }
.hero-art .hc-big:hover .cookie, .hero-art .hc-small:hover .cookie { animation: wobble .8s var(--ease); }
.hero-art .sprinkles { width: 22%; right: 41%; bottom: -1%; }
.hero-note {
  position: absolute; right: 2%; bottom: -4%; z-index: 3; margin: 0;
  font-family: var(--ff-hand); font-weight: 600; font-size: clamp(1.25rem, .9rem + 1vw, 1.75rem);
  line-height: 1; color: var(--rose); transform: rotate(-4deg); text-align: right; max-width: 9em;
}
.hero-note svg { width: 74px; height: 56px; color: var(--rose); margin: .2rem 0 0 auto; transform: scaleX(-1) rotate(-30deg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-bottom: 2.5rem; }
}
@media (max-width: 520px) {
  .hero-note { font-size: 1.15rem; bottom: -9%; }
  .hero-note svg { width: 52px; height: 40px; }
}

/* ---------- home: marquee band */
.band { --scallop: var(--pink); background: var(--grain), var(--pink); padding-block: 1.05rem; margin-block: 14px; }
.marquee { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; animation: marquee 60s linear infinite; }
.band:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--ff-display); font-style: italic; font-weight: 500; font-size: var(--step-3);
  font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.15;
}
.marquee-track svg { width: 26px; height: 26px; color: var(--rose); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- home: ranges */
.range-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); }
.range-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 34%, 230px);
  gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  box-shadow: 8px 10px 0 var(--pink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.range-card.deluxe { box-shadow: 8px 10px 0 var(--butter); }
.range-card:hover { transform: translate(-3px, -4px); box-shadow: 11px 14px 0 var(--pink); }
.range-card.deluxe:hover { box-shadow: 11px 14px 0 var(--butter); }
.range-card:hover .cookie { animation: wobble .8s var(--ease); }
.range-card h3 { font-size: var(--step-3); margin-bottom: .35em; }
.range-card p { color: var(--ink-2); }
.range-card .meta { color: var(--ink); font-weight: 800; margin-bottom: 1.2rem; }
.range-card .meta strong { font-family: var(--ff-display); font-size: var(--step-2); font-weight: 600; }
.range-card .stamp-wrap { position: absolute; top: -34px; right: -16px; width: 108px; transform: rotate(12deg); z-index: 2; }
.range-card .stamp-wrap .stamp-spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) { .range-cards { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .range-card { grid-template-columns: 1fr; }
  .range-card .art { order: -1; width: 62%; margin: 0 auto; }
  .range-card .stamp-wrap { width: 84px; top: -26px; right: -4px; }
}

/* ---------- home: line-up */
.lineup-group + .lineup-group { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.lineup-label { display: flex; align-items: center; gap: 1rem; font-family: var(--ff-hand); font-size: var(--step-3); font-weight: 600; color: var(--rose); margin-bottom: 1rem; }
.lineup-label::after { content: ""; flex: 1; border-top: 2px dashed var(--line-strong); }
.lineup { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem) clamp(.5rem, 1.5vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.cookie-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: .8rem .5rem 1rem; border-radius: var(--radius); text-decoration: none; height: 100%;
  transition: background-color .25s;
}
.cookie-card:hover { background: rgba(255, 255, 255, .55); }
.cookie-card .cookie { width: 100%; max-width: 190px; margin-bottom: .55rem; }
.cookie-card:hover .cookie { animation: wobble .8s var(--ease); }
.cc-name { font-family: var(--ff-display); font-weight: 600; font-size: var(--step-1); line-height: 1.12; text-wrap: balance; }
.cc-price { font-weight: 700; font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 1000px) { .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- home: how ordering works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 66px; left: 12%; right: 12%; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cpath d='M0 12c15-9 30-9 45 0s30 9 45 0 22-7 30-4' fill='none' stroke='%233B2219' stroke-opacity='.35' stroke-width='2.4' stroke-dasharray='6 7' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 24px;
}
.step { position: relative; text-align: center; }
.step-art {
  position: relative; z-index: 1; width: 132px; height: 132px; margin: 0 auto 1.25rem;
  display: grid; place-items: center; background: var(--card);
  border: 2px solid var(--ink); border-radius: 50%; box-shadow: 5px 6px 0 var(--pink);
  transition: transform .5s var(--spring);
}
.step:nth-child(even) .step-art { box-shadow: 5px 6px 0 var(--butter); }
.step:hover .step-art { transform: rotate(-8deg) scale(1.05); }
.step-art > svg { width: 78px; height: 78px; }
.step-art .kraft-box { width: 92px; }
.step-n {
  position: absolute; top: -4px; right: -4px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--butter); border: 2px solid var(--ink); display: grid; place-items: center;
  font: 900 1rem/1 var(--ff-body);
}
.step h3 { font-size: var(--step-2); margin-bottom: .4em; }
.step p { color: var(--ink-2); max-width: 27ch; margin-inline: auto; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; } .steps::before { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- home: box sizes */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.box-compare {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem);
  background: var(--grain), var(--butter-2); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(1.25rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 2vw, 2.25rem);
  box-shadow: 8px 10px 0 var(--pink);
}
.box-compare figure { margin: 0; text-align: center; }
.box-compare figcaption { font-family: var(--ff-hand); font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); font-weight: 600; line-height: 1.05; margin-top: .6rem; }
.box-compare figcaption small { display: block; font-family: var(--ff-body); font-size: var(--step--1); font-weight: 700; color: var(--ink-2); margin-top: .2rem; }
.box-compare .kraft-box { transition: transform .5s var(--spring); }
.box-compare figure:hover .kraft-box { transform: rotate(-4deg) translateY(-4px); }
.same-price {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%) rotate(-3deg);
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: .35rem 1rem;
  font-family: var(--ff-hand); font-size: 1.45rem; font-weight: 700; white-space: nowrap; box-shadow: 3px 4px 0 var(--pink);
}
.feature-copy h2 { font-size: var(--step-4); margin-bottom: .45em; }
.feature-copy p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* notice / allergens */
.notice {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 3vw, 2rem); align-items: center;
  background: var(--card); border: 2px dashed var(--line-strong); border-radius: var(--radius-l);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.notice-icon { width: 64px; }
.notice h2 { font-size: var(--step-2); margin-bottom: .3em; }
.notice p { margin: 0; color: var(--ink-2); }
.notice p strong { color: var(--ink); }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } .notice-icon { width: 54px; } }

/* home: CTA */
.cta { --scallop: var(--butter); background: var(--grain), var(--butter); margin-top: 14px; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.cta .eyebrow { color: var(--ink); }
.cta h2 { font-size: var(--step-5); letter-spacing: -.03em; line-height: .98; margin-bottom: .3em; }
.cta p { font-size: var(--step-1); max-width: 34ch; }
.cta-art { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.cta-art .polaroid { transform: rotate(4deg); }
.cta-art .cta-cookie { position: absolute; width: 40%; left: -12%; bottom: -10%; }
.cta-art .sprinkles { width: 50%; right: -14%; top: -12%; }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } .cta-art { max-width: 340px; margin-top: 1rem; } .cta-art .cta-cookie { left: -4%; width: 34%; } .cta-art .sprinkles { right: -4%; } }

/* ---------- page heads */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(1.75rem, 1rem + 3vw, 3.5rem); text-align: center; position: relative; }
.page-head h1 { font-size: var(--step-5); letter-spacing: -.03em; }
.page-head .lede { margin: .9rem auto 0; max-width: 44ch; }
.page-head .underline { display: block; width: min(300px, 64%); height: 22px; margin: .35rem auto 0; color: var(--pink); }
.page-head .eyebrow { transform-origin: center; }
.crumbs { padding-top: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.crumbs li + li::before { content: "›"; margin-right: .35rem; }
.crumbs a { text-decoration-color: var(--pink); text-underline-offset: .2em; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- menu */
.jump { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.jump a, .jump button {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--card); font-weight: 800; font-size: var(--step--1);
  text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s var(--ease);
}
.jump a:hover, .jump button:hover { background: var(--pink-2); transform: translateY(-2px); }
.jump svg { width: 18px; height: 18px; }
.menu-sheet {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: clamp(1.75rem, 1rem + 3.5vw, 4.5rem) clamp(1.25rem, 1rem + 3vw, 4.5rem);
  box-shadow: 10px 12px 0 var(--pink);
}
.menu-sheet::before {
  content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--line-strong);
  border-radius: calc(var(--radius-l) - 8px); pointer-events: none;
}
.menu-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); }
.menu-col > header { text-align: center; margin-bottom: 2rem; }
.menu-col h2 { font-size: var(--step-3); }
.menu-col h2 + svg { width: 150px; height: 14px; margin: .45rem auto 0; color: var(--pink); }
.menu-note {
  display: flex; align-items: flex-start; gap: .4rem; justify-content: center;
  font-family: var(--ff-hand); font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.1;
  color: var(--rose); max-width: 28ch; margin: 1rem auto 0; transform: rotate(-1.5deg);
}
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 3vw, 2.4rem); }
.menu-item { display: grid; grid-template-columns: clamp(64px, 18%, 92px) minmax(0, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.menu-item .mi-art { display: block; padding-top: .2rem; }
.menu-item .cookie { transition: transform .5s var(--spring); }
.menu-item:hover .cookie { transform: rotate(-14deg) scale(1.06); }
.mi-title { display: flex; align-items: baseline; gap: .55rem; font-size: var(--step-1); font-weight: 600; line-height: 1.15; }
.mi-n { font-family: var(--ff-hand); font-size: 1.7rem; font-weight: 700; color: var(--rose); flex: none; }
.mi-fill { display: inline-block; margin: .45rem 0 0; padding: .12rem .6rem; border-radius: 999px; background: var(--butter-2); border: 1.5px solid var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.mi-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; font-weight: 800; margin: .5rem 0 .35rem; font-size: var(--step--1); }
.mi-price .leader { flex: 1 1 1.5rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-.3em); }
.mi-desc { color: var(--ink-2); margin: 0 0 .6rem; }
.mi-link { font-size: var(--step--1); }
@media (max-width: 900px) { .menu-cols { grid-template-columns: 1fr; } }
.allergens { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; margin: 0 0 .7rem; }
.chip-label { font-weight: 900; text-transform: uppercase; letter-spacing: .07em; font-size: .7rem; color: var(--ink-2); margin-right: .1rem; }
.chip-label:not(:first-child) { margin-left: .5rem; }
.chip { display: inline-flex; align-items: center; padding: .14rem .6rem; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 800; background: var(--card); line-height: 1.4; }
.chip.may { border-style: dashed; background: transparent; }

.allergen-section { margin-top: clamp(3rem, 6vw, 5rem); }
.allergen-section h2 { font-size: var(--step-3); margin-bottom: .3em; }
.table-scroll { position: relative; overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); margin-top: 1.5rem; }
.matrix { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--step--1); }
.matrix caption { text-align: left; padding: 1rem 1.25rem 0; font-weight: 800; }
.matrix th, .matrix td { padding: .75rem .9rem; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { font-family: var(--ff-hand); font-size: 1.35rem; font-weight: 700; color: var(--rose); padding-top: .9rem; }
.matrix tbody th { text-align: left; font-weight: 700; }
.matrix .group th { background: var(--paper-2); font-family: var(--ff-display); font-size: var(--step-0); font-weight: 600; text-align: left; }
.matrix tr:last-child > * { border-bottom: 0; }
.dot { display: inline-block; width: 15px; height: 15px; border-radius: 50%; vertical-align: middle; }
.dot.yes { background: var(--ink); }
.dot.may { border: 2px dashed var(--ink); }
.dot.no { width: 12px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }

/* ---------- shop */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.25rem;
  padding: .65rem .65rem .65rem 1.25rem; margin-bottom: clamp(2rem, 4vw, 3rem);
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
}
.result-count { margin: 0; font-family: var(--ff-hand); font-size: 1.5rem; font-weight: 700; color: var(--rose); line-height: 1; }
.seg { display: inline-flex; gap: .2rem; padding: .25rem; background: var(--paper-2); border-radius: 999px; }
.seg button {
  border: 0; background: none; padding: .62rem 1.15rem; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-size: var(--step--1); transition: background-color .2s, color .2s;
}
.seg button:hover { background: var(--pink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sort { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: var(--step--1); }
.sort select { width: auto; min-height: 44px; padding: .5rem 2.4rem .5rem 1rem; border-radius: 999px; font-weight: 800; font-size: var(--step--1); background-color: var(--paper); }
.toolbar-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
@media (max-width: 700px) {
  .toolbar { border-radius: var(--radius-l); padding: 1rem; }
  .toolbar-filters { width: 100%; justify-content: space-between; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.p-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-l);
  box-shadow: 6px 8px 0 var(--pink);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.p-card.deluxe { box-shadow: 6px 8px 0 var(--butter); }
.p-card:hover { transform: translate(-3px, -4px); box-shadow: 9px 12px 0 var(--pink); }
.p-card.deluxe:hover { box-shadow: 9px 12px 0 var(--butter); }
.p-top { position: relative; margin: 12px 12px 0; }
.p-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius-l) - 12px); background: var(--paper-2); }
.p-media picture, .p-media img { width: 100%; height: 100%; }
.p-media img { object-fit: cover; transition: transform .8s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.05); }
.p-sticker { position: absolute; width: 96px; right: -18px; top: -22px; transform: rotate(10deg); transition: transform .6s var(--spring); pointer-events: none; }
.p-card:hover .p-sticker { transform: rotate(-6deg) scale(1.06); }
@media (max-width: 700px) { .p-sticker { width: 84px; right: -6px; top: -18px; } }
.p-flag {
  position: absolute; left: 10px; bottom: 10px; padding: .3rem .75rem; border-radius: 999px;
  background: var(--butter); border: 1.5px solid var(--ink); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.p-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.4rem 1.4rem; flex: 1; }
.p-body h3 { font-size: var(--step-2); line-height: 1.08; }
.p-body h3 a { text-decoration: none; background: linear-gradient(var(--pink), var(--pink)) no-repeat 0 92% / 0 .3em; transition: background-size .35s var(--ease); }
.p-body h3 a:hover { background-size: 100% .3em; }
.p-desc { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.p-price { margin: auto 0 0; padding-top: .5rem; font-weight: 700; font-size: var(--step--1); color: var(--ink-2); }
.p-price strong { font-family: var(--ff-display); font-size: var(--step-2); font-weight: 600; color: var(--ink); margin-right: .2rem; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .55rem; }
.mini-seg { display: inline-flex; padding: 3px; gap: 2px; border: 2px solid var(--ink); border-radius: 999px; }
.mini-seg button { min-width: 40px; height: 36px; padding: 0 .6rem; border: 0; border-radius: 999px; background: none; font-weight: 900; cursor: pointer; }
.mini-seg button[aria-pressed="true"] { background: var(--pink); }
.p-actions .link { font-size: var(--step--1); margin-left: auto; }

/* ---------- product */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.product-media { position: relative; padding: 1.5rem 12% 18% 2%; }
.product-media .polaroid { position: relative; transform: rotate(-3deg); max-width: 520px; }
.pm-cookie { position: absolute; width: 44%; right: -2%; bottom: -4%; z-index: 2; }
.product-media .polaroid figcaption { text-align: left; padding-left: .35rem; padding-right: 42%; }
.pm-cookie:hover .cookie { animation: wobble .8s var(--ease); }
.pm-note {
  position: absolute; right: 30%; bottom: 1%; z-index: 3; margin: 0; display: flex; align-items: flex-end; gap: .2rem;
  font-family: var(--ff-hand); font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); font-weight: 700; color: var(--rose); line-height: 1; transform: rotate(-5deg);
}
.pm-note svg { width: 56px; height: 42px; color: var(--rose); flex: none; transform: rotate(-60deg) scaleY(-1); }
.product-info h1 { font-size: var(--step-4); letter-spacing: -.025em; margin: .1em 0 .3em; }
.price-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.price-big [data-price] { font-family: var(--ff-display); font-size: var(--step-3); font-weight: 600; }
.price-big small { font-size: var(--step--1); font-weight: 700; color: var(--ink-2); }
.product-desc { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.options { border: 0; padding: 0; margin: 1.75rem 0 1.5rem; display: grid; gap: .7rem; min-width: 0; }
.options legend { font-weight: 900; margin-bottom: .75rem; padding: 0; }
.opt {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: .95rem 1.15rem;
  border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--card); cursor: pointer;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; background: var(--paper); }
.opt .tick::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--rose); transform: scale(0); transition: transform .3s var(--spring); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: 4px 5px 0 var(--pink); transform: translate(-2px, -2px); }
.opt:has(input:checked) .tick::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 3px; }
.opt-main { flex: 1; display: grid; }
.opt-title { font-weight: 900; }
.opt-sub { font-size: var(--step--1); color: var(--ink-2); }
.opt-price { font-family: var(--ff-display); font-weight: 600; font-size: var(--step-1); }
.buy-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: .9rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.qty button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: background-color .2s; }
.qty button:hover { background: var(--pink-2); }
.qty button svg { width: 18px; height: 18px; }
.qty .qty-n { min-width: 2ch; text-align: center; font-weight: 900; }
.qty-lg { min-height: 52px; padding: 0 .3rem; }
.qty-lg button { width: 42px; height: 42px; }
.qty-lg input {
  width: 3ch; min-height: 0; padding: 0; border: 0; background: none; text-align: center; font-weight: 900; font-size: var(--step-1);
  -moz-appearance: textfield; appearance: textfield;
}
.qty-lg input::-webkit-outer-spin-button, .qty-lg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lg input:focus { box-shadow: none; }
.qty-lg:focus-within { outline: 3px solid var(--rose); outline-offset: 3px; }
.add-btn { flex: 1 1 240px; }
.in-basket { margin: 1rem 0 0; font-weight: 700; font-size: var(--step--1); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.in-basket svg { width: 20px; height: 20px; color: var(--rose); }
.in-basket button { border: 0; background: none; padding: 0; cursor: pointer; }
.product-notes { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.info { border-top: 2px dashed var(--line-strong); padding-top: 1.25rem; }
.info h2 { font-size: var(--step-1); margin-bottom: .6rem; }
.info p { color: var(--ink-2); margin: 0; }
.not-found { text-align: center; padding-block: 4rem 6rem; grid-column: 1 / -1; }
.not-found .cookie { width: 180px; margin: 0 auto 1.5rem; }
.not-found h1 { font-size: var(--step-4); margin-bottom: .4em; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product-media { max-width: 560px; margin-inline: auto; width: 100%; }
}

.also .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .also .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } .also .lineup li:nth-child(3) { display: none; } }

/* ---------- forms */
input, select, textarea {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: 14px;
  padding: .8rem 1rem; min-height: 52px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%233B2219' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
  padding-right: 2.6rem;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 4px var(--pink); }
[aria-invalid="true"] { border-color: var(--error); background-color: #FFF4F6; }
.field { display: grid; gap: .4rem; margin-bottom: 1.2rem; }
.field label { font-weight: 900; }
.field .opt-tag { font-weight: 700; color: var(--ink-2); font-size: var(--step--1); }
.field .hint { font-size: var(--step--1); color: var(--ink-2); margin: -.15rem 0 0; }
.field .error { color: var(--error); font-weight: 800; font-size: var(--step--1); margin: 0; }
.field .error:empty { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); box-shadow: 8px 10px 0 var(--pink);
}
.form-card h2 { font-size: var(--step-3); margin-bottom: .3em; }
.form-card > p { color: var(--ink-2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .5rem; }

/* ---------- checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.summary {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: var(--grain), var(--paper-2); border: 2px dashed var(--line-strong); border-radius: var(--radius-l);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.summary h2 { font-size: var(--step-2); margin-bottom: .75rem; }
.summary .lines { list-style: none; margin: 0; padding: 0; }
.summary .line { grid-template-columns: 52px minmax(0, 1fr) auto; }
.summary .line .cookie { width: 52px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .3rem; font-weight: 900; }
.summary-total strong { font-family: var(--ff-display); font-size: var(--step-2); font-weight: 600; }
.summary-empty { text-align: center; }
.summary-empty .kraft-box { width: 160px; margin: 0 auto 1rem; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
.confirm { text-align: center; max-width: 640px; margin: 0 auto; padding-block: 1rem 4rem; }
.confirm .kraft-box { width: min(300px, 80%); margin: 0 auto 1.5rem; }
.confirm h1 { font-size: var(--step-4); margin-bottom: .35em; }
.confirm .lede { margin-inline: auto; }
.confirm .recap { text-align: left; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-l); padding: 1.5rem 1.75rem; margin: 2rem 0; box-shadow: 6px 8px 0 var(--butter); }
.confirm .recap ul { margin: 0; padding-left: 1.1rem; }
.confirm .recap dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0 0; }
.confirm .recap dt { font-weight: 900; }
.confirm .recap dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- about */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section); }
.about-hero h1 { font-size: var(--step-5); letter-spacing: -.03em; margin-bottom: .3em; }
.collage { position: relative; aspect-ratio: 1 / .95; max-width: 560px; width: 100%; justify-self: center; }
.collage .polaroid { position: absolute; }
.collage .c1 { width: 58%; left: 0; top: 4%; transform: rotate(-6deg); }
.collage .c2 { width: 50%; right: 0; top: 0; transform: rotate(5deg); }
.collage .c3 { width: 46%; left: 30%; bottom: -4%; transform: rotate(-1deg); z-index: 2; }
.collage .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 4; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }
.letter {
  position: relative; max-width: 760px; margin: 0 auto; padding: clamp(2rem, 1.25rem + 3.5vw, 4rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  background-color: #FFFDF7;
  background-image: repeating-linear-gradient(transparent 0 calc(2.1rem - 1px), rgba(178, 58, 102, .16) calc(2.1rem - 1px) 2.1rem);
  background-position: 0 1.45rem;
  box-shadow: var(--shadow-photo); border-radius: 4px; transform: rotate(-.6deg);
  font-size: var(--step-1); line-height: 2.1rem;
}
.letter .tape { top: -12px; }
.letter h2 { font-size: var(--step-3); line-height: 1.1; margin-bottom: 1.3rem; }
.letter p { margin: 0 0 2.1rem; }
.letter .sign { font-family: var(--ff-hand); font-size: 2rem; font-weight: 700; color: var(--rose); margin: 0; }
.ingredients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem); list-style: none; padding: 0; margin: 0; }
.ingredient { text-align: center; }
.ingredient .ingredient-art { width: min(150px, 100%); margin: 0 auto .9rem; transition: transform .5s var(--spring); }
.ingredient:hover .ingredient-art { transform: rotate(-10deg) scale(1.06); }
.ingredient h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.ingredient p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
@media (max-width: 900px) { .ingredients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact-card {
  position: relative; background: var(--grain), var(--pink); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); box-shadow: 8px 10px 0 var(--butter);
}
.contact-card h2 { font-size: var(--step-3); margin-bottom: .6em; }
.contact-card .contact-list li { font-size: var(--step-0); }
.contact-card .stamp-wrap { position: absolute; width: 100px; right: -18px; top: -36px; transform: rotate(14deg); }
@media (max-width: 700px) { .contact-card .stamp-wrap { width: 84px; right: -4px; top: -30px; } }
.contact-card .note { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 2px dashed rgba(59, 34, 25, .35); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.contact-list svg { width: 22px; height: 22px; flex: none; }
.contact-list a { text-decoration-thickness: 2px; text-underline-offset: .2em; }
.socials { display: flex; gap: .6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.social {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid currentColor; transition: transform .35s var(--spring), background-color .2s, color .2s;
}
.social svg { width: 22px; height: 22px; }
.social:hover { transform: rotate(-12deg) scale(1.08); }
.contact-card .social { background: var(--card); border-color: var(--ink); }
.contact-card .social:hover { background: var(--butter); }
.sent { text-align: center; padding: 1rem 0; }
.sent svg { width: 120px; height: 120px; margin: 0 auto 1rem; }
.sent h2 { font-size: var(--step-3); margin-bottom: .3em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- prose pages */
.prose { max-width: 70ch; margin-inline: auto; padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose h2 { font-size: var(--step-2); margin: 2.2em 0 .55em; }
.prose h3 { font-size: var(--step-1); margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--rose); }
.prose a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.prose code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 6px; }
.callout {
  background: var(--grain), var(--butter-2); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; box-shadow: 5px 6px 0 var(--pink); margin-bottom: 2rem;
}
.callout p:last-child { margin: 0; }
.callout strong { font-weight: 900; }

/* ---------- footer */
.site-footer {
  --scallop: var(--cocoa);
  position: relative; z-index: 1; margin-top: calc(var(--section) * .6 + 14px);
  background: var(--grain), var(--cocoa); color: var(--paper);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px;
  background: radial-gradient(circle at 14px 14px, var(--cocoa) 13.4px, transparent 14px) 0 0 / 28px 14px repeat-x;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.footer-big { font-family: var(--ff-display); font-size: var(--step-4); font-weight: 600; line-height: 1; letter-spacing: -.025em; margin-bottom: .35em; font-variation-settings: "SOFT" 100; }
.footer-big em { color: var(--pink); font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer-lede { color: rgba(251, 244, 234, .8); max-width: 30ch; }
.footer-h { font-family: var(--ff-hand); font-size: 1.7rem; font-weight: 700; color: var(--butter); margin-bottom: .7rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--paper); text-decoration-color: rgba(255, 185, 208, .55); text-decoration-thickness: 2px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s; }
.site-footer a:hover { color: var(--pink); text-decoration-color: var(--pink); }
.site-footer :focus-visible { outline-color: var(--butter); }
.site-footer .contact-list svg { color: var(--pink); }
.site-footer .socials { display: flex; gap: .6rem; }
.site-footer .social { color: var(--paper); border-color: rgba(251, 244, 234, .6); }
.site-footer .social:hover { color: var(--cocoa); background: var(--pink); border-color: var(--pink); }
.site-footer .ph { background: rgba(255, 185, 208, .14); border-bottom-color: var(--pink); }
.site-footer .btn { color: var(--fg); text-decoration: none; }
.site-footer .btn-pink { border-color: var(--pink); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  border-top: 1px solid rgba(251, 244, 234, .18); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem;
  font-size: var(--step--1); color: rgba(251, 244, 234, .78);
}
.footer-base p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col:last-child { grid-column: 1 / -1; } }

/* ---------- basket drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(46, 26, 19, .45); opacity: 0; transition: opacity .35s; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(450px, 100%);
  display: flex; flex-direction: column;
  background: var(--grain), var(--paper); border-left: 2px solid var(--ink);
  box-shadow: -24px 0 60px -30px rgba(46, 26, 19, .6);
  transform: translateX(104%); transition: transform .5s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 2px dashed var(--line-strong); }
.drawer-head h2 { font-size: var(--step-3); }
.drawer-sub { margin: .2rem 0 0; font-family: var(--ff-hand); font-size: 1.3rem; font-weight: 600; color: var(--rose); line-height: 1; }
.drawer-sub:empty { display: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: .5rem 1.5rem 1rem; overscroll-behavior: contain; }
.drawer-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 2px dashed var(--line-strong); background: var(--grain), var(--paper-2); }
.drawer-foot .fine { margin: .2rem 0 1rem; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-weight: 900; }
.subtotal strong { font-family: var(--ff-display); font-size: var(--step-2); font-weight: 600; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .cookie { width: 64px; }
.line h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.2; }
.line h3 a { text-decoration: none; }
.line h3 a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.line .sub { margin: .15rem 0 .5rem; font-size: var(--step--1); color: var(--ink-2); }
.line-ctrl { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.line-total { margin: 0; font-weight: 900; align-self: start; padding-top: .1rem; }
.remove { border: 0; background: none; padding: .3rem 0; cursor: pointer; font-size: var(--step--1); font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; }
.remove:hover { color: var(--rose); }
.empty { text-align: center; padding: 2.5rem .5rem; }
.empty .kraft-box { width: 190px; margin: 0 auto 1.25rem; }
.empty-title { font-family: var(--ff-display); font-size: var(--step-2); font-weight: 600; margin-bottom: .3em; }
.empty p:not(.empty-title) { color: var(--ink-2); }

/* toast */
.toast-region { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 150; transform: translateX(-50%); display: grid; gap: .5rem; justify-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast {
  display: flex; align-items: center; gap: .6rem; background: var(--ink); color: var(--paper);
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 800; font-size: var(--step--1);
  box-shadow: 4px 5px 0 var(--pink); animation: toast-in .45s var(--spring);
}
.toast svg { width: 20px; height: 20px; color: var(--pink); flex: none; }
.toast.out { animation: toast-out .35s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.96); } }

/* ---------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw .ck-line { stroke-dashoffset: 0; }
  .js .draw .ck-paint, .js .draw .ck-plate { opacity: 1; }
  .marquee-track, .float, .stamp-spin { animation: none !important; }
}

/* ---------- print (the menu prints as a clean sheet) */
@media print {
  html { background: #fff; }
  .site-header, .site-footer, .drawer, .drawer-backdrop, .toast-region, .jump, .skip, .mi-link, .no-print { display: none !important; }
  .menu-sheet { box-shadow: none; border-width: 1px; }
  .menu-item { break-inside: avoid; }
  .js .reveal, .js .draw .ck-paint, .js .draw .ck-plate { opacity: 1 !important; transform: none !important; }
  .js .draw .ck-line { stroke-dashoffset: 0 !important; }
}
