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

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #fdf6ec;
  color: #2c1a0e;
  line-height: 1.7;
}

header {
  background: #7a3b1e;
  color: #fdf6ec;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

header a.site-title {
  color: #f5d9b0;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

nav a {
  color: #f5d9b0;
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

nav a:hover { border-color: #f5d9b0; }

main {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; color: #5c2209; }
h2 { font-size: 1.35rem; margin: 1.8rem 0 0.6rem; color: #7a3b1e; }

.subtitle {
  color: #8a6040;
  font-style: italic;
  margin-bottom: 1.5rem;
}

p { margin-bottom: 1rem; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff8f0;
  border: 1px solid #e8d0b0;
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(122, 59, 30, 0.18);
  transform: translateY(-2px);
}

.card h3 { color: #5c2209; margin-bottom: 0.4rem; font-size: 1.2rem; }
.card .tag {
  display: inline-block;
  background: #f5d9b0;
  color: #7a3b1e;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
}
.card p { font-size: 0.92rem; color: #5a3a20; margin: 0; }

.recipe-meta {
  display: flex;
  gap: 1.5rem;
  background: #fff8f0;
  border: 1px solid #e8d0b0;
  border-radius: 6px;
  padding: 1rem 1.4rem;
  margin: 1.2rem 0 2rem;
  font-size: 0.9rem;
}

.recipe-meta span { color: #7a3b1e; font-weight: bold; }

ol, ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.4rem; }

.ingredient-list {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 500px) {
  .ingredient-list { columns: 1; }
  .recipe-meta { flex-direction: column; gap: 0.5rem; }
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #7a3b1e;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

footer {
  text-align: center;
  color: #a07850;
  font-size: 0.82rem;
  padding: 2rem 1rem;
  border-top: 1px solid #e8d0b0;
  margin-top: 3rem;
}
