* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #2d251f 0%, #3a322a 100%);
  color: #e8dcc8;
  font-family: 'Georgia', 'Garamond', serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 2px solid #6b5344;
}

header h1 {
  font-size: 3.2em;
  color: #d4a373;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
  font-size: 1.4em;
  color: #b8956a;
  font-weight: normal;
  margin: 0 0 20px 0;
  font-style: italic;
  letter-spacing: 0.02em;
}

.back-link {
  margin-top: 20px;
}

.back-link a {
  color: #d4a373;
  text-decoration: none;
  font-size: 1.05em;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.back-link a:hover {
  color: #e8dcc8;
  border-bottom: 1px solid #e8dcc8;
}

.search-bar {
  margin-bottom: 40px;
  position: relative;
}

.search-bar input[type="text"] {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1em;
  background: rgba(60, 52, 44, 0.8);
  color: #e8dcc8;
  border: 2px solid #6b5344;
  border-radius: 8px;
  font-family: 'Georgia', serif;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.search-bar input[type="text"]:focus {
  border-color: #d4a373;
  background: rgba(70, 60, 50, 0.95);
  box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25);
}

.search-bar input[type="text"]::placeholder {
  color: #8b7355;
}

#recipes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.recipe-card {
  background: #3a322a;
  border: 1px solid #6b5344;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(212, 163, 115, 0.2);
  border-color: #d4a373;
}

.recipe-card a {
  display: block;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.recipe-card h3 {
  font-size: 1.8em;
  color: #d4a373;
  margin: 0 0 12px 0;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.recipe-card .summary {
  color: #c4b39a;
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.recipe-card .tag {
  display: inline-block;
  background: linear-gradient(135deg, #6b5344 0%, #8b7355 100%);
  color: #e8dcc8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9em;
  font-family: 'Arial', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 600px) {
  header h1 {
    font-size: 2.2em;
  }

  header h2 {
    font-size: 1.1em;
  }

  .recipe-card a {
    padding: 20px;
  }

  .recipe-card h3 {
    font-size: 1.4em;
  }
}
