/* HimSomm Journal — scoped editorial single-post experience. */
body.himsomm-journal-post {
    --hsj-ink: #171411;
    --hsj-muted: #716b64;
    --hsj-wine: #6f1625;
    --hsj-gold: #b88a46;
    --hsj-paper: #f7f3ec;
    --hsj-line: #ddd5ca;
    background: var(--hsj-paper);
    color: var(--hsj-ink);
}

.himsomm-journal-post .content-area,
.himsomm-journal-post .site-main,
.himsomm-journal-post .entry-content-wrap {
    background: transparent;
}

.himsomm-journal-post .content-container,
.himsomm-journal-post .entry-content-wrap {
    max-width: 1040px;
}

.himsomm-journal-post article.entry {
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.himsomm-journal-post .entry-header {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.himsomm-journal-post .entry-title {
    color: var(--hsj-ink);
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.18;
    word-break: keep-all;
}

.himsomm-journal-post .entry-header .entry-meta {
    display: none;
}

.himsomm-journal-post .post-thumbnail,
.himsomm-journal-post .kadence-post-image {
    margin: 38px auto 56px;
    max-width: 1040px;
}

.himsomm-journal-post .post-thumbnail img,
.himsomm-journal-post .kadence-post-image img {
    width: 100%;
    max-height: 620px;
    border-radius: 2px;
    object-fit: cover;
}

.himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .post-thumbnail,
.himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .kadence-post-image {
    width: min(100%, 680px);
    height: auto;
    padding-bottom: 0;
    overflow: visible;
}

.himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .post-thumbnail .post-thumbnail-inner,
.himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .kadence-post-image .post-thumbnail-inner {
    position: static;
}

.himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .post-thumbnail img,
.himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .kadence-post-image img {
    display: block;
    flex: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(80vh, 820px);
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

.himsomm-journal-post .entry-content {
    max-width: none;
}

.hsj-meta,
.hsj-article-body,
.hsj-author,
.hsj-cta {
    width: min(100% - 40px, 760px);
    margin-right: auto;
    margin-left: auto;
}

.hsj-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 42px;
    color: var(--hsj-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .035em;
}

.hsj-meta__category {
    color: var(--hsj-wine);
    text-decoration: none;
}

.hsj-meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--hsj-gold);
}

.hsj-article-body {
    color: #28231f;
    font-size: 18px;
    line-height: 1.9;
    letter-spacing: -.012em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hsj-article-body > p,
.hsj-article-body > ul,
.hsj-article-body > ol,
.hsj-article-body > blockquote {
    margin-bottom: 1.55em;
}

.hsj-article-body .hsj-lead {
    margin-bottom: 2.2em;
    padding: 22px 24px;
    border-left: 3px solid var(--hsj-gold);
    background: #eee7dd;
    color: #3d352e;
    font-size: 19px;
    line-height: 1.75;
}

.hsj-article-body h2,
.hsj-article-body h3,
.hsj-article-body h4 {
    color: var(--hsj-ink);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.38;
    word-break: keep-all;
}

.hsj-article-body h2 {
    margin: 2.7em 0 .85em;
    padding-top: .85em;
    border-top: 1px solid var(--hsj-line);
    font-size: clamp(26px, 3.2vw, 34px);
}

.hsj-article-body h3 {
    margin: 2.1em 0 .7em;
    font-size: clamp(21px, 2.5vw, 26px);
}

.hsj-article-body a:not(.wp-element-button) {
    color: var(--hsj-wine);
    text-decoration-color: rgba(111, 22, 37, .35);
    text-underline-offset: 3px;
}

.hsj-article-body img {
    height: auto;
    border-radius: 3px;
}

.hsj-article-body figure {
    margin-top: 2.6em;
    margin-bottom: 2.6em;
}

.hsj-article-body figcaption {
    margin-top: 11px;
    color: var(--hsj-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.hsj-article-body blockquote {
    margin-right: 0;
    margin-left: 0;
    padding: 24px 30px;
    border: 0;
    border-left: 3px solid var(--hsj-wine);
    background: #eee7dd;
    color: #332b25;
    font-size: 20px;
    line-height: 1.7;
}

.hsj-article-body ul,
.hsj-article-body ol {
    padding-left: 1.35em;
}

.hsj-article-body li + li {
    margin-top: .45em;
}

.hsj-eyebrow {
    display: block;
    color: var(--hsj-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.hsj-author {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 26px;
    align-items: center;
    margin-top: 78px;
    padding: 34px;
    border-top: 1px solid var(--hsj-line);
    border-bottom: 1px solid var(--hsj-line);
}

.hsj-author__mark {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid rgba(111, 22, 37, .25);
    border-radius: 50%;
    color: var(--hsj-wine);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
}

.hsj-author h2,
.hsj-cta h2,
.hsj-related h2 {
    margin: 6px 0 8px;
    color: var(--hsj-ink);
    font-size: 25px;
    letter-spacing: -.035em;
    line-height: 1.35;
}

.hsj-author p {
    margin: 0 0 8px;
    color: var(--hsj-muted);
    font-size: 15px;
    line-height: 1.75;
}

.hsj-author a,
.hsj-card__more {
    color: var(--hsj-wine);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.hsj-cta {
    margin-top: 64px;
    padding: 44px;
    background: var(--hsj-ink);
    color: #fff;
    text-align: center;
}

.hsj-cta h2 {
    margin-top: 9px;
    color: #fff;
    font-size: clamp(26px, 3.4vw, 36px);
}

.hsj-cta p {
    max-width: 570px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.75;
}

.hsj-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.hsj-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid #fff;
    background: #fff;
    color: var(--hsj-ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.hsj-button--outline {
    background: transparent;
    color: #fff;
}

.hsj-related {
    width: min(100% - 40px, 1040px);
    margin: 90px auto 30px;
}

.hsj-related__heading {
    margin-bottom: 26px;
    text-align: center;
}

.hsj-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hsj-card {
    min-width: 0;
    border: 1px solid var(--hsj-line);
    background: #fff;
}

.hsj-card__visual {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9e2d8;
}

.hsj-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.hsj-card__visual:hover img {
    transform: scale(1.025);
}

.hsj-card__fallback {
    display: grid;
    height: 100%;
    place-content: center;
    color: var(--hsj-wine);
    text-align: center;
}

.hsj-card__fallback b {
    font-family: Georgia, serif;
    font-size: 24px;
    letter-spacing: .08em;
}

.hsj-card__fallback small {
    color: var(--hsj-gold);
    font-size: 9px;
    letter-spacing: .24em;
}

.hsj-card__body {
    padding: 21px;
}

.hsj-card time {
    color: var(--hsj-muted);
    font-size: 11px;
}

.hsj-card h3 {
    margin: 8px 0 15px;
    font-size: 18px;
    line-height: 1.48;
    letter-spacing: -.025em;
    word-break: keep-all;
}

.hsj-card h3 a {
    color: var(--hsj-ink);
    text-decoration: none;
}

@media (max-width: 767px) {
    .himsomm-journal-post .entry-title {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.24;
    }

    .himsomm-journal-post .post-thumbnail,
    .himsomm-journal-post .kadence-post-image {
        margin-top: 24px;
        margin-bottom: 36px;
    }

    .himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .post-thumbnail img,
    .himsomm-journal-post.hsj-featured-portrait .wp-site-blocks .kadence-post-image img {
        max-height: none;
    }

    .hsj-meta,
    .hsj-article-body,
    .hsj-author,
    .hsj-cta,
    .hsj-related {
        width: min(100% - 32px, 760px);
    }

    .hsj-meta {
        margin-bottom: 32px;
        font-size: 12px;
    }

    .hsj-article-body {
        font-size: 17px;
        line-height: 1.85;
    }

    .hsj-article-body h2 {
        margin-top: 2.25em;
        font-size: 26px;
    }

    .hsj-article-body blockquote {
        padding: 20px;
        font-size: 18px;
    }

    .hsj-author {
        grid-template-columns: 64px 1fr;
        gap: 17px;
        margin-top: 58px;
        padding: 28px 0;
    }

    .hsj-author__mark {
        width: 64px;
        height: 64px;
        font-size: 21px;
    }

    .hsj-author h2 {
        font-size: 21px;
    }

    .hsj-author p {
        font-size: 14px;
    }

    .hsj-cta {
        margin-top: 48px;
        padding: 36px 22px;
    }

    .hsj-cta__buttons {
        flex-direction: column;
    }

    .hsj-button {
        width: 100%;
    }

    .hsj-related {
        margin-top: 66px;
    }

    .hsj-related__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hsj-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .hsj-card__visual {
        height: 100%;
        min-height: 142px;
        aspect-ratio: auto;
    }

    .hsj-card__body {
        padding: 17px;
    }

    .hsj-card h3 {
        margin-top: 6px;
        font-size: 16px;
    }
}
