/* Base styles and variables */
@import url("https://fonts.googleapis.com/css2?family=Young+Serif&family=Outfit:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Figtree:wght@600&display=swap");

:root {
  --stone-100: hsl(30, 54%, 90%);
  --stone-150: hsl(30, 18%, 87%);
  --stone-600: hsl(30, 10%, 34%);
  --stone-900: hsl(24, 5%, 18%);
  --brown-800: hsl(14, 45%, 36%);
  --rose-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);
}

/* Reset */
* {
  font-family: "Outfit", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Layout */
html,
body {
  width: 100%;
  height: 100%;
}

html {
  background-color: var(--stone-100);
}

body {
  display: flex;
  justify-content: center; /* Changed from flex-start to center for horizontal alignment */
  align-items: flex-start;
  font-size: 16px;
  color: var(--stone-900);
  margin: 2rem 0; /* Added top and bottom margins */
  padding: 0;
  gap: 20px;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Young Serif", serif;
  font-weight: 400;
}

h1 {
  font-size: 2rem;
  color: var(--stone-900);
}

h2 {
  font-size: 1.2rem;
  color: var(--rose-800);
}

h3 {
  font-size: 1.5rem;
  color: var(--brown-800);
}

/* Components */
.recipe-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 600px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  gap: 20px;
  margin: 2rem auto;
}

img {
  max-width: 100%;
  height: auto;
}

.header {
  height: auto;
  width: 100%;
}

.description {
  font-size: 0.875rem;
  color: var(--stone-600);
}

.prep-time {
  font-size: 1rem;
  background-color: var(--rose-50);
  width: 100%;
  padding: 20px;
  border-radius: 8px;
}

.prep-time li {
  color: var(--stone-600);
}

.prep-time li::marker {
  color: var(--rose-800);
}

ul,
ol {
  list-style-position: inside;
  font-size: 1rem;
}

/* Fix list alignment in instructions */
.instructions ol {
  list-style-position: outside;
  padding-left: 1.5rem;
}

.instructions ol li {
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

.instructions ol li span {
  display: block;
  color: var(--stone-600);
  position: static; /* Remove relative positioning */
}

/* Remove conflicting styles */
.instructions ol li::marker {
  color: var(--brown-800);
  font-weight: 700;
}

li span {
  font-size: 0.875rem;
  color: var(--stone-600);
  font-weight: 400;
}

hr {
  width: 100%;
  height: 1px;
  background-color: var(--stone-150);
  border: none;
}

li::marker {
  color: var(--brown-800);
  font-weight: 700;
}

.bold {
  font-weight: bold;
  color: var(--stone-900);
}

.ingredients {
  width: 100%;
}

.ingredients li {
  color: var(--stone-600);
}

.nutrition {
  width: 100%;
}

.nutrition p {
  font-size: 0.875rem;
  color: var(--stone-600);
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--stone-150);
}

table td {
  color: var(--brown-800);
  font-weight: 700;
}
