/*
Theme Name: Twenty Twelve Child
Description: Child theme for Twenty Twelve with a dynamic category homepage.
Author: Your Name
Template: twentytwelve
Version: 1.0
*/

/* Random Category Homepage */

.home-category-section {
    margin: 0 0 52px;
    padding: 0 0 35px;
    border-bottom: 1px solid #e6e6e6;
}

.home-category-header {
    margin: 0 0 24px;
    padding-bottom: 9px;
    border-bottom: 3px solid #444;
}

.home-category-title {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 1.65em;
    line-height: 1.25;
    font-weight: bold;
}

.home-category-title a {
    color: #444;
    text-decoration: none;
}

.home-category-title a:hover {
    color: #21759b;
}


/* Lead article */

.home-lead-post {
    clear: both;
    margin-bottom: 28px;
    overflow: hidden;
}

.home-lead-image {
    float: left;
    width: 38%;
    margin: 0 26px 15px 0;
}

.home-lead-image img {
    display: block;
    width: 100%;
    height: auto;
}

.home-lead-content {
    overflow: hidden;
}

.home-lead-title {
    margin: 0 0 8px;
    font-family: "Nunito", sans-serif;
    font-size: 1.35em;
    line-height: 1.3;
}

.home-lead-title a {
    color: #444;
    text-decoration: none;
}

.home-lead-title a:hover {
    color: #21759b;
}

.home-post-date {
    margin-bottom: 10px;
    color: #777;
    font-size: 0.8em;
    line-height: 1.5;
}

.home-post-excerpt {
    font-family: "Nunito", sans-serif;
    font-size: 1em;
    line-height: 1.7;
}


/* Smaller articles */

.home-small-post {
    display: flex;
    gap: 18px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #eee;
}

.home-small-image {
    flex: 0 0 105px;
}

.home-small-image img {
    display: block;
    width: 105px;
    height: auto;
}

.home-small-content {
    flex: 1;
    min-width: 0;
}

.home-small-title {
    margin: 0 0 5px;
    font-family: "Nunito", sans-serif;
    font-size: 1.1em;
    line-height: 1.4;
}

.home-small-title a {
    color: #444;
    text-decoration: none;
}

.home-small-title a:hover {
    color: #21759b;
}


/* More Category link */

.home-category-more {
    margin: 22px 0 0;
    text-align: right;
    font-size: 0.9em;
    font-weight: bold;
}

.home-category-more a {
    text-decoration: none;
}


/* Message displayed if there are not enough categories */

.home-category-message {
    margin: 30px 0;
    padding: 18px;
    background: #f7f7f7;
    border-left: 4px solid #21759b;
}


/* Tablet / phone */

@media screen and (max-width: 700px) {

    .home-lead-image {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }

    .home-category-title {
        font-size: 1.45em;
    }

    .home-lead-title {
        font-size: 1.25em;
    }
}

@media screen and (max-width: 480px) {

    .home-small-post {
        display: block;
    }

    .home-small-image {
        width: 100%;
        margin: 0 0 12px;
    }

    .home-small-image img {
        width: 100%;
        max-width: 240px;
        height: auto;
    }
}





/*
 * =========================================================
 * CATEGORY ARCHIVE - MASONRY STYLE
 * =========================================================
 */


/*
 * Category heading
 */

.category-masonry-header {
    margin: 0 0 32px;
    padding: 0 0 18px;
    border-bottom: 3px solid #444;
}

.category-masonry-heading {
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 1.8em;
    line-height: 1.25;
    font-weight: bold;
    color: #444;
}

.category-masonry-description {
    margin-top: 12px;
    font-family: "Nunito", sans-serif;
    font-size: 1em;
    line-height: 1.7;
    color: #666;
}

.category-masonry-description p:last-child {
    margin-bottom: 0;
}


/*
 * Masonry container
 *
 * Two columns are used because the regular Twenty Twelve
 * right sidebar remains visible.
 */

.category-masonry-grid {
    column-count: 2;
    column-gap: 24px;
}


/*
 * Individual article card
 */

.category-masonry-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    vertical-align: top;

    background: #fff;
    border: 1px solid #e5e5e5;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;

    box-sizing: border-box;
}


/*
 * Featured image
 */

.category-card-image {
    margin: 0;
    padding: 0;
}

.category-card-image a {
    display: block;
}

.category-card-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}


/*
 * Card content
 */

.category-card-content {
    padding: 18px;
}


/*
 * Article title
 */

.category-card-title {
    margin: 0 0 8px;

    font-family: "Nunito", sans-serif;
    font-size: 1.25em;
    line-height: 1.35;
    font-weight: bold;
}

.category-card-title a {
    color: #444;
    text-decoration: none;
}

.category-card-title a:hover,
.category-card-title a:focus {
    color: #21759b;
}


/*
 * Date
 */

.category-card-meta {
    margin: 0 0 12px;

    font-family: "Nunito", sans-serif;
    font-size: 0.8em;
    line-height: 1.5;

    color: #777;
}


/*
 * Excerpt
 */

.category-card-excerpt {
    font-family: "Nunito", sans-serif;
    font-size: 1em;
    line-height: 1.7;
    color: #444;
}


/*
 * Continue reading
 */

.category-card-read-more {
    margin: 14px 0 0;
    font-family: "Nunito", sans-serif;
    font-size: 0.9em;
    font-weight: bold;
}

.category-card-read-more a {
    text-decoration: none;
}


/*
 * Pagination
 */

.category-masonry-pagination {
    clear: both;
    margin: 35px 0 20px;
    padding-top: 22px;

    border-top: 1px solid #ddd;

    font-family: "Nunito", sans-serif;
}

.category-masonry-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-masonry-pagination .page-numbers {
    display: inline-block;

    padding: 7px 11px;

    border: 1px solid #ddd;

    text-decoration: none;
}

.category-masonry-pagination .page-numbers.current {
    font-weight: bold;
    background: #f2f2f2;
}

.category-masonry-pagination a.page-numbers:hover,
.category-masonry-pagination a.page-numbers:focus {
    background: #f7f7f7;
}


/*
 * =========================================================
 * RESPONSIVE LAYOUT
 * =========================================================
 */


/*
 * Tablet and narrower screens:
 * switch masonry to one column.
 */

@media screen and (max-width: 700px) {

    .category-masonry-grid {
        column-count: 1;
    }

    .category-masonry-heading {
        font-size: 1.55em;
    }

}


/*
 * Small phones
 */

@media screen and (max-width: 480px) {

    .category-card-content {
        padding: 15px;
    }

    .category-card-title {
        font-size: 1.2em;
    }

}







