:root {
  --bg: #f5efe4;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-strong: #fffaf2;
  --ink: #1f140d;
  --muted: #6b5443;
  --accent: #c85d2f;
  --accent-deep: #8f3412;
  --line: rgba(31, 20, 13, 0.12);
  --shadow: 0 22px 60px rgba(69, 39, 21, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(200, 93, 47, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(88, 56, 37, 0.16), transparent 30%),
    linear-gradient(180deg, #f2eadc 0%, var(--bg) 100%);
}

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

.hero {
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 244, 226, 0.82));
  border: 1px solid rgba(200, 93, 47, 0.18);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-meta span,
.status-banner,
.tag-grid span {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.hero-meta span {
  padding: 10px 14px;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(31, 20, 13, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.filters-panel {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.filters-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.section-panel h2,
.recipe-details dt {
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
}

.actions,
.recipe-links,
.pagination {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.primary-button,
.ghost-button {
  appearance: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff9f1;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.section-panel {
  margin-top: 18px;
  padding: 18px;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  padding: 8px 12px;
  color: var(--muted);
}

.results-column {
  min-width: 0;
}

.status-banner {
  display: inline-flex;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--muted);
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.recipe-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(31, 20, 13, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  animation: rise-in 260ms ease;
}

.recipe-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(200, 93, 47, 0.18), rgba(143, 52, 18, 0.08));
}

.recipe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.92);
  color: var(--accent-deep);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.recipe-body {
  padding: 18px;
}

.recipe-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.recipe-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.02;
}

.recipe-restaurant {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  font-weight: 700;
}

.recipe-instagram {
  color: var(--muted);
  white-space: nowrap;
}

.recipe-description {
  color: var(--muted);
  line-height: 1.55;
}

.recipe-details {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.recipe-details dt {
  font-size: 0.82rem;
  color: var(--accent-deep);
  text-transform: uppercase;
}

.recipe-details dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.pagination {
  justify-content: center;
  margin-top: 18px;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .hero,
  .filters-panel,
  .recipe-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}