:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f4f0e8;
  color: #28251f;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

body > header,
main {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

body > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem 1rem;
  border-bottom: 1px solid #cfc6b5;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.05em;
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: #756d61;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

main {
  padding-block: 2rem 4rem;
}

label {
  display: grid;
  gap: 0.5rem;
}

label span {
  font-size: 0.85rem;
  font-weight: 700;
}

input,
button {
  min-height: 2.75rem;
  border: 1px solid #aaa08f;
  border-radius: 0.45rem;
  font: inherit;
}

input {
  width: 100%;
  padding-inline: 0.75rem;
  background: white;
}

button {
  padding-inline: 1rem;
  border-color: #9f3e24;
  background: #a9472c;
  color: white;
  cursor: pointer;
  font-weight: 750;
}

button:hover {
  background: #8e3520;
}

.search-panel {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #cfc6b5;
}

.date-heading {
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
}

.controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(14rem, 1fr) auto;
  align-items: end;
}

.search-field input {
  min-height: 3.25rem;
  padding-inline: 1rem;
  font-size: 1.05rem;
}

.date-form {
  display: flex;
  gap: 0.6rem;
  align-items: end;
}

.date-form label {
  min-width: 10rem;
}

.menu-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.menu-card {
  padding: 1.35rem;
  border: 1px solid #cfc6b5;
  border-radius: 0.75rem;
  background: #fffdf8;
  box-shadow: 0 0.4rem 1.5rem rgb(62 50 31 / 8%);
}

.menu-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.menu-card h2 {
  margin-bottom: 0.35rem;
}

.address {
  margin-bottom: 0.35rem;
  color: #756d61;
  font-size: 0.88rem;
}

.source-link {
  flex: none;
  color: #8e3520;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.menu-title {
  margin-bottom: 1rem;
  color: #756d61;
  font-style: italic;
}

.menu-items {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e4ddd0;
}

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

.menu-item p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
}

.price {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.empty-state {
  padding: 3rem 1.5rem;
  border: 1px dashed #aaa08f;
  border-radius: 0.75rem;
  text-align: center;
}

.muted {
  color: #756d61;
}

@media (max-width: 44rem) {
  body > header {
    display: block;
  }

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

  .date-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}
