/*
 * Hero - Author: the breadcrumbs, name, role and summary of an author, their
 * buttons and photo.
 */

.hero-author {
    position: relative;
    margin-bottom: var(--section-gap);
}

.hero-author__glow {
    position: absolute;
    inset: -80px 0 0;
    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);
}

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

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

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

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

@keyframes hero-author-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) {
    .hero-author__blob { animation: none; }
}

.hero-author__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 56px;
}

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

.hero-author__crumb {
    color: var(--ink-muted);
}

.hero-author__crumb:hover {
    color: var(--ink);
}

.hero-author__crumb-sep {
    color: #c4c1cc;
}

.hero-author__crumb-current {
    color: var(--ink);
}

.hero-author__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-author__text {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.hero-author__name {
    margin: 0;
    font-size: 52px;
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-author__summary {
    max-width: 640px;
    margin: 0;
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.hero-author__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 12px;
    color: var(--ink-faint);
}

.hero-author__meta-sep {
    color: #c4c1cc;
}

.hero-author__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-author__button {
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
}

.hero-author__button--primary {
    background: linear-gradient(135deg, #6b5ef0, #8f63e8);
    color: #fff;
}

.hero-author__button--primary:hover {
    color: #fff;
    filter: brightness(1.06);
}

.hero-author__button--secondary {
    border: 1px solid rgba(22, 21, 28, 0.13);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
}

.hero-author__button--secondary:hover {
    color: var(--ink);
    border-color: rgba(22, 21, 28, 0.28);
}

.hero-author__photo {
    flex: 1 1 280px;
    max-width: 340px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 20px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .hero-author__name { font-size: 38px; }
    .hero-author__summary { font-size: 18px; }
}
