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

.listing-hero{
    max-width:1280px;
    margin:0 auto;
    padding:100px 48px 48px;
}

.listing-hero h1{
    font-size:clamp(38px,5vw,64px);
    font-weight:200;
    line-height:1.05;
    letter-spacing:-2px;
    margin:0 0 22px;
    max-width:760px;
}

.listing-hero p{
    font-size:18px;
    line-height:1.6;
    color:var(--ink-soft);
    max-width:560px;
}


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

.grid-section{
    max-width:1280px;
    margin:0 auto;
    padding:0 48px 140px;
}

.pills{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:40px;
}

.pill{
    padding:9px 18px;
    border-radius:999px;
    border:1px solid var(--line);
    background:transparent;
    color:var(--ink);
    cursor:pointer;
    font:inherit;
    font-size:13px;
    font-weight:500;
    transition:.25s;
}

.pill:hover{
    border-color:var(--accent);
}

.pill.active{
    background:var(--accent);
    color:var(--bg);
    border-color:var(--accent);
}


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

.post-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.post-card{
    display:flex;
    flex-direction:column;
    gap:18px;
    padding:14px;
    border-radius:20px;
    color:inherit;
    transition:.35s;
}

.post-card:hover{
    transform:translateY(-8px);
    background:var(--bg-alt);
    box-shadow:0 24px 48px -22px rgba(0,0,0,.15);
}

.post-img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:16px;
}

.post-meta{
    font-size:12px;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:var(--accent);
    font-weight:500;
    margin-bottom:10px;
}

.post-card h2{
    margin:0 0 8px;
    font-size:21px;
    line-height:1.35;
}

.post-card p{
    margin:0;
    color:var(--ink-soft);
    line-height:1.6;
}


/* ========================================
   CTA
======================================== */

.cta-section{
    max-width:1280px;
    margin:0 auto;
    padding:0 48px 120px;
}

.cta-box{
    padding:64px 48px;
    text-align:center;
    background:var(--ink);
    color:var(--bg);
    border-radius:24px;
}

.cta-box h2{
    font-size:clamp(28px,3.6vw,42px);
    font-weight:200;
    letter-spacing:-1px;
    margin:0 0 18px;
}

.cta-box h2 span{
    color:var(--accent);
    font-style:italic;
}

.cta-box p{
    max-width:620px;
    margin:0 auto 32px;
    color:rgba(255,255,255,.75);
}

.cta-box a{
    display:inline-block;
    padding:15px 28px;
    border-radius:999px;
    background:var(--accent);
    color:var(--bg);
    transition:.25s;
}

.cta-box a:hover{
    opacity:.85;
}
/* ========================================
   RESPONSIVE
======================================== */

@media(max-width:1024px){

    .post-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:680px){

    .listing-hero,
    .grid-section,
    .cta-section{
        padding-left:20px;
        padding-right:20px;
    }

    .listing-hero{
        padding-top:48px;
    }

    .post-grid{
        grid-template-columns:1fr;
    }
.post-card {
	min-width: 0;
}
}
