
/* =========================================
   BLOG ARTICLE
========================================= */

.blog_article {
    --article-accent: #6366f1;
    --article-text: #292929;
    --article-muted: #777;
    --article-border: #e8e8e8;

    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 75px 50px 110px;

    color: var(--article-text);
}

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

.blog_article_header {
    width: 100%;
    margin: 0 auto 65px;
    text-align: center;
}

/* Category */

.blog_article_header > p:first-child {
    display: inline-block;

    margin: 0 0 22px;
    padding: 8px 17px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: var(--article-accent);
    background: #6366f114;

    border-radius: 50px;
}

/* Title */

.blog_article_header h1 {
    max-width: 1050px;
    margin: 0 auto 22px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2px;

    color: #171717;
}

/* Date */

.blog_article_header time {
    display: block;

    margin: 0 auto 42px;

    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.3px;

    color: var(--article-muted);
}

/* Featured image */

.blog_article_header img {
    display: block;

    width: 100%;
    max-width: 950px;
    max-height: 430px;

    margin: 0 auto;

    object-fit: cover;
    object-position: center;

    border-radius: 16px;
}

/* Description */

.blog_article_description {
    max-width: 850px;
    margin: 35px auto 0;

    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;

    color: #666;
}

/* =========================================
   ARTICLE CONTENT
========================================= */

.blog_article_content {
    width: 100%;
    max-width: 850px;

    margin: 0 auto;

    font-size: 1.075rem;
    font-weight: 400;
    line-height: 1.9;

    color: #353535;
}

/* Paragraphs */

.blog_article_content p {
    margin: 0 0 27px;
}

/* Headings */

.blog_article_content h2 {
    margin: 65px 0 22px;

    font-size: 2.15rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.8px;

    color: #171717;
}

.blog_article_content h3 {
    margin: 45px 0 18px;

    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4;

    color: #222;
}

.blog_article_content h4 {
    margin: 35px 0 15px;

    font-size: 1.25rem;
    font-weight: 700;

    color: #222;
}

/* First heading spacing */

.blog_article_content > h2:first-child,
.blog_article_content > h3:first-child {
    margin-top: 0;
}

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

.blog_article_content a {
    color: var(--article-accent);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;

    transition: color 0.2s ease;
}

.blog_article_content a:hover {
    color: #4338ca;
}

/* =========================================
   LISTS
========================================= */

.blog_article_content ul,
.blog_article_content ol {
    margin: 25px 0 32px;
    padding-left: 30px;
}

.blog_article_content li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.blog_article_content li::marker {
    color: var(--article-accent);
}

/* =========================================
   BLOCKQUOTES
========================================= */

.blog_article_content blockquote {
    margin: 40px 0;
    padding: 25px 30px;

    border-left: 4px solid var(--article-accent);
    border-radius: 0 12px 12px 0;

    background: #6366f10a;

    color: #555;
    font-style: italic;
}

.blog_article_content blockquote p:last-child {
    margin-bottom: 0;
}

/* =========================================
   IMAGES
========================================= */

.blog_article_content img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 40px auto;

    border-radius: 14px;
}

.blog_article_content figure {
    margin: 40px 0;
}

.blog_article_content figure img {
    margin: 0 auto 12px;
}

.blog_article_content figcaption {
    font-size: 0.9rem;
    text-align: center;
    color: var(--article-muted);
}

/* =========================================
   CODE BLOCKS
========================================= */

.blog_article_content pre {
    overflow-x: auto;

    margin: 35px 0;
    padding: 25px;

    background: #171923;
    color: #f1f1f1;

    border-radius: 13px;

    font-size: 0.9rem;
    line-height: 1.75;
}

.blog_article_content code {
    font-family: "Consolas", "Courier New", monospace;
}

.blog_article_content :not(pre) > code {
    padding: 3px 7px;

    border-radius: 5px;

    background: #6366f115;
    color: #5550c9;

    font-size: 0.9em;
}

/* =========================================
   TABLES
========================================= */

.blog_article_content table {
    width: 100%;
    margin: 35px 0;

    border-collapse: collapse;
    font-size: 0.95rem;
}

.blog_article_content th,
.blog_article_content td {
    padding: 14px 17px;

    border: 1px solid var(--article-border);

    text-align: left;
}

.blog_article_content th {
    background: #f5f5f5;
    font-weight: 700;
    color: #222;
}

/* =========================================
   HORIZONTAL RULE
========================================= */

.blog_article_content hr {
    margin: 55px 0;

    border: none;
    border-top: 1px solid var(--article-border);
}

/* =========================================
   RESPONSIVE: TABLETS
========================================= */

@media (max-width: 900px) {

    .blog_article {
        padding: 60px 30px 85px;
    }

    .blog_article_header {
        margin-bottom: 50px;
    }

    .blog_article_header h1 {
        font-size: clamp(2.3rem, 6vw, 3.5rem);
        letter-spacing: -1.3px;
    }

    .blog_article_header img {
        max-height: 350px;
        border-radius: 14px;
    }

    .blog_article_content {
        font-size: 1.025rem;
    }

    .blog_article_content h2 {
        font-size: 1.9rem;
        margin-top: 50px;
    }

    .blog_article_content h3 {
        font-size: 1.45rem;
    }
}

/* =========================================
   RESPONSIVE: MOBILE
========================================= */

@media (max-width: 600px) {

    .blog_article {
        padding: 42px 20px 65px;
    }

    .blog_article_header {
        margin-bottom: 40px;
    }

    .blog_article_header > p:first-child {
        margin-bottom: 17px;
        font-size: 0.72rem;
    }

    .blog_article_header h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        line-height: 1.16;
        letter-spacing: -1px;

        margin-bottom: 18px;
    }

    .blog_article_header time {
        margin-bottom: 28px;
        font-size: 0.85rem;
    }

    .blog_article_header img {
        max-height: 240px;
        border-radius: 11px;
    }

    .blog_article_description {
        margin-top: 24px;
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .blog_article_content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .blog_article_content p {
        margin-bottom: 22px;
    }

    .blog_article_content h2 {
        margin-top: 42px;
        margin-bottom: 17px;
        font-size: 1.7rem;
    }

    .blog_article_content h3 {
        margin-top: 32px;
        font-size: 1.35rem;
    }

    .blog_article_content h4 {
        font-size: 1.15rem;
    }

    .blog_article_content blockquote {
        margin: 30px 0;
        padding: 18px 20px;
    }

    .blog_article_content pre {
        margin: 25px 0;
        padding: 16px;
        font-size: 0.82rem;
        border-radius: 9px;
    }

    .blog_article_content table {
        font-size: 0.85rem;
    }

    .blog_article_content th,
    .blog_article_content td {
        padding: 10px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .blog_article {
        padding-left: 15px;
        padding-right: 15px;
    }

    .blog_article_header h1 {
        font-size: 1.9rem;
    }

    .blog_article_header img {
        max-height: 200px;
    }

    .blog_article_content h2 {
        font-size: 1.5rem;
    }

}