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

:root {
    --white: hsl(0, 0%, 100%);
    --light-magenta: hsl(330, 100%, 98%);
    --eggshell: hsl(30, 54%, 90%);
    --light-grey: hsl(30, 18%, 87%);
    --dark-taupe: hsl(30, 10%, 34%);
    --reddish-brown: hsl(14, 45%, 36%);
    --dark-raspberry: hsl(332, 51%, 32%);
    --dark-grey: hsl(24, 5%, 18%);
}

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

body {
    background-color: var(--eggshell);
    color: var(--dark-taupe);
    min-height: 100vh;
    font-family: "Outfit", sans-serif;
    line-height: 1.4;
    display: grid;
    place-content: center;
}

.recipe {
    max-width: 100%;
    display: block;
}

h1, h2 {
    font-family: 'Young Serif', serif;
    font-weight: 400;
}

h1 {
    color: var(--dark-grey);
    font-size: 2.8rem;
}

h2 {
    color: var(--reddish-brown);
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

h3 {
    color: var(--dark-raspberry);
}

span {
    font-weight: 700;
}

.recipe-step {
    margin: 1rem 0;
}

ul, ol {
    padding-left: 1.5rem;
}

li::marker {
    color: var(--reddish-brown);
    font-weight: bold;
}

li {
    margin-bottom: .5rem;
    padding-left: 1.5rem
}

hr {
    margin: 2rem 0;
    border: 1px solid var(--light-grey);
}

.container {
    max-width: 800px;
    background-color: var(--white);
    margin: 7rem;
    border-radius: 1rem;
}

.container .recipe-img {
    padding: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.container .recipe-img img {
    border-radius: 1rem;
}

.recipe-information {
    padding: 0 2rem 2rem 2rem;
}

.description {
    margin: 1.5rem 0;
}

.recipe-prep-time {
    background-color: var(--light-magenta);
    padding: 1.25rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.recipe-prep-time h3 {
    color: var(--dark-raspberry);
    margin-bottom: .75rem;
}

.nutrition .values {
    margin-bottom: 1rem;
}

.nutrition-table .item {
    padding: 0.75rem 2rem;
    display: flex;
    border-bottom: 1px solid var(--light-grey);
}

.nutrition-table .item:last-child {
    border-bottom: 0;
}

.nutrition-table .item .amount {
    color: var(--reddish-brown);
    font-weight: 700;
}

.nutrition .item > * {
    width: 100px;
    margin-right: auto;
}

@media (max-width: 540px) {
    .container {
        margin: 0;
    }
    .container .recipe-img {
        padding: 0;
        border-radius: 0;
    }
    .container .recipe-img .recipe {
        border-radius: 0;
    }
}
