:root {
  --ink: #242520;
  --charcoal: #33342f;
  --copper: #a87545;
  --copper-deep: #815732;
  --sage: #3f514b;
  --paper: #f7f5ef;
  --surface: #fffdfa;
  --line: #ddd4c6;
  --muted: #747066;
  --shadow: 0 18px 42px rgba(36, 37, 32, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.92), rgba(247, 245, 239, 0.96)),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-lockup {
  min-width: 0;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 238px;
  height: 118px;
  object-fit: contain;
  filter: saturate(0.9);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 0.98;
}

#tagline {
  margin: 9px 0 0;
  color: var(--copper-deep);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-badge {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 38px;
}

.menu-tools {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0 14px;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(14px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--copper-deep);
  box-shadow: 0 12px 26px rgba(36, 37, 32, 0.05);
}

.search-box span {
  font-size: 1.18rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #91897c;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 1px 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(255, 253, 250, 0.82);
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.category-tab.active {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

.quick-panel {
  margin: 2px 0 24px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(36, 37, 32, 0.05);
}

.panel-label {
  margin: 0 0 5px;
  color: var(--copper-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

#noticeText {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 600;
}

.staff-link {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--sage);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.menu-shell {
  display: block;
}

.menu-list {
  display: grid;
  gap: 26px;
}

.category-section {
  scroll-margin-top: 128px;
}

.section-heading {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.section-heading::before,
.section-heading::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.section-heading::before {
  width: 34px;
  background: var(--copper);
}

.section-heading::after {
  flex: 1;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.item-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 15px;
  box-shadow: 0 10px 24px rgba(36, 37, 32, 0.045);
}

.item-card.blue {
  border-color: #d4d7d1;
}

.item-card.has-media {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
}

.item-media {
  margin: 0;
  min-height: 142px;
  overflow: hidden;
  background: #eee7dd;
  border-right: 1px solid var(--line);
}

.item-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.item-content {
  min-width: 0;
  padding: 15px;
}

.item-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.item-name {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
}

.item-price {
  flex: 0 0 auto;
  color: var(--copper-deep);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 900;
}

.item-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.variant {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f1e7;
  color: var(--copper-deep);
  font-size: 0.8rem;
  font-weight: 900;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5ded3;
  border-radius: 6px;
  padding: 0 7px;
  color: var(--muted);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag.veg {
  color: var(--sage);
  border-color: rgba(63, 81, 75, 0.28);
}

.tag.spicy {
  color: var(--copper-deep);
  border-color: rgba(168, 117, 69, 0.28);
}

.empty-state {
  margin: 26px 0 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.restaurant-info {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.restaurant-info p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 600;
}

.info-links {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.info-links:empty {
  display: none;
}

.info-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
  padding: 20px 16px 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer a {
  display: inline-flex;
  margin: 0 0 20px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.qr-page {
  background: var(--paper);
}

.qr-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.qr-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.qr-header h1 {
  font-size: 2.2rem;
}

.print-button {
  min-height: 42px;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--charcoal);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qr-card {
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 12px 24px rgba(36, 37, 32, 0.05);
}

.qr-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.qr-card img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.qr-card p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 620px);
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 16px 0 18px;
  }

  .brand-lockup {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 13px;
  }

  .brand-logo {
    width: 128px;
    height: 78px;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  #tagline {
    font-size: 0.72rem;
    letter-spacing: 0;
    line-height: 1.45;
  }

  .table-badge {
    justify-self: start;
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  main {
    width: min(100% - 24px, 620px);
    padding-top: 14px;
  }

  .quick-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .restaurant-info {
    grid-template-columns: 1fr;
  }

  .info-links {
    justify-content: flex-start;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .item-card.has-media {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .item-media {
    min-height: 132px;
  }

  .item-content {
    padding: 13px;
  }

  .section-heading {
    font-size: 1.32rem;
  }

  .section-heading::before {
    width: 24px;
  }

  .qr-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .print-button,
  .site-footer,
  .site-header,
  .menu-tools,
  .quick-panel {
    display: none;
  }

  .qr-layout {
    width: 100%;
    padding: 0;
  }

  .qr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
