/* Whisk N' Whimsy — styles */
:root {
  --cream: #fbf5ee;
  --cream-2: #f4e9dc;
  --paper: #fffdf9;
  --pink: #f3aebb;
  --pink-soft: #fbe3e7;
  --pink-deep: #d9667e;
  --ink: #2a211e;
  --ink-soft: #5c4d47;
  --brown: #7a4b2a;
  --line: #e8d9c8;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(74, 44, 24, 0.25);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --font-mark: "Syne", "Nunito", sans-serif;
  --font-hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pink-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 1rem/1 var(--font-body);
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--pink-deep); border-color: var(--pink-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.link-btn { font-weight: 700; text-decoration: none; }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; color: var(--ink); }
.wordmark { height: 60px; width: auto; }
.wordmark .brush { fill: var(--pink); opacity: .85; }
.wordmark .wm-big { font: 700 31px var(--font-mark); fill: var(--ink); letter-spacing: 1px; }
.wordmark .wm-small { font: 700 20px var(--font-mark); fill: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 3px; border-radius: 3px; background: var(--pink); transition: right .2s ease; }
.site-nav a:not(.btn):hover::after { right: 0; }
.cart-count[hidden] { display: none; }
.cart-count { background: var(--pink); color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .8rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-soft);
}
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.status-pill.is-open::before { background: #3fa86b; box-shadow: 0 0 0 4px rgba(63,168,107,.18); }
.status-pill.is-soon::before { background: var(--pink-deep); }
.hero h1 em { font-style: italic; color: var(--pink-deep); }
.hero h1 .amp { font-family: var(--font-hand); color: var(--brown); font-size: 1.1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-icons { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 8px 0 0; color: var(--ink-soft); font-weight: 700; font-size: .92rem; }
.hero-icons li { display: flex; align-items: center; gap: 8px; }
.hero-icons svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-icons .heart { fill: var(--pink); stroke: var(--pink-deep); }

.hero-art { position: relative; min-height: 470px; }
.polaroid { position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px; box-shadow: var(--shadow); border-radius: 4px; width: 56%; transition: transform .3s ease; }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 2px; }
.polaroid figcaption { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 600 1.25rem var(--font-hand); color: var(--ink-soft); }
.polaroid.p1 { top: 0; left: 4%; transform: rotate(-6deg); z-index: 2; }
.polaroid.p2 { top: 14%; right: 0; transform: rotate(5deg); z-index: 1; }
.polaroid.p3 { bottom: 0; left: 24%; width: 46%; transform: rotate(-2deg); z-index: 3; }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 5; }
.badge { position: absolute; width: 128px; height: 128px; border-radius: 50%; right: 4%; bottom: 4%; z-index: 4; border: 5px solid #fff; box-shadow: var(--shadow); object-fit: cover; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(3deg); } }

/* Ticker */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; padding: 14px 0; font: 600 1.15rem var(--font-head); font-style: italic; }
.ticker-track { display: flex; gap: 28px; width: max-content; animation: scroll 38s linear infinite; }
.ticker-track span:nth-child(even) { color: var(--pink); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 88px 0; }
.section-pink { background: var(--pink-soft); }
.section-cream { background: var(--cream-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p:last-child { color: var(--ink-soft); }
.eyebrow { font: 600 1.45rem var(--font-hand); color: var(--pink-deep); margin: 0 0 4px; }
.note { color: var(--ink-soft); font-size: .95rem; }
.fine { color: var(--ink-soft); font-size: .85rem; }

/* Menu */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 30px; }
.menu-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.menu-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.menu-card-body { padding: 22px 22px 14px; }
.menu-card h3 { margin-bottom: 10px; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.menu-item:first-child { border-top: 0; }
.menu-item .name { font-weight: 800; display: block; line-height: 1.3; }
.menu-item .detail { font-size: .85rem; color: var(--ink-soft); }
.menu-item .price { font: 600 1.1rem var(--font-head); color: var(--brown); }
.add-btn { border: 2px solid var(--ink); background: transparent; border-radius: 999px; font: 800 .85rem var(--font-body); padding: 7px 13px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.add-btn:hover { background: var(--ink); color: #fff; }
.add-btn.added { background: var(--pink); border-color: var(--pink); color: var(--ink); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-copy { order: 0; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 9/14; object-fit: cover; width: 100%; }
.split-media .offset { margin-top: 48px; }
.split-media.single { grid-template-columns: 1fr; max-width: 420px; justify-self: center; }
.split-media.single img { aspect-ratio: 4/5; object-position: center 60%; }
.hours { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.hours li { display: flex; justify-content: space-between; background: var(--paper); border-radius: 12px; padding: 14px 18px; font-weight: 700; border: 1px solid var(--line); }
.hours li.today { border-color: var(--pink-deep); box-shadow: 0 0 0 3px rgba(217,102,126,.15); }
.hours li .tag { font-size: .75rem; background: var(--pink); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }
.signature { font: 600 1.8rem var(--font-hand); color: var(--brown); }

/* Cards & forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font: 600 1.2rem var(--font-head); margin-bottom: 8px; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 14px; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  font: 400 1rem var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink-deep); box-shadow: 0 0 0 4px rgba(217,102,126,.15); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #b3261e; font-weight: 700; font-size: .92rem; }
.form-success { color: #2f7a4f; font-weight: 700; margin-top: 12px; }

.cart { position: sticky; top: 100px; }
.cart-list { list-style: none; margin: 0 0 12px; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-list .ci-name { font-weight: 800; line-height: 1.3; }
.cart-list .ci-detail { font-size: .82rem; color: var(--ink-soft); display: block; font-weight: 400; }
.cart-list .ci-price { font: 600 1.05rem var(--font-head); text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: none; border: 0; width: 32px; height: 30px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--pink-soft); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.remove { background: none; border: 0; color: var(--ink-soft); font-size: .8rem; text-decoration: underline; cursor: pointer; justify-self: end; }
.cart-empty { color: var(--ink-soft); }
.cart-totals { margin: 6px 0 18px; }
.cart-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-totals dt { font-weight: 700; }
.cart-totals dd { margin: 0; font: 600 1.15rem var(--font-head); }
.cart-totals .deposit { background: var(--pink-soft); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.confirm { text-align: center; max-width: 620px; margin: 0 auto; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.gallery a { display: block; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4/5; background: var(--cream-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font: 600 1.15rem var(--font-head); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 800; color: var(--pink-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.contact-list li > span:first-child { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.contact-list a, .contact-list li > span:last-child { font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 48px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pink); }
.footer-name { font: 600 1.5rem var(--font-head); margin-bottom: 4px; }
.site-footer p { margin: 0 0 2px; }
.site-footer .fine { color: #c9b9ad; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); transition: transform .3s ease; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 980px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .hero-grid, .split, .order-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; max-width: 460px; width: 100%; margin: 0 auto; }
  .split.reverse .split-media { order: -1; }
  .cart { position: static; order: -1; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 22px 18px; }
  .hero-art { min-height: 320px; }
  .badge { width: 96px; height: 96px; }
  .wordmark { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
