.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    height: 4px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

.article-hero {
    position: relative;
    padding: clamp(34px, 5vw, 62px) 0 clamp(64px, 8vw, 106px);
    background: var(--gradient-creative);
    color: var(--color-text-primary);
    overflow: hidden;
}

.article-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: 42%;
    width: 210px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-brand-soft);
    opacity: 0.7;
}

.article-hero::after {
    content: "";
    position: absolute;
    left: 5%;
    bottom: -32px;
    width: 170px;
    height: 60px;
    border-radius: 999px;
    background: var(--color-highlight-soft);
    transform: rotate(-7deg);
}

.article-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: clamp(32px, 5vw, 58px);
    color: var(--color-text-secondary);
    font-size: 0.76rem;
}

.article-breadcrumb a {
    color: var(--color-text-primary);
    text-decoration-color: var(--color-action-primary);
}

.article-hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
}

.article-hero-copy .eyebrow {
    color: var(--color-action-primary);
}

.article-hero h1 {
    max-width: 1120px;
    margin: 14px 0 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.article-hero-copy > p {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--color-text-secondary);
    font-size: 1.04rem;
    line-height: 1.75;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
    color: var(--color-text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

.article-hero-image {
    position: relative;
    margin: 0;
    padding: 14px;
    border-radius: calc(var(--radius) + 8px);
    background: var(--mint);
    box-shadow: 18px 18px 0 rgb(253 255 182 / 86%);
    transform: rotate(2deg);
}

.article-hero-image picture,
.article-hero-image img {
    display: block;
    width: 100%;
}

.article-hero-image img {
    border-radius: var(--radius);
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.articles-hero {
    position: relative;
    padding: clamp(34px, 5vw, 62px) 0 clamp(64px, 8vw, 106px);
    background: linear-gradient(135deg, var(--mint), var(--white));
    color: var(--color-text-primary);
    overflow: hidden;
}

.articles-hero::before {
    content: "";
    position: absolute;
    right: 9%;
    bottom: -46px;
    width: 190px;
    height: 66px;
    border-radius: 999px;
    background: var(--color-highlight-soft);
    transform: rotate(-7deg);
}

.articles-hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-inline: clamp(16px, 4vw, 52px);
    text-align: center;
}

.articles-hero-copy {
    margin-inline: auto;
}

.articles-hero-copy .eyebrow,
.articles-hero-panel span {
    color: var(--color-action-primary);
}

.articles-hero-copy h1 {
    max-width: 1120px;
    margin: 14px auto 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.8rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.articles-hero-copy p {
    max-width: 840px;
    margin: 24px auto 0;
    color: var(--color-text-secondary);
    font-size: 1.04rem;
    line-height: 1.75;
}

.articles-hero-panel {
    display: grid;
    gap: 12px;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid rgb(95 79 143 / 0.16);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.articles-hero-panel span {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.articles-hero-panel strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.articles-hero-panel p {
    margin: 0 0 8px;
    color: var(--ink-soft);
    line-height: 1.65;
}

.articles-hero-panel .button {
    justify-self: start;
}

.articles-section {
    padding: clamp(46px, 7vw, 86px) 0 clamp(76px, 9vw, 128px);
    background: var(--white);
}

.articles-results-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.articles-results-heading p {
    margin: 0;
    color: var(--green);
    font-weight: 800;
}

.articles-results-heading span {
    text-align: right;
}

.articles-grid {
    align-items: start;
}

.articles-card-footer {
    display: grid;
    gap: 14px;
}

.articles-card-footer small {
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

.articles-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border-radius: 20px;
    background: var(--warm);
    color: var(--ink-soft);
    text-align: center;
}

.articles-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.articles-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid rgb(45 42 50 / 0.16);
    border-radius: 999px;
    padding: 0 14px;
    background: var(--white);
    color: var(--green);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.articles-pagination a:hover:not(.is-disabled),
.articles-pagination a[aria-current="page"] {
    background: var(--green);
    color: var(--white);
}

.articles-pagination a.is-disabled {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.article-section {
    padding: clamp(70px, 9vw, 128px) 0;
    background:
        linear-gradient(180deg, var(--white) 0%, var(--color-surface-muted) 100%);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 840px);
    gap: clamp(34px, 6vw, 78px);
    justify-content: center;
    align-items: start;
}

.article-copy {
    min-width: 0;
    color: var(--green);
}

.article-body {
    position: relative;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgb(45 42 50 / 0.08);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.article-body::before {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(20px, 5vw, 52px);
    left: clamp(20px, 5vw, 52px);
    height: 6px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--color-brand-soft), var(--color-craft-soft), var(--color-info-soft));
}

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

.article-body > * + * {
    margin-top: 24px;
}

.article-copy section,
.article-body h2,
.article-body h3 {
    scroll-margin-top: 110px;
}

.article-intro {
    margin: 0 0 58px;
    padding-left: 24px;
    border-left: 5px solid var(--lime);
    color: var(--green);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.65;
}

.article-body > p:first-child {
    margin-bottom: clamp(34px, 5vw, 54px);
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgb(95 79 143 / 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgb(253 255 182 / 0.68), rgb(255 214 165 / 0.5));
    color: var(--color-text-primary);
    font-size: clamp(1.12rem, 2vw, 1.34rem);
    font-weight: 600;
    line-height: 1.72;
}

.article-body h2 {
    position: relative;
    margin-top: clamp(54px, 7vw, 76px);
    padding-top: 22px;
    border-top: 1px solid rgb(45 42 50 / 0.1);
    color: var(--color-text-primary);
    font-family: var(--serif);
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: 0;
}

.article-body h2::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 88px;
    height: 7px;
    border-radius: 999px;
    background: var(--color-brand-soft);
}

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

.article-body h3 {
    margin-top: 36px;
    padding: 14px 0 14px 18px;
    border-left: 5px solid var(--color-info-soft);
    color: var(--color-text-primary);
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    line-height: 1.35;
}

.article-body p,
.article-body ul,
.article-body ol {
    color: var(--color-text-secondary);
    font-size: 1.04rem;
    line-height: 1.84;
}

.article-body strong {
    color: var(--color-text-primary);
    font-weight: 800;
}

.article-body em {
    color: var(--color-action-primary);
    font-style: italic;
}

.article-body a {
    color: var(--color-action-primary);
    font-weight: 700;
    text-decoration-color: var(--color-highlight-soft);
}

.article-body ul,
.article-body ol {
    padding-left: 0;
    list-style: none;
}

.article-body li {
    position: relative;
    padding-left: 32px;
}

.article-body li + li {
    margin-top: 12px;
}

.article-body li::before {
    position: absolute;
    top: 0.68em;
    left: 4px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--color-brand-soft);
    box-shadow: 0 0 0 1px rgb(45 42 50 / 0.1);
    content: "";
}

.article-body ol {
    counter-reset: article-step;
}

.article-body ol li {
    counter-increment: article-step;
}

.article-body ol li::before {
    top: 0.3em;
    left: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--color-craft-soft);
    color: var(--color-text-primary);
    box-shadow: none;
    content: counter(article-step);
    font-size: 0.74rem;
    font-weight: 900;
}

.article-body img,
.article-body figure,
.article-body table {
    margin-top: clamp(28px, 5vw, 42px);
}

.article-body figure {
    overflow: hidden;
    border: 1px solid rgb(45 42 50 / 0.08);
    border-radius: 8px;
    background: var(--color-surface-muted);
}

.article-body figure img,
.article-body > img {
    width: 100%;
    border-radius: 8px;
}

.article-body figcaption {
    padding: 12px 16px 16px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--white);
}

.article-body th,
.article-body td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    background: var(--color-brand-soft);
    color: var(--color-text-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-body tr:last-child td {
    border-bottom: 0;
}

.article-body code {
    border-radius: 6px;
    padding: 0.1em 0.34em;
    background: var(--color-surface-muted);
    color: var(--color-action-primary);
    font-size: 0.94em;
}

.article-body hr {
    height: 1px;
    margin: clamp(44px, 6vw, 64px) 0;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.article-copy blockquote {
    position: relative;
    margin: clamp(34px, 5vw, 50px) 0 0;
    padding: 30px clamp(26px, 4vw, 42px);
    border: 1px solid rgb(95 79 143 / 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgb(202 255 191 / 0.72), rgb(155 246 255 / 0.38));
    color: var(--green);
}

.article-copy blockquote::before {
    content: "“";
    position: absolute;
    top: 9px;
    right: 22px;
    color: var(--purple);
    font-family: var(--serif);
    font-size: 5rem;
    line-height: 1;
    opacity: 0.7;
}

.article-copy blockquote p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.25;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid rgb(45 42 50 / 0.14);
}

.article-author-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 58px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--purple);
    color: var(--green);
    font-weight: 900;
}

.article-author p {
    max-width: 560px;
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.6;
}

.related-articles {
    background: var(--mint);
}

.related-heading {
    max-width: 720px;
}

.related-heading .eyebrow {
    color: var(--blue);
}

.related-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
}

.related-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--green);
    text-decoration: none;
    box-shadow: 0 14px 32px rgb(45 42 50 / 0.08);
}

.related-image {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 1;
}

.related-image picture,
.related-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.related-image img {
    object-fit: cover;
    transition: transform 260ms ease;
}

.related-card:hover .related-image img {
    transform: scale(1.045);
}

.related-card span {
    color: var(--blue);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.related-card h3 {
    margin: 9px 0 0;
    font-size: clamp(1.08rem, 2vw, 1.4rem);
    line-height: 1.3;
}

@media (max-width: 980px) {
    .articles-hero-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-hero-image {
        width: min(100% - 18px, 760px);
        transform: rotate(1deg);
    }

    .article-copy {
        width: min(100%, 780px);
        margin: 0 auto;
    }

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

@media (max-width: 640px) {
    .articles-hero-copy h1 {
        font-size: clamp(3.1rem, 16vw, 4.7rem);
    }

    .articles-results-heading {
        align-items: start;
        flex-direction: column;
    }

    .articles-results-heading span {
        text-align: left;
    }

    .article-hero h1 {
        font-size: clamp(2.55rem, 11vw, 3.6rem);
    }

    .article-hero-image {
        padding: 9px;
        box-shadow: 10px 10px 0 rgb(253 255 182 / 0.86);
    }

    .article-intro {
        padding-left: 18px;
    }

    .article-author {
        align-items: flex-start;
    }

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

    .related-image {
        aspect-ratio: 3 / 2;
    }
}
