/* =========================================
   NEANDER DIDLA — BLOG
========================================= */

:root {
    --black: #090a09;
    --black-soft: #111310;
    --cream: #eee7d5;
    --cream-soft: #d9d2c0;
    --gold: #b49a5a;
    --grey: #888b84;
    --line: rgba(238, 231, 213, 0.14);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--cream);

    font-family: var(--sans);
    line-height: 1.6;

    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 92px;

    display: flex;
    align-items: center;

    padding: 0 3%;

    z-index: 100;

    background: rgba(9, 10, 9, 0.65);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}


.logo {
    width: 45px;
    flex-shrink: 0;
}

.logo img {
    width: 30px;
    height: auto;
}


.site-header nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-header nav ul {
    list-style: none;

    display: flex;
    align-items: center;

    gap: clamp(15px, 2vw, 35px);
}

.site-header nav a {
    position: relative;

    color: rgba(255,255,255,0.78);

    font-size: 13px;
    font-weight: 400;

    white-space: nowrap;

    transition: color .3s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: var(--cream);
}

.site-header nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transition: width .3s ease;
}

.site-header nav a:hover::after,
.site-header nav a.active::after {
    width: 100%;
}


/* SOCIAL */

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: rgba(255,255,255,.75);

    font-size: 14px;

    transition: color .3s ease,
                transform .3s ease;
}

.social-icons a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}


/* MOBILE MENU */

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    color: var(--cream);

    font-size: 22px;

    cursor: pointer;
}


/* =========================================
   HERO
========================================= */

.blog-hero {
    position: relative;

    height: 82vh;
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        url("/images/blog/blog-hero.jpg")
        center center / cover no-repeat;
}


.blog-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.48);
}


.blog-hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.45),
            transparent 45%,
            rgba(0,0,0,.75)
        );
}


.blog-hero-content {
    position: relative;

    z-index: 2;

    width: 90%;
    max-width: 1000px;

    text-align: center;
}


.eyebrow {
    display: inline-block;

    color: var(--gold);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 4px;

    margin-bottom: 22px;
}


.blog-hero h1 {
    font-family: var(--serif);

    font-size: clamp(55px, 8vw, 110px);

    font-weight: 500;

    line-height: .96;

    letter-spacing: -3px;

    color: var(--cream);
}


.blog-hero h1 em {
    font-weight: 400;
}


.blog-hero p {
    max-width: 560px;

    margin: 30px auto 0;

    color: rgba(255,255,255,.78);

    font-size: 16px;
    font-weight: 300;
}


.hero-scroll {
    position: absolute;

    z-index: 3;

    bottom: 35px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 9px;

    color: rgba(255,255,255,.65);

    font-size: 9px;

    letter-spacing: 3px;
}


.hero-scroll i {
    font-size: 11px;

    animation: scrollArrow 1.8s infinite;
}


@keyframes scrollArrow {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }

}


/* =========================================
   MAIN BLOG
========================================= */

.blog-container {

    max-width: 1450px;

    margin: 0 auto;

    padding: 130px 5%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 100px;
}


/* =========================================
   INTRO
========================================= */

.section-intro {

    display: flex;

    gap: 25px;

    margin-bottom: 65px;
}


.section-number {
    color: var(--gold);

    font-size: 10px;

    letter-spacing: 2px;
}


.section-intro h2 {
    margin-top: 10px;

    font-family: var(--serif);

    font-size: clamp(40px, 5vw, 64px);

    font-weight: 400;

    line-height: 1.05;
}


.section-intro h2 em {
    font-weight: 400;
}


/* =========================================
   FEATURED
========================================= */

.featured-post {

    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(300px, .7fr);

    min-height: 520px;

    background: var(--black-soft);

    margin-bottom: 100px;
}


.featured-image {

    position: relative;

    overflow: hidden;
}


.featured-image img {

    height: 100%;

    object-fit: cover;

    transition:
        transform 1s cubic-bezier(.2,.7,.2,1);
}


.featured-post:hover
.featured-image img {

    transform: scale(1.035);
}


.featured-label {

    position: absolute;

    top: 22px;
    left: 22px;

    padding: 7px 12px;

    background: rgba(9,10,9,.75);

    border: 1px solid rgba(255,255,255,.2);

    color: var(--cream);

    font-size: 8px;

    letter-spacing: 2px;
}


.featured-details {

    padding: 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.post-meta {

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 2px;

    margin-bottom: 18px;
}


.featured-details h3 {

    font-family: var(--serif);

    font-size: clamp(35px, 4vw, 55px);

    line-height: 1.05;

    font-weight: 400;
}


.featured-details h3 em {
    font-weight: 400;
}


.featured-details p {

    max-width: 430px;

    margin-top: 25px;

    color: var(--grey);

    font-size: 14px;

    font-weight: 300;
}


/* =========================================
   LINKS
========================================= */

.read-link {

    display: inline-flex;

    align-items: center;

    gap: 15px;

    width: fit-content;

    margin-top: 32px;

    padding-bottom: 8px;

    border-bottom: 1px solid var(--gold);

    color: var(--cream);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.read-link span {

    color: var(--gold);

    transition: transform .3s ease;
}


.read-link:hover span {
    transform: translateX(5px);
}


/* =========================================
   LATEST
========================================= */

.latest-heading {

    display: flex;

    align-items: baseline;

    gap: 20px;

    border-bottom: 1px solid var(--line);

    padding-bottom: 20px;

    margin-bottom: 45px;
}


.latest-heading h2 {

    font-family: var(--serif);

    font-size: 36px;

    font-weight: 400;
}


/* =========================================
   POSTS
========================================= */

.post {

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 40px;

    padding-bottom: 55px;

    margin-bottom: 55px;

    border-bottom: 1px solid var(--line);

    scroll-margin-top: 100px;
}


.post-image {

    height: 205px;

    overflow: hidden;
}


.post-image img {

    height: 100%;

    object-fit: cover;

    transition: transform .8s ease;
}


.post:hover .post-image img {

    transform: scale(1.05);
}


.post-details h3 {

    font-family: var(--serif);

    font-size: 31px;

    line-height: 1.1;

    font-weight: 400;

    margin-bottom: 13px;
}


.post-details p {

    max-width: 520px;

    color: var(--grey);

    font-size: 14px;

    font-weight: 300;
}


/* =========================================
   TREE
========================================= */

.journal-tree {

    position: sticky;

    top: 120px;

    align-self: start;
}


.tree-header {

    border-bottom: 1px solid var(--line);

    padding-bottom: 22px;

    margin-bottom: 20px;
}


.tree-header span {

    display: block;

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 3px;
}


.tree-header h3 {

    margin-top: 7px;

    font-family: var(--serif);

    font-size: 29px;

    font-weight: 400;
}


/* TREE NODE */

.tree-node {
    position: relative;
}


.tree-toggle {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    padding: 10px 0;

    background: none;

    border: 0;

    color: var(--cream);

    font-family: var(--sans);

    font-size: 13px;

    text-align: left;

    cursor: pointer;
}


.tree-icon {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 25px;

    height: 25px;

    margin-right: 4px;

    color: var(--gold);

    font-size: 18px;

    font-weight: 300;

    transition: transform .3s ease;
}


.tree-node.open > .tree-toggle
.tree-icon {

    transform: rotate(45deg);
}


/* vertical tree line */

.tree-children {

    position: relative;

    margin-left: 12px;

    padding-left: 20px;

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition:
        max-height .45s ease,
        opacity .3s ease;
}


.tree-node.open > .tree-children {

    max-height: 1000px;

    opacity: 1;
}


.tree-children::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    bottom: 10px;

    width: 1px;

    background: var(--line);
}


/* POST LINKS */

.tree-post {

    position: relative;

    display: block;

    padding: 8px 0;

    color: var(--grey);

    font-family: var(--serif);

    font-size: 14px;

    transition:
        color .25s ease,
        padding-left .25s ease;
}


.tree-post::before {

    content: "";

    position: absolute;

    left: -20px;

    top: 50%;

    width: 13px;

    height: 1px;

    background: var(--line);
}


.tree-post:hover {

    color: var(--cream);

    padding-left: 6px;
}


.tree-post.active {

    color: var(--gold);
}


/* =========================================
   CATEGORY
========================================= */

.tree-divider {

    height: 1px;

    background: var(--line);

    margin: 30px 0;
}


.tree-label {

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}


.category-list a {

    display: flex;

    justify-content: space-between;

    padding: 8px 0;

    color: var(--grey);

    font-size: 13px;

    border-bottom: 1px solid rgba(255,255,255,.04);

    transition: color .25s ease;
}


.category-list a span {

    color: rgba(255,255,255,.3);

    font-size: 10px;
}


.category-list a:hover {

    color: var(--cream);
}


/* =========================================
   NEWSLETTER
========================================= */

.newsletter {

    padding: 120px 5%;

    background: #10120f;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}


.newsletter-inner {

    max-width: 1100px;

    margin: auto;
}


.newsletter h2 {

    font-family: var(--serif);

    font-size: clamp(45px, 6vw, 75px);

    line-height: .95;

    font-weight: 400;
}


.newsletter h2 em {
    font-weight: 400;
}


.newsletter p {

    max-width: 450px;

    margin-top: 25px;

    color: var(--grey);

    font-size: 14px;
}


.newsletter form {

    display: flex;

    max-width: 650px;

    margin-top: 45px;

    border-bottom: 1px solid rgba(238,231,213,.4);
}


.newsletter input {

    flex: 1;

    min-width: 0;

    padding: 16px 0;

    background: transparent;

    border: 0;

    outline: none;

    color: var(--cream);

    font-family: var(--sans);

    font-size: 14px;
}


.newsletter input::placeholder {

    color: #6e716b;
}


.newsletter button {

    padding: 16px 0 16px 25px;

    background: none;

    border: 0;

    color: var(--cream);

    font-family: var(--sans);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

    cursor: pointer;
}


.newsletter button span {

    color: var(--gold);

    margin-left: 10px;
}


/* =========================================
   FOOTER
========================================= */

footer {

    background: #060706;

    padding: 55px 5%;
}


.footer-inner {

    max-width: 1400px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-logo img {

    width: 38px;
}


.footer-social {

    display: flex;

    gap: 22px;
}


.footer-social a {

    color: #777a74;

    transition: color .3s ease;
}


.footer-social a:hover {

    color: var(--gold);
}


.footer-inner p {

    color: #666963;

    font-size: 10px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .site-header nav ul {
        gap: 16px;
    }

    .site-header nav a {
        font-size: 11px;
    }

    .blog-container {
        gap: 60px;
    }

    .featured-details {
        padding: 40px;
    }

}


@media (max-width: 900px) {

    .site-header {
        height: 75px;
    }

    .site-header nav {

        position: fixed;

        top: 75px;
        left: 0;

        width: 100%;
        height: calc(100vh - 75px);

        background: rgba(9,10,9,.98);

        display: flex;

        justify-content: center;

        transform: translateX(100%);

        transition: transform .4s ease;
    }

    .site-header nav.open {
        transform: translateX(0);
    }

    .site-header nav ul {

        flex-direction: column;

        justify-content: center;

        text-align: center;

        gap: 25px;
    }

    .site-header nav a {
        font-size: 15px;
    }

    .social-icons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    .blog-container {

        grid-template-columns: 1fr;

        padding-top: 90px;
    }


    .journal-tree {

        position: relative;

        top: auto;

        order: -1;

        padding: 25px;

        background: var(--black-soft);

        border: 1px solid var(--line);
    }


    .featured-post {

        grid-template-columns: 1fr;
    }


    .featured-image {
        height: 400px;
    }

}


@media (max-width: 600px) {

    .blog-hero {
        min-height: 600px;
    }

    .blog-hero h1 {
        font-size: 55px;
        letter-spacing: -2px;
    }


    .blog-container {
        padding-left: 6%;
        padding-right: 6%;
        padding-bottom: 80px;
    }


    .section-intro {
        gap: 15px;
    }


    .section-intro h2 {
        font-size: 40px;
    }


    .featured-details {
        padding: 35px 25px;
    }


    .featured-image {
        height: 300px;
    }


    .post {

        grid-template-columns: 1fr;

        gap: 25px;
    }


    .post-image {
        height: 250px;
    }


    .newsletter {
        padding: 90px 6%;
    }


    .newsletter form {
        display: block;

        border-bottom: 0;
    }


    .newsletter input {

        display: block;

        width: 100%;

        border-bottom: 1px solid rgba(238,231,213,.4);
    }


    .newsletter button {

        padding-left: 0;

        margin-top: 10px;
    }


    .footer-inner {

        flex-direction: column;

        align-items: flex-start;
    }

}