/* Luigi's Pizza — mobile menu
   Brand: fire-engine red, black, warm paper. Typographic, photo-optional. */

:root {
  --red: #D0202E;
  --red-dark: #A5121E;
  --ink: #17130F;
  --ink-soft: #4A4038;
  --paper: #FBF7F0;
  --paper-2: #F3ECE1;
  --rule: #E0D5C5;
  --black: #121010;
  --gold: #C89B3C;

  --fs: 1.0625rem;
  --maxw: 60rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23,19,15,.06), 0 8px 24px -12px rgba(23,19,15,.18);

  --font-script: 'Kaushan Script', 'Brush Script MT', cursive;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-size="lg"] { --fs: 1.25rem; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(208,32,46,.045), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(200,155,60,.05), transparent 38%);
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--black);
  color: var(--paper);
  text-align: center;
  padding: 2.5rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.masthead::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--red) 0 22px, #fff 22px 44px);
  opacity: .9;
}

.crest { display: inline-flex; flex-direction: column; line-height: .82; margin-bottom: .85rem; }
.crest-script {
  font-family: var(--font-script);
  font-size: 2.9rem;
  color: var(--red);
  text-shadow: 2px 2px 0 rgba(255,255,255,.92);
  transform: rotate(-3deg);
}
.crest-sub {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: #fff;
  align-self: flex-end;
  margin-top: -.25rem; margin-right: .3rem;
  transform: rotate(-3deg);
}
.crest.small .crest-script { font-size: 2rem; }
.crest.small .crest-sub { font-size: 1.05rem; }

.est {
  margin: 0 0 1.1rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(251,247,240,.62); font-weight: 600;
}
.masthead h1 {
  margin: 0; font-size: 1.05rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
}
.masthead-note {
  margin: .6rem 0 1.4rem; font-size: .875rem; color: rgba(251,247,240,.72);
}

.masthead-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .7rem 1.15rem;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem;
  border: 1.5px solid rgba(251,247,240,.28); color: var(--paper);
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: rgba(251,247,240,.1); border-color: rgba(251,247,240,.5); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ---------- Toolbar ---------- */

.toolbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,247,240,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0 0;
}

.search-row {
  display: flex; gap: .5rem; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 1rem;
}

.search {
  flex: 1; display: flex; align-items: center; gap: .55rem;
  background: #fff; border: 1.5px solid var(--rule);
  border-radius: 999px; padding: .55rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,32,46,.12); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.search input {
  flex: 1; border: 0; outline: 0; background: none;
  font: inherit; font-size: .95rem; color: var(--ink); min-width: 0;
}
.clear {
  border: 0; background: var(--paper-2); color: var(--ink-soft);
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0;
}

/* Grid centres the pair as one optical unit; the inner span keeps the two
   letters sharing a baseline. Aligning on baseline alone left the group
   sitting low in the button. */
.text-size {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 42px; padding: 0;
  border: 1.5px solid var(--rule); background: #fff; border-radius: 12px;
  font: inherit; font-weight: 800; color: var(--ink); cursor: pointer;
  line-height: 1;
}
.text-size .ts-inner { display: flex; align-items: baseline; gap: 1px; }
.text-size .ts-small { font-size: .78rem; }
.text-size .ts-big { font-size: 1.15rem; }
html[data-size="lg"] .text-size { background: var(--ink); color: #fff; border-color: var(--ink); }

.filters {
  display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
  max-width: var(--maxw); margin: .6rem auto 0; padding: 0 1rem .1rem;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; padding: .34rem .8rem; border-radius: 999px;
  border: 1.5px solid var(--rule); background: #fff;
  font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; white-space: nowrap;
}
.filters button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

.jump {
  display: flex; gap: .1rem; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; scroll-behavior: smooth;
  max-width: var(--maxw); margin: .85rem auto 0; padding: 0 1rem;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; padding: .55rem .7rem .7rem; font-size: .8rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  border-bottom: 2.5px solid transparent;
}
.jump a.is-active { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Menu body ---------- */

main { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1rem 3rem; }

.menu-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.1rem); color: var(--red);
  margin: 2.5rem 0 .2rem; text-align: center;
  transform: rotate(-1.2deg);
}
.menu-title:first-child { margin-top: .5rem; }
.menu-note {
  text-align: center; font-size: .84rem; color: var(--ink-soft);
  margin: 0 0 1.5rem; font-style: italic;
}

.cat { margin: 0 0 2.75rem; scroll-margin-top: 8.5rem; }

.cat-head {
  display: flex; align-items: baseline; gap: .75rem;
  margin: 0 0 .3rem;
}
.cat-head h3 {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 3.4vw, 2.2rem); font-weight: 400; color: var(--ink);
  margin: 0; white-space: nowrap;
}
.cat-head::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
.cat-note {
  font-size: .82em; color: var(--ink-soft); margin: 0 0 1rem; font-style: italic;
}

.item {
  padding: .9rem 0;
  border-bottom: 1px dashed var(--rule);
}
.item:last-child { border-bottom: 0; }

.item-head { display: flex; align-items: baseline; gap: .5rem; }
.item-name {
  font-weight: 700; font-size: 1em; letter-spacing: .01em;
  text-transform: uppercase; margin: 0; flex: none; max-width: 72%;
}
.dots { flex: 1; border-bottom: 1.5px dotted var(--rule); transform: translateY(-3px); min-width: 12px; }
.price { font-weight: 700; font-size: 1.02em; color: var(--red); flex: none; font-variant-numeric: tabular-nums; }

.item-desc { margin: .3rem 0 0; font-size: .9em; color: var(--ink-soft); line-height: 1.45; }

.sizes { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.size {
  font-size: .78em; font-weight: 600; padding: .18rem .5rem;
  background: var(--paper-2); border-radius: 6px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.size b { color: var(--red); font-weight: 700; }

.addons { margin: .4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.addons li { font-size: .8em; color: var(--ink-soft); }
.addons b { color: var(--ink); font-weight: 600; }

.badges { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.badge {
  font-size: .68em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 5px;
}
.badge-featured { background: var(--red); color: #fff; }
.badge-vegetarian { background: #E4F0E2; color: #2F6B2A; }
.badge-spicy { background: #FBE6DC; color: #A8410F; }
.badge-local { background: #F5EBD4; color: #806019; }
.badge-custom { background: var(--ink); color: #fff; }

.wine-origin { font-size: .78em; color: var(--ink-soft); font-style: italic; }
.wine-prices { display: flex; gap: .5rem; flex: none; font-variant-numeric: tabular-nums; }
.wine-prices span { font-size: .8em; color: var(--ink-soft); }
.wine-prices b { color: var(--red); font-size: .95em; }

.ask-price {
  margin: 0 0 1rem; font-size: .84em; font-style: italic; color: var(--ink-soft);
}

.toppings {
  background: var(--paper-2); border-radius: var(--radius);
  padding: .9rem 1rem; margin-top: .9rem;
}
.toppings h4 {
  margin: 0 0 .45rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.toppings p { margin: 0; font-size: .85em; line-height: 1.6; }
.toppings .tprice { margin-top: .5rem; font-size: .8em; color: var(--ink-soft); }

.no-results { text-align: center; color: var(--ink-soft); padding: 3rem 1rem; }
.no-results button {
  background: none; border: 0; color: var(--red); font: inherit;
  font-weight: 600; text-decoration: underline; cursor: pointer;
}

mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 .1em; }

/* ---------- Footer ---------- */

.foot {
  background: var(--black); color: rgba(251,247,240,.72);
  text-align: center; padding: 3rem 1.25rem 3.25rem;
}
.foot address { font-style: normal; margin: .5rem 0 1rem; line-height: 1.6; }
.foot-links { display: flex; gap: 1.25rem; justify-content: center; margin: 0 0 1.5rem; }
.foot-links a { color: var(--paper); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(251,247,240,.3); }
.disclaimer { font-size: .72rem; line-height: 1.5; opacity: .55; max-width: 32rem; margin: 0 auto 1rem; }
.updated { font-size: .72rem; opacity: .45; margin: 0; }

@media (min-width: 40rem) {
  .cat.two-col .item-list { columns: 2; column-gap: 3rem; }
  .cat.two-col .item { break-inside: avoid; }
  .masthead { padding-top: 3rem; }
  .crest-script { font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- logo crest (replaces the type-only lockup) ---------- */
.crest-link { display: inline-block; }
.crest-img {
  width: clamp(160px, 34vw, 240px); height: auto; margin: 0 auto 1.1rem;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.5));
}
.crest-img.small { width: clamp(120px, 22vw, 160px); margin-bottom: 1rem; }

/* ---------- menu switcher ----------
   A photo disc per menu, with the name beneath. Reads faster than three
   text pills and gives the top of the page some appetite appeal. */
.menu-switch {
  display: flex; gap: clamp(.6rem, 3.5vw, 2.25rem); justify-content: center;
  overscroll-behavior-x: contain;
  max-width: var(--maxw); margin: 0 auto 1.1rem; padding: 0 1rem;
}
.menu-switch button {
  flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: none; border: 0; padding: .25rem; cursor: pointer;
  font: inherit; color: var(--ink-soft); font-weight: 700;
  font-size: .88em; letter-spacing: .01em; line-height: 1.2;
  transition: color .2s;
}
.ms-disc {
  display: block;
  width: clamp(84px, 25vw, 126px); aspect-ratio: 1; border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  border: 3px solid transparent;
  box-shadow: 0 2px 10px -4px rgba(23,19,15,.5);
  transition: border-color .2s, transform .2s, box-shadow .2s, filter .2s;
  filter: saturate(.8) brightness(.9);
}
.ms-label { display: block; text-align: center; }

.menu-switch button:hover .ms-disc { transform: translateY(-2px); filter: none; }
.menu-switch button[aria-selected="true"] { color: var(--red); }
.menu-switch button[aria-selected="true"] .ms-disc {
  border-color: var(--red); filter: none;
  box-shadow: 0 4px 16px -5px rgba(208,32,46,.65);
}
.menu-switch button:focus-visible .ms-disc { outline: 2px solid var(--ink); outline-offset: 3px; }
.menu-switch.is-muted button { opacity: .45; }

@media (prefers-reduced-motion: reduce) {
  .ms-disc { transition: none; }
  .menu-switch button:hover .ms-disc { transform: none; }
}

/* ---------- inline spicy marker ---------- */
.chili {
  width: 1em; height: 1em; vertical-align: -.14em;
  margin-left: .35em; flex: none;
}

/* ---------- inline dietary glyphs ---------- */
.leaf {
  width: .95em; height: .95em; vertical-align: -.11em;
  margin-left: .35em; flex: none; fill: #3F7C38;
}
.legend {
  display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap;
  margin: 0 0 1rem; font-size: .78rem; opacity: .75;
}
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.legend .chili, .legend .leaf { margin-left: 0; width: 1em; height: 1em; }

/* ---------- weekly specials ---------- */
.specials {
  background: linear-gradient(180deg, #FFFDF8, var(--paper));
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  margin: .25rem 0 2.25rem;
  box-shadow: 0 6px 22px -14px rgba(208,32,46,.6);
}
.specials-head {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .35rem;
}
.specials-head h2 {
  font-family: var(--font-script); font-weight: 400;
  font-size: 1.9rem; color: var(--red); margin: 0; line-height: 1.1;
}
.specials-date {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.specials-empty {
  margin: .35rem 0 .5rem; font-size: .92em; color: var(--ink-soft); font-style: italic;
}
.specials .item:last-child { border-bottom: 0; }

/* belt and braces: nothing should ever scroll the page sideways */
html, body { overflow-x: hidden; max-width: 100%; }


/* ---------- inline spicy marker ---------- */
.chili {
  width: 1em; height: 1em; vertical-align: -.14em;
  margin-left: .35em; flex: none;
}

/* ---------- inline dietary glyphs ---------- */
.leaf {
  width: .95em; height: .95em; vertical-align: -.11em;
  margin-left: .35em; flex: none; fill: #3F7C38;
}
.legend {
  display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap;
  margin: 0 0 1rem; font-size: .78rem; opacity: .75;
}
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.legend .chili, .legend .leaf { margin-left: 0; width: 1em; height: 1em; }

/* ---------- weekly specials ---------- */
.specials {
  background: linear-gradient(180deg, #FFFDF8, var(--paper));
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  margin: .25rem 0 2.25rem;
  box-shadow: 0 6px 22px -14px rgba(208,32,46,.6);
}
.specials-head {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .35rem;
}
.specials-head h2 {
  font-family: var(--font-script); font-weight: 400;
  font-size: 1.9rem; color: var(--red); margin: 0; line-height: 1.1;
}
.specials-date {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.specials-empty {
  margin: .35rem 0 .5rem; font-size: .92em; color: var(--ink-soft); font-style: italic;
}
.specials .item:last-child { border-bottom: 0; }

/* belt and braces: nothing should ever scroll the page sideways */
html, body { overflow-x: hidden; max-width: 100%; }

/* Site nav lives in nav.css — one definition, loaded by every page.
   Do not redefine it here again. */

/* shown when search had to fall back to near-misses */
.did-you-mean {
  margin: 0 0 1.25rem; padding: .7rem .9rem;
  background: #FFF6E5; border: 1px dashed var(--gold);
  border-radius: 10px; font-size: .88em; color: #7A5B12;
}
