
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #f7f8fa;
}

body {
    color: #25282d;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: #2869c7;
}

a:hover {
    color: #174f9f;
}


/* ==========================================================================
   WEBSITE HEADER
   ========================================================================== */

.website-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e4e8;
}

.website-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1040px, calc(100% - 52px));
    margin: 0 auto;
    padding: 20px 0;
}

.website-name {
    color: #20242a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-decoration: none;
}

.header-navigation a {
    color: #525963;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.header-navigation a:hover,
.footer-navigation a:hover {
    color: #2869c7;
}


/* ==========================================================================
   AUTHOR PAGE
   ========================================================================== */

.main-content {
    width: min(1040px, calc(100% - 52px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.author-page {
    max-width: 820px;
}

.page-category-label {
    margin-bottom: 12px;
    color: #707986;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.author-page h1 {
    margin: 0 0 12px;
    color: #171a1f;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: -1px;
}

.author-page h2 {
    margin: 54px 0 18px;
    color: #1b1f24;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -0.4px;
}

.author-page p {
    margin: 0 0 21px;
    color: #3f4650;
    font-size: 17px;
}

.author-page ul {
    margin: 0 0 24px;
    padding-left: 28px;
    color: #3f4650;
    font-size: 17px;
}

.author-page li {
    margin-bottom: 11px;
}

.author-page li:last-child {
    margin-bottom: 0;
}

.author-page a {
    color: #2869c7;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.author-page a:hover {
    color: #174f9f;
}

.author-page strong {
    color: #303640;
}


/* ==========================================================================
   PROFILE INTRO
   ========================================================================== */

.author-intro {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

.author-intro-copy {
    flex: 1;
    min-width: 0;
}

.author-page .author-subtitle {
    margin: 0 0 24px;
    color: #68717c;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
}

.author-photos {
    display: grid;
    flex: 0 0 220px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
}

.author-headshot {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid #e0e3e7;
    border-radius: 5px;
    background: #eceef1;
}


/* ==========================================================================
   PROJECT LISTS & EDITORIAL NOTE
   ========================================================================== */

.product-list li,
.project-list li {
    padding-left: 2px;
}

.editorial-note {
    margin-top: 58px;
    padding-top: 1px;
    border-top: 1px solid #d8dde4;
}

.editorial-note h2 {
    margin-top: 35px;
}


/* ==========================================================================
   WEBSITE FOOTER
   ========================================================================== */

.website-footer {
    background: #ffffff;
    border-top: 1px solid #e1e4e8;
}

.website-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1040px, calc(100% - 52px));
    margin: 0 auto;
    padding: 24px 0;
    color: #747d89;
    font-size: 12px;
}

.footer-navigation {
    display: flex;
    gap: 22px;
}

.footer-navigation a {
    color: #68717c;
    text-decoration: none;
}


/* ==========================================================================
   NARROW IMAGE GALLERIES
   ========================================================================== */

.narrow-image-gallery {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 3), minmax(180px, 1fr));
    gap: 14px;
    margin: 14px 0 30px;
    overflow-x: auto;
}

.narrow-image-gallery a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e0e3e7;
    border-radius: 5px;
    overflow: hidden;
}

.narrow-image-gallery img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
}

@media (max-width: 560px) {
    .narrow-image-gallery {
        gap: 10px;
    }

    .narrow-image-gallery img {
        height: 310px;
    }
}


/* ==========================================================================
   FULL-WIDTH IMAGES
   ========================================================================== */

.full-width-image {
    width: 100%;
    margin: 16px 0 30px;
}

.full-width-image a {
    display: block;
}

.full-width-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e0e3e7;
    border-radius: 5px;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 760px) {
    .website-header-inner,
    .main-content,
    .website-footer-inner {
        width: min(100% - 32px, 1040px);
    }

    .main-content {
        padding: 52px 0 70px;
    }

    .author-page h1 {
        font-size: 37px;
    }

    .author-page h2 {
        margin-top: 46px;
        font-size: 27px;
    }

    .author-intro {
        gap: 24px;
    }

    .author-photos {
        flex-basis: 170px;
    }

    .website-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-navigation {
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

@media (max-width: 560px) {
    .author-intro {
        flex-direction: column-reverse;
        gap: 22px;
    }

    .author-photos {
        flex-basis: auto;
        width: min(100%, 334px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .author-page .author-subtitle {
        margin-bottom: 20px;
    }
}
