/*
 * Author - Posts: a grid of the author's latest posts.
 */

.author-posts {
    margin-bottom: var(--section-gap);
}

.author-posts__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.author-posts__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.author-posts__title {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.author-posts__count {
    font-size: 12px;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.author-posts__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-posts__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.author-posts__card:hover {
    border-color: rgba(22, 21, 28, 0.2);
}

.author-posts__card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* The whole card is the link, not just the title. */
.author-posts__card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.author-posts__card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.author-posts__card-meta {
    display: flex;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    color: var(--ink-faint);
}

@media (max-width: 767px) {
    .author-posts__title { font-size: 28px; }
}
