:root {
  color: #20251f;
  background: #f5f3ed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

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

.page-header {
  max-width: 650px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #527254;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.page-header > p:last-child {
  margin: 20px 0 0;
  color: #646961;
  font-size: 1.1rem;
}

.ingredient-picker {
  position: relative;
}

.selected-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.selected-ingredients:empty {
  display: none;
}

.ingredient-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dce9da;
  color: #29472d;
}

.ingredient-chip a {
  color: inherit;
  font-size: 1.25rem;
  line-height: 0.8;
  text-decoration: none;
}

.autocomplete {
  position: relative;
}

.autocomplete input {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #d6d5ce;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}

.autocomplete input:focus {
  border-color: #6e8c6c;
  box-shadow: 0 0 0 3px rgb(110 140 108 / 15%);
}

.suggestions {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(31 38 29 / 14%);
}

.suggestion {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid #eeede8;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestion:hover {
  background: #eef4ec;
}

.suggestion small,
.results-heading span,
.recipe-meta {
  color: #747970;
}

.results {
  margin-top: 56px;
}

.results-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9d8d1;
}

.results-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.recipe-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #d9d8d1;
}

.recipe-row img {
  width: 132px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.recipe-title-line {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.recipe-title-line h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.recipe-title-line span {
  flex: none;
  color: #527254;
  font-weight: 700;
}

.recipe-meta,
.missing-ingredients {
  margin: 8px 0 0;
}

.missing-ingredients {
  color: #555b53;
  font-size: 0.92rem;
}

.empty-state {
  padding: 30px 0;
  border-top: 1px solid #d9d8d1;
  color: #747970;
}

@media (max-width: 600px) {
  .page-shell {
    padding: 44px 0;
  }

  .recipe-row {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }

  .recipe-row img {
    width: 88px;
    height: 88px;
  }

  .recipe-title-line {
    display: block;
  }

  .recipe-title-line span {
    display: inline-block;
    margin-top: 6px;
  }
}
