/* =========================================================
   THE SALTY FLY
   JOURNAL ARTICLE
   ========================================================= */


/* ---------------------------------------------------------
   ARTICLE HEADER
   --------------------------------------------------------- */



.article-header {
    padding-top: 90px;
    padding-bottom: 25px;
}


.article-header h1 {
    max-width: 1050px;
    margin: 0 0 22px;

    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.08;
    font-weight: 400;
}

.article-category {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

/*
   Der Hero verwendet denselben .container wie alle anderen
   Sections der Website.

   Keine eigene max-width für den Container.
   Dadurch beginnt der Hero exakt an derselben linken Kante
   wie Header und Artikelbereich.
*/

.article-hero {
    padding-top: 0;
    padding-bottom: 0;
}

.article-hero-image {
    display: block;

    width: 760px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* ---------------------------------------------------------
   IMAGE PLACEHOLDERS
   --------------------------------------------------------- */

.article-image-placeholder {
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 4 / 3;

    border: 1px dashed rgba(20, 50, 80, 0.35);
    background: rgba(20, 50, 80, 0.07);

    color: rgba(20, 50, 80, 0.65);

    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* Hero placeholder erhält die Hero-Geometrie */
.article-hero .article-image-placeholder {
    width: 760px;
    aspect-ratio: 16 / 9;
}


/* ---------------------------------------------------------
   ARTICLE BODY
   --------------------------------------------------------- */

.article-body {
    padding-top: 70px;
    padding-bottom: 100px;
}

.article-lead {
    max-width: none;
    margin: 0 0 65px;

    font-size: 25px;
    line-height: 1.55;
}

.article-content {
    max-width: none;
}

.article-content p {
    max-width: none;
    margin: 0 0 28px;
    line-height: 1.75;
}

.article-content h2 {
    margin: 65px 0 22px;

    font-size: 34px;
    line-height: 1.2;
    font-weight: 400;
}


/* ---------------------------------------------------------
   ARTICLE IMAGES
   --------------------------------------------------------- */

.article-image {
    margin: 55px 0 65px;
}

.article-image img,
.article-image .article-image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* ---------------------------------------------------------
   NEXT ARTICLE
   --------------------------------------------------------- */

.article-next {
    max-width: none;

    margin-top: 105px;
    padding-top: 45px;

    border-top: 1px solid rgba(20, 50, 80, 0.15);
}

.article-next h2 {
    margin: 18px 0 18px;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 400;
}

.article-next p:not(.eyebrow) {
    max-width: none;
    margin: 0 0 25px;
    line-height: 1.6;
}

.article-link {
    display: inline-block;
    margin-top: 5px;
}


/* ---------------------------------------------------------
   BACK TO JOURNAL
   --------------------------------------------------------- */

.article-back {
    max-width: none;

    margin-top: 80px;
    padding-top: 25px;

    border-top: 1px solid rgba(20, 50, 80, 0.15);
}

.article-back a {
    text-decoration: none;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .article-header {
        padding-top: 60px;
        padding-bottom: 25px;
    }

    .article-header h1 {
        font-size: clamp(38px, 8vw, 58px);
    }

    .article-hero-image {
        width: 100%;
    }

    .article-hero .article-image-placeholder {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .article-body {
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .article-lead {
        font-size: 22px;
        margin-bottom: 50px;
    }

    .article-content h2 {
        margin-top: 50px;
        font-size: 30px;
    }

    .article-next {
        margin-top: 75px;
    }
}


@media (max-width: 600px) {

    .article-header {
        padding-top: 45px;
        padding-bottom: 20px;
    }

    .article-header h1 {
        font-size: 38px;
    }

    .article-category {
        font-size: 13px;
    }

    .article-hero-image {
        width: 100%;
    }

    .article-hero .article-image-placeholder {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .article-body {
        padding-top: 40px;
        padding-bottom: 55px;
    }

    .article-lead {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 40px;
    }

    .article-content p {
        line-height: 1.65;
    }

    .article-content h2 {
        margin-top: 42px;
        font-size: 28px;
    }

    .article-next h2 {
        font-size: 30px;
    }

    .article-image {
        margin: 40px 0 50px;
    }
}
