:root {
    --purple: #5c21b5;
    --purple-dark: #351078;
    --purple-deep: #26085f;
    --purple-soft: #f3effc;

    --teal: #2fd9c3;
    --teal-dark: #159c8a;
    --teal-soft: #eafbf8;

    --text: #211c2b;
    --text-soft: #625b70;
    --text-light: #7b7488;

    --white: #ffffff;
    --background: #faf9fc;
    --background-soft: #f6f3fa;

    --border: #e8e2f1;

    --shadow:
        0 12px 32px rgba(53, 16, 120, 0.08);

    --shadow-soft:
        0 8px 22px rgba(53, 16, 120, 0.06);

    --content-width: 820px;
    --wide-width: 1080px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;

    line-height: 1.7;
    color: var(--text);
    background: var(--background);
}

img {
    max-width: 100%;
}

a {
    color: var(--purple);
}

button,
input {
    font: inherit;
}

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

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 20;
}

.header-container {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 0 auto;

    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    width: 220px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-nav a {
    text-decoration: none;
    color: var(--purple-dark);
    font-weight: 650;
    font-size: 14px;
}

.site-nav a:hover {
    color: var(--purple);
}

.site-nav .nav-cta {
    background: var(--purple);
    color: var(--white);

    padding: 11px 19px;

    border-radius: 999px;

    box-shadow:
        0 6px 18px rgba(92, 33, 181, 0.18);
}

.site-nav .nav-cta:hover {
    color: var(--white);
    background: var(--purple-dark);
}

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

.article-hero {
    background:
        radial-gradient(
            circle at 88% 4%,
            rgba(47, 217, 195, 0.14),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f3ff 100%
        );

    border-bottom: 1px solid var(--border);
}

.article-hero-inner {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 0 auto;

    padding: 72px 0 62px;
}

.article-category {
    color: var(--teal-dark);

    text-transform: uppercase;
    letter-spacing: 2px;

    font-size: 12px;
    font-weight: 800;

    margin-bottom: 14px;
}

.article-title {
    max-width: 950px;

    font-size: clamp(44px, 6vw, 72px);
    line-height: 1.02;

    letter-spacing: -2.4px;

    color: var(--text);

    margin-bottom: 24px;
}

.article-deck {
    max-width: 850px;

    color: var(--text-soft);

    font-size: 20px;
    line-height: 1.55;

    margin-bottom: 30px;
}

/* =========================================================
   ARTICLE META / AUTHOR
   ========================================================= */

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px 18px;
}

.article-author-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

    color: var(--text);
}

.article-author-link:hover .article-author-name {
    color: var(--purple);
}

.article-author-avatar {
    width: 46px;
    height: 46px;

    border-radius: 50%;

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

    border: 2px solid var(--white);

    box-shadow:
        0 4px 12px rgba(53, 16, 120, 0.13);
}

.article-author-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.article-author-name {
    font-weight: 750;
    color: var(--purple-dark);
}

.article-author-role {
    font-size: 13px;
    color: var(--text-soft);
}

.meta-divider {
    color: #c3bccb;
}

.article-meta-detail {
    color: var(--text-soft);
    font-size: 14px;
}

/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.featured-image-wrap {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 42px auto 0;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    display: block;

    object-fit: cover;

    border-radius: 24px;

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

    box-shadow: var(--shadow);
}

.featured-image-caption {
    margin-top: 10px;

    text-align: center;

    color: var(--text-light);
    font-size: 13px;
}

/* =========================================================
   ARTICLE SHELL
   ========================================================= */

.article-shell {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;

    gap: 58px;

    padding: 66px 0 90px;

    align-items: start;
}

.article-main {
    min-width: 0;
}

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.article-sidebar {
    position: sticky;
    top: 28px;
}

.contents-card {
    background: var(--white);

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

    border-radius: 18px;

    padding: 22px;

    box-shadow: var(--shadow-soft);
}

.contents-title {
    color: var(--purple-dark);

    font-size: 15px;
    font-weight: 800;

    margin-bottom: 13px;
}

.contents-list {
    list-style: none;
}

.contents-list li + li {
    margin-top: 9px;
}

.contents-list a {
    text-decoration: none;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.35;
}

.contents-list a:hover {
    color: var(--purple);
}

/* =========================================================
   LONG-FORM TYPOGRAPHY
   ========================================================= */

.article-content {
    max-width: var(--content-width);
}

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

.article-content p {
    color: var(--text-soft);

    font-size: 18px;
    line-height: 1.78;

    margin-bottom: 24px;
}

.article-content .lead {
    color: var(--text);

    font-size: 21px;
    line-height: 1.65;

    margin-bottom: 32px;
}

.article-content h2 {
    color: var(--purple-dark);

    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.15;

    letter-spacing: -0.7px;

    margin-top: 56px;
    margin-bottom: 20px;

    scroll-margin-top: 30px;
}

.article-content h3 {
    color: var(--text);

    font-size: 24px;
    line-height: 1.25;

    margin-top: 38px;
    margin-bottom: 14px;

    scroll-margin-top: 30px;
}

.article-content ul,
.article-content ol {
    margin:
        0
        0
        28px
        24px;

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

.article-content li {
    margin-bottom: 10px;

    font-size: 18px;
    line-height: 1.68;
}

.article-content strong {
    color: var(--text);
}

.article-content a {
    color: var(--purple);

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--purple-dark);
}

.article-content blockquote {
    margin: 36px 0;

    padding: 24px 28px;

    border-left: 5px solid var(--teal);

    background: var(--teal-soft);

    border-radius:
        0
        16px
        16px
        0;
}

.article-content blockquote p {
    margin: 0;

    color: var(--text);

    font-size: 19px;
    font-weight: 600;
}

/* =========================================================
   CALLOUTS
   ========================================================= */

.article-callout {
    margin: 36px 0;

    padding: 28px 30px;

    background: var(--purple-soft);

    border: 1px solid #e2d8f6;

    border-radius: 18px;
}

.article-callout h3 {
    margin: 0 0 10px;

    color: var(--purple-dark);

    font-size: 21px;
}

.article-callout p:last-child {
    margin-bottom: 0;
}

.article-callout.teal {
    background: var(--teal-soft);
    border-color: #ccefe9;
}

.article-callout.teal h3 {
    color: #0a7466;
}

/* =========================================================
   INLINE ARTICLE IMAGE
   ========================================================= */

.article-inline-image {
    margin: 40px 0;
}

.article-inline-image img {
    width: 100%;

    border-radius: 18px;

    display: block;

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

    box-shadow: var(--shadow-soft);
}

.article-inline-image figcaption {
    margin-top: 10px;

    color: var(--text-light);

    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   DATA / FACT PANEL
   ========================================================= */

.fact-panel {
    margin: 38px 0;

    background: var(--white);

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

    border-radius: 20px;

    padding: 30px;

    box-shadow: var(--shadow-soft);
}

.fact-panel-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--teal-dark);

    text-transform: uppercase;

    letter-spacing: 1.7px;

    font-size: 11px;
    font-weight: 800;
}

.fact-panel h3 {
    margin: 0 0 12px;

    color: var(--purple-dark);
}

.fact-panel p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   SOURCES / REFERENCES
   ========================================================= */

.article-sources {
    max-width: var(--content-width);

    margin-top: 64px;

    padding-top: 36px;

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

.article-sources h2 {
    margin: 0 0 18px;

    color: var(--purple-dark);

    font-size: 28px;
}

.article-sources p {
    margin-bottom: 18px;

    color: var(--text-soft);

    font-size: 15px;
}

.source-list {
    padding-left: 22px;

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

.source-list li {
    margin-bottom: 13px;

    line-height: 1.55;

    font-size: 15px;
}

.source-list a {
    color: var(--purple);
}

/* =========================================================
   ARTICLE DISCLAIMER / EVIDENCE NOTE
   ========================================================= */

.evidence-note {
    max-width: var(--content-width);

    margin-top: 34px;

    padding: 20px 22px;

    background: var(--background-soft);

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

    border-radius: 14px;

    color: var(--text-light);

    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   AUTHOR BIO
   ========================================================= */

.author-bio {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 0 auto 60px;

    display: grid;
    grid-template-columns: 110px 1fr;

    gap: 28px;

    align-items: center;

    background: var(--white);

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

    border-radius: 22px;

    padding: 34px;

    box-shadow: var(--shadow);
}

.author-bio-image {
    width: 110px;
    height: 110px;

    border-radius: 50%;

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

    border: 4px solid var(--purple-soft);
}

.author-bio-eyebrow {
    color: var(--teal-dark);

    text-transform: uppercase;

    letter-spacing: 1.7px;

    font-size: 11px;
    font-weight: 800;

    margin-bottom: 5px;
}

.author-bio h2 {
    color: var(--purple-dark);

    font-size: 27px;

    margin-bottom: 6px;
}

.author-bio-role {
    color: var(--purple);

    font-weight: 700;

    margin-bottom: 12px;
}

.author-bio p {
    color: var(--text-soft);

    margin-bottom: 12px;

    line-height: 1.65;
}

.author-profile-link {
    font-weight: 700;

    text-decoration: none;
}

.author-profile-link:hover {
    text-decoration: underline;
}

/* =========================================================
   RELATED ARTICLES
   ========================================================= */

.related-section {
    background: var(--background-soft);

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

    padding: 64px 0;
}

.related-inner {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 0 auto;
}

.related-section h2 {
    color: var(--purple-dark);

    font-size: 32px;

    margin-bottom: 28px;
}

.related-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;

    min-height: 220px;

    padding: 26px;

    background: var(--white);

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

    border-radius: 18px;

    text-decoration: none;

    box-shadow: var(--shadow-soft);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.related-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 32px rgba(53, 16, 120, 0.10);
}

.related-card-category {
    color: var(--teal-dark);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    font-weight: 800;

    margin-bottom: 12px;
}

.related-card h3 {
    color: var(--purple-dark);

    font-size: 21px;
    line-height: 1.25;

    margin-bottom: 12px;
}

.related-card p {
    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.55;

    margin-bottom: 18px;
}

.related-card-link {
    margin-top: auto;

    color: var(--purple);

    font-weight: 700;

    font-size: 14px;
}

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

.article-cta {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 60px auto;

    padding: 44px;

    background:
        linear-gradient(
            135deg,
            var(--purple-deep),
            var(--purple)
        );

    color: var(--white);

    border-radius: 24px;

    box-shadow: var(--shadow);
}

.article-cta-eyebrow {
    color: var(--teal);

    text-transform: uppercase;

    letter-spacing: 1.7px;

    font-size: 11px;
    font-weight: 800;

    margin-bottom: 8px;
}

.article-cta h2 {
    font-size: 34px;

    line-height: 1.2;

    margin-bottom: 14px;
}

.article-cta p {
    max-width: 760px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 17px;

    margin-bottom: 24px;
}

.article-cta-button {
    display: inline-block;

    background: var(--white);

    color: var(--purple-dark);

    text-decoration: none;

    font-weight: 750;

    padding: 12px 21px;

    border-radius: 999px;
}

.article-cta-button:hover {
    background: #f3effc;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--white);

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

.footer-inner {
    width: min(var(--wide-width), calc(100% - 40px));
    margin: 0 auto;

    padding: 32px 0;

    display: flex;
    justify-content: space-between;

    gap: 22px;

    flex-wrap: wrap;

    color: var(--text-soft);

    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--purple);
}

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

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 8px;

    background: transparent;

    border: 0;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--purple-dark);

    margin: 5px auto;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 920px) {

    .article-shell {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .article-sidebar {
        position: static;
        order: -1;
    }

    .contents-card {
        max-width: var(--content-width);
    }

    .contents-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px 18px;
    }

    .contents-list li + li {
        margin-top: 0;
    }

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

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .header-container {
        min-height: 80px;
    }

    .site-logo img {
        width: 185px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;

        position: absolute;

        top: 80px;
        left: 0;
        right: 0;

        padding: 20px;

        background: var(--white);

        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 4px;
    }

    .site-nav .nav-cta {
        margin-top: 8px;

        text-align: center;

        padding: 11px 19px;
    }

    .article-hero-inner {
        padding: 52px 0 46px;
    }

    .article-title {
        font-size: 40px;

        letter-spacing: -1.4px;
    }

    .article-deck {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 24px;
}

    .article-meta {
    align-items: center;
    gap: 10px 14px;
}

.meta-divider {
    display: none;
}

.article-meta-detail {
    flex-basis: auto;
    padding-left: 58px;
    font-size: 13px;
}

.article-meta-detail + .article-meta-detail {
    padding-left: 0;
}

    .featured-image {
        border-radius: 18px;
    }

    .article-shell {
        padding: 48px 0 68px;
    }

    .contents-list {
        grid-template-columns: 1fr;
    }

    .article-content p,
.article-content li {
    font-size: 16px;
    line-height: 1.7;
}

    .article-content .lead {
        font-size: 19px;
    }

    .article-content h2 {
        margin-top: 46px;
    }

    .author-bio {
        grid-template-columns: 82px 1fr;

        padding: 26px;

        gap: 20px;
    }

    .author-bio-image {
        width: 82px;
        height: 82px;
    }

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

    .article-cta {
        padding: 34px 28px;
    }
    .contents-card {
    padding: 18px 20px;
}

.contents-title {
    margin-bottom: 10px;
}

.contents-list li {
    margin-bottom: 4px;
}

.contents-list a {
    font-size: 13px;
    line-height: 1.3;
}
}

/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .header-container,
    .article-hero-inner,
    .featured-image-wrap,
    .article-shell,
    .author-bio,
    .related-inner,
    .article-cta,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .article-title {
        font-size: 37px;
    }

    .article-category {
        margin-bottom: 10px;
    }

    .article-author-avatar {
        width: 42px;
        height: 42px;
    }

    .article-meta-detail {
        padding-left: 54px;
    }

    .featured-image-wrap {
        margin-top: 30px;
    }

    .article-callout,
    .fact-panel {
        padding: 23px 21px;
    }

    .author-bio {
        grid-template-columns: 1fr;

        text-align: left;
    }

    .author-bio-image {
        width: 92px;
        height: 92px;
    }

    .article-cta h2 {
        font-size: 29px;
    }
}