/* ============================================================
   NATZ — THE GRIMOIRE
   BLOG CSS
============================================================ */


/* ============================================================
   GOOGLE FONTS
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Montserrat:wght@400;500;600;700&family=UnifrakturCook:wght@700&display=swap');



/* ============================================================
   VARIABLES
============================================================ */

:root {

    --bg:
        #050506;

    --bg-soft:
        #09080a;

    --bg-card:
        #0b0b0d;

    --bg-card-hover:
        #100b0e;

    --pink:
        #f23862;
        
    --rose: #e8365d;

    --crimson: #c0143c;

    --pink-light:
        #ff5578;

    --pink-dark:
        #b9143d;

    --pink-soft:
        rgba(242, 56, 98, .18);

    --border:
        rgba(242, 56, 98, .20);

    --border-soft:
        rgba(255, 255, 255, .08);

    --text:
        #eee8e8;

    --text-soft:
        #7e777b;

    --text-dark:
        #403a3d;

    --heading:
        "Cormorant Garamond",
        Georgia,
        serif;

    --display:
        "Cormorant Garamond",
        Georgia,
        serif;

    --body:
        "Montserrat",
        Arial,
        sans-serif;

    --logo:
        "UnifrakturCook",
        "Times New Roman",
        serif;

    --container:
        1530px;

}



/* ============================================================
   RESET
============================================================ */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    background:
        var(--bg);

    color:
        var(--text);

    font-family:
        var(--body);

    overflow-x: hidden;

}


img {

    display: block;

    width: 100%;

}


button,
a {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}



/* ============================================================
   SCROLLBAR
============================================================ */

::-webkit-scrollbar {

    width: 7px;

}


::-webkit-scrollbar-track {

    background:
        #050506;

}


::-webkit-scrollbar-thumb {

    background:
        var(--pink);

}


::-webkit-scrollbar-thumb:hover {

    background:
        var(--pink-light);

}



/* ============================================================
   MAGIC PARTICLES
============================================================ */

#magic-particles {

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;

}


.magic-particle {

    position: absolute;

    bottom: -20px;

    width: var(--size);

    height: var(--size);

    border-radius: 50%;

    background:
        var(--pink);

    opacity:
        var(--opacity);

    box-shadow:
        0 0 8px
        rgba(242, 56, 98, .75);

    animation:
        magicRise
        var(--duration)
        linear
        infinite;

    animation-delay:
        var(--delay);

}


.magic-particle.star {

    width: auto;
    height: auto;

    background:
        transparent;

    box-shadow:
        none;

    color:
        var(--pink);

    font-size:
        var(--size);

    line-height: 1;

}


@keyframes magicRise {

    0% {

        transform:
            translate3d(
                0,
                0,
                0
            )
            scale(.7)
            rotate(0deg);

        opacity:
            0;

    }


    10% {

        opacity:
            var(--opacity);

    }


    50% {

        transform:
            translate3d(
                var(--drift),
                -55vh,
                0
            )
            scale(1)
            rotate(120deg);

    }


    90% {

        opacity:
            var(--opacity);

    }


    100% {

        transform:
            translate3d(
                calc(var(--drift) * -0.5),
                -115vh,
                0
            )
            scale(.4)
            rotate(250deg);

        opacity:
            0;

    }

}



/* ============================================================
   HEADER
============================================================ */

.site-header {

    height: 66px;

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 50;

    display: flex;

    align-items: center;

    padding:
        0
        max(
            24px,
            calc(
                (100vw - 1500px) / 2
            )
        );

    background:
        rgba(5, 1, 8, .88);

    border-bottom:
        1px solid
        rgba(232, 54, 93, .17);

    backdrop-filter:
        blur(12px);

}


/* ============================================================
   LOGO
============================================================ */

.brand {

    font-family:
        "Old English Text MT",
        "UnifrakturCook",
        serif;

    font-weight: 700;

    font-size: 30px;

    color:
        var(--rose);

    line-height: 1;

    text-decoration: none;

    transition:
        .2s;

}


/* Logo hover */

.brand:hover {

    color:
        var(--rose);

    text-shadow:
        0 0 20px
        rgba(232, 54, 93, .5);

}


/* ============================================================
   MAIN NAV
============================================================ */

.main-nav {

    display: flex;

    gap: 32px;

    margin: auto;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 2px;

}


/* Links */

.nav-link {

    position: relative;

    padding:
        24px 0;

    color:
        #b18f99;

    text-decoration: none;

    transition:
        color .2s ease;

}


/* ============================================================
   NAVIGATION UNDERLINE
============================================================ */

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 17px;

    height: 1px;

    background:
        var(--rose);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform .2s ease;

}


/* ============================================================
   HOVER + ACTIVE
============================================================ */

.nav-link:hover,
.nav-link.active {

    color:
        var(--rose);

}


/* Linha aparece no hover */

.nav-link:hover::after {

    transform:
        scaleX(1);

}


/* Linha permanece na página atual */

.nav-link.active::after {

    transform:
        scaleX(1);

}


/* ============================================================
   HEADER SUPPORT
============================================================ */

.header-support {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 12px;

    border:
        1px solid
        var(--crimson);

    padding:
        6px 13px;

    color:
        inherit;

    text-decoration: none;

    transition:
        .2s;

}


/* Support hover */

.header-support:hover {

    background:
        var(--rose);

    color:
        white;

}


/* ============================================================
   MOBILE MENU
============================================================ */

.menu-toggle {

    display: none;

    background:
        none;

    border:
        0;

    color:
        var(--rose);

    cursor:
        pointer;

}


.menu-toggle span {

    display: block;

    width:
        23px;

    height:
        1px;

    background:
        currentColor;

    margin:
        5px;

}

/* ============================================================
   HERO
============================================================ */

.grimoire-hero {

    position: relative;

    z-index: 1;

    min-height:
        560px;

    max-width:
        var(--container);

    margin:
        0 auto;

    padding:
        98px 55px 65px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}


.grimoire-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 30% 30%,
            rgba(80, 0, 20, .20),
            transparent 50%
        );

}



/* ============================================================
   EYEBROW
============================================================ */

.eyebrow {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 20px;

    color:
        var(--pink);

    font-size:
        12px;

    font-weight:
        600;

    letter-spacing:
        4px;

    text-transform:
        uppercase;

}


.eyebrow span {

    width: 25px;

    height: 1px;

    background:
        var(--pink);

}



/* ============================================================
   GRIMOIRE TITLE
============================================================ */

.hero-content {

    position: relative;

    z-index: 2;

}


.hero-content h1 {

    display: flex;

    flex-direction: column;

    margin:
        0;

    font-family:
        var(--display);

    font-weight:
        700;

    line-height:
        .75;

    letter-spacing:
        -4px;

    text-transform:
        uppercase;

}


.hero-content h1 span {

    color:
        #f5f2f2;

    font-size:
        clamp(75px, 9vw, 145px);

}


.hero-content h1 strong {

    color:
        var(--pink);

    font-size:
        clamp(95px, 11vw, 175px);

    font-weight:
        700;

    text-shadow:
        0 0 35px
        rgba(242, 56, 98, .08);

}


.hero-description {

    margin-top:
        42px;

    max-width:
        530px;

    color:
        #4f494c;

    font-size:
        14px;

    line-height:
        1.8;

    letter-spacing:
        1px;

}



/* ============================================================
   FILTERS
============================================================ */

.filters {

    position: relative;

    z-index: 5;

    align-self:
        flex-end;

    display: flex;

    gap: 7px;

    margin-top:
        -35px;

}


.filter-button {

    min-width:
        74px;

    height:
        38px;

    padding:
        0 18px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    background:
        rgba(5, 5, 6, .85);

    color:
        #514c4e;

    font-size:
        11px;

    font-weight:
        600;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}


.filter-button:hover {

    color:
        var(--pink);

    border-color:
        rgba(242, 56, 98, .45);

}


.filter-button.active {

    color:
        #fff;

    background:
        var(--pink);

    border-color:
        var(--pink);

    box-shadow:
        0 0 24px
        rgba(242, 56, 98, .25);

}



/* ============================================================
   ENTRY DIVIDER
============================================================ */

.entries-divider {

    position: relative;

    z-index: 2;

    max-width:
        1760px;

    margin:
        0 auto;

    padding:
        0 35px;

    display: flex;

    align-items: center;

    gap: 18px;

}


.divider-line {

    flex: 1;

    height: 1px;

    background:
        rgba(242, 56, 98, .32);

}


.divider-symbol {

    color:
        var(--pink);

    font-size:
        14px;

}


.entry-count {

    color:
        rgba(242, 56, 98, .62);

    font-size:
        11px;

    font-weight:
        600;

    letter-spacing:
        4px;

}



/* ============================================================
   BLOG SECTION
============================================================ */

.blog-section {

    position: relative;

    z-index: 2;

    padding:
        70px 0 115px;

}


.blog-container {

    width:
        min(
            calc(100% - 80px),
            1650px
        );

    margin:
        0 auto;

}



/* ============================================================
   FEATURED POST
============================================================ */

.featured-post {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    min-height:
        515px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    background:
        rgba(10, 10, 12, .92);

    overflow:
        hidden;

    transition:
        border-color .35s ease,
        box-shadow .35s ease;

}


.featured-post:hover {

    border-color:
        rgba(242, 56, 98, .45);

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .35);

}



/* ============================================================
   FEATURED IMAGE
============================================================ */

.featured-image {

    position: relative;

    min-height:
        515px;

    overflow:
        hidden;

}


.featured-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .08),
            rgba(5, 5, 6, .88)
        );

}


.featured-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter:
        grayscale(.35)
        brightness(.62);

    transition:
        transform .8s ease,
        filter .8s ease;

}


.featured-post:hover .featured-image img {

    transform:
        scale(1.045);

    filter:
        grayscale(.15)
        brightness(.7);

}


.featured-tags {

    position: absolute;

    z-index: 3;

    top: 20px;

    left: 20px;

    display: flex;

    gap: 8px;

}



/* ============================================================
   TAGS
============================================================ */

.tag {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height:
        27px;

    padding:
        0 12px;

    border:
        1px solid
        rgba(242, 56, 98, .55);

    background:
        rgba(5, 5, 6, .40);

    color:
        var(--pink);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

}


.tag.latest {

    background:
        var(--pink);

    color:
        #fff;

    border-color:
        var(--pink);

}



/* ============================================================
   FEATURED CONTENT
============================================================ */

.featured-content {

    padding:
        110px 50px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

}


.post-meta {

    color:
        #4c474a;

    font-size:
        10px;

    font-weight:
        500;

    letter-spacing:
        3px;

    text-transform:
        uppercase;

}


.featured-content h2 {

    margin:
        30px 0 22px;

    max-width:
        600px;

    color:
        #f1eded;

    font-family:
        var(--heading);

    font-size:
        clamp(35px, 3vw, 50px);

    font-weight:
        700;

    line-height:
        1.05;

    text-transform:
        uppercase;

}


.title-line {

    width:
        48px;

    height:
        2px;

    margin-bottom:
        28px;

    background:
        var(--pink);

}


.featured-content p {

    max-width:
        650px;

    color:
        #514c4e;

    font-size:
        15px;

    line-height:
        1.9;

}


.read-more {

    align-self:
        flex-start;

    margin-top:
        35px;

    color:
        var(--pink);

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

    transition:
        color .25s ease,
        transform .25s ease;

}


.read-more:hover {

    color:
        var(--pink-light);

    transform:
        translateX(5px);

}



/* ============================================================
   POST GRID
============================================================ */

.post-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        24px;

    margin-top:
        24px;

}



/* ============================================================
   BLOG CARD
============================================================ */

.blog-card {

    min-width:
        0;

    border:
        1px solid
        rgba(255, 255, 255, .09);

    background:
        rgba(10, 10, 12, .94);

    overflow:
        hidden;

    transition:
        transform .35s ease,
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;

}


.blog-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(242, 56, 98, .42);

    background:
        var(--bg-card-hover);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, .35);

}



/* ============================================================
   CARD IMAGE
============================================================ */

.card-image {

    position: relative;

    height:
        220px;

    overflow:
        hidden;

}


.card-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    filter:
        brightness(.56)
        grayscale(.2);

    transition:
        transform .6s ease,
        filter .6s ease;

}


.blog-card:hover .card-image img {

    transform:
        scale(1.06);

    filter:
        brightness(.68)
        grayscale(0);

}


.card-image .tag {

    position: absolute;

    top: 16px;

    left: 16px;

}



/* ============================================================
   CARD CONTENT
============================================================ */

.card-content {

    min-height:
        300px;

    padding:
        31px 28px 28px;

    display:
        flex;

    flex-direction:
        column;

}


.card-content h3 {

    margin:
        18px 0;

    color:
        #e8e2e2;

    font-family:
        var(--heading);

    font-size:
        21px;

    font-weight:
        700;

    line-height:
        1.1;

    text-transform:
        uppercase;

    transition:
        color .25s ease;

}


.blog-card:hover h3 {

    color:
        var(--pink-light);

}


.card-content p {

    color:
        #514c4e;

    font-size:
        13px;

    line-height:
        1.9;

}


.card-content .read-more {

    margin-top:
        auto;

}



/* ============================================================
   FOOTER
============================================================ */

.site-footer {

    position: relative;

    z-index: 3;

    border-top:
        1px solid
        rgba(242, 56, 98, .12);

    background:
        #050506;

}


.footer-inner {

    min-height:
        255px;

    padding:
        70px 30px 55px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;

}


.footer-brand {

    color:
        var(--pink);

    font-family:
        var(--logo);

    font-size:
        40px;

    transition:
        color .25s ease,
        text-shadow .25s ease;

}


.footer-brand:hover {

    color:
        var(--pink-light);

    text-shadow:
        0 0 20px
        rgba(242, 56, 98, .55);

}


.footer-nav {

    display:
        flex;

    gap:
        30px;

    margin-top:
        28px;

}


.footer-nav a {

    color:
        #3e393c;

    font-size:
        10px;

    font-weight:
        500;

    letter-spacing:
        3px;

    text-transform:
        uppercase;

    transition:
        color .25s ease;

}


.footer-nav a:hover {

    color:
        var(--pink);

}


.copyright {

    margin-top:
        27px;

    color:
        #302c2e;

    font-size:
        9px;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

}



/* ============================================================
   ARTICLE MODAL
============================================================ */

.article-modal {

    width:
        min(
            calc(100% - 40px),
            700px
        );

    padding:
        60px;

    border:
        1px solid
        rgba(242, 56, 98, .45);

    background:
        #09080a;

    color:
        var(--text);

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, .75);

}


.article-modal::backdrop {

    background:
        rgba(0, 0, 0, .82);

    backdrop-filter:
        blur(5px);

}


.modal-close {

    position: absolute;

    top: 18px;

    right: 22px;

    border: 0;

    background:
        transparent;

    color:
        #5e575a;

    font-size:
        28px;

    transition:
        color .25s ease;

}


.modal-close:hover {

    color:
        var(--pink);

}


.modal-eyebrow {

    margin-bottom:
        18px;

    color:
        var(--pink);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        3px;

}


.article-modal h2 {

    margin-bottom:
        25px;

    color:
        #f0ebeb;

    font-family:
        var(--heading);

    font-size:
        42px;

    line-height:
        1.05;

    text-transform:
        uppercase;

}


.article-modal #modalText {

    color:
        #777074;

    font-size:
        14px;

    line-height:
        1.9;

}


.modal-button {

    margin-top:
        30px;

    padding:
        12px 20px;

    border:
        1px solid
        var(--pink);

    background:
        transparent;

    color:
        var(--pink);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

    transition:
        background .25s ease,
        color .25s ease;

}


.modal-button:hover {

    background:
        var(--pink);

    color:
        #050506;

}



/* ============================================================
   RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1200px) {

    .main-nav {

        gap:
            23px;

    }


    .main-nav a {

        font-size:
            10px;

        letter-spacing:
            2px;

    }


    .post-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .featured-post {

        grid-template-columns:
            1fr 1fr;

    }

}



/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 850px) {

    .site-header {

        height:
            68px;

        padding:
            0 22px;

    }


    .menu-toggle {

        display:
            block;

        order:
            3;

    }


    .header-support {

        display:
            none;

    }


    .main-nav {

        position: absolute;

        top:
            68px;

        left:
            0;

        right:
            0;

        padding:
            20px 25px 25px;

        display:
            none;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            0;

        background:
            #080709;

        border-bottom:
            1px solid
            rgba(242, 56, 98, .18);

    }


    .main-nav.open {

        display:
            flex;

    }


    .main-nav a {

        padding:
            16px 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, .05);

    }


    .main-nav a::after {

        bottom:
            0;

    }


    .grimoire-hero {

        min-height:
            490px;

        padding:
            75px 25px 45px;

    }


    .hero-content h1 {

        letter-spacing:
            -2px;

    }


    .hero-content h1 span {

        font-size:
            clamp(60px, 18vw, 100px);

    }


    .hero-content h1 strong {

        font-size:
            clamp(70px, 20vw, 115px);

    }


    .hero-description {

        margin-top:
            30px;

    }


    .filters {

        align-self:
            flex-start;

        margin-top:
            40px;

        flex-wrap:
            wrap;

    }


    .entries-divider {

        padding:
            0 20px;

    }


    .blog-section {

        padding:
            50px 0 75px;

    }


    .blog-container {

        width:
            calc(100% - 35px);

    }


    .featured-post {

        grid-template-columns:
            1fr;

    }


    .featured-image {

        min-height:
            320px;

    }


    .featured-content {

        padding:
            50px 28px;

    }


    .post-grid {

        grid-template-columns:
            1fr;

    }


    .card-image {

        height:
            240px;

    }


    .footer-nav {

        flex-wrap:
            wrap;

        justify-content:
            center;

    }

}



/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .brand {

        font-size:
            30px;

    }


    .grimoire-hero {

        padding-top:
            60px;

    }


    .hero-content h1 span {

        font-size:
            60px;

    }


    .hero-content h1 strong {

        font-size:
            72px;

    }


    .entry-count {

        letter-spacing:
            2px;

    }


    .divider-symbol {

        display:
            none;

    }


    .featured-image {

        min-height:
            260px;

    }


    .featured-content h2 {

        font-size:
            34px;

    }


    .article-modal {

        padding:
            45px 25px 30px;

    }


    .article-modal h2 {

        font-size:
            32px;

    }

}



/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior:
            auto;

    }


    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

    }

}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {

    width: 100%;

    background:
        #050506;

    border-top:
        1px solid
        rgba(232, 54, 93, .10);

    padding:
        42px 20px
        44px;

    text-align: center;

}


/* ============================================================
   FOOTER CONTENT
============================================================ */

.footer-content {

    display: flex;

    flex-direction: column;

    align-items: center;

}


/* ============================================================
   FOOTER BRAND
============================================================ */

.footer-brand {

    font-family:
        "Old English Text MT",
        "UnifrakturCook",
        serif;

    font-size:
        30px;

    font-weight:
        700;

    line-height:
        1;

    color:
        var(--cream);

    text-decoration:
        none;

    margin-bottom:
        12px;

}


/* ============================================================
   FOOTER TAGLINE
============================================================ */

.footer-tagline {

    margin:
        0;

    color:
        #746b70;

    font-size:
        11px;

    letter-spacing:
        3px;

    text-transform:
        uppercase;

}


/* ============================================================
   FOOTER NAVIGATION
============================================================ */

.footer-nav {

    display:
        flex;

    justify-content:
        center;

    gap:
        34px;

    margin-top:
        34px;

}


.footer-nav a {

    color:
        #746b70;

    font-size:
        11px;

    letter-spacing:
        3px;

    text-transform:
        uppercase;

    text-decoration:
        none;

    transition:
        color .2s ease;

}


.footer-nav a:hover {

    color:
        var(--rose);

}


/* ============================================================
   COPYRIGHT
============================================================ */

.footer-copy {

    margin:
        34px 0 0;

    color:
        #4d464a;

    font-size:
        10px;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

}