/* Lidia's Palace — plum and brass, after the logo. One loud thing (the marquee), everything else quiet. */
:root {
  --aubergine: #2b1528;
  --aubergine-2: #3a2034;
  --paper: #f4e7e1;
  --paper-2: #ead8d0;
  --ink: #3a2034;
  --ink-soft: #6c5266;
  --brass: #b08a3e;
  --brass-bright: #d8b467;
  --lilac: #cdb9cb;
  --danger: #9b2c3a;

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --measure: 68ch;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.page-title { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 0.4em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* --- header ------------------------------------------------------------- */
.site-header { background: var(--aubergine); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { font-family: var(--display); font-size: 1.6rem; text-decoration: none; color: var(--paper); white-space: nowrap; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--lilac); font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--paper); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.nav .btn { margin-left: 0.4rem; color: var(--aubergine); }
.nav .btn:hover, .nav .btn[aria-current='page'] { color: var(--aubergine); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--lilac); color: var(--paper); font: inherit; padding: 0.35rem 0.8rem; border-radius: var(--radius); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 4.5rem; flex-direction: column; align-items: flex-start;
         gap: 0; background: var(--aubergine); padding: 0.5rem var(--gutter) 1.25rem; z-index: 20; }
  .nav a { padding: 0.65rem 0; width: 100%; }
  .nav .btn { margin: 0.75rem 0 0; width: auto; }
  .site-header.open .nav { display: flex; }
  .site-header { position: relative; }
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; font: 500 1rem/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  padding: 0.9rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--brass);
  background: var(--brass); color: var(--aubergine); transition: background-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(176, 138, 62, 0.14); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-small { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); cursor: pointer; }

/* --- marquee hero (the one loud thing) ---------------------------------- */
.marquee { background: var(--aubergine); color: var(--paper); text-align: center; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(3rem, 8vw, 5.5rem); overflow: hidden; }
.bulbs { display: flex; justify-content: center; gap: clamp(0.7rem, 2.2vw, 1.4rem); margin: 0 auto; max-width: 64rem; }
.bulb { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #5a3a4f; flex: none; animation: bulb-on 0.45s ease-out forwards; animation-delay: calc(var(--i) * 70ms + 250ms); }
@keyframes bulb-on { to { background: var(--brass-bright); box-shadow: 0 0 0.35rem 0.1rem rgba(216, 180, 103, 0.75), 0 0 1.4rem rgba(216, 180, 103, 0.35); } }
.marquee-name { font-family: var(--display); font-weight: 500; font-size: clamp(3.4rem, 13vw, 10.5rem); line-height: 0.95; letter-spacing: -0.025em; margin: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(1rem, 2.5vw, 1.6rem); }
.marquee-tagline { color: var(--lilac); font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0 auto 2rem; }
.marquee-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3rem); }
@media (prefers-reduced-motion: reduce) {
  .bulb { animation: none; background: var(--brass-bright); box-shadow: 0 0 0.35rem 0.1rem rgba(216, 180, 103, 0.6); }
}

/* --- home sections ------------------------------------------------------ */
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band + .band { border-top: 1px solid var(--paper-2); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.band-head h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.band-head a { color: var(--ink-soft); }
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 4rem; }
.visit h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.hours { list-style: none; margin: 0; padding: 0; max-width: 24rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--paper-2); }
.hire { background: var(--aubergine-2); color: var(--paper); }
.hire .wrap { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hire h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.hire p { color: var(--lilac); margin: 0; }

/* --- events ------------------------------------------------------------- */
.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--paper-2); }
.event:first-child { border-top: 1px solid var(--paper-2); }
.event-date { text-align: center; line-height: 1; }
.event-date .weekday { font-size: 0.85rem; color: var(--ink-soft); }
.event-date .day { font-family: var(--display); font-size: 3.2rem; display: block; margin: 0.15rem 0; }
.event-date .month { font-size: 0.9rem; }
.event h3 { font-size: 1.6rem; margin: 0.2rem 0 0.35rem; }
.event .time { color: var(--ink-soft); margin: 0; }
.event .subtitle { margin: 0.4rem 0 0; }
.empty { color: var(--ink-soft); }

/* --- menu --------------------------------------------------------------- */
.menu-tools { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1.5rem 0 0.5rem; }
.menu-section { padding: 2.2rem 0 0.6rem; }
.menu-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.menu-section .in-house { font-family: var(--body); font-size: 0.95rem; color: var(--ink-soft); font-weight: 400; letter-spacing: 0; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0 3rem; margin-top: 0.8rem; }
.menu-item { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px dotted #cdb3ab; }
.menu-item-name { font-weight: 500; }
.menu-item-price { font-variant-numeric: tabular-nums; }
.menu-item-description { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.15rem; }
.order-item-controls { grid-column: 1 / -1; margin-top: 0.5rem; }
.order-add { font: 500 0.9rem/1 var(--body); padding: 0.5rem 0.95rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.order-add:hover { background: var(--ink); color: var(--paper); }
.menu-item-unavailable .menu-item-name, .menu-item-unavailable .menu-item-price { color: var(--ink-soft); text-decoration: line-through; }
.menu-item-soldout { font-size: 0.9rem; color: var(--danger); }

/* --- ordering ----------------------------------------------------------- */
.order-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .order-layout, .checkout-layout { grid-template-columns: 1fr; } }
.order-cart { position: sticky; top: 1.25rem; background: #fbf4f0; border: 1px solid var(--paper-2); border-top: 3px solid var(--brass); padding: 1.4rem; border-radius: var(--radius); }
.order-cart-title { font-size: 1.7rem; margin-bottom: 1rem; }
.cart-line { padding: 0.7rem 0; border-bottom: 1px solid var(--paper-2); }
.cart-line-info { display: flex; justify-content: space-between; gap: 1rem; }
.cart-line-sub { font-size: 0.88rem; color: var(--ink-soft); }
.cart-qty { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.cart-qty button { width: 2rem; height: 2rem; border: 1px solid var(--ink-soft); background: transparent; border-radius: var(--radius); font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.cart-empty { color: var(--ink-soft); }
.cart-subtotal-row, .cart-tax-row, .cart-total-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-variant-numeric: tabular-nums; }
.cart-subtotal-row { margin-top: 0.8rem; }
.cart-tax-row { color: var(--ink-soft); font-size: 0.95rem; }
.cart-total-row { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--ink); margin-top: 0.4rem; padding-top: 0.6rem; }
.order-submit { width: 100%; margin-top: 1.1rem; text-align: center; }
.pickup-note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.8rem; }

.checkout-form { display: grid; gap: 0.8rem; max-width: 34rem; }
.checkout-form h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
input, textarea, select {
  font: inherit; color: var(--ink); background: #fffaf7; width: 100%;
  border: 1px solid #c9b0a8; border-radius: var(--radius); padding: 0.75rem 0.85rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
label.field { display: grid; gap: 0.3rem; font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.3rem 0 0; }
fieldset label { display: flex; gap: 0.6rem; align-items: center; padding: 0.3rem 0; }
fieldset input { width: auto; }
.tip-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin: 0.2rem 0 0.6rem; }
@media (max-width: 520px) { .tip-options { grid-template-columns: repeat(3, 1fr); } }
fieldset label.tip-chip { position: relative; padding: 0; }
.tip-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tip-chip span {
  display: grid; place-items: center; width: 100%; min-height: 3.1rem; padding: 0.4rem 0.3rem; line-height: 1.2;
  border: 1px solid #c9b0a8; border-radius: var(--radius); background: #fffaf7; cursor: pointer; text-align: center;
}
.tip-chip small { display: block; font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tip-chip input:checked + span { border-color: var(--aubergine); background: var(--aubergine); color: var(--paper); }
.tip-chip input:checked + span small { color: var(--lilac); }
.tip-chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 1px; }
fieldset label.tip-custom { display: grid; padding: 0 0 0.5rem; }
fieldset label.tip-custom input { width: 100%; max-width: 10rem; }
.form-error { color: var(--danger); margin: 0.4rem 0 0; }
.form-note { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirmation { max-width: 38rem; padding: 2rem 0; }
.confirmation h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.confirmation .number { font-family: var(--display); font-size: 2.2rem; margin: 0.4rem 0 1rem; }

/* --- contact ------------------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-aside h2 { font-size: 1.6rem; margin: 0 0 0.6rem; }
.contact-aside section + section { margin-top: 2rem; }

/* --- floating cart, toast, customise modal (driven by src/scripts/cart.ts) --- */
.floating-cart {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30; display: flex; gap: 0.8rem; align-items: center;
  background: var(--aubergine); color: var(--paper); text-decoration: none; padding: 0.85rem 1.2rem;
  border-radius: var(--radius); border-bottom: 3px solid var(--brass); box-shadow: 0 8px 24px rgba(43, 21, 40, 0.3);
}
.cart-toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 1rem); opacity: 0; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: var(--radius); transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 40; }
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cz-overlay { position: fixed; inset: 0; background: rgba(43, 21, 40, 0.55); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.cz-modal { background: var(--paper); border-radius: var(--radius); width: min(30rem, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem; position: relative; }
.cz-close { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.cz-row { display: flex; justify-content: space-between; padding: 0.35rem 0; }
.cz-foot { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.cz-qty { display: flex; gap: 0.6rem; align-items: center; }
.cz-qty button { width: 2.2rem; height: 2.2rem; border: 1px solid var(--ink-soft); background: transparent; border-radius: var(--radius); cursor: pointer; }
.cz-foot .order-submit { margin: 0; }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--aubergine); color: var(--lilac); padding: 3rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-end; }
.site-footer .wordmark { font-size: 2rem; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: var(--lilac); }
.site-footer p { margin: 0.3rem 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The order panel is already on screen on these pages. */
body:has(.order-cart) .floating-cart { display: none !important; }

/* Long-form pages (privacy, SMS terms) */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin: 1.8rem 0 0.5rem; }
.prose p, .prose li { line-height: 1.6; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
