/* =========================================================
   ARTICLE PAGE
========================================================= */

.article-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(130, 0, 0, 0.12),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #070707 0%,
            #0c0c0c 55%,
            #080808 100%
        );
    color: #ffffff;
}

.article-page [hidden] {
    display: none !important;
}

/* =========================================================
   LOADING / ERROR
========================================================= */

.article-loading,
.article-error {
    min-height: 75vh;
    padding: 180px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.article-loading p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
}

.article-error h1 {
    max-width: 900px;
    margin: 20px auto 0;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.article-error p {
    max-width: 650px;
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-error .btn {
    margin-top: 36px;
}

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

.article-hero {
    position: relative;
    min-height: 82svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: #090909;
}

.article-hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.article-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.62) 44%,
            rgba(0, 0, 0, 0.18) 78%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.92) 100%
        );
}

.article-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    z-index: -1;
    background: linear-gradient(
        180deg,
        transparent,
        #080808
    );
    pointer-events: none;
}

.article-hero-content {
    width: min(1440px, calc(100% - 96px));
    margin: 0 auto;
    padding: 190px 0 96px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.article-back:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.article-category {
    margin: 0 0 22px;
    color: #ff4a1c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-hero h1 {
    max-width: 1180px;
    margin: 0;
    font-size: clamp(3.4rem, 7.4vw, 7.5rem);
    font-weight: 700;
    line-height: 0.89;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.article-excerpt {
    max-width: 790px;
    margin: 34px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.65;
    text-wrap: balance;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.article-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff4a1c;
}

/* =========================================================
   ARTICLE BODY
========================================================= */

.article-body-section {
    position: relative;
    padding: 110px 24px 140px;
    overflow: hidden;
}

.article-body-section::before {
    content: "STORIES";
    position: absolute;
    top: 110px;
    left: 50%;
    z-index: 0;
    color: rgba(255, 255, 255, 0.018);
    font-size: clamp(7rem, 20vw, 20rem);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.08em;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.article-body {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.12rem;
    line-height: 1.9;
}

.article-body > *:first-child {
    margin-top: 0;
}

.article-body > *:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ARTICLE TYPOGRAPHY
========================================================= */

.article-body p {
    margin: 0 0 30px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: #ffffff;
    text-wrap: balance;
}

.article-body h2 {
    margin: 86px 0 28px;
    font-size: clamp(2.25rem, 4.4vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

.article-body h3 {
    margin: 58px 0 22px;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.article-body h4 {
    margin: 42px 0 18px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.article-body strong {
    color: #ffffff;
    font-weight: 700;
}

.article-body em {
    color: rgba(255, 255, 255, 0.9);
}

.article-body a {
    color: #ff6540;
    text-decoration-color: rgba(255, 101, 64, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.article-body a:hover {
    color: #ff8b70;
    text-decoration-color: currentColor;
}

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

.article-body ul,
.article-body ol {
    margin: 26px 0 34px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 13px;
    padding-left: 8px;
}

.article-body li::marker {
    color: #ff4a1c;
    font-weight: 700;
}

/* =========================================================
   BLOCKQUOTE
========================================================= */

.article-body blockquote {
    position: relative;
    margin: 76px 0;
    padding: 38px 42px 40px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid #ff4a1c;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
}

.article-body blockquote::before {
    content: "“";
    position: absolute;
    top: 8px;
    right: 28px;
    color: rgba(255, 74, 28, 0.15);
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    pointer-events: none;
}

.article-body blockquote p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.025em;
}

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

.article-body img {
    width: min(1220px, calc(100vw - 48px));
    max-width: none;
    height: auto;
    display: block;
    margin: 76px 50%;
    border-radius: 2px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
    transform: translateX(-50%);
}

.article-body figure {
    width: min(1220px, calc(100vw - 48px));
    max-width: none;
    margin: 76px 50%;
    transform: translateX(-50%);
}

.article-body figure img {
    width: 100%;
    margin: 0;
    transform: none;
}

.article-body figcaption {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   SEPARATORS
========================================================= */

.article-body hr {
    width: 80px;
    height: 1px;
    margin: 76px auto;
    border: 0;
    background: #ff4a1c;
    opacity: 0.72;
}

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

.article-body code {
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.06);
    color: #ff8d71;
    font-family: Consolas, monospace;
    font-size: 0.88em;
}

.article-body pre {
    max-width: 100%;
    margin: 40px 0;
    padding: 26px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #050505;
    line-height: 1.65;
}

.article-body pre code {
    padding: 0;
    border: 0;
    background: transparent;
}

.article-body table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-body th,
.article-body td {
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
}

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

.article-cta {
    position: relative;
    min-height: 650px;
    padding: 120px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.article-cta-background {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.article-cta-background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.article-cta-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92),
            rgba(0, 0, 0, 0.56),
            rgba(0, 0, 0, 0.88)
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.82)
        );
}

.article-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        circle at center,
        rgba(255, 74, 28, 0.11),
        transparent 48%
    );
}

.article-cta-content {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.article-cta-content h2 {
    margin: 20px 0 0;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.article-cta-content > p:not(.section-kicker) {
    max-width: 680px;
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.article-cta-content .btn {
    margin-top: 38px;
}

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

.related-posts {
    padding: 120px 24px 140px;
    background:
        linear-gradient(
            180deg,
            #090909 0%,
            #0d0d0d 100%
        );
}

.related-posts-container {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.related-posts-heading {
    margin-bottom: 50px;
}

.related-posts-heading h2 {
    margin: 16px 0 0;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .article-hero {
        min-height: 76svh;
    }

    .article-hero-content {
        width: min(100% - 56px, 1100px);
        padding-bottom: 76px;
    }

    .article-body-section {
        padding-top: 90px;
        padding-bottom: 120px;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

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

@media (max-width: 700px) {

    .article-loading,
    .article-error {
        min-height: 70vh;
        padding: 130px 20px 80px;
    }

    .article-hero {
        min-height: 88svh;
    }

    .article-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.25) 0%,
                rgba(0, 0, 0, 0.58) 42%,
                rgba(0, 0, 0, 0.97) 100%
            );
    }

    .article-hero-content {
        width: calc(100% - 36px);
        padding: 150px 0 56px;
    }

    .article-back {
        margin-bottom: 32px;
        font-size: 0.72rem;
    }

    .article-category {
        margin-bottom: 17px;
        font-size: 0.7rem;
    }

    .article-hero h1 {
        font-size: clamp(2.9rem, 15vw, 4.5rem);
        line-height: 0.92;
    }

    .article-excerpt {
        margin-top: 24px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .article-meta {
        gap: 11px;
        margin-top: 26px;
        font-size: 0.7rem;
    }

    .article-body-section {
        padding: 72px 20px 90px;
    }

    .article-body-section::before {
        top: 80px;
    }

    .article-body {
        font-size: 1.03rem;
        line-height: 1.82;
    }

    .article-body p {
        margin-bottom: 26px;
    }

    .article-body h2 {
        margin-top: 64px;
        margin-bottom: 24px;
    }

    .article-body h3 {
        margin-top: 48px;
    }

    .article-body blockquote {
        margin: 58px 0;
        padding: 30px 24px 32px;
    }

    .article-body blockquote::before {
        right: 16px;
        font-size: 6rem;
    }

    .article-body img,
    .article-body figure {
        width: calc(100vw - 32px);
        margin-top: 56px;
        margin-bottom: 56px;
    }

    .article-body ul,
    .article-body ol {
        padding-left: 22px;
    }

    .article-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-cta {
        min-height: 590px;
        padding: 90px 20px;
    }

    .article-cta-content h2 {
        font-size: clamp(2.8rem, 14vw, 4.6rem);
    }

    .related-posts {
        padding: 90px 20px 110px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

}

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

@media (max-width: 420px) {

    .article-hero-content {
        width: calc(100% - 30px);
    }

    .article-hero h1 {
        font-size: clamp(2.65rem, 14.5vw, 3.7rem);
    }

    .article-body-section {
        padding-inline: 17px;
    }

    .article-body img,
    .article-body figure {
        width: calc(100vw - 24px);
    }

}