﻿
/* =========================================================
   STREGA
   JOURNAL
========================================================= */


/* =========================================================
   HERO
========================================================= */

.journal-hero {
    position: relative;
    isolation: isolate;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--strega-paper);
    background: var(--strega-green-deep);
}

.journal-hero__image {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

    .journal-hero__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 47%;
    }

    .journal-hero__image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(19, 24, 20, 0.76) 0%, rgba(19, 24, 20, 0.46) 39%, rgba(19, 24, 20, 0.08) 82% );
    }

.journal-hero__inner {
    position: relative;
    z-index: 1;
    width: min( calc(100% - 3rem), var(--content-width) );
    margin: 0 auto;
    padding-bottom: 6rem;
}

.journal-hero__title {
    max-width: 800px;
    margin: 0.8rem 0 0;
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 400;
    line-height: 0.92;
}

.journal-hero__intro {
    max-width: 620px;
    margin: 2rem 0 0;
    font-size: 1.25rem;
    line-height: 1.55;
    opacity: 0.92;
}


/* =========================================================
   INDEX
========================================================= */

.journal-index {
    padding: 5rem 0 9rem;
    background: var(--strega-paper);
}

.journal-index__inner {
    width: min( calc(100% - 3rem), 1280px );
    margin: 0 auto;
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.journal-category-nav {
    margin-bottom: 5rem;
    padding-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    border-bottom: 1px solid var(--strega-line);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

    .journal-category-nav a {
        position: relative;
        padding-bottom: 0.25rem;
    }

        .journal-category-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 100%;
            bottom: -0.4rem;
            height: 1px;
            background: currentColor;
            transition: right 180ms ease;
        }

        .journal-category-nav a:hover::after,
        .journal-category-nav a.is-active::after {
            right: 0;
        }


/* =========================================================
   CATEGORY HEADING
========================================================= */

.journal-category-heading {
    margin-bottom: 4rem;
}

    .journal-category-heading h2 {
        margin: 0.6rem 0 0;
        font-size: clamp(2.8rem, 5vw, 5rem);
        font-weight: 400;
        line-height: 0.98;
    }


/* =========================================================
   GRID
========================================================= */

.journal-index__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4.5rem 2rem;
}


/* =========================================================
   JOURNAL CARD
========================================================= */

.journal-card {
    min-width: 0;
}

.journal-card__image {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    background: linear-gradient( 145deg, #586052, #303b31 );
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

    .journal-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 350ms ease;
    }

.journal-card:hover .journal-card__image img {
    transform: scale(1.025);
}

.journal-card__content .eyebrow {
    margin-bottom: 0.5rem;
}

.journal-card h2 {
    margin: 0 0 0.9rem;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.08;
}

    .journal-card h2 a {
        color: inherit;
        text-decoration: none;
    }

.journal-card p {
    margin: 0 0 1.1rem;
    line-height: 1.6;
    opacity: 0.75;
}

.journal-card time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    opacity: 0.5;
}


/* =========================================================
   FEATURED CARD
========================================================= */

.journal-card--featured {
    grid-column: span 2;
}

    .journal-card--featured .journal-card__image {
        aspect-ratio: 16 / 9;
    }

    .journal-card--featured h2 {
        max-width: 760px;
        font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    }

    .journal-card--featured p {
        max-width: 720px;
        font-size: 1.05rem;
    }


/* =========================================================
   EMPTY
========================================================= */

.journal-empty {
    max-width: 620px;
    padding: 5rem 0;
}

    .journal-empty h2 {
        margin: 0.6rem 0 1rem;
        font-size: clamp(2.5rem, 4vw, 4rem);
        font-weight: 400;
    }

    .journal-empty p {
        max-width: 480px;
        line-height: 1.65;
    }


/* =========================================================
   ARTICLE
========================================================= */

.journal-article {
    background: var(--strega-paper);
}


/* =========================================================
   PREVIEW BAR
========================================================= */

.journal-preview-bar {
    position: relative;
    z-index: 50;
    min-height: 52px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: white;
    background: #7a4a24;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
}

    .journal-preview-bar a {
        text-decoration: underline;
    }


/* =========================================================
   ARTICLE HEADER
========================================================= */

.journal-article__header {
    padding: 8rem 0 5rem;
    background: var(--strega-cream);
}

.journal-article__header-inner {
    width: min( calc(100% - 3rem), 960px );
    margin: 0 auto;
    text-align: center;
}

.journal-article__title {
    max-width: 900px;
    margin: 0.8rem auto 0;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 0.95;
}

.journal-article__introduction {
    max-width: 700px;
    margin: 2rem auto;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    line-height: 1.55;
}

.journal-article__header time {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    opacity: 0.55;
}


/* =========================================================
   ARTICLE HERO IMAGE
========================================================= */

.journal-article__hero-image,
.journal-article__hero-placeholder {
    width: min( calc(100% - 3rem), 1300px );
    margin: 4rem auto 0;
}

.journal-article__hero-image {
    margin-bottom: 0;
}

    .journal-article__hero-image img {
        width: 100%;
        max-height: 760px;
        display: block;
        object-fit: cover;
    }

.journal-article__hero-placeholder {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient( 145deg, #586052, #2c352d );
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.journal-article__body {
    width: min( calc(100% - 3rem), 720px );
    margin: 0 auto;
    padding: 6rem 0;
    font-size: 1.12rem;
    line-height: 1.78;
}

    .journal-article__body p {
        margin: 0 0 1.8rem;
    }

    .journal-article__body h2 {
        margin: 4rem 0 1.35rem;
        font-size: clamp(2rem, 3vw, 2.6rem);
        font-weight: 400;
        line-height: 1.1;
    }

    .journal-article__body h3 {
        margin: 3rem 0 1rem;
        font-size: 1.55rem;
        font-weight: 400;
        line-height: 1.2;
    }

    .journal-article__body blockquote {
        margin: 3.5rem 0;
        padding: 0.25rem 0 0.25rem 2rem;
        border-left: 1px solid var(--strega-brown);
        font-size: clamp(1.4rem, 2.3vw, 1.8rem);
        font-style: italic;
        line-height: 1.5;
    }

    .journal-article__body ul,
    .journal-article__body ol {
        margin: 1.5rem 0 2rem;
        padding-left: 1.75rem;
    }

    .journal-article__body li {
        margin-bottom: 0.65rem;
    }

    .journal-article__body a {
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .journal-article__body strong {
        font-weight: 700;
    }

    .journal-article__body em {
        font-style: italic;
    }

    .journal-article__body > img {
        width: 100%;
        height: auto;
        margin: 3rem 0;
    }


    /* =========================================================
   INLINE JOURNAL FIGURES
========================================================= */

    .journal-article__body figure {
        width: min( calc(100vw - 3rem), 960px );
        margin: 3.5rem 50%;
        transform: translateX(-50%);
    }

        .journal-article__body figure img {
            width: 100%;
            height: auto;
            display: block;
            margin: 0;
        }


/* =========================================================
   ARTICLE FOOTER
========================================================= */

.journal-article__footer {
    width: min( calc(100% - 3rem), 720px );
    margin: 0 auto;
    padding: 2.5rem 0 7rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--strega-line);
}

    .journal-article__footer p {
        max-width: 360px;
        margin: 0.6rem 0 0;
        font-size: 0.9rem;
        opacity: 0.65;
    }

    .journal-article__footer .text-link {
        flex: 0 0 auto;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    .journal-hero__image img {
        object-position: 54% center;
    }

    .journal-hero__image::after {
        background: linear-gradient( 90deg, rgba(19, 24, 20, 0.78) 0%, rgba(19, 24, 20, 0.42) 62%, rgba(19, 24, 20, 0.12) 100% );
    }

    .journal-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journal-card--featured {
        grid-column: span 2;
    }

    .journal-article__hero-placeholder {
        min-height: 480px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .journal-hero {
        min-height: 500px;
    }

    .journal-hero__image img {
        object-position: 54% center;
    }

    .journal-hero__image::after {
        background: linear-gradient( 90deg, rgba(19, 24, 20, 0.76), rgba(19, 24, 20, 0.38) );
    }

    .journal-hero__inner,
    .journal-index__inner,
    .journal-article__header-inner,
    .journal-article__hero-image,
    .journal-article__hero-placeholder,
    .journal-article__body,
    .journal-article__footer {
        width: calc(100% - 2rem);
    }

    .journal-hero__inner {
        padding-bottom: 4rem;
    }

    .journal-hero__title {
        font-size: clamp(3.3rem, 16vw, 5rem);
    }

    .journal-index {
        padding: 4rem 0 6rem;
    }

    .journal-category-nav {
        gap: 1.25rem;
        margin-bottom: 3.5rem;
    }

    .journal-index__grid {
        grid-template-columns: 1fr;
    }

    .journal-card--featured {
        grid-column: auto;
    }

        .journal-card--featured .journal-card__image {
            aspect-ratio: 4 / 3;
        }

    .journal-article__header {
        padding: 5rem 0 3rem;
    }

    .journal-article__title {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .journal-article__hero-placeholder {
        min-height: 360px;
    }

    .journal-article__body {
        padding: 4rem 0;
        font-size: 1.05rem;
    }

        .journal-article__body figure {
            width: calc(100vw - 2rem);
            margin-top: 2.5rem;
            margin-bottom: 2.5rem;
        }

    .journal-article__footer {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 5rem;
    }

    .journal-preview-bar {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}
