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

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

* {
    margin: 0;
    padding: 0;
}

:root {
    --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%);
}

span {
    font-weight: 700;
}

hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.content {
    padding: 1rem 1.75rem;
}

h1 {
    font-family: "Young Serif";
    font-weight: 400;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    color: var(--stone900);
}

.description {
    font-family: "Outfit";
    font-weight: 400;
    color: var(--stone600);
    margin-bottom: 2rem;
}

ul, ol {
    margin: 0;
    padding-left: 1rem;
}

li {
    list-style-position: outside;
    padding-left: 1rem;
}

/* preparation section */

.preparation {
    background-color: var(--rose50);
    font-family: "Outfit";
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.preparation h3 {
    color: var(--rose800);
    margin-bottom: 1rem;
}

.preparation ul li {
    color: var(--stone600);
    margin-bottom: .5rem;
    margin-left: .5rem;
}

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

.preparation p {
    display: inline-block;
    vertical-align: middle;
}

/* ingredients section */

.ingredients {
    font-family: "Outfit";
}

.ingredients h2 {
    font-family: "Young Serif";
    font-weight: 400;
    color: var(--brown800);
    margin-bottom: 1rem;
}

.ingredients ul li {
    color: var(--stone600);
    margin-bottom: .5rem;
    margin-left: .5rem;
}

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

.ingredients p {
    display: inline-block;
    vertical-align: middle;
}

/* instructions section */

.instructions {
    font-family: "Outfit";
}

.instructions h2 {
    font-family: "Young Serif";
    font-weight: 400;
    color: var(--brown800);
    margin-bottom: 1rem;
}

.instructions ol li {
    color: var(--stone600);
    margin-bottom: .75rem;
    margin-left: .5rem;
}

.instructions li::marker {
    color: var(--brown800);
    font-weight: 800;
}


/* nutrition section */

.nutrition {
    font-family: "Outfit";
    color: var(--stone600);
}

.nutrition h2 {
    font-family: "Young Serif";
    font-weight: 400;
    color: var(--brown800);
    margin-bottom: 1rem;
}

table {
    margin-top: 1rem;
    width: 100%;
    border-collapse: collapse;
}

td {
    border-bottom: 1px solid var(--stone150);
    height: 3rem;
    padding-left: 2rem;
    font-weight: 500;
}

.last {
    border-bottom: none;
}

td:nth-child(even) {
    color: var(--brown800);
    font-weight: 700;
}

/* attribution section */

.attribution { 
    font-size: .75rem; 
    text-align: center; 
    margin-bottom: .5rem;
    font-family: "Outfit";
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

@media only screen and (min-width: 992px) {
    main {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .desktop {
        width: 40%;
        background-color: white;
        border-radius: 20px;
        margin: 5rem;
        margin-bottom: 1rem;
        padding: 3rem;
    }

    .desktop img {
        border-radius: 10px;
    }

    .content {
        padding: 0;
        padding-top: 1rem;
    }

    h1 {
        font-size: 3rem;
    }

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