/* Blog editorial system: index and article pages only. */
.blog-index,
.blog-article {
    --blog-ink: #17130f;
    --blog-paper: #fffdf8;
    --blog-cream: #f4efe5;
    --blog-rust: #c8442b;
    --blog-rust-dark: #9f321f;
    --blog-green: #1f5040;
    --blog-line: rgba(23, 19, 15, .14);
    --blog-muted: #665d50;
}

.blog-index .content,
.blog-article .content {
    width: 100%;
    max-width: 1240px;
    padding-right: clamp(14px, 2.5vw, 28px);
    padding-left: clamp(14px, 2.5vw, 28px);
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--accent-lite);
}

.blog-eyebrow:before {
    width: 30px;
    height: 1px;
    background: currentColor;
    content: "";
}

.blog-breadcrumb {
    margin-bottom: clamp(30px, 5vw, 70px);
}

.blog-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .58);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-breadcrumb li + li:before {
    color: var(--accent-lite);
    content: "/";
}

.blog-breadcrumb a,
.blog-breadcrumb a:visited {
    color: rgba(255, 255, 255, .72);
}

.blog-breadcrumb a:hover {
    color: #fff;
}

/* Index hero */
.blog-index-hero,
.blog-article-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(200, 68, 43, .28), transparent 30%),
        radial-gradient(circle at 12% 100%, rgba(31, 80, 64, .42), transparent 36%),
        var(--blog-ink);
    box-shadow: 0 35px 80px -52px rgba(23, 19, 15, .8);
    color: #fff;
}

.blog-index-hero {
    min-height: 485px;
    padding: clamp(24px, 5.5vw, 72px);
}

.blog-index-hero:after {
    position: absolute;
    right: -22px;
    bottom: -74px;
    z-index: -1;
    color: rgba(255, 255, 255, .025);
    content: "BLOG";
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 18rem);
    font-weight: 800;
    letter-spacing: -.09em;
    line-height: .8;
    pointer-events: none;
}

.blog-index-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: clamp(40px, 7vw, 95px);
    align-items: end;
}

.blog-index-hero h1 {
    max-width: 780px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    line-height: .94;
    letter-spacing: -.065em;
    text-wrap: balance;
}

.blog-index-hero-lead {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, .73);
    font-family: var(--font-letter);
    font-size: clamp(1.12rem, 2vw, 1.42rem);
    line-height: 1.55;
}

.blog-hero-search {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(12px);
}

.blog-hero-search-label {
    display: block;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-hero-search p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: .84rem;
    line-height: 1.55;
}

.blog-hero-search .form-control,
.blog-hero-search input[type="text"],
.blog-hero-search input[type="search"] {
    min-height: 48px;
    border-color: rgba(255, 255, 255, .2);
    background: #fff;
}

/* Resource ledger */
.blog-resource-ledger {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 26px 0 clamp(52px, 8vw, 92px);
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: var(--blog-paper);
    box-shadow: 0 24px 60px -52px rgba(23, 19, 15, .75);
}

.blog-resource-link {
    position: relative;
    min-width: 0;
    padding: 24px 22px;
    color: var(--blog-ink);
    transition: background .2s ease, color .2s ease;
}

.blog-resource-link + .blog-resource-link {
    border-left: 1px solid var(--blog-line);
}

.blog-resource-link span {
    display: block;
    margin-bottom: 14px;
    color: var(--blog-rust);
    font-family: var(--font-mono);
    font-size: .72rem;
}

.blog-resource-link strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(.9rem, 1.4vw, 1.06rem);
    line-height: 1.25;
}

.blog-resource-link:after {
    position: absolute;
    right: 20px;
    bottom: 18px;
    opacity: 0;
    color: var(--blog-rust);
    content: "\2192";
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
}

.blog-resource-link:hover {
    background: var(--blog-cream);
    color: var(--blog-rust-dark);
}

.blog-resource-link:hover:after {
    opacity: 1;
    transform: translateX(0);
}

/* Index feed */
.blog-feed-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--blog-line);
}

.blog-feed-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--blog-rust);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.blog-feed-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    letter-spacing: -.05em;
}

.blog-feed-head p {
    max-width: 430px;
    margin: 0;
    color: var(--blog-muted);
    font-family: var(--font-letter);
    font-size: 1.05rem;
    line-height: 1.55;
}

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

.blog-card-editorial {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: var(--blog-paper);
    box-shadow: 0 18px 45px -42px rgba(23, 19, 15, .75);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.blog-card-editorial:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
}

.blog-card-editorial:hover {
    border-color: rgba(200, 68, 43, .42);
    box-shadow: 0 28px 60px -42px rgba(23, 19, 15, .7);
    transform: translateY(-4px);
}

.blog-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--blog-cream);
}

.blog-card-editorial:first-child .blog-card-media {
    min-height: 100%;
    aspect-ratio: auto;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

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

.blog-card-index {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(23, 19, 15, .76);
    color: #fff;
    font-family: var(--font-mono);
    font-size: .68rem;
    backdrop-filter: blur(8px);
}

.blog-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 30px);
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--blog-rust);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.blog-card-tag:before {
    width: 17px;
    height: 1px;
    background: currentColor;
    content: "";
}

.blog-card-copy h3 {
    margin: 0 0 13px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.blog-card-editorial:first-child h3 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.blog-card-copy h3 a,
.blog-card-copy h3 a:visited {
    color: var(--blog-ink);
}

.blog-card-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    color: var(--blog-muted);
    font-family: var(--font-letter);
    font-size: 1rem;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--blog-green);
    font-size: .8rem;
    font-weight: 750;
}

.blog-card-cta:after {
    content: "\2192";
    transition: transform .2s ease;
}

.blog-card-editorial:hover .blog-card-cta:after {
    transform: translateX(5px);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin: 42px 0 10px;
}

.blog-pagination > span {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
}

.blog-pagination a,
.blog-pagination span > span {
    display: inline-grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--blog-line);
    border-radius: 999px;
    background: var(--blog-paper);
    color: var(--blog-ink);
    font-size: .82rem;
    font-weight: 700;
}

.blog-pagination span > span,
.blog-pagination a:hover {
    border-color: var(--blog-ink);
    background: var(--blog-ink);
    color: #fff;
}

/* Article hero */
.blog-article-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    min-height: 560px;
}

.blog-article-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 66px);
}

.blog-article-hero-copy .blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
    color: rgba(255, 255, 255, .48);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-article-hero-copy h1 {
    max-width: 820px;
    margin: 18px 0 22px;
    color: #fff;
    font-size: clamp(2.5rem, 5.3vw, 5rem);
    line-height: .98;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.blog-article-deck {
    max-width: 720px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .74);
    font-family: var(--font-letter);
    font-size: clamp(1.1rem, 1.7vw, 1.34rem);
    line-height: 1.55;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: auto;
    color: rgba(255, 255, 255, .62);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.blog-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-article-meta span:before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-lite);
    content: "";
}

.blog-article-hero-media {
    position: relative;
    min-height: 420px;
    margin: 18px 18px 18px 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--blog-cream);
}

.blog-article-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-hero-media:after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
    content: "";
    pointer-events: none;
}

/* Article body */
.blog-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 790px) minmax(260px, 320px);
    gap: clamp(32px, 5vw, 66px);
    align-items: start;
    justify-content: center;
    margin: 30px 0 62px;
}

.blog-article-paper {
    min-width: 0;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--blog-line);
    border-radius: 20px;
    background: var(--blog-paper);
    box-shadow: 0 26px 65px -55px rgba(23, 19, 15, .8);
}

.blog-prose {
    color: #332c25;
    font-family: var(--font-letter);
    font-size: clamp(1.06rem, 1.5vw, 1.18rem);
    line-height: 1.86;
}

.blog-prose > p:first-child {
    color: var(--blog-ink);
    font-size: clamp(1.25rem, 2vw, 1.52rem);
    line-height: 1.63;
}

.blog-prose > p:first-child:first-letter {
    float: left;
    margin: .08em .12em 0 0;
    color: var(--blog-rust);
    font-family: var(--font-display);
    font-size: 4.4em;
    font-weight: 750;
    line-height: .78;
}

.blog-prose p {
    margin: 0 0 1.4em;
}

.blog-prose h2 {
    counter-increment: blog-section;
    margin: 2.35em 0 .85em;
    padding-top: 1.15em;
    border-top: 1px solid var(--blog-line);
    color: var(--blog-ink);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.13;
    letter-spacing: -.045em;
}

.blog-prose h2:before {
    display: block;
    margin-bottom: 10px;
    color: var(--blog-rust);
    content: counter(blog-section, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .05em;
}

.blog-prose h3 {
    margin: 1.75em 0 .65em;
    padding-left: 18px;
    border-left: 3px solid var(--blog-rust);
    color: var(--blog-ink);
    font-family: var(--font-display);
    font-size: clamp(1.14rem, 2vw, 1.38rem);
    line-height: 1.28;
    letter-spacing: -.025em;
}

.blog-prose a {
    color: var(--blog-green);
    text-decoration: underline;
    text-decoration-color: rgba(31, 80, 64, .32);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-prose h2 a,
.blog-prose h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-prose a:hover {
    color: var(--blog-rust-dark);
    text-decoration-color: currentColor;
}

.blog-prose blockquote,
.blog-pullquote {
    position: relative;
    overflow: hidden;
    margin: clamp(36px, 6vw, 62px) 0;
    padding: clamp(28px, 5vw, 48px);
    border: 0;
    border-radius: 16px;
    background: var(--blog-cream);
}

.blog-pullquote:before {
    position: absolute;
    top: -48px;
    right: 18px;
    color: rgba(200, 68, 43, .12);
    content: "\201c";
    font-family: var(--font-letter);
    font-size: 12rem;
    line-height: 1;
}

.blog-pullquote q {
    position: relative;
    display: block;
    color: var(--blog-ink);
    font-family: var(--font-letter);
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-style: italic;
    line-height: 1.35;
    text-align: left;
}

.blog-pullquote q:before,
.blog-pullquote q:after {
    content: none;
}

.blog-article-paper {
    counter-reset: blog-section;
}

/* Article aside */
.blog-article-aside {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 18px;
}

.blog-aside-card {
    padding: 22px;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: var(--blog-paper);
}

.blog-aside-label {
    display: block;
    margin-bottom: 15px;
    color: var(--blog-rust);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.blog-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.blog-toc li {
    counter-increment: toc;
}

.blog-toc a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(23, 19, 15, .08);
    color: var(--blog-muted);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
}

.blog-toc a:before {
    color: var(--blog-rust);
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: .65rem;
}

.blog-toc a:hover,
.blog-toc a.is-active {
    color: var(--blog-ink);
}

.blog-related-letters ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-related-letters li a {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(23, 19, 15, .08);
    color: var(--blog-ink);
    font-size: .82rem;
    font-weight: 620;
    line-height: 1.35;
}

.blog-related-letters li a:hover {
    color: var(--blog-rust-dark);
}

.blog-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-share-row a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--blog-line);
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.blog-share-row a:hover {
    border-color: var(--blog-rust);
    background: rgba(200, 68, 43, .07);
    transform: translateY(-2px);
}

.blog-share-row img {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* More articles */
.blog-more {
    margin-bottom: 32px;
}

.blog-more-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--blog-line);
}

.blog-more-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

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

.blog-more-card {
    overflow: hidden;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: var(--blog-paper);
    transition: transform .22s ease, border-color .22s ease;
}

.blog-more-card:hover {
    border-color: rgba(200, 68, 43, .42);
    transform: translateY(-3px);
}

.blog-more-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-more-card h3 {
    margin: 0;
    padding: 18px;
    font-size: 1rem;
    line-height: 1.3;
}

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

    .blog-index-hero-grid {
        align-items: start;
    }

    .blog-hero-search {
        max-width: 560px;
    }

    .blog-resource-ledger {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-resource-link:nth-child(3) {
        border-left: 0;
    }

    .blog-resource-link:nth-child(n+3) {
        border-top: 1px solid var(--blog-line);
    }

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

    .blog-card-editorial:first-child {
        grid-column: 1 / -1;
    }

    .blog-article-hero-media {
        min-height: 460px;
        margin: 0 18px 18px;
    }

    .blog-article-hero-copy .blog-breadcrumb {
        margin-bottom: 44px;
    }

    .blog-article-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 680px) {
    .blog-index .content,
    .blog-article .content {
        margin-top: 10px;
    }

    .blog-index-hero,
    .blog-article-hero {
        border-radius: 18px;
    }

    .blog-index-hero {
        min-height: auto;
    }

    .blog-index-hero h1 {
        font-size: clamp(2.7rem, 15vw, 4rem);
    }

    .blog-resource-ledger,
    .blog-feed-grid,
    .blog-card-editorial:first-child,
    .blog-article-aside,
    .blog-more-grid {
        grid-template-columns: 1fr;
    }

    .blog-resource-link + .blog-resource-link {
        border-top: 1px solid var(--blog-line);
        border-left: 0;
    }

    .blog-card-editorial:first-child {
        grid-column: auto;
        display: flex;
    }

    .blog-card-editorial:first-child .blog-card-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .blog-card-editorial:first-child h3 {
        font-size: 1.45rem;
    }

    .blog-feed-head,
    .blog-more-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-article-hero-copy {
        padding: 26px 22px 34px;
    }

    .blog-article-hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.3rem);
    }

    .blog-article-hero-media {
        min-height: 0;
        margin: 0 10px 10px;
        aspect-ratio: 1 / 1;
    }

    .blog-article-paper {
        border-radius: 16px;
    }

    .blog-prose {
        font-size: 1.03rem;
        line-height: 1.78;
    }

    .blog-prose > p:first-child:first-letter {
        font-size: 3.6em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card-editorial,
    .blog-card-media img,
    .blog-resource-link:after,
    .blog-more-card,
    .blog-share-row a {
        transition: none;
    }
}
