:root {
  --primary-color: #7a3b27;
  --secondary-color: #cba96e;
  --accent-color: #2f5243;
  --background-color: #120f0d;
  --surface-color: #f8f3eb;
  --text-color: #2c2b2a;
  --muted-text-color: #786f66;
  --border-color: rgba(203, 169, 110, 0.32);
  --ivory: #f5efe7;
  --warm-clay: #a45c3b;
  --shadow: 0 18px 45px rgba(32, 20, 14, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text-color);
  font-family: "Belleza", Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

body.viewer-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--secondary-color);
  color: #16100c;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(203, 169, 110, 0.24);
  background: rgba(18, 15, 13, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0.7rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--surface-color);
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 5.8rem;
  height: auto;
  object-fit: contain;
}

.brand span {
  max-width: 9rem;
  color: var(--secondary-color);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.welcome {
  margin: 0;
  color: rgba(248, 243, 235, 0.76);
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}

.header-copy {
  display: grid;
  gap: 0;
  margin-left: auto;
  text-align: right;
}

.header-menu-title {
  margin: 0;
  color: var(--secondary-color);
  font-family: "Belleza", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--secondary-color);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.controls {
  position: sticky;
  top: 5rem;
  z-index: 8;
  border-block: 1px solid var(--border-color);
  background: rgba(248, 243, 235, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(32, 20, 14, 0.08);
}

.search-field {
  display: grid;
  gap: 0.45rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0 0.65rem;
}

.search-field span {
  color: var(--primary-color);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(122, 59, 39, 0.22);
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--text-color);
  padding: 0 1rem;
  outline: none;
}

.search-field input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(203, 169, 110, 0.18);
}

.category-nav {
  display: flex;
  gap: 0.6rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1rem 0.85rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-nav button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.4rem 0.95rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-nav button:hover,
.category-nav button:focus-visible,
.category-nav button.is-active {
  background: var(--primary-color);
  color: var(--surface-color);
  transform: translateY(-1px);
}

.menu-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.menu-sections {
  display: grid;
  gap: 2.75rem;
}

.menu-section {
  scroll-margin-top: 14.5rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.7rem;
}

.section-title h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(1.55rem, 6vw, 2.4rem);
  font-weight: 400;
  text-transform: uppercase;
}

.section-title span {
  color: var(--muted-text-color);
  font-size: 0.92rem;
}

.item-grid {
  display: grid;
  gap: 1rem;
}

.menu-card {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  min-height: 8.6rem;
  overflow: hidden;
  border: 1px solid rgba(203, 169, 110, 0.22);
  border-radius: var(--radius);
  background: var(--surface-color);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(32, 20, 14, 0.22);
}

.item-art {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  border: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(122, 59, 39, 0.9), rgba(47, 82, 67, 0.9));
  color: rgba(248, 243, 235, 0.88);
  cursor: zoom-in;
  font-size: 2rem;
  padding: 0;
}

.item-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 280ms ease, filter 280ms ease;
}

.image-view-icon {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(248, 243, 235, 0.58);
  border-radius: 50%;
  background: rgba(18, 15, 13, 0.7);
  color: var(--surface-color);
  pointer-events: none;
}

.image-view-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 1.8;
}

.menu-card:hover .item-art img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.06);
}

.item-art.image-failed {
  display: grid;
  place-items: center;
}

.item-art.image-failed::after {
  content: attr(data-initial);
}

.item-content {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.item-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.item-topline h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.18;
  text-transform: uppercase;
}

.price {
  flex: 0 0 auto;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.badge {
  width: fit-content;
  border: 1px solid rgba(203, 169, 110, 0.42);
  border-radius: 999px;
  color: var(--accent-color);
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.description {
  margin: 0;
  color: var(--muted-text-color);
  font-size: 0.96rem;
}

.empty-state {
  margin: 2rem 0 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--surface-color);
  color: var(--muted-text-color);
  padding: 2rem;
  text-align: center;
}

.site-footer {
  display: grid;
  gap: 1.1rem;
  background: #090807;
  color: rgba(248, 243, 235, 0.72);
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.footer-pricing {
  display: grid;
  gap: 0.2rem;
  color: rgba(248, 243, 235, 0.56);
  font-size: 0.78rem;
}

.footer-allergy {
  color: #ead29c;
  font-size: 0.94rem;
}

.footer-brand {
  color: var(--secondary-color);
  font-family: "Belleza", serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.image-viewer[hidden] {
  display: none;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 7, 6, 0.82);
  cursor: zoom-out;
}

.viewer-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(88vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(203, 169, 110, 0.42);
  border-radius: var(--radius);
  background: #090807;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.viewer-panel img {
  display: block;
  width: 100%;
  max-height: calc(88vh - 6rem);
  object-fit: contain;
  background: #090807;
}

.viewer-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 1;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(248, 243, 235, 0.35);
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.72);
  color: var(--surface-color);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.viewer-close:focus-visible,
.item-art:focus-visible {
  outline: 3px solid rgba(203, 169, 110, 0.72);
  outline-offset: 3px;
}

.viewer-caption {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: #090807;
}

.viewer-caption h2 {
  color: var(--surface-color);
  font-size: clamp(1.3rem, 6vw, 2.4rem);
}

@media (min-width: 640px) {
  .brand img {
    width: 7rem;
  }

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

  .menu-card {
    grid-template-columns: 8rem 1fr;
  }
}

@media (min-width: 980px) {
  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand span {
    display: none;
  }

  .welcome {
    font-size: 0.72rem;
  }

  .controls {
    top: 5.25rem;
  }

  .menu-section {
    scroll-margin-top: 14.75rem;
  }

  .menu-card {
    grid-template-columns: 5.75rem 1fr;
  }

  .item-content {
    padding: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
