:root {
  --bg: #faf8f4;
  --panel: #ffffff;
  --card: #ffffff;
  --accent: #d7b48a;
  --accent-2: #c7a074;
  --text: #2d2926;
  --muted: #7c736b;
  --border: #e6dfd5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    'Helvetica Neue',
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(199, 160, 116, 0.08),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 10%,
      rgba(154, 166, 178, 0.08),
      transparent 24%
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  opacity: 0.9;
}

header {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.01em;
}

.layout {
  width: min(1200px, 96%);
  margin: 0 auto 48px auto;
}

.shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 32px 16px;
}

.hero {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  box-shadow: 0 14px 28px rgba(47, 42, 38, 0.06);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(47, 42, 38, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f1e7;
  color: #2f2a27;
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 42, 38, 0.05);
  transition:
    transform 0.05s ease,
    box-shadow 0.1s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(47, 42, 38, 0.08);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}

.btn-primary:hover {
  background: #b58a5e;
}

.btn-secondary {
  background: #ffffff;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.btn-secondary:hover {
  background: rgba(199, 160, 116, 0.1);
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
}

.pill {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fffdf8;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 30px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
}

h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  margin-top: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

p.lead {
  margin: 0 0 24px 0;
  color: var(--muted);
}

p.muted,
.muted {
  color: var(--muted);
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fffdf8;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(199, 160, 116, 0.18);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(199, 160, 116, 0.35);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdf8;
  min-height: 50px;
}

.tag-checkbox {
  margin: 0;
  cursor: pointer;
}

.tag-checkbox input[type='checkbox'] {
  display: none;
}

.tag-checkbox input[type='checkbox']:checked + .tag {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.tag-checkbox .tag {
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

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

.card img {
  width: 100%;
  border-radius: 12px;
  height: 180px;
  object-fit: cover;
  background: #f3eee4;
}

.recipe-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.recipe-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.error {
  color: #c0564d;
}
