@import url('https://fonts.googleapis.com/css2?family=Young+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
  --clr-background: hsl(30, 18%, 87%);
  --clr-card: #fff;
  --clr-heading: hsl(24, 5%, 18%);
  --font-title: 'Young Serif', serif;
  --font-body: 'Outfit', sans-serif;
}

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

html {
  height: 100vh;
  display: grid;
  place-items: start center;
  margin-top: 50px;
}

body {
  background-color: var(--clr-background);
  font-family: var(--font-body);
}

main {
  width: 750px;
  background-color: var(--clr-card);
  border-radius: 20px;
  padding: 40px;
}

img {
  width: 100%;
  max-width: 670px;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
}

header h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--clr-heading);
  margin-top: 30px;
  margin-bottom: 20px;
}
header p, p {
  font-size: 1rem;
  font-family: var(--font-body);
  color: hsl(30, 2%, 30%);
  line-height: 1.6;
}
p{
    font-weight: 500;
}
ol, ul {
  list-style-position: outside;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  text-indent: -0.5rem;
  font-size: 15px;
  color: #671f3a;
}

li strong{
    margin-left: 10px;
}
.prep-time{
    background-color: #fff7fc;
    width: 100%;
    height: 190px;
    margin-top: 30px;
    padding-top: 25px;
    padding-left: 30px;
    border-radius: 10px;
}
#prep-title{
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: #671f3a;
    padding-bottom: 20px;

}
#ingredients-title, #instructions-title, #nutrition-title{
    font-size: 1.5rem;
    color: #7b4631;
    margin-top: 25px;
    font-family: var(--font-title);
    font-weight: 500;
    margin-bottom: 25px;
}
.ingredients, .instructions{
    padding-left: 20px;
    border-bottom: 1px solid #e0e0e0;
}
div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

dt {
  margin: 0;
  color: #83817f;
  font-weight: 500;
}

dd {
  margin: 0;
  color: #7b4631;
  font-weight: 600;
}

@media (max-width: 768px) {
    body{
        display: flex;
        justify-content: center;
    }
  main {
    width: 90%;
    padding: 24px;
  }

  img {
    width: 100%;
  }

  header h1 {
    font-size: 1.8rem;
  }
}
