:root {
  color-scheme: light;
  --paper: #faf3e6;
  --clay: #882f22;
  --ink: #261d19;
  --herb: #415944;
  --cream: #fffdf7;
  --muted: #65534a;
  --rule: #ddcbb9;
  font: 100%/1.55 Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--clay); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}
.header-inner {
  max-width: 64rem;
  margin: auto;
  padding: .95rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  font: 1.85rem/1 "Instrument Serif", Georgia, serif;
  color: var(--clay);
  text-decoration: none;
}
.wordmark img { width: 2rem; height: 2rem; border-radius: .4rem; }
.site-nav a { font-size: .92rem; font-weight: 650; }

main {
  max-width: 54rem;
  margin: auto;
  padding: clamp(1.6rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}
h1, h2 {
  font-family: "Instrument Serif", Georgia, "Songti SC", serif;
  line-height: 1.13;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2rem, 6vw, 3.8rem); margin: .25rem 0 .65rem; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin: 0 0 .75rem; }
p { margin: .5rem 0; }
.muted, .translation { color: var(--muted); }
.status { color: var(--muted); font-size: .9rem; }
.status:empty { display: none; }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; }
.source {
  color: var(--clay);
  background: #f4e2d6;
  border-radius: 999px;
  padding: .23rem .65rem;
  font-size: .82rem;
  font-weight: 650;
}
.source.restaurant { background: #e8eee4; color: var(--herb); }

.search-panel, .menu-panel, .table-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  margin-top: clamp(1.2rem, 4vw, 2.5rem);
}
label { display: block; font-weight: 650; margin-bottom: .4rem; }
.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
input, button, .button { font: inherit; }
input {
  flex: 1 1 13rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: .65rem .8rem;
  border: 1px solid #9c8678;
  border-radius: .55rem;
  background: var(--cream);
  color: var(--ink);
}
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .6rem .95rem;
  border: 1px solid var(--clay);
  border-radius: .55rem;
  background: var(--clay);
  color: var(--cream);
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
button[hidden] { display: none; }
button:disabled { opacity: .65; cursor: wait; }
button.secondary { color: var(--clay); background: var(--cream); }
.location-action { margin-top: 1rem; }
.results, .dishes { margin: 0; padding: 0; list-style: none; }
.results li, .dishes li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.results li:last-child, .dishes li:last-child { border-bottom: 0; }
.results a { font-weight: 650; overflow-wrap: anywhere; }
.results:not(:empty) { margin-top: 1rem; }
.menu-header { border-bottom: 2px solid var(--clay); padding-bottom: 1.25rem; }
.dishes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem 1.25rem;
  align-items: baseline;
}
.dish-name, .translation { overflow-wrap: anywhere; }
.translation { margin-top: .25rem; }
.price { color: var(--clay); font-weight: 650; font-variant-numeric: tabular-nums; text-align: end; }
.menu-actions { margin-top: 1.3rem; }
.table-card { text-align: center; margin-inline: auto; max-width: 32rem; }
.table-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.15rem auto;
  image-rendering: pixelated;
}
.url { overflow-wrap: anywhere; }

@media (max-width: 21rem) {
  .dishes li { column-gap: .7rem; }
  .search-controls button { flex-grow: 1; }
}
@media print {
  :root { color: #000; background: #fff; }
  .site-header, .actions { display: none; }
  main { padding: 0; }
  .table-card { border: 0; background: #fff; }
  .table-card img { width: 55mm; }
}
