/* =========================================================
   LXGW WenKai Screen — entire website
   ========================================================= */

html,
body,
body.custom-font-enabled,
button,
input,
select,
textarea {
    font-family:
        "LXGW WenKai Screen",
        "PingFang HK",
        "PingFang TC",
        "Microsoft JhengHei",
        sans-serif !important;
}

body * {
    font-family: inherit !important;
}


/* =========================================================
   Wider Twenty Twelve layout
   ========================================================= */

@media screen and (min-width: 960px) {
    body .site {
        max-width: 1200px;
        max-width: 85.714285714rem;
    }

    body .site-content {
        width: 69%;
    }

    body .widget-area {
        width: 26%;
    }
}


/* =========================================================
   Comfortable typography
   ========================================================= */

body .site-content article .entry-content,
body .site-content article .entry-content p,
body .site-content article .entry-content li {
    font-size: 21px !important;
    line-height: 1.9 !important;
}

body .site-content article .entry-content p {
    margin-bottom: 1.4em;
}

body .site-content article .entry-header .entry-title,
body .site-content article .entry-header .entry-title a {
    font-size: 32px !important;
    line-height: 1.4 !important;
}

body .site-content article .entry-summary,
body .site-content article .entry-summary p {
    font-size: 20px !important;
    line-height: 1.85 !important;
}

body .main-navigation li a {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

body .widget-area .widget {
    font-size: 18px !important;
    line-height: 1.8 !important;
}

body .widget-area .widget-title {
    font-size: 20px !important;
}

body .entry-meta {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

body .comments-area,
body .comment-content {
    font-size: 19px !important;
    line-height: 1.85 !important;
}

body .site-info {
    font-size: 16px !important;
}


/* =========================================================
   Magazine front page
   ========================================================= */

.home-magazine-primary {
    margin-bottom: 2rem;
}

.home-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
}

.home-category-section {
    border-top: 3px solid #444;
    padding-top: 12px;
}

.home-category-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.home-category-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.35;
}

.home-category-title a,
.home-category-more,
.home-feature-title a,
.home-small-title a,
.category-card-title a {
    text-decoration: none;
}

.home-category-more {
    flex: 0 0 auto;
    font-size: 16px;
}

.home-feature-story,
.home-small-story {
    padding: 0;
    border: 0;
}

.home-feature-story {
    margin: 0 0 22px;
}

.home-small-story {
    margin: 0;
}

.home-feature-title {
    margin: 14px 0 5px;
    font-size: 27px;
    line-height: 1.45;
}

.home-story-meta,
.category-card-meta {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #777;
}

.home-feature-excerpt {
    font-size: 19px;
    line-height: 1.75;
}

.home-small-stories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-small-title {
    margin: 10px 0 5px;
    font-size: 21px;
    line-height: 1.5;
}

.home-small-excerpt {
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   Homepage images
   ========================================================= */

.home-feature-image,
.home-small-image,
.category-card-image {
    display: block;
    width: 100%;
    overflow: hidden;
}

.home-feature-image {
    height: 330px;
}

.home-small-image {
    height: 170px;
}

.category-card-image {
    height: 220px;
}

.home-feature-image img,
.home-small-image img,
.category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   Category masonry archive
   ========================================================= */

.masonry-archive-header {
    margin-bottom: 28px;
}

.masonry-archive-header .archive-title {
    font-size: 31px;
    line-height: 1.4;
}

.masonry-archive-header .archive-meta {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.75;
}

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

.category-card {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
    border: 1px solid #e2e2e2;
    background: #fff;
    break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
}

.category-card-body {
    padding: 18px 20px 20px;
}

.category-card-title {
    margin: 0 0 7px;
    font-size: 24px;
    line-height: 1.5;
}

.category-card-excerpt {
    font-size: 18px;
    line-height: 1.78;
}

.category-card-readmore {
    display: inline-block;
    margin-top: 12px;
    font-size: 16px;
    text-decoration: none;
}


/* =========================================================
   Recent Posts With Thumbnails
   ========================================================= */

.rpwwt-widget ul li {
    margin-bottom: 18px;
}

.rpwwt-widget .rpwwt-post-title {
    font-size: 17px;
    line-height: 1.55;
}

.rpwwt-widget .rpwwt-post-excerpt {
    display: block !important;
    margin-top: 5px;
    font-size: 16px;
    line-height: 1.65;
    color: #555;
}


/* =========================================================
   Single-post featured image
   ========================================================= */

.single-post .entry-header img.wp-post-image {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 24px !important;
}


/* =========================================================
   Tablet and phone
   ========================================================= */

@media screen and (max-width: 800px) {
    .category-masonry {
        column-count: 1;
    }
}

@media screen and (max-width: 600px) {
    body .site-content article .entry-content,
    body .site-content article .entry-content p,
    body .site-content article .entry-content li {
        font-size: 20px !important;
        line-height: 1.85 !important;
    }

    body .site-content article .entry-header .entry-title,
    body .site-content article .entry-header .entry-title a {
        font-size: 29px !important;
    }

    .home-category-header {
        display: block;
    }

    .home-category-more {
        display: inline-block;
        margin-top: 6px;
    }

    .home-category-title {
        font-size: 26px;
    }

    .home-feature-title {
        font-size: 25px;
    }

    .home-feature-excerpt,
    .home-small-excerpt,
    .category-card-excerpt {
        font-size: 18px;
    }

    .home-small-stories {
        grid-template-columns: 1fr;
    }

    .home-small-title {
        font-size: 22px;
    }

    .home-feature-image {
        height: 240px;
    }

    .home-small-image {
        height: 210px;
    }
}
