@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  font-family: 'Nunito', sans-serif;
  color: #33213d;
  background: #fff9ee;
  font-synthesis: none;
  --ink: #33213d;
  --berry: #8d397b;
  --pink: #f4a4c6;
  --yellow: #ffd56e;
  --mint: #b9e6cf;
  --paper: #fff9ee;
  --muted: #796e7c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 88% 6%, rgba(245, 181, 219, .42), transparent 30%), radial-gradient(ellipse at 5% 30%, rgba(255, 219, 131, .32), transparent 28%), var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100% - 1180px) / 2)); border-bottom: 1px solid rgba(80, 47, 86, .13); background: rgba(255, 249, 238, .88); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 18px 'Fredoka', sans-serif; text-decoration: none; }
.brand-mark { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--berry); font-size: 20px; }
.header-order { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.header-order span { display: grid; min-width: 27px; height: 27px; padding: 0 5px; place-items: center; border-radius: 50%; background: var(--berry); color: white; font: 700 12px 'Nunito', sans-serif; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 370px; position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; margin: 26px 0 55px; padding: 44px 8%; border: 2px solid var(--ink); border-radius: 22px 22px 22px 6px; background: linear-gradient(110deg, rgba(255, 247, 222, .97) 0%, rgba(255, 240, 219, .92) 46%, rgba(247, 207, 226, .72) 100%); box-shadow: 6px 7px 0 rgba(75, 46, 83, .13); }
.hero:after { content: ''; position: absolute; width: 330px; height: 330px; right: 8%; top: 16px; border: 1px dashed rgba(141, 57, 123, .27); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; max-width: 470px; animation: arrive .55s ease-out both; }
.eyebrow { margin: 0 0 12px; color: var(--berry); font: 700 11px 'Nunito', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--ink); font: 600 clamp(52px, 7vw, 82px)/.85 'Fredoka', sans-serif; }
.hero h1 em { color: var(--berry); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 360px; margin: 19px 0 22px; color: #574761; font-size: 16px; line-height: 1.5; }
.browse-link { display: inline-flex; align-items: center; gap: 10px; color: var(--berry); font-size: 13px; font-weight: 800; text-decoration: none; }
.browse-link span { display: grid; width: 25px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--yellow); }
.hero-art { position: absolute; z-index: 1; top: 0; right: 9%; width: 270px; height: 100%; display: grid; place-items: center; color: var(--berry); }
.moon { position: absolute; top: 30px; right: 25px; color: #e7a631; font-size: 64px; transform: rotate(-19deg); }
.potion { display: grid; width: 154px; height: 188px; place-items: center; border: 3px solid rgba(74, 47, 90, .72); border-radius: 42% 42% 25% 25%; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.12) 42%, rgba(239,131,183,.65) 43%, rgba(190,95,178,.85)); box-shadow: inset 10px 0 18px rgba(255,255,255,.55), 0 18px 35px rgba(115,51,111,.2); color: #fff5d0; font-size: 83px; transform: rotate(6deg); }
.potion:before { content: ''; position: absolute; width: 53px; height: 35px; margin-top: -194px; border: 3px solid rgba(74, 47, 90, .72); border-radius: 8px 8px 3px 3px; background: #b9e6cf; }
.sparkle { position: absolute; color: #e7a631; }
.sparkle-one { top: 86px; left: 25px; font-size: 30px; }
.sparkle-two { right: 14px; bottom: 56px; color: #8a4d97; font-size: 33px; }
.hero-stamp { position: absolute; right: 35px; bottom: 28px; z-index: 2; color: #56365e; font: 700 10px/1.3 'Nunito', sans-serif; letter-spacing: .08em; text-align: center; transform: rotate(-8deg); }

.menu-section { padding-bottom: 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; color: var(--ink); font: 600 34px 'Fredoka', sans-serif; }
.search { display: flex; width: min(260px, 42vw); align-items: center; gap: 8px; border-bottom: 1px solid #b9a8bb; color: var(--berry); }
.search span { font-size: 23px; }
.search input { width: 100%; border: 0; outline: 0; padding: 9px 0; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: #938695; }
.search:focus-within { border-color: var(--berry); }
.menu-note { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.menu-item { min-width: 0; display: flex; flex-direction: column; padding: 15px 16px 13px; border: 1px solid rgba(63, 41, 70, .22); border-radius: 10px 10px 10px 3px; background: rgba(255,255,255,.7); box-shadow: 0 2px 0 rgba(82, 52, 87, .04); transition: border-color .15s, transform .15s, background .15s; animation: arrive .35s ease-out both; }
.menu-item:hover { transform: translateY(-2px); border-color: rgba(141,57,123,.55); }
.menu-item.is-selected { border-color: var(--berry); background: #fff5fb; }
.item-topline { height: 20px; display: flex; align-items: center; justify-content: space-between; }
.item-number { color: #a697a5; font: 700 10px 'Nunito', sans-serif; }
.sour-tag { padding: 3px 7px; border: 1px solid #f1bb61; border-radius: 20px; background: #fff3d3; color: #745522; font-size: 9px; font-weight: 800; }
.menu-item h3 { margin: 8px 0 4px; color: var(--ink); font: 500 19px/1.15 'Fredoka', sans-serif; }
.menu-item > p { min-height: 36px; margin: 0; color: #726777; font-size: 12px; line-height: 1.5; }
.item-controls { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(63,41,70,.1); }
.sour-control { display: inline-flex; align-items: center; gap: 6px; color: #68426c; font-size: 11px; font-weight: 800; cursor: pointer; }
.sour-control input { width: 15px; height: 15px; margin: 0; accent-color: var(--berry); }
.sour-control input:disabled { cursor: not-allowed; opacity: .42; }
.sour-placeholder { flex: 1; }
.quantity-control { display: flex; height: 30px; align-items: center; border: 1px solid #d8cbd9; border-radius: 7px; background: #fff; }
.quantity-control button { width: 31px; height: 28px; border: 0; background: transparent; color: var(--berry); font-size: 18px; font-weight: 700; }
.quantity-control button:disabled { color: #c9becb; cursor: not-allowed; }
.quantity-control output { min-width: 20px; color: var(--ink); font-size: 12px; font-weight: 800; text-align: center; }
.empty-state { grid-column: 1 / -1; padding: 35px; color: var(--muted); text-align: center; }

.order-bar { position: sticky; z-index: 3; bottom: 12px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(100px, 1.2fr) auto; align-items: center; gap: 22px; margin: 4px 0 18px; padding: 13px 17px; border: 1px solid #5b3c62; border-radius: 12px; background: rgba(58, 35, 65, .97); box-shadow: 0 8px 26px rgba(45, 30, 51, .2); color: #fff8ec; }
.order-summary { display: flex; align-items: center; gap: 10px; }
.order-icon { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--berry); font-size: 20px; }
.order-summary strong, .order-count { display: block; }
.order-summary strong { font: 500 17px 'Fredoka', sans-serif; }
.order-count { margin-top: 2px; color: #d6c8dc; font-size: 11px; }
.order-progress { height: 8px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.2); }
.order-progress span { display: block; height: 100%; border-radius: inherit; background: var(--mint); transition: width .2s ease; }
.submit-button { display: flex; min-height: 42px; align-items: center; gap: 15px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--yellow); color: #3c2b42; font-size: 12px; font-weight: 900; white-space: nowrap; }
.submit-button:disabled { background: #66576b; color: #b8aeba; cursor: not-allowed; }
.submit-button span { font-size: 16px; }
.order-status { grid-column: 1 / -1; margin: 0; color: #e9dced; font-size: 11px; }
.order-status:empty { display: none; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0 26px; border-top: 1px solid rgba(80,47,86,.13); color: #796e7c; font-size: 11px; }
footer a { color: var(--berry); font-weight: 800; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(43, 27, 48, .68); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.setup-modal { position: relative; width: min(100%, 500px); padding: 32px; border: 1px solid rgba(63, 41, 70, .25); border-radius: 14px 14px 14px 4px; background: var(--paper); box-shadow: 0 20px 70px rgba(33, 20, 38, .3); }
.setup-modal h2 { margin: 0; color: var(--ink); font: 600 30px 'Fredoka', sans-serif; }
.setup-modal .eyebrow { margin-bottom: 8px; }
.modal-copy { margin: 12px 0 22px; color: #716676; font-size: 13px; line-height: 1.6; }
.modal-copy strong { color: var(--ink); }
.setup-modal label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 800; }
.setup-modal input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #c9baca; border-radius: 6px; outline: 0; background: white; color: var(--ink); font-size: 13px; }
.setup-modal input:focus { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(141,57,123,.12); }
.modal-actions { display: flex; justify-content: end; gap: 10px; margin-top: 23px; }
.primary-button, .secondary-button { min-height: 40px; padding: 0 14px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.primary-button { border: 0; background: var(--berry); color: white; }
.primary-button span { margin-left: 8px; }
.secondary-button { border: 1px solid #c9baca; background: transparent; color: var(--ink); }
.close-button { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 25px; }

@keyframes arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) {
  .hero { min-height: 330px; padding-left: 6%; }
  .hero-art { right: 3%; transform: scale(.82); transform-origin: center right; }
  .hero-stamp { right: 18px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topbar { height: 60px; padding: 0 17px; }
  .brand { font-size: 16px; }
  .header-order { gap: 6px; font-size: 11px; }
  .header-order span { min-width: 24px; height: 24px; }
  .shell { width: calc(100% - 30px); }
  .hero { min-height: 300px; align-items: start; margin: 16px 0 37px; padding: 35px 22px; }
  .hero-copy { max-width: 75%; }
  .hero h1 { font-size: 58px; }
  .hero-copy > p:not(.eyebrow) { max-width: 255px; font-size: 14px; }
  .hero-art { top: 89px; right: -44px; transform: scale(.58); transform-origin: center right; }
  .hero:after { width: 200px; height: 200px; top: 65px; right: -45px; }
  .hero-stamp { right: 15px; bottom: 19px; font-size: 8px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 30px; }
  .search { width: 100%; }
  .menu-grid { gap: 9px; }
  .menu-item { padding: 12px 11px 10px; }
  .menu-item h3 { font-size: 17px; }
  .menu-item > p { min-height: 52px; font-size: 11px; }
  .item-controls { align-items: end; flex-direction: column-reverse; }
  .sour-control { align-self: start; }
  .sour-placeholder { display: none; }
  .quantity-control { align-self: end; }
  .order-bar { grid-template-columns: 1fr auto; gap: 10px; bottom: 7px; padding: 11px; }
  .order-progress { grid-column: 1; grid-row: 2; }
  .submit-button { grid-column: 2; grid-row: 1 / span 2; padding: 0 12px; }
  .setup-modal { padding: 27px 21px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}