:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --paper-deep: #e9dfce;
  --ink: #1e1a16;
  --muted: #6f665c;
  --line: #cfc1ad;
  --sage: #4f624c;
  --terracotta: #9c4f2d;
  --card: #fffaf1;
  --shadow: 0 18px 42px rgba(40, 30, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ded6ca;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(145deg, #eee6d9 0%, #d8cec0 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0;
}

.menu-section {
  min-height: calc(100vh - 56px);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(49, 40, 31, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12)),
    var(--paper);
  box-shadow: var(--shadow);
}

.menu-heading {
  display: grid;
  justify-items: center;
  gap: 18px 28px;
  margin-bottom: 24px;
  padding: 22px clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--sage);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.95rem, 2.6vw, 1.06rem);
  line-height: 1.5;
}

.tips-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 4px;
  padding: 0 18px;
  border: 1px solid var(--sage);
  border-radius: 6px;
  color: var(--sage);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.tips-link:hover,
.tips-link:focus-visible {
  color: #fffaf1;
  background: var(--sage);
  outline: none;
}

.category-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.52);
  scrollbar-width: thin;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.category-tab:hover,
.category-tab:focus-visible {
  border-color: var(--sage);
  outline: none;
}

.category-tab[aria-pressed="true"] {
  color: #fffaf1;
  background: var(--sage);
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.dish-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(40, 30, 20, 0.08);
}

.dish-photo-wrap {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 10px;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
}

.dish-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 6px;
}

.dish-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dish-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dish-title {
  margin: 0;
  font-size: clamp(1.28rem, 1.6vw, 1.58rem);
  line-height: 1.12;
}

.dish-price {
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--terracotta);
  background: rgba(156, 79, 45, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.dish-description {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
}

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

.dish-details div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(207, 193, 173, 0.72);
}

.dish-details div:first-child,
.dish-details .nutrition-option {
  grid-column: 1 / -1;
}

.dish-details dt {
  color: var(--sage);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dish-details dd {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.nutrition-option dd {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 560px);
    padding: 10px 0;
  }

  .menu-section {
    min-height: calc(100vh - 20px);
    padding: 14px;
  }

  .menu-heading {
    margin-bottom: 14px;
    padding: 16px 12px;
  }

  .category-tabs {
    margin-bottom: 14px;
    padding: 6px;
  }

  .category-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .dish-card {
    display: flex;
  }

  .dish-photo-wrap,
  .dish-photo {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .dish-topline {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
