:root {
  --clr-bg2: hsl(330, 100%, 98%);
  --clr-card: hsl(0, 0%, 100%);
  --clr-black: hsl(24, 5%, 18%);
  --clr-sub-title: hsl(332, 51%, 32%);
  --clr-title: hsl(14, 45%, 36%);
  --clr-bg1: hsl(30, 54%, 90%);
  --clr-page: hsl(30, 18%, 87%);
}

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

body {
  background-color: var(--clr-bg1);
  font-family: "Outfit", sans-serif;
  margin: 0;
  color: var(--clr-black);
  line-height: 1.3;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.recipe {
  max-width: 800px;
  background-color: var(--clr-card);
  margin: 2rem;
  padding: 2rem;
  border-radius: 10px;
}

.recipe__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

h1, h2{
  font-family: "Young Serif", sans-serif;
  font-weight: 400;
  color: var(--clr-title)
}

h1 {
  margin: 1rem 0;
  font-size: 2rem;
  color: var(--clr-black);
}

h3 {
  padding: 1rem;
  color: var(--clr-sub-title)
}

.recipe__preparation{
  background-color: var(--clr-bg2);
  border-radius: 10px;
  margin: 1.25rem 0;
}

.recipe__preparation > ul{
  padding-inline-start: 2.5rem;
}

ul > li {
  padding: 0 0 0.5rem 0.7rem;
}

ul > li::marker {
  color: var(--clr-sub-title)
}

ol > li::marker {
  color: var(--clr-title);
  font-weight: 800;
}

.recipe__ingredients {
  margin-bottom: 1.25rem;
}

.recipe__ingredients > ul {
  padding: 1rem 0 0 1.5rem;
  list-style-type: square;
}

.recipe__instructions {
  margin: 1.25rem 0;
}

.recipe__instructions > ol {
  padding: 1.25rem 0 0 2rem
}

.recipe__instructions li {
  padding: 0 0 0.5rem 1rem
}

.recipe__nutrition {
  margin-top: 1.25rem;
}

.recipe__nutrition > * {
  padding: 0.5rem
}

.recipe__nutrition > table {
  width: 100%;
  padding-left: 2.5rem;
  border-collapse: collapse;
}

.recipe__nutrition table tr:not(:last-child) {
  border-bottom: 1px solid var(--clr-page);
}

.recipe__nutrition table td {
  padding: 0.8rem 2rem;
}

.value {
  font-weight: 800;
  color: var(--clr-sub-title)
}

@media (max-width:375px) {
  .recipe{  
    width: 100%;
    padding: 0;
    margin:0;
    border-radius: 0;
  }

  .recipe__image{
    border-radius: 0;
  }

  .recipe__description h1{
    margin: 1.25rem;
  }

    .recipe__description p{
      margin: 0 1.25rem;
    }

  .recipe__preparation, 
  .recipe__ingredients, .recipe__instructions, .recipe__nutrition,
  hr{
    margin: 1.25rem;
  }
}