/* CSS reset */
*,
*::before,
*::after{
    margin: 0;
    box-sizing: border-box;
}

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

/*body*/
body{
    display: grid;
    grid-template-rows: 1fr;
    background: var(--Stone100);  
    font-family: 'Outfit', sans-serif;
    color: var(--Stone600);
    font-size: 1.1rem;  
    line-height: 2rem;
    padding: 4rem;
    padding-bottom: 2rem;
}

/* headings */
h1,h2{
    padding-bottom: 1.5rem; 
    font-weight: 500;
    font-family: 'Young Serif', serif;
}

h2{
    color: var(--Brown800);
    font-size: 2rem;
}

/* Styling classes */
.box{
    padding: 1.5rem 0;
}
.BB{
    border-bottom: solid  2px var(--Stone150);
}
.brown{
    color: var(--Brown800);
    font-weight: 700;
}

/* main */

main{
    display: grid;
    place-items: center;
}

/* Recipe */
.recipe{
    max-width: 50rem;
    background: var(--White);
    border-radius: 0.7rem;
    overflow: hidden;
    min-width: 21rem;
    padding: 2rem;
}

/* Recipe Image */
.dish-image{
    max-width: 100%;
    border-radius: 0.7rem;
    display: block;
}

/* Intro */
.intro h1{
    color: var(--Stone900);
    font-size: 2.8rem;
    line-height: 3rem;
}

/* prep-time */
.prep-time{
    background: var(--Rose50);
    padding: 1.5rem;
    border-radius: 0.7rem;
}
.prep-time h2{
    color: var(--Rose800);
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 0.7rem;
}
.prep-time ul{
    padding-left: 1rem;
}
.prep-time ul ::marker{
    color: var(--Rose800);
    font-weight: 600;
}
.prep-time ul li{
    padding-left: 1rem;
}


/* Ingredients */
.ingredients ul{
    padding-left: 1rem;
}
.ingredients ul ::marker{
    color: var(--Brown800);
    font-weight: 600;
}
.ingredients ul li{
    padding-left: 1rem;
}

/* Instructions */
.instructions ol{
    padding-left: 1rem;
}
.instructions ol ::marker{
    color: var(--Brown800);
    font-weight: 600;
}
.instructions ol li{
    padding-left: 1rem;
}

/* Nutrition */
.nutrition table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.nutrition table td {
    padding: 0.5rem;
}

.nutrition caption {
    text-align: left;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    width: 100%;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 2rem;
    padding:  0.5em 0;
    background-color: var(--Stone100);
    color: var(--Brown800);
}
  
/* Footer Links */
footer a {
    color: var(--Rose800);
    text-decoration: none;
}

footer {
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
}
footer a {
    font-size: 1rem;
}

@media only screen and (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
        padding-bottom: 2rem;
    }
    .recipe {
        width: 100%;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }
    .dish-image {
        border-radius: 0;
        width: 100%;
        height: auto;
        display: block;
    }
    .recipe-content {
        padding: 1rem;
    }
}
