/*
 * Authors - List: how many authors and posts there are, then one card per
 * author with their role, summary, topics and a link to the profile.
 */

.post-type-authors {
    position: relative;
    margin-bottom: var(--section-gap);
}

.post-type-authors__glow {
    position: absolute;
    inset: -80px 0 0;
    /* Only the heading gets the glow, not the whole grid. */
    bottom: auto;
    height: 560px;
    overflow: hidden;
    pointer-events: none;
    /* Fade out at the bottom so the glow never ends on a hard edge. */
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.post-type-authors__blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    will-change: transform;
}

.post-type-authors__blob--a {
    left: -8%;
    top: -40px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(123, 108, 246, 0.42), transparent 68%);
    animation: post-type-authors-blob-a 18s ease-in-out infinite;
}

.post-type-authors__blob--b {
    left: 62%;
    top: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(242, 160, 184, 0.4), transparent 68%);
    animation: post-type-authors-blob-b 22s ease-in-out infinite;
}

@keyframes post-type-authors-blob-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -30px, 0) scale(1.06); }
}

@keyframes post-type-authors-blob-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-28px, 24px, 0) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
    .post-type-authors__blob { animation: none; }
}

.post-type-authors__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 56px;
}

.post-type-authors__crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-muted);
}

.post-type-authors__crumb {
    color: var(--ink-muted);
}

.post-type-authors__crumb:hover {
    color: var(--ink);
}

.post-type-authors__crumb-sep {
    color: #c4c1cc;
}

.post-type-authors__crumb-current {
    color: var(--ink);
}

.post-type-authors__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.post-type-authors__intro {
    flex: 999 1 560px;
    min-width: 0;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-type-authors__kicker {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--accent-ink);
}

.post-type-authors__title {
    margin: 0;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.post-type-authors__text {
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.post-type-authors__stats {
    flex: 1 1 240px;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    margin: 0;
}

.post-type-authors__stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

.post-type-authors__number {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.post-type-authors__unit {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-muted);
}

/* The one rule between the heading and the cards. */
.post-type-authors__bar {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.post-type-authors__sort {
    font-size: 12px;
    color: var(--ink-faint);
}

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

.post-type-authors__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.post-type-authors__card:hover {
    border-color: rgba(22, 21, 28, 0.2);
}

.post-type-authors__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-type-authors__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.post-type-authors__avatar--1 { background: linear-gradient(135deg, #7b6cf6, #f2a0b8); }
.post-type-authors__avatar--2 { background: linear-gradient(135deg, #5b52e0, #7bb7f6); }
.post-type-authors__avatar--3 { background: linear-gradient(135deg, #8f63e8, #6b5ef0); }
.post-type-authors__avatar--4 { background: linear-gradient(135deg, #e0708f, #f2b87c); }

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

.post-type-authors__who {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-type-authors__name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-type-authors__role {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-soft);
}

.post-type-authors__summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.post-type-authors__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-type-authors__tag {
    /* One line, so the pill stays a pill; a tag longer than the card is cut short. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    font-size: 12px;
    color: var(--accent-ink);
}

.post-type-authors__foot {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.post-type-authors__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-ink);
}

/* The whole card is the link, not just the words. */
.post-type-authors__link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.post-type-authors__link:hover {
    color: var(--accent-deep);
}

@media (max-width: 900px) {
    .post-type-authors__title { font-size: 34px; }
    .post-type-authors__text { font-size: 18px; }
    .post-type-authors__stats { justify-content: flex-start; }
}
