/* ----- Insights index -----
   Server-rendered archive of every indexable article. Deliberately plain: the
   page exists so crawlers reach all articles through real <a> links without
   running blog-loader.js. Tokens only — see core.css. */

.insights-index__intro {
    max-width: 60ch;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.insights-index__count {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.insights-index__group {
    padding-block: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--ink-border);
}

.insights-index__group-title {
    font-size: var(--text-h3);
    margin-bottom: 1.5rem;
}

.insights-index__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.insights-index__item {
    border-bottom: 1px solid var(--ink-border);
}

.insights-index__link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: 0.9rem;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.25s var(--ease-out);
}

.insights-index__link:hover,
.insights-index__link:focus-visible {
    color: var(--ember);
}

.insights-index__title {
    font-size: var(--text-body);
    line-height: 1.4;
    flex: 1 1 24ch;
}

.insights-index__meta {
    font-family: var(--font-mono);
    font-size: var(--text-label);
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .insights-index__link { padding-block: 0.8rem; }
    .insights-index__meta { flex-basis: 100%; }
}
