:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #2d2a26;
  --muted: #8a8378;
  --accent: #c05621;
  --accent-soft: #fdf0e7;
  --border: #eae4da;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }

/* ---------- Index ---------- */
.site-header { padding: 40px 0 28px; }
.site-header h1 { font-size: 2rem; letter-spacing: -0.02em; }
.site-header p { color: var(--muted); margin-top: 4px; }

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

.recipe-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.recipe-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45, 42, 38, 0.08); }
.recipe-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.recipe-card .card-body { padding: 14px 16px 16px; }
.recipe-card h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.recipe-card .meta { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

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

/* ---------- Recept ---------- */
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { color: var(--accent); }

.hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); display: block; }

.recipe-header { padding: 24px 0 8px; }
.recipe-header h1 { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.2; }
.recipe-header .description { color: var(--muted); margin-top: 8px; }

.facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 26px;
}
.fact {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

section h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.ingredients {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  list-style: none;
}
.ingredients li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.ingredients li:last-child { border-bottom: none; }

.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 12px 0;
}
.steps li::before {
  content: counter(step);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.source { margin-top: 36px; color: var(--muted); font-size: 0.85rem; }
.source a { color: var(--accent); }

footer { margin-top: 48px; color: var(--muted); font-size: 0.8rem; text-align: center; }
