:root {
    --base-bg: #e7e7e7;
    --surface: #ffffff;
    --text-main: #1b1b1b;
    --muted: #6a6a6a;
    --line: #e3e3e3;
    --max-width: 1230px;
}

body {
    font-family: "Bricolage Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background: #fff;
    line-height: 1.45;
}

.masthead__container {
    margin: 0 auto;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);

    p {
        margin: 0;
    }
}

h1.stack-title {
    color: #12225E;
    font-family: "Bricolage Grotesque";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 32px;
    /* 100% */
}

.intro-grid {
    background: #F4F2EF;
    width: 100%;
}

.intro-grid__container {
    max-width: var(--max-width);
    padding: 32px 8px;
    margin: 0 auto;
    display: flex;
}

.panel-left,
.panel-right {
    padding: 0 24px;
    width: 33.33%;
    flex: 0 0 33.33%;

}

.panel-left p,
.panel-right p {
    color: #444;
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin: 24px 0;
}

.panel-left h3,
.panel-right h3 {
    color: #000;
    font-family: "Bricolage Grotesque";
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 24px 0;
}

.panel-left h3:first-child,
.panel-right h3:first-child {
    margin-top: 0;
}

a.panel-link {
    color: #12225E;
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin: 12px 0;
}

a.panel-link:hover {
    text-decoration: underline;
}

.panel-link__icon {
    background: rgba(18, 34, 94, 0.08);
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;

    aspect-ratio: 1/1;
    margin: 0 6px 0 0;
}

.panel-image {
    padding: 0 24px;
    display: flex;
    width: 33.33%;
    flex: 0 0 33.33%;

}

.panel-image img {
    height: auto;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 0 70px 0 rgba(0, 0, 0, 0.15);
}

.three-col-text__title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.three-col-text__title__cd,
.three-col-text__container {
    display: flex;
    padding: 0 8px;
    margin: 0 auto;
    max-width: var(--max-width);
}

.three-col-text__title__cd .text-col,
.three-col-text__container .text-col {
    width: 33.33%;
    flex: 0 0 33.33%;
    padding: 32px;
}

.three-col-text__title__cd .text-col h4,
.three-col-text__container .text-col h4 {
    margin: 0 auto;
    color: #000;
    text-align: center;
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

.three-col-text__title__cd .text-col p,
.three-col-text__container .text-col p {
    color: #444;
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
}

.three-col-text__container .text-col h4 {
    display: none;
}

.books-section__container {
    display: flex;
    padding: 0 32px;
    margin: 0 auto;
    max-width: var(--max-width);
}

.books-section__container h3 {
    color: #000;
    font-family: "Bricolage Grotesque";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 48px;
}

.books-section-list {
    max-width: var(--max-width);
    margin: 0 auto;

}

.books-section-list ul {
    display: flex;
    padding: 0 15px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
}

.books-section-list ul li {
    width: 20%;
    padding: 0 15px;
    margin: 0 0 48px;
    list-style: none;
    display: flex;
}

.book-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.book-card .nobook {
    color: #012E5E;
    font-family: "Bricolage Grotesque";
    font-size: 14px;
    font-weight: 400;
}

.book-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 210/297;
    object-fit: cover;
    object-position: center;
    margin: 0 0 20px;
}

.book-card h4 {
    color: #000;
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    min-height: 38.4px;
}

.book-card .bot {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    height: auto;
}

.book-links {
    display: flex;
    flex-wrap: wrap;
}

.book-links a {
    color: #012E5E;
    font-family: "Bricolage Grotesque";
    font-size: 14px;
    font-weight: 400;
    text-decoration-line: underline;
}

.book-links a:hover {
    color: #000;
}

.book-card p {
    margin: 0;
    color: #012E5E;
    font-family: "Bricolage Grotesque";
    font-size: 16px;
    font-weight: 600;
}

.site-footer {
    background: rgba(18, 34, 94, 0.05);
    padding: 32px 0;
}

.site-footer__container {
    padding: 32px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
}

.site-footer__col {
    padding: 0 16px;
    width: 33.33%;
    flex: 0 0 33.33%;
}

.site-footer__col-lg {
    width: 100%;
    flex: 0 0 100%;
}

.site-footer__col h4,
.site-footer__col .footer-link {
    display: block;
    color: #12225E;
    font-family: "Bricolage Grotesque";
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin: 0 0 16px;
    text-decoration: none;
}

.site-footer__col .footer-link {
    margin-bottom: 8px;
}

.site-footer__col .footer-link-last {
    margin-bottom: 16px;
}

.site-footer__col .footer-link:hover {
    text-decoration: underline;
}

.site-footer__col h5 {
    color: #000;
    font-family: "Bricolage Grotesque";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    /* 142.857% */
    text-transform: uppercase;
    margin: 0 0 8px;
}

.site-footer__col p {
    color: #444;
    font-family: "Bricolage Grotesque";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 142.857% */
    margin: 0 0 8px;
}

.site-footer__col p:last-child {
    margin-bottom: 0;
}

.site-footer__col p a {
    color: #12225E;
    font-family: "Bricolage Grotesque";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    text-decoration: underline;

}

.hr {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    position: relative;
}

.hr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    width: calc(100% - 64px);
    height: 1px;
    border-bottom: 1px solid rgba(18, 34, 94, 0.10);

}

@media screen and (max-width: 1024px) {
    a.panel-link {
        font-size: 14px;
    }

    .panel-left,
    .panel-right {
        padding: 0 12px;
    }

    .panel-image {
        padding: 0 12px;
    }

    .panel-left p,
    .panel-right p {
        font-size: 14px;
    }

    h1.stack-title {

        font-size: 24px;
    }

    .books-section-list ul li {
        width: 33.33%;
    }
}

@media screen and (max-width: 768px) {
    .masthead__container {
        padding: 32px 20px;
        flex-direction: column;
        text-align: center;
    }

    .books-section-list ul li {
        width: 50%;
    }

    .intro-grid__container {
        flex-direction: column;
    }

    .intro-grid__container {
        padding: 32px 20px;
    }

    .panel-image {
        padding: 0;
        margin: 32px auto;
        width: 100%;
        max-width: 260px;
    }

    .panel-left,
    .panel-right {
        width: 100%;
        padding: 0;
    }

    .three-col-text__title__cd {
        display: none;
    }

    .three-col-text__container {
        flex-direction: column;
        padding: 0 20px;
    }

    .three-col-text__title__cd .text-col,
    .three-col-text__container .text-col {
        margin: 32px 0 0;
        padding: 0;
        width: 100%;
    }

    .three-col-text__title__cd .text-col p,
    .three-col-text__container .text-col p {
        font-size: 14px;
    }

    .three-col-text__container .text-col h4 {
        display: inline-flex;
        margin: 0 0 24px;
    }

    .books-section__container {

        padding: 0 20px;
    }

    .books-section__container h3 {
        font-size: 22px;
        margin: 32px 0 24px;
    }

    .books-section-list ul {
        padding: 0 10px;
    }

    .books-section-list ul li {
        padding: 0 10px;
    }

    .site-footer__container {
        padding: 8px 10px;
    }

    .site-footer__container {
        flex-direction: column;
    }

    .site-footer__col {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 10px;
        margin: 16px 0;
    }

    .hr::before {
        left: 20px;
        width: calc(100% - 40px);
    }
}