@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/press-start-2p.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  --cream: #fff5e4;
  --paper: #fffcf5;
  --alt: #ffeccf;
  --ink: #2b1d2e;
  --ink-soft: #6b5a6d;
  --tomato: #ff5d6c;
  --soup: #ffb347;
  --mint: #5fd1a5;
  --sky: #6ec6ff;
  --grape: #9b8cff;
  --butter: #ffd84d;
  --px: 3px;
  --display: "Press Start 2P", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-rounded, system-ui, sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(43, 29, 46, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 19px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg.px { display: block; image-rendering: pixelated; }
img { display: block; max-width: 100%; image-rendering: pixelated; }
[data-sprite] { display: inline-block; line-height: 0; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px dashed var(--tomato); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--tomato);
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 13px/1 var(--display);
  color: var(--ink); text-decoration: none;
  background: var(--bg);
  padding: 16px 20px;
  border: var(--px) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s var(--bounce), box-shadow .15s var(--bounce), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); transition-duration: .05s; }
.btn-ghost { --bg: var(--paper); }
.btn-sm { padding: 10px 12px; font-size: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.link { font-weight: 600; text-decoration: none; border-bottom: 3px solid var(--soup); }
.link:hover { border-color: var(--tomato); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--px) solid var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; transition: transform .4s var(--bounce); transform-origin: 12% 70%; }
.logo:hover img { transform: rotate(-4deg) scale(1.04); }
.nav nav { display: flex; align-items: center; gap: 24px; font-size: 18px; }
.nav nav a:not(.btn) { text-decoration: none; position: relative; }
.nav nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--tomato); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--bounce);
}
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 10px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  background: var(--paper); border: var(--px) solid var(--ink);
  padding: 9px 12px; margin-bottom: 26px;
}
.blink { color: var(--mint); animation: blink 1.4s steps(2, jump-none) infinite; }
.hero h1 { font-size: clamp(21px, 5.6vw, 34px); line-height: 1.4; }
.lede { margin-top: 22px; font-size: 21px; color: var(--ink-soft); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-art { position: relative; width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 80 / 76; }
.hero-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pot-label {
  position: absolute; pointer-events: none; white-space: nowrap; z-index: 2;
  font: 400 10px/1 var(--display);
  color: var(--cream); background: var(--ink);
  padding: 7px 9px;
  box-shadow: 3px 3px 0 var(--soup);
}

/* scene animations (SVG) */
.pot { transform-box: fill-box; transform-origin: 50% 100%; }
.eyes { transform-box: fill-box; transform-origin: center; animation: blinkEyes 4.2s infinite; }
.bubble { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bubble 2.6s ease-out infinite; }
.steam { opacity: 0; animation: steam 3.2s ease-out infinite; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.spin { transform-box: fill-box; transform-origin: center; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes blinkEyes { 0%, 90%, 96%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } }
@keyframes bubble {
  0% { opacity: 0; transform: translateY(0) scale(.2); }
  25% { opacity: 1; transform: translateY(-.5px) scale(1); }
  70% { opacity: 1; transform: translateY(-1.5px) scale(1.25); }
  80%, 100% { opacity: 0; transform: translateY(-2px) scale(1.8); }
}
@keyframes steam {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: .95; }
  40% { transform: translate(2px, -9px) scale(1); }
  70% { opacity: .55; transform: translate(-2px, -18px) scale(1.25); }
  100% { opacity: 0; transform: translate(1px, -26px) scale(1.5); }
}
@keyframes flicker {
  0% { transform: scale(1, .82) skewX(-4deg); }
  100% { transform: scale(.92, 1.08) skewX(4deg); }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; background: var(--ink); color: var(--cream);
  border-block: var(--px) solid var(--ink);
  padding: 13px 0;
  font: 400 11px/1 var(--display); text-transform: uppercase;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { padding: 0 22px; white-space: nowrap; }
.marquee-track span::after { content: "*"; margin-left: 44px; color: var(--soup); }
.marquee-track span:nth-child(6n+1) { color: var(--butter); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--alt); border-block: var(--px) solid var(--ink); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker { font: 400 10px/1 var(--display); color: var(--tomato); text-transform: uppercase; margin-bottom: 18px; }
.section h2 { font-size: clamp(19px, 2.6vw, 28px); line-height: 1.45; }
.sub { margin-top: 16px; color: var(--ink-soft); font-size: 20px; }

/* menu */
.menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dish {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--paper); padding: 26px;
  border: var(--px) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .25s var(--bounce), box-shadow .25s var(--bounce);
}
.dish:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.dish:hover .dish-icon [data-sprite] { animation: hop .5s var(--bounce); }
.dish-icon {
  width: 84px; height: 84px; display: grid; place-items: center;
  background: var(--cream); border: var(--px) solid var(--ink);
}
.dish:nth-child(1) .dish-icon { background: #dff1ff; }
.dish:nth-child(2) .dish-icon { background: #fff0c2; }
.dish:nth-child(3) .dish-icon { background: #e8e4ff; }
.dish-special { background: var(--butter); }
.dish-special .dish-icon { background: var(--paper); }
.dish h3 { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.dish p { color: var(--ink-soft); }
.dish-special p { color: var(--ink); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font-size: 15px; line-height: 1; padding: 6px 9px; border: 2px solid var(--ink); background: var(--cream); }

/* ingredient tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper); padding: 22px;
  border: var(--px) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .25s var(--bounce), box-shadow .25s var(--bounce);
}
.tile:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 7px 7px 0 var(--ink); }
.tile:nth-child(even):hover { transform: translate(-2px, -2px) rotate(.6deg); }
.tile:hover .tile-icon { animation: hop .5s var(--bounce); }
.tile-icon { align-self: flex-start; height: 42px; display: flex; align-items: flex-end; }
.tile h3 { font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 18px; line-height: 1.45; }

/* chefs */
.chefs { display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: center; }
.chefs .section-head { margin-bottom: 0; }
.chef-row { display: flex; gap: 6px; align-items: flex-end; grid-row: span 2; }
.chef { animation: bob 2.4s ease-in-out infinite; }
.chef:nth-child(2) { animation-delay: -.8s; transform: translateY(-8px); }
.chef:nth-child(3) { animation-delay: -1.6s; }
.checks { display: grid; gap: 12px; font-size: 19px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks li [data-sprite] { margin-top: 7px; flex: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px) rotate(-6deg); } 70% { transform: translateY(1px); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding-top: 4px; }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  font: 400 16px/1 var(--display); background: var(--soup);
  border: var(--px) solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  position: relative; z-index: 1;
}
.step:nth-child(2) .step-n { background: var(--mint); }
.step:nth-child(3) .step-n { background: var(--sky); }
.step:nth-child(4) .step-n { background: var(--tomato); }
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 26px; left: 60px; right: -8px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
}
.step h3 { font-size: 13px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 18px; }

/* cta */
.cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-bowl { width: 132px; height: auto; margin-bottom: 26px; animation: bob 2.8s ease-in-out infinite; }
.cta h2 { font-size: clamp(24px, 4vw, 38px); }
.cta .sub { margin-bottom: 30px; max-width: 30ch; }
.mail { margin-top: 18px; color: var(--ink-soft); font-size: 17px; user-select: all; }

/* faq */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--paper); border: var(--px) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  interpolate-size: allow-keywords;
}
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 56px 18px 20px;
  font: 400 12px/1.7 var(--display);
  transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--alt); }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  font-size: 18px; line-height: 1; transform: translateY(-50%);
  transition: transform .3s var(--bounce), color .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--tomato); }
.faq details p { padding: 0 20px 20px; color: var(--ink-soft); }
.faq details::details-content {
  height: 0; overflow: hidden;
  transition: height .35s ease, content-visibility .35s allow-discrete;
}
.faq details[open]::details-content { height: auto; }

/* belief */
.belief { background: var(--ink); color: var(--cream); }
.belief .sub { color: #d9cfe0; }
.belief .kicker { color: var(--butter); }
.belief-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.belief .section-head { margin-bottom: 0; }
.xp { font: 400 10px/1.4 var(--display); text-transform: uppercase; }
.xp-labels { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: #d9cfe0; }
.xp-goal { color: var(--butter); }
.xp-bar { height: 34px; padding: 4px; border: var(--px) solid var(--cream); box-shadow: 4px 4px 0 var(--tomato); }
.xp-fill {
  height: 100%; width: 100%;
  background: repeating-linear-gradient(90deg, var(--mint) 0 14px, transparent 14px 18px);
  transform-origin: left; transform: scaleX(.12);
}
.js .xp.in .xp-fill { animation: xpfill 3.6s steps(22, end) .3s forwards, xpglow 1.2s 3.9s ease-in-out infinite alternate; }
.xp-caption { margin-top: 18px; color: var(--soup); }
@keyframes xpfill { to { transform: scaleX(.96); } }
@keyframes xpglow { from { filter: none; } to { filter: brightness(1.25) drop-shadow(0 0 6px rgba(95, 209, 165, .6)); } }

/* footer */
.foot { border-top: var(--px) solid var(--ink); padding: 22px 0; font-size: 16px; color: var(--ink-soft); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot-logo img { height: 20px; width: auto; }
.foot-bowl { width: 22px; height: 22px; }
.foot-inner span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .7s var(--bounce); }
.js .reveal.in { opacity: 1; transform: none; }
.tiles .reveal:nth-child(3n+2), .menu .reveal:nth-child(2n), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.tiles .reveal:nth-child(3n+3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.steps .reveal:nth-child(4) { transition-delay: .24s; }
.tile.reveal.in, .dish.reveal.in { transition: opacity .6s ease, transform .25s var(--bounce), box-shadow .25s var(--bounce); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 420px; }
  .lede { max-width: 40ch; }
  .menu { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .step::before { display: none; }
  .chefs { grid-template-columns: 1fr; }
  .belief-inner { grid-template-columns: 1fr; gap: 36px; }
  .chef-row { grid-row: auto; }
}

@media (max-width: 600px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  .nav-inner { height: 56px; }
  .logo { font-size: 13px; }
  .nav nav { gap: 0; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 32px 0 36px; }
  .lede { font-size: 19px; }
  .cta-row .btn { flex: 1 1 auto; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .sub { font-size: 18px; }
  .dish { grid-template-columns: 1fr; padding: 20px; gap: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .dish-icon { width: 72px; height: 72px; }
  .dish-icon img { width: 56px; height: auto; }
  .logo img { height: 34px; }
  .faq summary { font-size: 11px; padding: 16px 48px 16px 16px; }
  .faq details p { padding: 0 16px 16px; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { flex-direction: row; align-items: flex-start; padding: 16px; }
  .tile-icon { width: 42px; justify-content: center; flex: none; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; }
  .step-n { grid-row: span 2; margin: 0; }
  .marquee { font-size: 10px; padding: 11px 0; }
  .xp { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bubble, .steam { opacity: 1; }
  .xp-fill { transform: scaleX(.96); }
  .js .reveal { opacity: 1; transform: none; }
}
