/* BREAKPOINTS: 1023px (tablet), 767px (mobile menu), 399px (small phones). */
@media screen and (max-width: 1023px){
    /* HEADER. */
    .header-nav .menu{ gap: 24px; }

    /* HOME LEAD. */
    .home-lead-wrap{ padding-top: 32px; }
    .home-lead-thumb,
    .home-lead-body{ grid-column: 1 / -1; }
    .home-lead-thumb{ margin-bottom: 20px; }
    .home-lead-title{ font-size: 30px; line-height: 38px; }

    /* POST GRID. */
    .post-grid{ grid-template-columns: repeat(3, minmax(0px, 1fr)); }

    /* FOOTER. */
    .footer-col-brand{ grid-column: 1 / -1; margin-bottom: 32px; }
    .footer-col{ grid-column: span 6; }
}
@media screen and (max-width: 767px){
    .container,
    .container-text{ width: min(100% - 32px, var(--th-container)); }

    /* HEADER. */
    .header-top{ height: 60px; gap: 8px; }
    .header-brand-name{ font-size: 24px; line-height: 28px; }
    .brand-mark{ flex-basis: 24px; width: 24px; height: 24px; }
    .header-toggle{ visibility: visible; }
    .header-nav{ display: none; position: absolute; left: 0px; right: 0px; top: 100%; z-index: 50; background: var(--th-white); border-bottom: 1px solid var(--th-line); }
    .header-nav.is-open{ display: block; }
    .header-nav .menu{ display: block; width: min(100% - 32px, var(--th-container)); margin-inline: auto; padding: 8px 0px; }
    .header-nav .menu li + li{ border-top: 1px solid var(--th-line); }
    .header-nav .menu a{ padding: 12px 0px; border-bottom: 0px; }
    .header-search{ padding: 12px 0px; }

    /* BLOCK HEAD. */
    .block-head{ margin-bottom: 8px; }
    .block-title{ font-size: 18px; line-height: 24px; }

    /* HOME LEAD. */
    .home-lead-wrap{ padding-top: 16px; }
    .home-lead-thumb{ margin-bottom: 16px; }
    .home-lead-title{ margin-bottom: 8px; font-size: 24px; line-height: 32px; }
    .home-lead-excerpt{ margin-bottom: 8px; font-size: 17px; line-height: 27px; }

    /* POST GRID: rows with a thumbnail on the left. */
    .home-more,
    .single-related{ padding-top: 48px; }
    .post-grid{ display: block; }
    .post-item{ display: grid; grid-template-columns: 120px minmax(0px, 1fr); gap: 16px; padding: 16px 0px; border-bottom: 1px solid var(--th-line); }
    .post-item-thumb{ width: 120px; height: 80px; aspect-ratio: auto; margin-bottom: 0px; }
    .post-item .post-cat{ margin-bottom: 4px; }
    .post-item-title{
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 4px;
        font-size: 16px;
        line-height: 22px;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    .home-more-foot{ margin-top: 24px; }
    .home-more-foot .btn{ width: 100%; }

    /* ARCHIVE. */
    .archive-head{ padding-top: 32px; }
    .archive-title{ margin-bottom: 16px; font-size: 28px; line-height: 36px; }
    .block-pagination{ margin-top: 32px; }

    /* SINGLE. */
    .single-head{ padding-top: 24px; }
    .single-title{ margin-bottom: 12px; font-size: 28px; line-height: 36px; }
    .single-meta{ margin-bottom: 24px; font-size: 13px; }
    .single-thumb{ width: 100%; margin-bottom: 24px; }
    .single-thumb img{ border-radius: 0px; }
    .single-thumb figcaption{ width: min(100% - 32px, var(--th-text-width)); margin-inline: auto; }
    .article-body{ font-size: 19px; line-height: 31px; }
    .article-body h2{ margin-top: 32px; font-size: 23px; line-height: 30px; }
    .article-body h3{ font-size: 20px; line-height: 28px; }

    /* 404. */
    .not-found{ padding-top: 40px; }

    /* FOOTER. */
    .site-footer{ margin-top: 64px; }
    .footer-inner{ padding: 40px 0px 32px; }
    .footer-col-brand{ margin-bottom: 24px; }
    .footer-bottom{ flex-direction: column; gap: 4px; }
}
@media screen and (max-width: 399px){
    .post-item{ grid-template-columns: 96px minmax(0px, 1fr); gap: 12px; }
    .post-item-thumb{ width: 96px; height: 64px; }
    .post-item-title{ font-size: 15px; line-height: 21px; }
}
@media screen and (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
}
