/* The Masala Archive editorial tokens — station2021 */
:root {
    --bg-primary: #FAF7F2;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F3EDE2;
    --text-primary: #1D1A16;
    --text-secondary: #575046;
    --text-muted: #847B6E;
    --accent-terracotta: #C25934;
    --accent-saffron: #D98A2B;
    --accent-cardamom: #3E5C4B;
    --border-light: rgba(29, 26, 22, 0.08);
    --shadow-soft: 0 20px 40px -15px rgba(29, 26, 22, 0.06);
    --shadow-card: 0 4px 20px rgba(29, 26, 22, 0.03);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;
    --transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: Georgia, "Times New Roman", Times, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --header-height: 50px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-width: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea {
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.clamp-2,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-3,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* —— Header / Nav —— */
.main-header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.main-header > .container,
.header-inner,
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 1rem;
    position: relative;
}

.logo,
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
    min-width: 0;
}

.logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-terracotta);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.22);
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    z-index: 2;
}

.hamburger span,
.hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1),
.hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2),
.hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3),
.hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-terracotta);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.author-chip:hover {
    border-color: var(--accent-terracotta);
}

.author-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile nav: absolute under header (avoid sticky + backdrop-filter fixed trap) */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100dvh - var(--header-height));
        max-height: calc(100dvh - var(--header-height));
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-light);
        overflow-y: auto;
        padding: 0.75rem 1.5rem 1.5rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        z-index: 1;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
        list-style: none;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
    }

    .nav-actions {
        display: none;
    }
}

/* Desktop nav reset — write full properties (1024 bilateral) */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        height: auto;
        max-height: none;
        top: auto;
        right: auto;
        left: auto;
        overflow: visible;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
        width: auto;
    }

    .nav-links li {
        width: auto;
        border: 0;
    }

    .nav-actions {
        display: flex;
    }
}

/* —— Page shell —— */
.page-main,
.main-content {
    padding: 2rem 0 5rem;
}

.page-main--tight {
    padding-top: 1.5rem;
}

/* —— Home featured bento —— */
.featured-bento {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.lead-story {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    color: inherit;
}

.lead-story:hover {
    transform: translateY(-4px);
}

.lead-image-wrap {
    position: relative;
    height: 340px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-subtle);
}

.lead-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.lead-story:hover .lead-image-wrap img {
    transform: scale(1.03);
}

.cover-badge {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    background: rgba(29, 26, 22, 0.82);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    max-width: calc(100% - 2.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-content {
    padding: 1.85rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-terracotta);
    margin-bottom: 0.65rem;
}

.story-meta .dot {
    color: var(--text-muted);
}

.lead-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 700;
    line-height: 1.22;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.lead-excerpt {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
}

.story-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.84rem;
}

.byline-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
}

.byline-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.read-cta {
    font-weight: 700;
    color: var(--accent-terracotta);
    white-space: nowrap;
}

.secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.side-story {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 1.1rem;
    align-items: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.side-story.no-image {
    grid-template-columns: 1fr;
}

.side-story:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 89, 52, 0.28);
}

.side-story__media {
    width: 112px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-subtle);
}

.side-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-story-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-cardamom);
    margin-bottom: 0.3rem;
    display: block;
}

.side-story-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.32;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.side-story-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.research-note-strip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.research-note-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    min-width: 0;
}

.research-note-text strong {
    color: var(--text-primary);
}

.research-note-link {
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-terracotta);
    background: var(--bg-surface);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.research-note-link:hover {
    background: var(--accent-terracotta);
    color: #fff;
}

/* —— Feed / listing —— */
.feed-header,
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.feed-title,
.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feed-subtitle,
.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.articles-grid,
.articles-listing-grid,
.detail-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.65rem;
}

.post-card,
.article-card,
.listing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    color: inherit;
}

.post-card:hover,
.article-card:hover,
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.post-thumb-wrap,
.article-image,
.listing-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-subtle);
}

.post-thumb-wrap img,
.article-image img,
.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumb-wrap img,
.article-card:hover .article-image img,
.listing-card:hover .listing-card-image img {
    transform: scale(1.04);
}

.post-body,
.article-content,
.listing-card-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-category,
.card-category {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent-cardamom);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.card-category--inline {
    margin-left: 0.5rem;
}

.card-category--overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-primary);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    margin: 0;
}

.post-title,
.article-card .article-content h3,
.listing-card-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.32;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.post-excerpt,
.article-excerpt,
.listing-card-excerpt {
    font-size: 0.89rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.3rem;
    flex: 1;
}

.post-footer,
.article-meta,
.listing-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: auto;
}

.post-footer .read-more,
.read-more {
    color: var(--accent-terracotta);
    font-weight: 700;
}

.article-meta {
    border: 0;
    padding: 0;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
}

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* —— Author page —— */
.author-page-nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.breadcrumb,
.breadcrumb-nav .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.82rem;
}

.breadcrumb a:hover {
    color: var(--accent-terracotta);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin-right: 0.5rem;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cardamom);
    box-shadow: var(--shadow-card);
}

.author-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    align-items: start;
    position: relative;
    overflow: hidden;
}

.author-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(217, 138, 43, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.profile-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    position: relative;
}

.avatar-frame {
    position: relative;
    width: 168px;
    height: 168px;
    margin-bottom: 1.25rem;
}

.avatar-frame::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed var(--accent-terracotta);
    opacity: 0.55;
    animation: slowSpin 36s linear infinite;
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-surface);
    box-shadow: 0 10px 25px rgba(29, 26, 22, 0.12);
}

.author-role-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-terracotta);
    background: rgba(194, 89, 52, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.65rem;
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.bio-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.25rem;
}

.bio-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-saffron);
    margin-bottom: 0.4rem;
}

.bio-headline {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.bio-body {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
}

.bio-body p {
    margin-bottom: 1.1rem;
}

.bio-body p:last-child {
    margin-bottom: 0;
}

.bio-body > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 2.9rem;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    margin-right: 0.65rem;
    margin-top: 0.15rem;
    color: var(--accent-terracotta);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(194, 89, 52, 0.25);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-terracotta);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.articles-section {
    margin-top: 3.5rem;
}

.author-article-card .article-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-subtle);
}

.author-article-card .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

/* —— Detail page —— */
.progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 200;
    pointer-events: none;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-saffron));
}

.article-header {
    max-width: 820px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--accent-cardamom);
    background: rgba(62, 92, 75, 0.1);
    padding: 0.32rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.article-detail .article-title,
.article-header .article-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.16;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.article-deck {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 700px;
    margin: 0 auto 1.65rem;
}

.byline-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.byline-person {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--text-primary);
}

.byline-person:hover {
    color: var(--accent-terracotta);
}

.byline-person img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-divider {
    color: var(--border-light);
}

.hero-figure {
    margin-bottom: 3rem;
}

.hero-image-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--bg-subtle);
    box-shadow: var(--shadow-soft);
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-caption {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
}

.editorial-grid,
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    align-items: start;
}

.article-prose,
.article-body.detail-post-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.75rem 3rem;
    box-shadow: var(--shadow-soft);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.article-prose > p,
.article-body.detail-post-content > p {
    margin-bottom: 0.9375rem;
}

.article-prose h2,
.article-body.detail-post-content h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.4rem 0 0.9rem;
    line-height: 1.28;
}

.article-prose h3,
.article-body.detail-post-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.6rem 0 0.65rem;
}

.article-prose img,
.article-body.detail-post-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.article-prose a,
.article-body.detail-post-content a {
    color: var(--accent-terracotta);
    text-decoration: underline;
}

.share-container {
    margin: 2rem 0 1.5rem;
}

.detail-author-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-top: 1.5rem;
}

.detail-author-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.detail-author-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.detail-author-card .role {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-terracotta);
    margin-bottom: 0.5rem;
}

.detail-author-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.adjacent-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.adjacent-nav a {
    display: block;
    padding: 1.1rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.adjacent-nav a:hover {
    border-color: var(--accent-terracotta);
}

.adjacent-nav .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.adjacent-nav .title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.adjacent-nav .next {
    text-align: right;
}

.comments-section {
    margin-top: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.comments-section h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.comment-form input:disabled,
.comment-form textarea:disabled,
.comment-form button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.comment-form .btn,
.comment-form button {
    background: var(--accent-terracotta);
    color: #fff;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
}

.related-heading {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--bg-subtle);
}

.related-card-body {
    padding: 1.25rem;
}

.related-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-cardamom);
    margin-bottom: 0.4rem;
    display: block;
}

.related-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.35;
}

/* —— Sidebar —— */
.sidebar,
.sidebar-column {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card,
.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.45rem;
    box-shadow: var(--shadow-card);
}

.sidebar-title,
.widget-title {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.95rem;
}

.author-mini-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.author-mini-header img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-subtle);
}

.author-mini-name {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.author-mini-role {
    font-size: 0.78rem;
    color: var(--accent-terracotta);
    font-weight: 600;
}

.author-mini-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.58;
    margin-bottom: 1rem;
}

.author-mini-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.author-mini-link:hover {
    background: var(--accent-terracotta);
    color: #fff;
    border-color: var(--accent-terracotta);
}

.destination-item,
.recent-article {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
}

.destination-item:last-child,
.recent-article:last-child {
    border-bottom: 0;
}

.destination-image {
    width: 64px;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-subtle);
    flex-shrink: 0;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-info h4,
.recent-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.destination-date,
.recent-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.sidebar-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--accent-saffron);
    background: #FFFBF4;
}

/* —— All articles archive —— */
.archive-list {
    max-width: 860px;
    margin: 0 auto;
}

.archive-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.archive-row {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border-light);
}

.archive-row time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.archive-row a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.archive-row a:hover {
    color: var(--accent-terracotta);
}

.log-era {
    margin-top: 2rem;
}

.log-era__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cardamom);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

/* —— Alone / stay-touch —— */
.standalone-page .article-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 1.5rem;
}

.stay-touch {
    margin-top: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.stay-touch__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.stay-touch__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.stay-touch__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stay-touch__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stay-touch__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stay-touch__form input,
.stay-touch__form textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.stay-touch__form input:focus,
.stay-touch__form textarea:focus {
    outline: none;
    border-color: var(--accent-terracotta);
}

.stay-touch__submit {
    align-self: flex-start;
    background: var(--accent-terracotta);
    color: #fff;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.stay-touch__submit:hover {
    background: #A94927;
}

.stay-touch__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stay-touch__msg {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stay-touch__msg.is-ok {
    color: var(--accent-cardamom);
}

.stay-touch__msg.is-error {
    color: var(--accent-terracotta);
}

/* —— Pager —— */
.pager,
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    list-style: none;
}

.pager__btn,
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.pager__btn:hover,
.pagination-link:hover {
    border-color: var(--accent-terracotta);
    color: var(--accent-terracotta);
}

.pager__btn--curr,
.pagination-link.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.pager__btn--off {
    opacity: 0.45;
    pointer-events: none;
}

/* —— Footer —— */
.main-footer,
.site-footer {
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-bottom,
.footer-copyright p,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

.footer-copyright a:hover,
.footer-links a:hover {
    color: var(--accent-terracotta);
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
}

.listing-page .breadcrumb-nav {
    margin-bottom: 1rem;
}

/* —— Responsive —— */
@media (max-width: 980px) {
    .featured-bento,
    .author-hero,
    .editorial-grid,
    .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .articles-grid,
    .articles-listing-grid,
    .detail-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .sidebar,
    .sidebar-column {
        position: static;
    }

    .profile-aside {
        max-width: 440px;
        margin: 0 auto;
        width: 100%;
    }

    .article-prose,
    .article-body.detail-post-content {
        padding: 2rem 1.75rem;
    }

    .adjacent-nav {
        grid-template-columns: 1fr;
    }

    .adjacent-nav .next {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .article-detail .article-title,
    .article-header .article-title {
        font-size: 1.5rem;
    }

    .article-prose,
    .article-body.detail-post-content {
        font-size: 1.125rem;
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .article-prose > p,
    .article-body.detail-post-content > p {
        margin-bottom: 0.9375rem;
    }

    .breadcrumb-nav,
    .detail-page .breadcrumb {
        display: none !important;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .archive-row {
        grid-template-columns: 5.5rem 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .page-main,
    .main-content {
        padding: 1.25rem 0 3.5rem;
    }

    .lead-content {
        padding: 1.35rem;
    }

    .lead-image-wrap {
        height: 230px;
    }

    .side-story {
        grid-template-columns: 92px 1fr;
        padding: 1rem;
    }

    .side-story.no-image {
        grid-template-columns: 1fr;
    }

    .side-story__media {
        width: 92px;
    }

    .articles-grid,
    .articles-listing-grid,
    .detail-grid,
    .related-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .author-hero {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .avatar-frame {
        width: 136px;
        height: 136px;
    }

    .research-note-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image-box {
        aspect-ratio: 16 / 10;
    }
}
