:root {
  --cream: #f6f0e8;
  --dark-brown: #6b4a35;
  --terracotta: #b85c4b;
  --beige: #d9c7b3;
  --espresso: #4a2f20;
  --gold: #c8a45d;
  --card-bg: #fffaf4;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  color: var(--dark-brown);
  font-family: var(--sans);
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(200, 164, 93, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, #efe3d5 100%);
}

.menu-page {
  width: 100%;
  min-height: 100svh;
  padding: 22px 14px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-header {
  text-align: center;
  margin-bottom: 24px;
}

.menu-logo {
  width: min(120px, 32vw);
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.menu-title {
  color: var(--espresso);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  width: min(100%, 520px);
  display: flex;
  gap: 8px;
  margin: -6px 0 18px;
  padding: 10px 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, rgba(246, 240, 232, 0.98), rgba(246, 240, 232, 0.9)),
    var(--cream);
}

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

.category-nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(107, 74, 53, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--espresso);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(74, 47, 32, 0.06);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.category-nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
}

.category-nav-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: rgba(217, 199, 179, 0.34);
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-nav-link:hover {
  border-color: rgba(184, 92, 75, 0.62);
  background: #fff7ef;
  color: var(--terracotta);
}

.category-nav-link:focus-visible {
  outline: 3px solid rgba(200, 164, 93, 0.68);
  outline-offset: 3px;
}

.category-nav-link.is-active {
  border-color: var(--terracotta);
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(184, 92, 75, 0.3);
}

.category-nav-link.is-active .category-nav-icon {
  color: var(--cream);
}

.category-nav-link.is-active .category-nav-icon svg {
  fill: rgba(255, 250, 244, 0.22);
}

.menu-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-section {
  scroll-margin-top: 86px;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid rgba(107, 74, 53, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(255, 250, 244, 0.88)),
    var(--card-bg);
  box-shadow: 0 8px 28px rgba(74, 47, 32, 0.08);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--beige);
  margin-bottom: 12px;
}

.section-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107, 74, 53, 0.2);
  border-radius: 8px;
  background: rgba(217, 199, 179, 0.3);
  color: var(--dark-brown);
}

.section-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: rgba(217, 199, 179, 0.34);
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-title {
  min-width: 0;
  color: var(--espresso);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.12;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(107, 74, 53, 0.24);
}

.menu-item:last-child {
  border-bottom: none;
}

.item-name {
  font-size: 0.95rem;
  color: var(--dark-brown);
  padding-right: 12px;
}

.item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terracotta);
  white-space: nowrap;
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid rgba(107, 74, 53, 0.26);
  border-radius: 8px;
  background: rgba(246, 240, 232, 0.76);
  color: var(--espresso);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: var(--terracotta);
  background: #fff7ef;
}

.back-link:focus-visible {
  outline: 3px solid rgba(200, 164, 93, 0.68);
  outline-offset: 3px;
}

.site-footer {
  width: 100%;
  max-width: 460px;
  margin-top: 32px;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-link {
  min-height: 64px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(107, 74, 53, 0.26);
  border-radius: 8px;
  background: rgba(246, 240, 232, 0.76);
  color: var(--espresso);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(107, 74, 53, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: var(--terracotta);
  background: #fff7ef;
}

.social-link:focus-visible {
  outline: 3px solid rgba(200, 164, 93, 0.68);
  outline-offset: 3px;
}

.social-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-brown);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.site-footer .footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 74, 53, 0.2);
  text-align: center;
}

.site-footer .footer p {
  color: var(--espresso);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer .footer .footer-tagline {
  margin-top: 2px;
}

.site-footer .footer small {
  display: block;
  margin-top: 4px;
  color: rgba(74, 47, 32, 0.72);
  font-size: 0.85rem;
}

.site-footer .footer .site-note {
  margin-top: 8px;
  color: rgba(74, 47, 32, 0.55);
  font-style: italic;
  font-size: 0.8rem;
}

@media (max-width: 430px) {
  .menu-page {
    padding: 18px 12px 32px;
  }

  .menu-logo {
    width: min(100px, 28vw);
  }

  .section-heading {
    gap: 8px;
  }

  .section-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .section-icon svg {
    width: 27px;
    height: 27px;
  }

  .item-name,
  .item-price {
    font-size: 0.9rem;
  }
}

@media (min-width: 560px) {
  .category-nav-link {
    min-height: 38px;
    padding: 8px 12px 8px 10px;
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
