:root {
  --accent: #d2af8f;
  --bg: #fdfdfc;
  --text: #2e2e2e;
  --muted: #777;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

a:visited {
  color: #d2af8f;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%; 
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2.5rem;
  background-color: #2e2e2e;
  border-bottom: 3px solid #eee;
  flex-wrap: wrap;
  gap: 2rem;
}

.header-center {
  flex: 1;
  text-align: center;
}

.recipe-description {
  text-align: left;
  color: #e9d7c9;
}

.header-center h1 {
  font-family: "meursault-variable", serif;
  font-size: 2.8rem;
  color: var(--accent);
  margin: 0;
}

.recipe-info-bubbles {
  font-family: "area-normal", sans-serif;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.recipe-info-bubbles span {
  background: #f2e8e0;
  color: var(--text);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.recipe-info-bubbles span:hover {
  background: #e9d7c9;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.header-right img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.ingredients {
  font-family: "area-normal", sans-serif;
  flex: 0 0 250px;
  position: sticky;
  top: 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  height: fit-content;
}

.ingredients h2 {
  font-family: "meursault-variable", serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.ingredients ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.ingredients li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  font-family: "area-normal", sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.step-text {
  flex: 2;
}

.step-text h3 {
  font-family: "meursault-variable", serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.step img {
  flex: 1;
  width: 220px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}

.footer {
  background-color: #2e2e2e;
  color: var(--bg);
  text-align: center;
  padding: 1.5rem;
  font-family: "area-normal", sans-serif;
  border-top: 3px solid var(--accent);
  margin-top: 3rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .header-center h1 {
    font-size: 2.4rem;
  }

  .main-layout {
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .ingredients {
    flex: 0 0 220px;
  }

  .step img {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }

  .header-right img {
    width: 120px;
    height: 120px;
  }

  .main-layout {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }

  .ingredients {
    position: static;
    width: 100%;
    margin-bottom: 2rem;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step img {
    width: 100%;
    max-width: 450px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .header-center h1 {
    font-size: 1.9rem;
  }

  .recipe-info-bubbles span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .main-layout {
    padding: 0 0.8rem;
  }

  .ingredients {
    padding: 1rem;
  }

  .step {
    padding: 1rem;
  }

  .step-text h3 {
    font-size: 1.2rem;
  }

  .footer {
    font-size: 0.9rem;
  }
}
