.home {
    h4 {
        font-size: 18px;
        color: var(--light-grey);
    }
}
.home-header {
    color: var(--brand-blue);
}

#home-slideshow-container {
    display: grid;
    grid-template-columns: 1fr calc(min(50%, 800px));
    gap: 16px 20px;

    .home-slideshow-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: calc(var(--page-horizontal-padding) / 2);

        h2, h5 {
            margin: 0;
        }

        .statements {
            display: flex;
            flex-direction: column;
            gap: 2px;
            font-size: 1.25rem;
            h2 {
                font-weight: 700;
            }
        }

        .description {
            font-weight: 450;
        }
    }

    .slide-show {
        flex-grow: 1;
        min-height: 18vw;
        height: 100%;
    
        .slide,
        .slide img {
            width: 100%;
            height: 100%
        };
    }

    @media (max-width: 1024px) {
        grid-template-columns:  1fr;

        .home-slideshow-text {
            padding-top: 0;
        }

        .slide-show {
            justify-self: center;
            grid-row: 1;
            height: 35vw;
            width: 100%;
        }
    }

    @media (max-width: 520px) {
        .home-slideshow-text {
            gap: 6px;
            padding: 8px;
            padding-top: 0;

            .statements {
                gap: 0;
        
                h5 {
                    font-size: 0.9rem;
                }
            }
        }
    }
}

#home-cards {
    --horizontal-padding: calc(min(1.5vw, 20px));

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(min(var(--page-horizontal-padding) / 2, 24px));
    margin-top: 12px;

    .card {
        padding: 20px calc(max(20px, var(--horizontal-padding)));
        gap: 8px;

        .card-body {
            display: flex;
            flex-direction: column;
            align-items: start;
            gap: 12px;
        }

        & > *:not(h3, .isbn-search) {
            flex-grow: 1;
        }

        ul {
            gap: 4px;
            flex-grow: 1;

            li {
                font-weight: 500;

                &::before {
                    font-weight: 400;
                }
            }
        }
    }

    h3 {
        position: relative;
        margin: 0;
        font-size: 20px;
        margin-bottom: 10px;
        font-weight: 700;
        letter-spacing: 0.03rem;

        &::after {
            content: "";
            background-color: var(--light-grey);
            bottom: -6px;
            left: calc(-1 * var(--horizontal-padding));
            width: calc(100% + 2 * var(--horizontal-padding));
            height: 1px;
            position: absolute;
        }
    }

    button:not(.visibility-toggle),
    .button {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.03rem;
        padding: 6px 16px;
    }

    .card:has(.isbn-search) {
        .card-body {
            justify-content: center;
        }

        input[type="submit"] {
            background-image: var(--blue-gradient);
        }
    }

    #wishlist {
        button,
        .button {
            width: 216px;
        }
    }

    #quick-links {
        .order-status {
            display: grid;
            grid-template-columns: min-content min-content;
            justify-items: center;
            align-items: center;
            column-gap: 20px;
            width: 100%;

            button {
                text-align: center;
                grid-column: 1;
                grid-row: 1 / span 2;
            }

            a, p {
                white-space: nowrap;
            }
        }

        a {
            justify-self: stretch;
            line-height: 1.05rem;
        }
    }

    @media (max-width: 1200px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .home-header {
        font-size: 1rem;
    }
}
