:root {
    --kma-ink: #171717;
    --kma-copy: #35343a;
    --kma-muted: #73717a;
    --kma-paper: #ffffff;
    --kma-canvas: #f7f5f3;
    --kma-line: #e8e2de;
    --kma-rose: #ed174c;
    --kma-rose-dark: #c9103d;
}

/* Shared blog canvas */
body.blog,
body.archive,
body.single-post {
    background: var(--kma-canvas);
    color: var(--kma-copy);
}

body.blog #content > .ast-container,
body.archive #content > .ast-container {
    display: block;
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    padding: 0;
}

/* Match the site's dark, overlaid landing-page header on journal archives. */
body.blog #masthead,
body.archive #masthead,
body.single-post #masthead {
    position: absolute;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
}

body.blog #masthead .ast-primary-header-bar,
body.archive #masthead .ast-primary-header-bar,
body.single-post #masthead .ast-primary-header-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0));
}

body.blog #masthead .main-header-menu > .menu-item > .menu-link,
body.archive #masthead .main-header-menu > .menu-item > .menu-link,
body.single-post #masthead .main-header-menu > .menu-item > .menu-link,
body.blog #masthead .ast-header-navigation-arrow,
body.archive #masthead .ast-header-navigation-arrow,
body.single-post #masthead .ast-header-navigation-arrow {
    color: #fff;
}

body.blog #masthead .main-header-menu > .menu-item > .menu-link:hover,
body.blog #masthead .main-header-menu > .current-menu-item > .menu-link,
body.archive #masthead .main-header-menu > .menu-item > .menu-link:hover,
body.archive #masthead .main-header-menu > .current-menu-item > .menu-link,
body.single-post #masthead .main-header-menu > .menu-item > .menu-link:hover,
body.single-post #masthead .main-header-menu > .current-menu-item > .menu-link {
    color: #fff;
}

body.blog #primary,
body.archive #primary {
    width: 100%;
    margin: 0;
    padding: 0 0 88px;
}

/* Archive introduction */
.kma-journal-hero {
    position: relative;
    overflow: hidden;
    left: 50%;
    width: 100vw;
    margin: 0 0 30px -50vw;
    padding: 190px max(24px, calc((100vw - 1180px) / 2)) 78px;
    border-radius: 0;
    background:
        radial-gradient(circle at 86% 28%, rgba(237, 23, 76, 0.2), transparent 28%),
        linear-gradient(135deg, #111 0%, #1c1a1b 100%);
    color: #fff;
}

.kma-journal-hero::after {
    position: absolute;
    right: -70px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.kma-journal-hero__eyebrow {
    margin: 0 0 16px;
    color: #ff547a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kma-journal-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-transform: none;
}

.kma-journal-hero__description {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 22px 0 0;
    color: #d7d4d5;
    font-size: 17px;
    line-height: 1.75;
}

.kma-category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 0 34px;
    padding: 8px 2px 10px;
    scrollbar-width: thin;
}

.kma-category-nav a {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--kma-line);
    border-radius: 999px;
    background: var(--kma-paper);
    color: var(--kma-copy);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kma-category-nav a:hover,
.kma-category-nav a:focus-visible,
.kma-category-nav a.is-current {
    border-color: var(--kma-rose);
    background: var(--kma-rose);
    color: #fff;
}

/* Article grid */
body.blog #main,
body.archive #main {
    display: block;
}

body.blog #main > .ast-row,
body.archive #main > .ast-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
}

body.blog #main > .ast-pagination,
body.archive #main > .ast-pagination {
    width: 100%;
}

body.archive .ast-archive-description {
    display: none;
}

body.blog article.ast-article-post,
body.archive article.ast-article-post {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--kma-line);
    border-radius: 18px;
    background: var(--kma-paper);
    box-shadow: 0 12px 35px rgba(35, 24, 27, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    body.blog article.ast-article-post:hover,
    body.archive article.ast-article-post:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 42px rgba(35, 24, 27, 0.11);
    }
}

body.blog article .ast-article-inner,
body.archive article .ast-article-inner {
    height: 100%;
    padding: 0;
}

body.blog article .post-content,
body.archive article .post-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 0;
}

body.blog article .ast-blog-featured-section,
body.archive article .ast-blog-featured-section {
    position: relative;
    height: 230px;
    min-height: 230px;
    margin: 0;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(145deg, #252123, #111);
}

body.blog article .ast-blog-featured-section:empty::after,
body.archive article .ast-blog-featured-section:empty::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.74);
    content: "KISHA HALDIA";
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

body.blog article .post-thumb,
body.blog article .post-thumb a,
body.archive article .post-thumb,
body.archive article .post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

body.blog article .post-thumb img,
body.archive article .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
    body.blog article:hover .post-thumb img,
    body.archive article:hover .post-thumb img {
        transform: scale(1.035);
    }
}

body.blog article .entry-title,
body.archive article .entry-title {
    order: 2;
    margin: 0;
    padding: 0 24px;
    font-size: 22px;
    line-height: 1.35;
    text-transform: none;
}

body.blog article .entry-title a,
body.archive article .entry-title a {
    color: var(--kma-ink);
    text-decoration: none;
}

body.blog article .entry-header,
body.archive article .entry-header {
    order: 1;
    margin: 22px 0 12px;
    padding: 0 24px;
}

body.blog article .entry-meta,
body.archive article .entry-meta,
body.blog article .entry-meta a,
body.archive article .entry-meta a {
    color: var(--kma-rose-dark);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

body.blog article .posted-by,
body.archive article .posted-by,
body.blog article .comments-link,
body.archive article .comments-link {
    display: none;
}

body.blog article .ast-excerpt-container,
body.archive article .ast-excerpt-container {
    display: flex;
    order: 3;
    margin: 14px 0 0;
    padding: 0 24px;
    color: var(--kma-muted);
    font-size: 14px;
    line-height: 1.75;
}

body.blog article .ast-excerpt-container > p,
body.archive article .ast-excerpt-container > p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.blog article .read-more,
body.archive article .read-more {
    order: 4;
    margin-top: auto;
    padding: 18px 24px 24px;
}

body.blog article .entry-content,
body.archive article .entry-content {
    display: none;
}

body.blog article .read-more a,
body.archive article .read-more a {
    color: var(--kma-rose);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    text-transform: uppercase;
}

body.blog .ast-pagination,
body.archive .ast-pagination {
    margin-top: 20px;
    text-align: center;
}

body.blog .ast-pagination .page-numbers,
body.archive .ast-pagination .page-numbers {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin: 3px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--kma-ink);
    text-decoration: none;
}

body.blog .ast-pagination .current,
body.archive .ast-pagination .current {
    background: var(--kma-rose);
    color: #fff;
}

/* Single article */
body.single-post #content > .ast-container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0 0 88px;
}

body.single-post {
    background: #fff;
}

body.single-post #primary {
    width: 100%;
    margin: 0;
    padding: 0;
}

.kma-single-hero {
    position: relative;
    left: 50%;
    display: flex;
    width: 100vw;
    min-height: 570px;
    margin: 0 0 0 -50vw;
    align-items: flex-end;
    overflow: hidden;
    background-color: #171516;
    background-image:
        linear-gradient(90deg, rgba(13, 13, 13, 0.96) 0%, rgba(13, 13, 13, 0.82) 48%, rgba(13, 13, 13, 0.3) 76%, rgba(13, 13, 13, 0.5) 100%),
        var(--kma-single-image, linear-gradient(135deg, #151515, #35131e));
    background-position: center, center 38%;
    background-size: cover;
    color: #fff;
}

.kma-single-hero__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 178px 0 74px;
}

.kma-single-hero__back {
    display: inline-block;
    margin-bottom: 18px;
    color: #ff547a;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.kma-single-hero__back::before {
    content: "\2190";
    margin-right: 8px;
}

.kma-single-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.kma-single-hero__categories a {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.kma-single-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-transform: none;
}

.kma-single-hero__meta {
    display: flex;
    gap: 10px;
    margin: 22px 0 0;
    color: #d8d4d5;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: 0.025em;
}

body.single-post article.ast-article-single {
    width: 100%;
    margin: 0;
    padding: 72px max(24px, calc((100vw - 760px) / 2)) 82px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

body.single-post .entry-header {
    margin: 0 0 34px;
    text-align: center;
}

body.single-post .entry-title {
    max-width: 780px;
    margin: 0 auto 18px;
    color: var(--kma-ink);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.13;
    letter-spacing: -0.035em;
    text-transform: none;
}

body.single-post .entry-meta,
body.single-post .entry-meta a {
    color: var(--kma-rose-dark);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.single-post .ast-single-post-featured-section {
    margin: 0 0 42px;
}

body.single-post .ast-single-post-featured-section img,
body.single-post .post-thumb img {
    width: 100%;
    max-height: 520px;
    border-radius: 16px;
    object-fit: cover;
}

body.single-post .entry-content {
    color: var(--kma-copy);
    font-size: 18px;
    line-height: 1.85;
}

body.single-post .entry-content > * {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

body.single-post .entry-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 34px auto;
    border-radius: 14px;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    margin-top: 1.7em;
    color: var(--kma-ink);
    line-height: 1.25;
    text-transform: none;
}

body.single-post .entry-content h2 {
    font-size: clamp(28px, 4vw, 36px);
}

body.single-post .entry-content h3 {
    font-size: clamp(23px, 3vw, 29px);
}

body.single-post .entry-content a {
    color: var(--kma-rose-dark);
    text-decoration-color: rgba(201, 16, 61, 0.35);
    text-underline-offset: 3px;
}

body.single-post .entry-content blockquote {
    padding: 20px 24px;
    border-left: 4px solid var(--kma-rose);
    background: #fff5f7;
    color: var(--kma-ink);
}

body.single-post .post-navigation {
    width: min(920px, calc(100% - 48px));
    margin-top: 28px;
    margin-right: auto;
    margin-left: auto;
    padding: 24px;
    border: 1px solid var(--kma-line);
    border-radius: 16px;
    background: #fff;
}

body.single-post .comments-area {
    width: min(920px, calc(100% - 48px));
    margin-top: 28px;
    margin-right: auto;
    margin-left: auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--kma-line);
    border-radius: 18px;
    background: #fff;
}

@media (max-width: 920px) {
    body.blog #main > .ast-row,
    body.archive #main > .ast-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.blog #masthead .ast-primary-header-bar,
    body.archive #masthead .ast-primary-header-bar,
    body.single-post #masthead .ast-primary-header-bar {
        background: rgba(15, 15, 15, 0.88);
    }
}

@media (max-width: 620px) {
    body.blog #content > .ast-container,
    body.archive #content > .ast-container,
    body.single-post #content > .ast-container {
        width: min(100% - 28px, 1180px);
    }

    body.blog #primary,
    body.archive #primary {
        padding-bottom: 58px;
    }

    .kma-journal-hero {
        padding: 128px 22px 50px;
        border-radius: 0;
    }

    .kma-journal-hero__description {
        font-size: 15px;
        line-height: 1.65;
    }

    .kma-category-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        overflow: visible;
        margin: 0 0 28px;
        padding: 8px 0 4px;
    }

    .kma-category-nav a {
        flex: 0 1 auto;
        padding: 8px 12px;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }

    body.blog #main > .ast-row,
    body.archive #main > .ast-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    body.blog article .ast-blog-featured-section,
    body.archive article .ast-blog-featured-section {
        height: 220px;
        min-height: 220px;
    }

    body.single-post #content > .ast-container {
        padding: 0 0 58px;
    }

    .kma-single-hero {
        min-height: 520px;
        margin-bottom: 30px;
        background-image:
            linear-gradient(180deg, rgba(13, 13, 13, 0.5) 0%, rgba(13, 13, 13, 0.72) 48%, rgba(13, 13, 13, 0.96) 100%),
            var(--kma-single-image, linear-gradient(135deg, #151515, #35131e));
        background-position: center, center;
    }

    .kma-single-hero__inner {
        width: calc(100% - 40px);
        padding: 130px 0 48px;
    }

    .kma-single-hero h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    body.single-post article.ast-article-single {
        padding: 42px 22px 58px;
        border-radius: 0;
    }

    body.single-post .entry-content {
        font-size: 16px;
        line-height: 1.78;
    }
}

