:root {
  color: #17201a;
  background:
    linear-gradient(135deg, rgba(100, 132, 83, 0.16), transparent 32%),
    linear-gradient(180deg, #f4f1e8 0%, #ecf2e8 58%, #f3eee4 100%);
  font-family: Georgia, 'Times New Roman', serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 10px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(23, 32, 26, 0.1);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.92);
  box-shadow: 0 10px 24px rgba(43, 58, 42, 0.12);
  backdrop-filter: blur(14px);
}

.eyebrow,
.filter-group p,
.search-box span {
  margin: 0;
  color: #627062;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 2px;
  font-size: 30px;
  line-height: 1;
}

.topbar output {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2f5d40;
  color: #fffaf0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.filters {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.8);
}

.search-box {
  display: grid;
  gap: 7px;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 32, 26, 0.14);
  border-radius: 8px;
  background: #fffef9;
  color: #17201a;
  outline: none;
}

.search-box input:focus {
  border-color: #2f5d40;
  box-shadow: 0 0 0 3px rgba(47, 93, 64, 0.14);
}

.filter-group {
  display: grid;
  gap: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scroll-row {
  max-height: 92px;
  overflow: auto;
  padding-right: 2px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid rgba(23, 32, 26, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  background: #fffef9;
  color: #304032;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.filter-chip.active {
  border-color: #2f5d40;
  background: #2f5d40;
  color: #fffaf0;
}

.list-panel {
  margin-top: 10px;
}

.recipe-list {
  display: grid;
  gap: 8px;
}

.recipe-card {
  display: grid;
  grid-template-columns: minmax(82px, 25%) minmax(0, 1fr);
  min-height: 122px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 26, 0.1);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow: 0 10px 20px rgba(43, 58, 42, 0.08);
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dfe7d8;
}

.recipe-body {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 10px 10px 9px;
}

.recipe-head {
  display: grid;
  gap: 6px;
}

.recipe-head h2 {
  font-size: 18px;
  line-height: 1.08;
}

.category-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #edf3e6;
  color: #2f5d40;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #4f5f52;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tags span {
  border-radius: 999px;
  padding: 3px 7px;
  background: #f0ebe0;
  color: #526050;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.empty-state {
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.8);
  color: #526050;
  font-family: Arial, sans-serif;
}

@media (min-width: 680px) {
  .app-shell {
    padding-top: 24px;
  }

  .recipe-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
