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

:root {
  --White: hsl(0, 0%, 100%);
  --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%);
}

@font-face {
  font-family: "Young Serif";
  src: url(assets/fonts/young-serif/YoungSerif-Regular.ttf) format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Outfit";
  src: url(assets/fonts/outfit/Outfit-VariableFont_wght.ttf) format("truetype");
  font-weight: 400 700;
}

body {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  background-color: var(--Stone-100);
  color: var(--Stone-900);
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3 {
  font-family: "Young Serif", serif;
}

h2 {
  color: var(--Brown-800);
}

hr{
    margin: 20px 0;
}

/* main */
main {
  background-color: var(--White);
  width: 900px;
  margin: 20px auto;
  padding: 0px 25px 10px;
  border-radius: 20px;
}

main img {
  display: block;
  width: 100%;
  margin: 20px auto;
  border-radius: 20px;
}

.recipe-title {
  margin: 10px 0 25px;
}

.recipe-title h1 {
  margin-bottom: 5px;
}

.recipe-details {
  background-color: var(--Stone-100);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.recipe-details h3 {
  font-size: large;
  color: var(--Rose-800);
  margin-bottom: 10px;
}

.recipe-details ul {
  margin-left: 25px;
}
.recipe-details ul li {
  margin-bottom: 10px;
}

.recipe-details ul li::marker {
  color: var(--Rose-800);
}

.recipe-details ul li strong {
  margin-left: 10px;
}

.recipe-ingredients h2 {
  margin: 10px;
}

.recipe-ingredients ul {
  margin: 20px 0 20px 25px;
}

.recipe-ingredients ul li {
  margin-bottom: 10px;
  padding-left: 15px;
}

.recipe-ingredients ul li::marker {
  color: var(--Brown-800);
}

.recipe-instructions h2 {
  margin: 10px;
}

.recipe-instructions ol {
  margin: 20px 0 20px 25px;
}

.recipe-instructions ol li {
  margin-bottom: 10px;
  padding-left: 15px;
  line-height: 1.5;
}

.recipe-instructions ol li::marker {
  color: var(--Brown-800);
}

.recipe-nutrition h2 {
  margin: 10px;
}

.recipe-nutrition p {
  margin: 20px 0 20px 0px;
}

.recipe-nutrition table {
  width: 100%;
  border-collapse: collapse;
}

.recipe-nutrition table tr {
  border-bottom: 1px solid var(--Stone-150);
}

.recipe-nutrition table tr:last-child {
  border-bottom: none;
}

.recipe-nutrition table tr td:first-child {
  padding-left: 20px;
}

.recipe-nutrition table tr td {
  padding: 15px 0;
}

.recipe-nutrition table tr .amount {
  color: var(--Brown-800);
  font-weight: 800;
}

.attribution{
    margin: 20px;
    text-align: center;
}
/* mobile */
@media (max-width: 375px) {
  main {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  main img {
    width: calc(100% + 50px); 
    margin: 0 -25px;
    border-radius: 0;
  }
}
