@import "variables";

.blog {
    display: flex;
    @media screen and (max-width: $md-breakpoint) {
        display: block;
    }

    .book-toc {
        flex: 1;
    }
}

.posts-list {
    min-height: 50vh;
    padding: $padding-16 * 1.6;
    min-width: $body-min-width;
    max-width: $md-breakpoint;
    margin: auto;

    h2 {
        font-family: $brand-font-face;
        font-size: 2em;
        font-weight: 400;
    }
    h5 {
        margin-top: -24px;
    }
    .featured-image {
        max-width: 100%;
    }
    p {
        line-height: 1.4em;
    }
}

.left-gutter {
    flex: 1;
}

.blog-post {
    max-width: $md-breakpoint;
    flex: 2;
    margin: auto;
    padding: $padding-16 * 1.6;

    header {
        overflow: hidden;
        padding-bottom: $padding-16;
        border-bottom: 1px dashed $gray-300;
        h1 {
            font-family: $brand-font-face;
            font-size: 3em;
            font-weight: 400;
            color: $brand-color;
            margin-bottom: 12px;
        }
        @media screen and (max-width: $sm-breakpoint) {
            h1 {
                font-size: 2em;
            }
        }
    }

    .markdown > p:first-child {
        font-size: 22px;
        color: $gray-700;
    }

    figure {
        img {
            max-width: 100%;
        }
    }
}

.date-author {
    display: flex;
    align-items: center;

    .avatar {
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }
    .details {
        margin-left: 12px;
    }
    .name {
        color: $gray-600;
    }
}

.author-bio {
    display: flex;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px dotted $gray-300;
    .avatar {
        border-radius: 50%;
        width: 100px;
        height: 100px;
    }
    .details {
        margin-left: 24px;
    }
    .written-by {
        font-size: $font-size-12;
        text-transform: uppercase;
        color: $gray-500;
    }
    .name {
        font-family: $brand-font-face;
        margin: 0 0 12px;
    }
    .bio {
        color: $gray-700;
        margin-bottom: 12px;
    }
    .links {
        a {
            margin-right: 12px;
            opacity: 0.8;
        }
        a:hover {
            opacity: 1;
        }
        img {
            width: 24px;
            height: 24px;
        }
    }
}
