/* Base layout */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
  margin: 0;
  padding: 20px;
}

/* Main container */
.container {
  max-width: 800px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Typography */
h1 {
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
  margin-top: 30px;
}

h3 {
  margin-top: 20px;
  color: #555;
}

/* Lists */
ul, ol {
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Ingredient styling */
.ingredients ul li::marker {
  color: #2a9d8f;
}

/* Steps styling */
.steps ol li {
  margin-bottom: 12px;
}

.steps ol li::marker {
  font-weight: bold;
  color: #e76f51;
}

/* Notes / tips */
.note {
  background: #f1f8ff;
  border-left: 4px solid #4a90e2;
  padding: 10px 15px;
  margin-top: 20px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
}

.recipe-image {
  width: 100%;
  height: auto;
  max-height: 400px;          /* prevents giant images on desktop */
  object-fit: cover;          /* keeps it nicely cropped if constrained */
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Mobile optimization */
@media (max-width: 600px) {
  .recipe-image {
    max-height: 220px;        /* smaller banner on phones */
    border-radius: 8px;
  }
}
