/* ============================================================
   FOOTPRINTS MEDIA
   BLOG PAGE SYSTEM
   ============================================================ */

:root {
    --blog-bg: #f8f8f6;
    --blog-surface: #ffffff;
    --blog-text: #1c1c1c;
    --blog-muted: #707070;
    --blog-border: rgba(28, 28, 28, 0.10);

    --blog-orange: #c85a17;
    --blog-orange-dark: #9e4310;

    --blog-radius: 14px;
    --blog-max-width: 1240px;
}


/* ============================================================
   BLOG HERO
   ============================================================ */

.blog-hero {
    position: relative;

    padding:
        clamp(150px, 18vw, 220px)
        0
        clamp(90px, 10vw, 140px);

    background: var(--blog-bg);

    overflow: hidden;
}


/* subtle background geometry */

.blog-hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    top: 50px;

    border: 1px solid rgba(200, 90, 23, 0.15);

    border-radius: 50%;

    pointer-events: none;
}


.blog-hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -70px;
    top: 130px;

    border: 1px solid rgba(200, 90, 23, 0.10);

    border-radius: 50%;

    pointer-events: none;
}


.blog-hero-content {
    position: relative;

    z-index: 2;

    max-width: 850px;
}


/* ============================================================
   EYEBROW
   ============================================================ */

.blog-hero .section-eyebrow,
.blog-section-header .section-eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--blog-orange);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.blog-hero h1 {
    margin: 0;

    max-width: 850px;

    font-family: "Outfit", sans-serif;

    font-size: clamp(3.2rem, 7vw, 6.8rem);

    line-height: 0.94;

    letter-spacing: -0.055em;

    font-weight: 700;

    color: var(--blog-text);
}


.blog-hero h1 span {
    color: var(--blog-orange);
}


.blog-hero p {
    max-width: 650px;

    margin-top: 28px;

    color: var(--blog-muted);

    font-size: clamp(1rem, 1.4vw, 1.15rem);

    line-height: 1.75;
}


/* ============================================================
   BLOG SECTION
   ============================================================ */

.blog-section {
    padding:
        clamp(80px, 9vw, 130px)
        0
        clamp(100px, 11vw, 160px);

    background: var(--blog-bg);
}


.blog-section .container {
    width: min(100% - 40px, var(--blog-max-width));

    margin-inline: auto;
}


/* ============================================================
   SECTION HEADER
   ============================================================ */

.blog-section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 42px;
}


.blog-section-header h2 {
    margin: 0;

    font-family: "Outfit", sans-serif;

    font-size: clamp(2rem, 4vw, 3.5rem);

    line-height: 1;

    letter-spacing: -0.045em;

    font-weight: 600;

    color: var(--blog-text);
}


/* ============================================================
   BLOG GRID
   ============================================================ */

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
}


/* ============================================================
   BLOG CARD
   Compatible with dynamically generated .blog-card elements
   ============================================================ */

.blog-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    background: var(--blog-surface);

    border: 1px solid var(--blog-border);

    border-radius: var(--blog-radius);

    overflow: hidden;

    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.blog-card:hover {
    transform: translateY(-7px);

    border-color: rgba(200, 90, 23, 0.25);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.09);
}


/* ============================================================
   BLOG CARD IMAGE
   ============================================================ */

.blog-card-image,
.blog-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #e9e9e7;
}


.blog-card-image img,
.blog-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(.2,.8,.2,1);
}


.blog-card:hover .blog-card-image img,
.blog-card:hover .blog-image img {
    transform: scale(1.055);
}


/* image overlay */

.blog-card-image::after,
.blog-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 55%,
            rgba(0, 0, 0, 0.08)
        );

    pointer-events: none;
}


/* ============================================================
   FALLBACK IMAGE
   ============================================================ */

.blog-card-image:not(:has(img)),
.blog-image:not(:has(img)) {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #999;

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* ============================================================
   BLOG CARD CONTENT
   ============================================================ */

.blog-card-content,
.blog-content-inner {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px;
}


/* ============================================================
   BLOG META
   ============================================================ */

.blog-meta {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    color: var(--blog-muted);

    font-size: 0.72rem;

    line-height: 1.4;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}


.blog-category {
    color: var(--blog-orange);

    font-weight: 600;
}


.blog-date {
    color: #999;
}


.blog-meta-divider {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #aaa;
}


/* ============================================================
   BLOG TITLE
   ============================================================ */

.blog-card h3,
.blog-card-title {
    margin: 0 0 12px;

    font-family: "Outfit", sans-serif;

    color: var(--blog-text);

    font-size: 1.35rem;

    line-height: 1.15;

    letter-spacing: -0.025em;

    font-weight: 600;
}


.blog-card h3 a,
.blog-card-title a {
    color: inherit;

    text-decoration: none;
}


.blog-card h3 a:hover,
.blog-card-title a:hover {
    color: var(--blog-orange);
}


/* ============================================================
   BLOG EXCERPT
   ============================================================ */

.blog-card p,
.blog-excerpt {
    margin: 0;

    color: var(--blog-muted);

    font-size: 0.9rem;

    line-height: 1.7;
}


/* ============================================================
   READ MORE
   ============================================================ */

.blog-read-more,
.read-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;
    padding-top: 22px;

    color: var(--blog-text);

    font-size: 0.78rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.07em;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.blog-read-more::after,
.read-more::after {
    content: "→";

    font-size: 1rem;

    transition: transform 0.2s ease;
}


.blog-read-more:hover,
.read-more:hover {
    color: var(--blog-orange);

    gap: 11px;
}


.blog-read-more:hover::after,
.read-more:hover::after {
    transform: translateX(3px);
}


/* ============================================================
   FEATURED BLOG
   ============================================================ */

/*
   If blog.js gives the first card a .featured class,
   this automatically turns it into the hero article.
*/

.blog-card.featured {
    grid-column: span 2;

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;
}


.blog-card.featured .blog-card-image {
    height: 100%;

    min-height: 380px;

    aspect-ratio: auto;
}


.blog-card.featured .blog-card-content {
    justify-content: center;

    padding: clamp(28px, 4vw, 50px);
}


.blog-card.featured h3,
.blog-card.featured .blog-card-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);

    line-height: 1.05;
}


.blog-card.featured .blog-excerpt {
    max-width: 500px;

    font-size: 0.95rem;
}


/* ============================================================
   BLOG LOADING
   ============================================================ */

.blog-loading {
    grid-column: 1 / -1;

    min-height: 280px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--blog-muted);

    font-size: 0.9rem;
}


.blog-loading::before {
    content: "";

    width: 22px;
    height: 22px;

    margin-right: 12px;

    border:
        2px solid rgba(0, 0, 0, 0.10);

    border-top-color: var(--blog-orange);

    border-radius: 50%;

    animation:
        blog-spin 0.75s linear infinite;
}


@keyframes blog-spin {

    to {
        transform: rotate(360deg);
    }

}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.blog-empty {
    padding: 90px 30px;

    text-align: center;

    background: var(--blog-surface);

    border:
        1px solid var(--blog-border);

    border-radius: var(--blog-radius);
}


.blog-empty h3 {
    margin-bottom: 8px;

    font-family: "Outfit", sans-serif;

    font-size: 1.5rem;

    letter-spacing: -0.025em;
}


.blog-empty p {
    color: var(--blog-muted);

    font-size: 0.9rem;
}


/* ============================================================
   SINGLE BLOG ARTICLE
   ============================================================ */

#blog-content.blog-content {
    max-width: 880px;

    margin:
        60px auto
        0;

    padding-bottom: 50px;
}


#blog-content .blog-article-header {
    margin-bottom: 45px;
}


#blog-content .blog-article-category {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--blog-orange);

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}


#blog-content h1 {
    margin: 0;

    font-family: "Outfit", sans-serif;

    font-size: clamp(2.5rem, 6vw, 5rem);

    line-height: 0.98;

    letter-spacing: -0.055em;
}


#blog-content .blog-article-meta {
    margin-top: 20px;

    color: var(--blog-muted);

    font-size: 0.85rem;
}


/* article cover */

#blog-content .blog-article-cover {
    width: 100%;

    aspect-ratio: 16 / 8;

    margin-bottom: 50px;

    border-radius: var(--blog-radius);

    overflow: hidden;

    background: #eee;
}


#blog-content .blog-article-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* article body */

#blog-content .blog-article-body {
    color: #333;

    font-size: 1.05rem;

    line-height: 1.9;
}


#blog-content .blog-article-body p {
    margin-bottom: 1.5em;
}


#blog-content .blog-article-body h2 {
    margin:
        2.2em
        0
        0.7em;

    font-family: "Outfit", sans-serif;

    font-size: 1.9rem;

    line-height: 1.15;

    letter-spacing: -0.03em;
}


#blog-content .blog-article-body h3 {
    margin:
        2em
        0
        0.7em;

    font-family: "Outfit", sans-serif;

    font-size: 1.4rem;
}


#blog-content .blog-article-body ul,
#blog-content .blog-article-body ol {
    margin:
        0 0 1.5em 1.4em;
}


#blog-content .blog-article-body li {
    margin-bottom: 0.5em;
}


#blog-content .blog-article-body a {
    color: var(--blog-orange);

    text-decoration: underline;

    text-underline-offset: 3px;
}


#blog-content .blog-article-body blockquote {
    margin: 2em 0;

    padding: 20px 25px;

    border-left:
        3px solid var(--blog-orange);

    background: rgba(200, 90, 23, 0.05);

    color: #555;

    font-family: "Outfit", sans-serif;

    font-size: 1.15rem;
}


/* ============================================================
   HORIZONTAL DIVIDER
   ============================================================ */

.blog-divider {
    width: 100%;
    height: 1px;

    margin: 60px 0;

    background: var(--blog-border);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

    .blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .blog-card.featured {
        grid-column: span 2;
    }

}


@media (max-width: 760px) {

    .blog-hero {
        padding:
            140px 0
            80px;
    }


    .blog-hero h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }


    .blog-section {
        padding:
            70px 0
            90px;
    }


    .blog-section .container {
        width: min(100% - 30px, var(--blog-max-width));
    }


    .blog-section-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 30px;
    }


    .blog-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .blog-card.featured {
        grid-column: span 1;

        display: flex;
    }


    .blog-card.featured .blog-card-image {
        min-height: 0;

        aspect-ratio: 16 / 10;
    }


    .blog-card.featured .blog-card-content {
        padding: 24px;
    }


    .blog-card.featured h3,
    .blog-card.featured .blog-card-title {
        font-size: 1.7rem;
    }


    #blog-content.blog-content {
        margin-top: 35px;
    }


    #blog-content .blog-article-cover {
        aspect-ratio: 16 / 10;

        margin-bottom: 35px;
    }


    #blog-content .blog-article-body {
        font-size: 1rem;
    }

}

.blog-slug {
    display: block;

    margin-top: 8px;
    margin-bottom: 14px;

    color: #8a8a8a;

    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;

    letter-spacing: 0.06em;
    line-height: 1.4;

    text-transform: lowercase;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.25s ease;
}

.blog-slug::before {
    content: "↳ ";
    color: #c85a17;
    font-weight: 600;
}

.blog-card:hover .blog-slug {
    color: #c85a17;
}

/* ============================================================
   BLOG ARTICLE CONTENT
   ============================================================ */

#blog-content {
    max-width: 900px;
    margin: 70px auto 120px;

    color: #292929;

    font-family: "Inter", sans-serif;
}


/* ------------------------------------------------------------
   ARTICLE TITLE
------------------------------------------------------------ */

#blog-content h1 {
    margin-bottom: 22px;

    font-family: "Outfit", sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);

    line-height: 0.98;
    letter-spacing: -0.055em;

    color: #1c1c1c;
}


/* ------------------------------------------------------------
   ARTICLE INTRO / LEAD
------------------------------------------------------------ */

#blog-content > p:first-of-type {
    margin-bottom: 45px;

    max-width: 760px;

    color: #626262;

    font-size: 1.18rem;
    line-height: 1.8;

    font-weight: 400;
}


/* ------------------------------------------------------------
   NORMAL PARAGRAPHS
------------------------------------------------------------ */

#blog-content p {
    margin: 0 0 1.6em;

    color: #3f3f3f;

    font-size: 1.05rem;
    line-height: 1.9;

    letter-spacing: -0.005em;
}


/* ------------------------------------------------------------
   HEADINGS
------------------------------------------------------------ */

#blog-content h2 {
    margin:
        2.8em
        0
        0.75em;

    color: #1c1c1c;

    font-family: "Outfit", sans-serif;

    font-size: clamp(1.8rem, 3vw, 2.5rem);

    line-height: 1.1;

    letter-spacing: -0.035em;

    font-weight: 600;
}


#blog-content h3 {
    margin:
        2.3em
        0
        0.7em;

    color: #1c1c1c;

    font-family: "Outfit", sans-serif;

    font-size: 1.45rem;

    line-height: 1.2;

    letter-spacing: -0.025em;
}


/* ------------------------------------------------------------
   HORIZONTAL DIVIDER
------------------------------------------------------------ */

#blog-content hr {
    margin: 55px 0;

    border: 0;

    border-top:
        1px solid rgba(28, 28, 28, 0.12);
}


/* ------------------------------------------------------------
   LISTS
------------------------------------------------------------ */

#blog-content ul,
#blog-content ol {
    margin:
        25px 0
        30px
        25px;

    padding-left: 20px;
}


#blog-content li {
    margin-bottom: 12px;

    padding-left: 7px;

    color: #3f3f3f;

    font-size: 1.02rem;

    line-height: 1.75;
}


#blog-content li::marker {
    color: #c85a17;
    font-weight: 600;
}


/* ------------------------------------------------------------
   LINKS
------------------------------------------------------------ */

#blog-content a {
    color: #c85a17;

    font-weight: 500;

    text-decoration:
        underline;

    text-decoration-color:
        rgba(200, 90, 23, 0.35);

    text-decoration-thickness: 1px;

    text-underline-offset: 4px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}


#blog-content a:hover {
    color: #9e4310;

    text-decoration-color: #9e4310;
}


/* ------------------------------------------------------------
   BLOCKQUOTES
------------------------------------------------------------ */

#blog-content blockquote {
    position: relative;

    margin: 45px 0;

    padding: 28px 32px 28px 35px;

    background: rgba(200, 90, 23, 0.045);

    border-left:
        3px solid #c85a17;

    border-radius: 0 10px 10px 0;

    color: #4b4b4b;

    font-family: "Outfit", sans-serif;

    font-size: 1.25rem;

    line-height: 1.65;

    font-weight: 400;
}


#blog-content blockquote p {
    margin: 0;

    font-family: inherit;

    font-size: inherit;

    color: inherit;
}


/* ------------------------------------------------------------
   STRONG / EMPHASIS
------------------------------------------------------------ */

#blog-content strong {
    color: #1c1c1c;

    font-weight: 700;
}


#blog-content em {
    color: #555;

    font-style: italic;
}


/* ------------------------------------------------------------
   IMAGES INSIDE ARTICLES
------------------------------------------------------------ */

#blog-content img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: auto;

    margin:
        45px 0;

    border-radius: 12px;
}


/* ------------------------------------------------------------
   IMAGE CAPTIONS
------------------------------------------------------------ */

#blog-content figure {
    margin: 50px 0;
}


#blog-content figure img {
    margin: 0;
}


#blog-content figcaption {
    margin-top: 10px;

    color: #888;

    font-size: 0.75rem;

    line-height: 1.5;

    text-align: center;
}


/* ------------------------------------------------------------
   CODE
------------------------------------------------------------ */

#blog-content code {
    padding: 3px 7px;

    border-radius: 5px;

    background: #eeeeec;

    color: #b34f13;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 0.88em;
}


#blog-content pre {
    margin: 35px 0;

    padding: 24px;

    overflow-x: auto;

    border-radius: 10px;

    background: #1c1c1c;

    color: #f5f5f3;

    font-size: 0.9rem;

    line-height: 1.7;
}


#blog-content pre code {
    padding: 0;

    background: transparent;

    color: inherit;
}


/* ------------------------------------------------------------
   TABLES
------------------------------------------------------------ */

#blog-content table {
    width: 100%;

    margin: 40px 0;

    border-collapse: collapse;

    font-size: 0.92rem;
}


#blog-content th {
    padding: 13px 15px;

    background: #1c1c1c;

    color: white;

    text-align: left;

    font-weight: 600;
}


#blog-content td {
    padding: 13px 15px;

    border-bottom:
        1px solid rgba(28, 28, 28, 0.1);

    color: #444;

    line-height: 1.5;
}


/* ------------------------------------------------------------
   ARTICLE MOBILE
------------------------------------------------------------ */

@media (max-width: 700px) {

    #blog-content {
        margin:
            40px auto
            80px;
    }


    #blog-content h1 {
        font-size: 2.8rem;

        line-height: 1;
    }


    #blog-content > p:first-of-type {
        font-size: 1.05rem;

        line-height: 1.7;

        margin-bottom: 35px;
    }


    #blog-content p {
        font-size: 0.98rem;

        line-height: 1.8;
    }


    #blog-content h2 {
        margin-top: 2.3em;

        font-size: 1.8rem;
    }


    #blog-content h3 {
        font-size: 1.3rem;
    }


    #blog-content blockquote {
        padding: 22px 20px 22px 25px;

        font-size: 1.08rem;
    }


    #blog-content img {
        margin: 35px 0;
    }

}


@media (max-width: 480px) {

    .blog-hero {
        padding-top: 120px;
    }


    .blog-hero p {
        font-size: 0.95rem;

        line-height: 1.65;
    }


    .blog-card-content,
    .blog-content-inner {
        padding: 20px;
    }


    .blog-card h3,
    .blog-card-title {
        font-size: 1.2rem;
    }


    .blog-card p,
    .blog-excerpt {
        font-size: 0.86rem;
    }


    #blog-content h1 {
        font-size: 2.5rem;
    }

}