@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELL child theme customized for HWINGNEST.
    Version: 1.0.1
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/*
 * HWINGNEST Journal style
 * Add the "journal-page" class to the top Group block on the Journal page.
 * The child theme also adds "hwingnest-journal" to pages with the slug
 * "journal" or "the-journal".
 */

:root {
    --hn-bg: #f1ece6;
    --hn-footer-bg: #e7dccf;
    --hn-card: #fffdfa;
    --hn-text: #453832;
    --hn-muted: #8f7c72;
    --hn-line: #e7ddd5;
    --hn-accent: #c98258;
    --hn-accent-dark: #9c6247;
    --hn-shadow: 0 18px 36px rgba(69, 56, 50, .08);
}

body.hwingnest-journal,
body:has(.journal-page) {
    background: var(--hn-bg);
    color: var(--hn-text);
}

body.hwingnest-journal #content,
body:has(.journal-page) #content {
    background: var(--hn-bg);
}

body.hwingnest-journal .l-header,
body:has(.journal-page) .l-header {
    background: rgba(247, 242, 236, .92);
    border-bottom: 1px solid rgba(231, 221, 213, .72);
    box-shadow: none;
}

body.hwingnest-journal .l-footer,
body:has(.journal-page) .l-footer {
    background: var(--hn-footer-bg);
    border-top: 0;
    color: var(--hn-text);
}

.journal-page {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(48px, 7vw, 88px) 20px 96px;
}

.journal-page .journal-hero {
    margin-bottom: clamp(40px, 6vw, 64px);
    text-align: center;
}

.journal-page h1,
.journal-page .journal-title {
    margin: 0 0 14px;
    color: var(--hn-text);
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
}

.journal-page .journal-lead {
    margin: 0;
    color: var(--hn-muted);
    font-size: 16px;
    line-height: 1.8;
}

.journal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    justify-content: center;
    margin: 42px 0 clamp(44px, 6vw, 68px);
}

.journal-tabs a {
    min-width: 88px;
    padding: 10px 18px;
    border: 1px solid var(--hn-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(69, 56, 50, .04);
    color: var(--hn-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.journal-tabs a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(69, 56, 50, .08);
}

.journal-tabs a.is-active,
.journal-tabs .current-menu-item > a,
.journal-tabs .current-cat > a {
    border-color: var(--hn-accent);
    background: var(--hn-accent);
    color: #fff;
}

.journal-page .p-postList {
    gap: 32px;
}

.journal-page .p-postList.-type-card,
.journal-page .p-postList.-type-thumb,
.journal-page .p-postList:not(.-type-list) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-page .p-postList__item {
    height: 100%;
    margin: 0;
}

.journal-page .p-postList__link {
    height: 100%;
    padding: 14px 14px 20px;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--hn-card);
    box-shadow: var(--hn-shadow);
    color: var(--hn-text);
    transition: transform .2s ease, box-shadow .2s ease;
}

.journal-page .p-postList__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px rgba(69, 56, 50, .12);
}

.journal-page .p-postList__thumb,
.journal-page .c-postThumb {
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 16px;
}

.journal-page .p-postList__thumb::before,
.journal-page .c-postThumb::before {
    padding-top: 66%;
}

.journal-page .p-postList__thumb img,
.journal-page .c-postThumb__figure img,
.journal-page .c-postThumb img {
    filter: saturate(.94) contrast(.98);
    transition: transform .28s ease;
}

.journal-page .p-postList__link:hover .p-postList__thumb img,
.journal-page .p-postList__link:hover .c-postThumb img {
    transform: scale(1.035);
}

.journal-page .p-postList__meta {
    color: var(--hn-muted);
    font-size: 12px;
}

.journal-page .p-postList__times,
.journal-page .p-postList__date,
.journal-page time {
    color: var(--hn-accent-dark);
    font-weight: 700;
}

.journal-page .p-postList__cat,
.journal-page .c-categoryList__link,
.journal-page .c-categoryList a,
.journal-page .cat-item a,
.journal-page .tag-cloud-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid var(--hn-line);
    border-radius: 999px;
    background: #fff;
    color: var(--hn-muted);
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.journal-page .p-postList__title {
    margin-top: 12px;
    color: var(--hn-text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
}

.journal-page .p-postList__excerpt {
    margin-top: 12px;
    color: var(--hn-muted);
    font-size: 15px;
    line-height: 1.72;
}

.journal-page .p-postList__body {
    padding: 0 8px 2px;
}

.journal-page .p-postList__body::after {
    content: "Read Article";
    display: block;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(231, 221, 213, .75);
    color: var(--hn-accent);
    font-size: 13px;
    font-weight: 800;
}

.journal-page .journal-topics {
    margin-top: clamp(64px, 8vw, 92px);
    padding-top: 44px;
    border-top: 1px solid var(--hn-line);
    text-align: center;
}

.journal-page .journal-topics h2 {
    margin-bottom: 28px;
    color: var(--hn-text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.journal-page .topic-cloud,
.journal-page .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.journal-page a {
    color: var(--hn-accent);
}

@media (max-width: 959px) {
    .journal-page .p-postList.-type-card,
    .journal-page .p-postList.-type-thumb,
    .journal-page .p-postList:not(.-type-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .journal-page {
        padding-inline: 16px;
    }

    .journal-page .p-postList.-type-card,
    .journal-page .p-postList.-type-thumb,
    .journal-page .p-postList:not(.-type-list) {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .journal-tabs a {
        min-width: 74px;
        padding-inline: 14px;
    }
}
