/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}
/* ul {
  list-style: none;
} */
button,
input,
select {
  margin: 0;
}
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
img,
video {
  height: auto;
  max-width: 100%;
}
iframe {
  border: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
td,
th {
  padding: 0;
}

.attribution {
  position: fixed;
  bottom: 0;
  right: 10px;
}

/* ------------------------------------------------------------------------------- */

/* ------------- orther ------------------ */

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: hsl(30, 54%, 90%);
}

.recipe {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

@media screen and (min-width: 376px) {
  .recipe {
    margin: 40px;
    padding: 40px;
    border-radius: 24px;
    gap: 40px;
  }
}

.recipe__container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 32px;
}

@media screen and (min-width: 376px) {
  .recipe__container {
    margin: 0px;
  }
}


.recipe__image {
  height: 171px;
  width: 100%;
  object-fit: cover;
}

@media screen and (min-width: 376px) {
  .recipe__image {
    height: 300px;
    border-radius: 12px;
  }
}

.recipe__section-title {
  font-family: "Young Serif", serif;
  font-weight: 400;
  font-size: 28px;
  color: hsl(14, 45%, 36%);
}

@media screen and (min-width: 376px) {
  
}

.recipe__divider {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid hsl(30, 18%, 87%);
  margin: 0;
  padding: 0;
}


@font-face {
  font-family: "Young Serif";
  src: url("./assets/fonts/young-serif/YoungSerif-Regular.ttf");
}
@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/outfit/Outfit-VariableFont_wght.ttf");
}


.recipe__title {
  font-weight: 400;
  font-size: 36px;
  line-height: 37px;
  color: hsl(24, 5%, 18%);
  margin-bottom: 24px;
  font-family: "Young Serif", serif;
}

@media screen and (min-width: 376px) {
  .recipe__title {
    font-size: 40px;
  }
}

.recipe__description {
  font-family: "Outfit", serif;
  font-weight: 400;
  font-size: 16px;
  color: hsl(30, 10%, 34%);
}

/* Preparation time */

.recipe__preparation {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background-color: hsl(330, 100%, 98%);
  border-radius: 12px;
}

.recipe__preparation-title {
  font-family: "Outfit", serif;
  font-weight: 600;
  font-size: 20px;
  color: hsl(332, 51%, 32%);
}

.recipe__preparation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 8px;
}

.recipe__preparation-item {
  position: relative;
  font-size: 16px;
  line-height: 25px;
  color: hsl(30, 10%, 34%);
  font-family: "Outfit", serif;
  margin-bottom: 10px;
  padding-left: 30px;
}

.recipe__preparation-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(332, 51%, 32%);
  font-size: 25px;
}

.recipe__preparation-item > strong {
  font-weight: bold;
  /margin-right: 5px;
}

/* Ingredients */
.recipe__ingredients {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recipe__ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 4px;
}

.recipe__ingredients-item {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: hsl(30, 10%, 34%);
  font-family: "Outfit", serif;
  padding-left: 35px;
}

.recipe__ingredients-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(332, 51%, 32%);
  font-size: 25px;
}

/* Instructions */

.recipe__instructions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recipe__instructions-list {
  font-family: "Outfit", serif;
  font-size: 16px;
  color: hsl(30, 10%, 34%);
  line-height: 25px;
  list-style: none;
}

.recipe__instructions-item {
  display: flex;
  gap: 16px;
  padding-left: 8px;
  margin-bottom: 8px;
}
.recipe__instructions-item:last-child {
  margin-bottom: 0px;
}
.recipe__instructions-item span {
  /* position: relative;
  left: 16px; */
}

.recipe__instructions-number {
  color: hsl(14, 45%, 36%);
  font-weight: 700;
}

/* Nutrition */

.recipe__nutrition {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recipe__nutrition-text {
  font-family: "Outfit", serif;
  font-size: 16px;
  font-weight: 400;
  color: hsl(30, 10%, 34%);
  line-height: 25px;
}

.recipe__nutrition-table {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.recipe__nutrition-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 32px;
  border-bottom: 1px solid #ccc;
}

.recipe__nutrition-row:last-child {
  border-bottom: none;
}

.recipe__nutrition-item {
  font-family: "Outfit", serif;
  font-weight: 400;
  font-size: 16px;
  color: hsl(30, 10%, 34%);
}

.recipe__nutrition-value {
  font-family: "Outfit", serif;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: hsl(14, 45%, 36%);
}

