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

* {
    --white: hsl(0, 0%, 100%);
    --stone100: hsl(30, 54%, 90%);
    --stone150: hsl(30, 18%, 87%);
    --stone600: hsl(30, 10%, 34%);
    --stone900: hsl(24, 5%, 18%);
    --brown800: hsl(14, 45%, 36%);
    --rose800: hsl(332, 51%, 32%);
    --rose50: hsl(330, 100%, 98%);

    color: var(--stone600);
    font-family: "Outfit";
    font-size: 16px;
    margin: 0; 
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: var(--stone100);
}

.recipe {
    background-color: var(--white);
    padding: 35px 40px 40px 40px;
    width: min(650px, calc(100vw - 80px));
    overflow: visible;
    margin-top: 12vh;
    border-radius: 20px;
}

.recipe img {
    width: 100%;
    border-radius: 10px;
}

h1 {
    font-size: 36px;
    font-family: "Young Serif";
    font-weight: 400;
    margin: 20px 0px 15px 0px;
    color: var(--stone900);
}

.preparation {
    background-color: var(--rose50);
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0px 25px 0px;
}

.preparation h3 {
    margin-bottom: 10px;
    color: var(--rose800);
    font-size: 18px;
}

li {
    margin: 12px 0px 12px 20px;
    padding-left: 20px;
}

ul li::marker {
    font-size: 12px;
}

.preparation li::marker {
    color: var(--rose800);
}

hr {
    border-top: 1px solid var(--stone150);
    margin: 30px 0px 25px 0px;
}

h2 {
    font-size: 28px;
    color: var(--brown800);
    font-family: "Young Serif";
    font-weight: 400;
}

.ingredients li::marker {
    color: var(--brown800);
}

ol li {
    margin-left: 25px;
}

ol li::marker {
    color: var(--brown800);
    font-weight: 700;
}

ol, ul {
    margin-top: 20px;
}

table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

th {
    font-weight: 400;
    padding-left: 35px;
}

td {
    color: var(--brown800);
    font-weight: 700;
    padding: 13px 35px 13px 0px;
}

table tr {
    border-bottom: var(--stone150) solid 1px;
}

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

.nutrition p {
    margin: 20px 0 10px 0;
}

@media screen and (max-width: 480px) {
  .recipe {
    padding: 0px 40px 40px 40px;
    width: min(700px, calc(100vw - 80px));
    margin-top: 0;
    border-radius: 0;
  }

  .recipe img {
    width: 100vw;
    margin-left: -20px;
    border-radius: 0;
  }

  body {
    background-color: var(--white);
  }

  h1 {
    font-size: 32px;
  }
}

.attribution {
    margin-top: 10vh;
    margin-bottom: 5vh;
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
    font-size: 11px;
}