:root {
  --cream: #fbf1e3;
  --paper: #fffaf3;
  --wine: #6e1127;
  --wine-deep: #4b0a19;
  --rose: #f3bcc8;
  --blush: #fbe4e7;
  --pistachio: #72853f;
  --gold: #c5852f;
  --ink: #3b1920;
  --muted: #7a5a5f;
  --line: #e6cfc4;
  --radius: 22px;
  --display: "Fraunces", Georgia, serif;
  --script: "Lobster Two", "Brush Script MT", cursive;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; color: var(--wine-deep); text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--wine); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wine); color: #fff8f0;
  font: 700 1rem var(--body); letter-spacing: .01em;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--wine);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 -2px var(--wine-deep);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px var(--wine-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -2px var(--wine-deep); }
.btn--ghost { background: transparent; color: var(--wine); box-shadow: none; }
.btn--ghost:hover { background: var(--blush); box-shadow: none; }
.btn--small { padding: 8px 18px; font-size: .95rem; box-shadow: none; }
.btn--small:hover { box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }

.count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--rose); color: var(--wine-deep); border-radius: 999px; font-size: .8rem; font-weight: 800;
}
.count[hidden] { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 10px max(20px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px dashed var(--line);
}
.nav__brand { text-decoration: none; color: var(--wine); font-family: var(--script); font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.nav__d { font-size: 1.25em; }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav__links a:hover { color: var(--wine); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--cream); padding: 48px 0 72px; }
.blobs, .hearts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; animation: morph 16s ease-in-out infinite alternate, drift 22s ease-in-out infinite alternate; }
.blob--1 { width: 420px; height: 400px; left: -90px; top: -60px; background: var(--blush); }
.blob--2 { width: 520px; height: 480px; right: -140px; bottom: -160px; background: var(--blush); animation-delay: -6s, -9s; }
.blob--3 { width: 260px; height: 250px; left: 66%; top: -70px; background: #f7e6c9; opacity: .6; animation-delay: -11s, -4s; }
@keyframes morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
  50%  { border-radius: 42% 58% 38% 62% / 60% 42% 58% 40%; }
  100% { border-radius: 50% 50% 62% 38% / 40% 55% 45% 60%; }
}
@keyframes drift { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(40px, 30px) rotate(25deg); } }
.heart { position: absolute; bottom: -40px; color: var(--rose); opacity: 0; animation: floatUp linear infinite; }
.heart svg, .pop-heart svg { display: block; width: 100%; height: auto; }
@keyframes floatUp {
  0%   { transform: translate(0, 0) rotate(-10deg); opacity: 0; }
  12%  { opacity: .75; }
  50%  { transform: translate(var(--sway), -55vh) rotate(12deg); }
  88%  { opacity: .5; }
  100% { transform: translate(0, -105vh) rotate(-8deg); opacity: 0; }
}
.hero__inner {
  width: min(1120px, 100% - 40px); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero__logo { mix-blend-mode: multiply; filter: brightness(1.05); width: 100%; animation: rise .9s cubic-bezier(.2,.8,.2,1) both, bob 6s ease-in-out .9s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-1.200deg); } }
.hero__copy > * { animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) both; }
.hero__copy > :nth-child(1) { animation-delay: .15s; }
.hero__copy > :nth-child(2) { animation-delay: .3s; }
.hero__copy > :nth-child(3) { animation-delay: .45s; }
.hero__copy > :nth-child(4) { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pistachio); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; font-style: italic; }
.lede { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Scrolling ribbon ---------- */
.ribbon { background: var(--wine); color: #fff4ea; overflow: hidden; padding: 13px 0; }
.ribbon__track { display: flex; align-items: center; gap: 22px; width: max-content; animation: slide 60s linear infinite; font: italic 700 1.250rem var(--script); white-space: nowrap; }
.ribbon__track svg { width: 14px; flex: none; color: var(--rose); }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Flowing wave dividers ---------- */
.wave { position: relative; height: 64px; background: var(--from); overflow: hidden; }
.wave::before, .wave::after {
  content: ""; position: absolute; inset: 0; background: var(--to);
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 64' preserveAspectRatio='none'%3E%3Cpath d='M0 36 Q150 6 300 36 T600 36 V64 H0Z'/%3E%3C/svg%3E");
  -webkit-mask: var(--m) repeat-x 0 0 / var(--w) 100%; mask: var(--m) repeat-x 0 0 / var(--w) 100%;
  animation: flow linear infinite;
}
.wave::after  { --w: 600px; animation-duration: 12s; }
.wave::before { --w: 860px; opacity: .4; top: -12px; animation-duration: 19s; animation-direction: reverse; }
.wave--flip { transform: scaleY(-1); }
@keyframes flow { to { -webkit-mask-position: var(--w) 0; mask-position: var(--w) 0; } }

/* ---------- Scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
  .js .reveal.in { opacity: 1; animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s) backwards; }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head--left { text-align: left; margin: 0 0 20px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; }
.section-head p:not(.script) { margin-top: 12px; color: var(--muted); }
.script { font-family: var(--script); font-style: italic; font-size: 1.5rem; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.section-head--light h2 { color: #fff4ea; }
.section-head--light p:not(.script) { color: #ecc9cf; }
.section-head--light .script { color: var(--rose); }

/* ---------- Menu ---------- */
.menu { background: var(--paper); padding: 64px 0 80px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chips a {
  text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--wine);
  padding: 7px 16px; border-radius: 999px; background: var(--blush); border: 1.5px solid var(--rose);
}
.chips a { transition: transform .2s ease, background .2s ease; }
.chips a:hover { background: var(--rose); transform: translateY(-3px); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  position: relative; background: var(--cream); border-radius: var(--radius);
  padding: 30px 28px 22px; border: 2px solid var(--wine);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--rose);
  scroll-margin-top: 90px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); }
.card:nth-child(even):hover { transform: translateY(-6px) rotate(.4deg); }
.card__head svg { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.card:hover .card__head svg { transform: rotate(-12deg) scale(1.150); }
.card::before { /* stitched inner border, echoing the logo */
  content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--rose); border-radius: calc(var(--radius) - 8px); pointer-events: none;
}
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; position: relative; }
.card__head h3 { font-size: 1.55rem; font-weight: 600; }
.card__head svg { flex: none; color: var(--wine); }
.card__note { color: var(--muted); font-size: .95rem; margin-bottom: 8px; position: relative; }

.items { list-style: none; margin: 0; padding: 0; position: relative; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-top: 1px dashed var(--line); }
.item:first-child { border-top: 0; }
.item__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--wine-deep); }
.item__desc { font-size: .93rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.item__price { font-family: var(--body); font-weight: 800; font-size: .95rem; color: var(--gold); margin-left: 6px; white-space: nowrap; }
.item__size { display: inline-block; margin-top: 7px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: #55652b; background: #eef0df; border-radius: 999px; padding: 3px 11px; }
.item__opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.add {
  display: inline-flex; align-items: center; gap: 6px;
  font: 800 .88rem var(--body); color: var(--wine);
  background: #fff; border: 1.5px solid var(--wine); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, transform .15s;
}
.add:hover { background: var(--wine); color: #fff; }
.add:active { transform: scale(.95); }
.add.is-in { background: var(--wine); color: #fff; }
.add .qty { background: var(--rose); color: var(--wine-deep); border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .75rem; padding: 0 5px; }
.add .qty[hidden] { display: none; }
.add--opt::before { content: "+"; font-weight: 800; }

/* ---------- Savory ---------- */
.savory { background: var(--wine); padding: 64px 0 80px; }
.cards--savory { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.cards--savory .card { box-shadow: 0 0 0 5px var(--wine), 0 0 0 7px var(--rose); }
.cards--savory .items { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 36px; }
.cards--savory .item:nth-child(2) { border-top: 0; }

/* ---------- About ---------- */
.about__card { position: relative; max-width: 760px; margin-inline: auto; text-align: center; background: var(--paper); border-radius: 36px; padding: 56px 48px 44px; border: 1.500px dashed var(--rose); }
.about__card h2 { font-size: clamp(2rem, 4vw, 2.900rem); font-weight: 600; font-style: italic; margin-bottom: 18px; }
.about__card p:not(.script) { color: var(--muted); margin-top: 14px; font-size: 1.060rem; }
.about__heart { position: absolute; top: -26px; left: 50%; width: 52px; margin-left: -26px; color: var(--wine); animation: beat 2.400s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.180); } 24% { transform: scale(1); } 36% { transform: scale(1.120); } 48% { transform: scale(1); } }
.about__card .about__sign { font: italic 700 1.450rem var(--script); color: var(--wine) !important; margin-top: 26px !important; }
.about__sign span { white-space: nowrap; }

.hero--page { padding: 28px 0 80px; }
.page-logo { display: block; width: min(300px, 70%); margin: 0 auto 44px; }
.nav__links a[aria-current="page"] { color: var(--wine); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.info { padding: 64px 0 88px; }
.more { text-align: center; margin-top: 30px; }

/* ---------- How ---------- */
.how { padding: 72px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 30px 26px 26px; border: 1.5px dashed var(--rose); position: relative; }
.steps__n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--wine); color: #fff; font: italic 700 1.5rem var(--script); margin-bottom: 14px;
  box-shadow: 0 0 0 4px var(--blush);
}
.steps li { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.steps li:hover { transform: translateY(-6px); }
.steps li:hover .steps__n { animation: wiggle .6s ease; }
@keyframes wiggle { 30% { transform: rotate(-14deg) scale(1.100); } 60% { transform: rotate(10deg) scale(1.100); } }
.steps h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .98rem; }
.details__title { text-align: center; font-size: 1.700rem; font-weight: 600; font-style: italic; margin: 56px 0 22px; }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.detail { background: var(--blush); border-radius: 18px; padding: 22px 20px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.detail:hover { transform: translateY(-5px); }
.detail h3 { font-size: 1.080rem; font-weight: 600; margin-bottom: 6px; }
.detail p { font-size: .92rem; color: var(--ink); line-height: 1.500; }
.allergy { margin: 32px auto 0; max-width: 720px; text-align: center; font-size: .95rem; color: var(--ink); background: #eef0df; border-radius: 14px; padding: 14px 20px; border-left: 5px solid var(--pistachio); }

/* ---------- Order ---------- */
.order { padding: 8px 0 88px; }
.order__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; background: var(--paper); border: 2px solid var(--wine); border-radius: 28px; padding: 40px; box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px var(--rose); }
.order__empty { color: var(--muted); }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line__name { flex: 1; font-family: var(--display); font-weight: 600; color: var(--wine-deep); }
.line__price { font-weight: 800; color: var(--gold); font-size: .95rem; }
.order__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-weight: 700; color: var(--muted); }
.order__total[hidden] { display: none; }
.order__total strong { font: 600 1.600rem var(--display); color: var(--wine-deep); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--wine); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; color: var(--wine); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.stepper button:hover { background: var(--blush); }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
#clearOrder { margin-top: 14px; }

.order__form { display: grid; gap: 16px; align-content: start; }
.order__form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--wine-deep); }
.order__form input, .order__form textarea {
  font: 400 1rem var(--body); color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; width: 100%;
}
.order__form input:focus, .order__form textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--blush); }
.order__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.order__status { font-size: .92rem; color: var(--pistachio); font-weight: 700; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--wine-deep); color: #f3d9dd; text-align: center; }
.footer__inner { padding: 44px 20px 40px; }
.footer__brand { font-family: var(--script); font-weight: 700; font-size: 2rem; color: #fff4ea; line-height: 1.1; }
.footer__tag { font-family: var(--script); font-style: italic; font-size: 1.2rem; color: var(--rose); margin-top: 4px; }
.footer__contact { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.footer__contact:empty { display: none; }
.footer__contact a { color: #fff4ea; font-weight: 700; }
.footer__fine { margin-top: 22px; font-size: .82rem; opacity: .7; }

/* ---------- Floating order pill ---------- */
.tray {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wine); color: #fff; text-decoration: none; font-weight: 800; font-size: .95rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(75, 10, 25, .35);
  animation: rise .3s ease both;
}
.tray[hidden], .tray.is-away { display: none; }
.tray.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.1); } }

.pop-heart { position: fixed; z-index: 70; width: 20px; margin-left: -10px; color: var(--wine); pointer-events: none; animation: pop .85s ease-out forwards; }
@keyframes pop { from { transform: translateY(0) scale(.6); opacity: 1; } to { transform: translateY(-70px) scale(1.500) rotate(18deg); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 24px 0 52px; }
  .blob--3 { display: none; }
  .blob--1 { width: 300px; height: 290px; opacity: .7; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero__logo { max-width: 460px; margin-inline: auto; }
  .lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .cards, .steps, .order__grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
  .cards--savory .items { grid-template-columns: 1fr; }
  .cards--savory .item:nth-child(2) { border-top: 1px dashed var(--line); }
  .order__grid { padding: 28px 20px; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .hero__inner { width: calc(100% - 32px); }
  html { scroll-padding-top: 112px; }
  .nav { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px; }
  .nav .btn--small { margin-left: auto; }
  .nav__links { order: 3; width: 100%; margin-left: 0; gap: 0; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--line); }
  .nav__links a { font-size: .9rem; padding: 6px 2px; }
  .card { padding: 26px 20px 16px; }
  .wave { height: 44px; }
  .details { grid-template-columns: 1fr; }
  .about__card { padding: 48px 24px 36px; }
  .menu, .savory { padding: 48px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .heart { display: none; }
}
