:root {
  --cream: #fff8ee;
  --butter: #fde9c4;
  --golden: #e7a43a;
  --amber: #c9781d;
  --syrup: #8a4b14;
  --cocoa: #3b2414;
  --ink: #2b1a0e;
  --muted: #6b513c;
  --card: #ffffff;
  --berry: #b0304a;
  --leaf: #2f6b3a;
  --leaf-bg: #e3f2e3;
  --sage-bg: #eef5e6;
  --sage: #4b6b1e;
  --wheat-bg: #fbf0d9;
  --wheat: #7a5a12;
  --pumpkin-bg: #fde4d2;
  --pumpkin: #a6430d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(59, 36, 20, 0.08), 0 8px 24px rgba(59, 36, 20, 0.08);
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--syrup);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  line-height: 1.5;
  background:
    radial-gradient(circle at 1px 1px, rgba(201, 120, 29, 0.10) 1px, transparent 0) 0 0 / 22px 22px,
    var(--cream);
}

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.15;
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--cocoa);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: none; box-shadow: var(--focus); }

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(59, 36, 20, 0.92), rgba(138, 75, 20, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(255, 255, 255, 0.06) 26px 30px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.06) 26px 30px),
    var(--cocoa);
  color: var(--cream);
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem clamp(3.5rem, 9vw, 6rem);
  text-align: center;
  border-bottom-left-radius: 50% 2.5rem;
  border-bottom-right-radius: 50% 2.5rem;
}
.hero__inner { max-width: 760px; margin: 0 auto; }
.hero__eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--butter);
}
.hero__title { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.hero__tagline { margin: 0.9rem auto 0; font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 34ch; color: #fbe7cc; }

main { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.section-title { font-size: 1.6rem; color: var(--syrup); margin-bottom: 1rem; }

/* Featured */
.featured {
  margin-top: -2.5rem;
  position: relative;
  background: linear-gradient(135deg, #fff3e3, var(--pumpkin-bg));
  border: 2px solid #f4c39d;
  border-radius: calc(var(--radius) + 6px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.featured .section-title::before { content: "🍂 "; }
.featured__list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Controls */
.controls {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0.5rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.5rem;
  z-index: 5;
}
.search__label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--cocoa); }
.search__input {
  width: 100%;
  font: inherit;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 2px solid #e8d3b5;
  border-radius: 999px;
  background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a4b14' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem center;
  color: var(--ink);
}
.search__input:focus-visible { border-color: var(--syrup); }

.filters__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  min-height: 40px;
  border-radius: 999px;
  border: 2px solid #ecd6b6;
  background: #fffaf2;
  color: var(--cocoa);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.chip:hover { border-color: var(--golden); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--syrup); border-color: var(--syrup); color: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.status { color: var(--muted); font-size: 0.95rem; margin: 1rem 0 0; }

/* Menu */
.menu:focus { outline: none; }
.category { margin-top: 2.25rem; }
.category__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  color: var(--cocoa);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 3px dotted #e5c79c;
}
.category__icon {
  display: inline-grid;
  place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 10px;
  background: var(--butter);
  font-size: 1.2rem;
}

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--golden);
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(59, 36, 20, 0.1), 0 14px 30px rgba(59, 36, 20, 0.12); }
.card--seasonal { border-top-color: var(--pumpkin); }
.card--featured { padding: 1.5rem; border-top-width: 6px; }
.card--featured .card__name { font-size: 1.5rem; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__name { font-size: 1.2rem; color: var(--cocoa); }
.card__price {
  margin: 0;
  font-weight: 700;
  color: var(--syrup);
  background: var(--butter);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.card__desc { margin: 0; color: var(--muted); }
.card__meta { margin: auto 0 0; font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.badge--vegetarian { color: var(--sage); background: var(--sage-bg); }
.badge--vegetarian::before { content: "🥕"; }
.badge--vegan { color: var(--leaf); background: var(--leaf-bg); }
.badge--vegan::before { content: "🌱"; }
.badge--gf { color: var(--wheat); background: var(--wheat-bg); }
.badge--gf::before { content: "🌾"; }
.badge--seasonal { color: var(--pumpkin); background: var(--pumpkin-bg); }
.badge--seasonal::before { content: "🍂"; }

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--card);
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

.footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 2rem 1.25rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .controls { grid-template-columns: minmax(260px, 1fr) 2fr; align-items: end; }
  .legend { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .controls { position: static; }
  .featured { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover, .chip:hover { transform: none; }
}
