
/* Design guide */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f5f1e8;
    color: #33302b;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.content-column {
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 70px 0;
}


/*type styling*/

h1 {
    color: #f5f1e8;
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 1.1;
    margin: 0;
}

h2 {
    color: #4f5d45;
    font-family: Georgia, serif;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 30px;
}

h3 {
    color: #7a5945;
    font-size: 20px;
    margin: 0;
}

p {
    margin-top: 0;
}

a {
    color: #7a5945;
}

a:hover {
    color: #4f5d45;
}


/*header*/

header {
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.35)
        ),
        url("https://justinesnacks.com/wp-content/uploads/2025/08/Brown-Butter-Miso-Zucchini-Bread.jpg");

    background-size: cover;
    background-position: center;
    padding: 150px 0;
    text-align: center;
}

.subtitle {
    color: #f5f1e8;
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 0;
}


/*intro*/

.introduction {
    background-color: #f5f1e8;
}

.description {
    font-size: 21px;
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.baking-time {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
    border-top: 1px solid #aaa28f;
    border-bottom: 1px solid #aaa28f;
    padding: 25px 0;
}

.baking-time p {
    margin: 5px 0 0 0;
}


/*ingredients*/

.ingredients-section {
    background-color: #e8e5d9;
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ingredients-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/*checkboxes!*/

.ingredients-list input {
    accent-color: #4f5d45;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 5px 0 0 0;
    flex-shrink: 0;
}

/* Ingredient text */

.ingredients-list label {
    cursor: pointer;
}

/*check box crossed off*/

.ingredients-list input:checked + label {
    text-decoration: line-through;
    color: #7a5945;
}


/* instructions*/

.instructions-section {
    background-color: #f5f1e8;
}

.instructions-list {
    padding-left: 30px;
    margin: 0;
}

.instructions-list li {
    padding-left: 10px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.instructions-list li::marker {
    color: #4f5d45;
    font-weight: bold;
}

.instructions-list strong {
    color: #4f5d45;
}


/* photo library*/

.gallery-section {
    background-color: #e8e5d9;
}

.grid-container {
    list-style: none;
    padding: 0;
    margin: 35px 0 0 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.grid-container li {
    margin: 0;
    min-width: 0;
}

.grid-container img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.text-content {
    padding-top: 15px;
}

.text-content h3 {
    margin-bottom: 8px;
}

.text-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}


/* footer*/

footer {
    background-color: #4f5d45;
    color: #f5f1e8;
    padding: 45px 0;
    text-align: center;
}

footer p {
    margin: 8px 0;
    font-size: 16px;
}

footer a {
    color: #f5f1e8;
}

footer a:hover {
    color: #ffffff;
}


/* RESPONSIVE DESIGN */

/*adaptability for ipad*/

@media (max-width: 800px) {

    header {
        padding: 110px 0;
    }

    h1 {
        font-size: 48px;
    }

    section {
        padding: 50px 0;
    }

    .grid-container {
        gap: 20px;
    }

}


/* abaptability for phones*/

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    .content-column {
        width: 90%;
    }

    header {
        padding: 90px 0;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 29px;
    }

    .subtitle {
        font-size: 18px;
    }

    .description {
        font-size: 18px;
        text-align: left;
        margin-bottom: 35px;
    }

    section {
        padding: 40px 0;
    }

    .baking-time {
        gap: 10px;
    }

    .baking-time h3 {
        font-size: 15px;
    }

    .baking-time p {
        font-size: 14px;
    }

    .ingredients-list li {
        gap: 10px;
        margin-bottom: 16px;
    }

    .ingredients-list input {
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .grid-container img {
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .instructions-list li {
        margin-bottom: 22px;
    }

}
