:root {
    --resource-ink: #082833;
    --resource-muted: #516a72;
    --resource-cream: #f5f1e8;
    --resource-card: #ffffff;
    --resource-accent: #e56b3f;
    --resource-line: rgba(8, 40, 51, 0.12);
}

.resource-wrap,
.article-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.article-wrap-narrow {
    width: min(820px, calc(100% - 40px));
}

.resource-hero {
    padding: 150px 0 76px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(229, 107, 63, 0.28), transparent 34%),
        linear-gradient(145deg, #082833, #0e4552);
}

.resource-hero .eyebrow,
.related-resources .eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #f7a580;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.resource-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.resource-hero > .resource-wrap > p {
    max-width: 700px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.15rem;
    line-height: 1.7;
}

.resource-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.resource-tabs a {
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.resource-tabs a:hover,
.resource-tabs a.is-active {
    border-color: #fff;
    color: var(--resource-ink);
    background: #fff;
}

.resource-section {
    padding: 80px 0 100px;
    background: var(--resource-cream);
}

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

.resource-card {
    overflow: hidden;
    border: 1px solid var(--resource-line);
    border-radius: 24px;
    background: var(--resource-card);
    box-shadow: 0 18px 50px rgba(8, 40, 51, 0.07);
}

.resource-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dce8e8;
}

.resource-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.resource-card:hover .resource-card-media img {
    transform: scale(1.035);
}

.resource-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    font-size: 3rem;
    background: linear-gradient(145deg, #0e4552, #e56b3f);
}

.resource-type {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--resource-ink);
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.resource-card-body {
    padding: 24px;
}

.resource-category {
    color: var(--resource-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.resource-card h2 {
    margin: 9px 0 12px;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.resource-card h2 a {
    color: var(--resource-ink);
    text-decoration: none;
}

.resource-card p {
    margin: 0;
    color: var(--resource-muted);
    line-height: 1.65;
}

.resource-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--resource-ink);
    font-weight: 800;
    text-decoration: none;
}

.resource-empty {
    padding: 70px 24px;
    border: 1px dashed rgba(8, 40, 51, 0.25);
    border-radius: 24px;
    text-align: center;
}

.resource-empty > i {
    color: var(--resource-accent);
    font-size: 2.5rem;
}

.article-page {
    background: #fff;
}

.article-header {
    padding: 145px 0 58px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(229, 107, 63, 0.24), transparent 30%),
        linear-gradient(145deg, #082833, #0e4552);
}

.article-breadcrumbs {
    display: flex;
    gap: 9px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.article-breadcrumbs a {
    color: inherit;
}

.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.article-kicker span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-header h1 {
    margin: 20px 0;
    font-size: clamp(2.35rem, 6vw, 4.7rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.article-deck {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.7;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
}

.article-main {
    padding-top: 54px;
    padding-bottom: 90px;
}

.article-featured-image,
.tutorial-player {
    overflow: hidden;
    margin: 0 0 48px;
    border-radius: 24px;
    box-shadow: 0 24px 65px rgba(8, 40, 51, 0.14);
}

.article-featured-image img,
.tutorial-player iframe,
.tutorial-player video {
    display: block;
    width: 100%;
}

.tutorial-player iframe,
.tutorial-player video {
    aspect-ratio: 16 / 9;
    border: 0;
    background: #021419;
}

.article-prose {
    color: #1d3942;
    font-size: 1.08rem;
    line-height: 1.82;
}

.article-prose h2,
.article-prose h3 {
    margin: 2.2em 0 0.65em;
    color: var(--resource-ink);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article-prose h2 {
    font-size: 2rem;
}

.article-prose h3 {
    font-size: 1.45rem;
}

.article-prose a {
    color: #b94322;
}

.article-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.article-prose blockquote {
    margin: 2rem 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--resource-accent);
    color: var(--resource-muted);
}

.tutorial-transcript {
    margin-top: 48px;
    border: 1px solid var(--resource-line);
    border-radius: 18px;
    background: #f8faf9;
}

.tutorial-transcript summary {
    padding: 18px 22px;
    color: var(--resource-ink);
    font-weight: 800;
    cursor: pointer;
}

.tutorial-transcript > div {
    padding: 0 22px 24px;
    color: var(--resource-muted);
    line-height: 1.75;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--resource-line);
}

.article-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--resource-muted);
    background: #edf2f1;
    font-size: 0.82rem;
    font-weight: 700;
}

.related-resources {
    border-top: 1px solid var(--resource-line);
}

.related-resources .section-heading {
    margin-bottom: 30px;
}

.related-resources .section-heading h2 {
    margin: 0;
    color: var(--resource-ink);
    font-size: clamp(2rem, 4vw, 3.2rem);
}

@media (max-width: 900px) {
    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .resource-wrap,
    .article-wrap,
    .article-wrap-narrow {
        width: min(100% - 28px, 1180px);
    }

    .resource-hero,
    .article-header {
        padding-top: 120px;
    }

    .resource-section {
        padding: 55px 0 70px;
    }

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

    .article-main {
        padding-top: 34px;
        padding-bottom: 65px;
    }
}
