/* Strisker: Authors page and author profile pages */

:root {
    --sk-ink: #15171a;
    --sk-muted: #5f6670;
    --sk-line: #e6e8eb;
    --sk-soft: #f6f7f9;
    --sk-chip: #f2f4f7;
    --sk-accent-text: #2f6fd8;
    --sk-accent-text: color-mix(in srgb, var(--ghost-accent-color, #4c92ff) 80%, #000);
}

/* ---------- Authors page ---------- */

.sk-authors-main {
    padding-top: 7.2rem;
    padding-bottom: 11.2rem;
}

.sk-pagehead,
.sk-author-grid {
    grid-column: wide-start / wide-end;
}

.sk-pagehead {
    max-width: 640px;
    margin-bottom: 4.8rem;
}

.sk-eyebrow {
    margin: 0 0 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sk-accent-text);
}

.sk-pagehead-title {
    margin: 0;
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sk-ink);
}

.sk-pagehead-description {
    margin: 1.4rem 0 0;
    font-size: 1.8rem;
    line-height: 1.55;
    color: var(--sk-muted);
}

.sk-author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.4rem;
}

.sk-author-card {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 2.8rem;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    background: #fff;
    color: var(--sk-ink);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sk-author-card:hover {
    border-color: #b9c2cc;
    box-shadow: 0 8px 24px rgba(20, 23, 26, 0.07);
    opacity: 1;
}

.sk-author-card {
    position: relative;
}

.sk-card-link {
    color: inherit;
}

.sk-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
}

.sk-card-link:hover {
    color: inherit;
    opacity: 1;
}

.sk-author-card:focus-within {
    outline: 2px solid var(--sk-accent-text);
    outline-offset: 2px;
}

.sk-li {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.sk-li img {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.sk-li:hover {
    opacity: 0.85;
}

.sk-author-top .sk-li {
    align-self: flex-start;
    margin: -8px -10px 0 auto;
}

.sk-li-profile {
    margin: -10px 0 -10px -12px;
}

.sk-author-top {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.sk-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.sk-avatar-empty,
.sk-profile-avatar.sk-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    color: #8a929c;
}

.sk-avatar-empty svg {
    width: 55%;
    height: 55%;
}

.sk-author-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--sk-ink);
}

.sk-author-bio {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 1.45rem;
    line-height: 1.5;
    color: var(--sk-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sk-beats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.sk-beats:empty {
    display: none;
}

.sk-beat {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--sk-chip);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: #3a4048;
}

.sk-author-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: auto;
    padding-top: 1.6rem;
    border-top: 1px solid #eef0f2;
    font-size: 1.4rem;
}

.sk-author-count {
    color: var(--sk-muted);
}

.sk-author-cta {
    font-weight: 600;
    color: var(--sk-accent-text);
}

/* ---------- Author profile page ---------- */

.author-template .gh-main.sk-author-main {
    padding-top: 0;
    padding-bottom: 11.2rem;
}

.sk-profile {
    grid-column: full-start / full-end;
    background: var(--sk-soft);
    border-bottom: 1px solid var(--sk-line);
}

.sk-profile-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem var(--gap) 5.6rem;
}

.sk-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin-bottom: 2.4rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sk-muted);
}

.sk-back:hover {
    color: var(--sk-ink);
    opacity: 1;
}

.sk-profile-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3.2rem;
}

.sk-profile-avatar {
    width: 128px;
    height: 128px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.sk-profile-text {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 1.4rem;
    min-width: 0;
}

.sk-profile-name {
    margin: 0;
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sk-ink);
}

.sk-profile-bio {
    max-width: 640px;
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.6;
    color: #3a4048;
}

.sk-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
}

.sk-profile-meta .sk-beats {
    display: contents;
}

.sk-chip,
.sk-profile-meta .sk-beat {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--sk-line);
    border-radius: 999px;
    background: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.3;
    color: #3a4048;
}

.sk-chip svg {
    width: 14px;
    height: 14px;
}

.sk-chip-link:hover {
    border-color: #b9c2cc;
    color: var(--sk-ink);
    opacity: 1;
}

.sk-feed-wrap {
    grid-column: wide-start / wide-end;
    width: 100%;
    max-width: 1000px;
    justify-self: center;
    padding-top: 5.6rem;
}

.sk-feed-label {
    margin: 0 0 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sk-muted);
}

.sk-feed-wrap .gh-card {
    padding: 2.8rem 0;
    border-bottom: 1px solid var(--sk-line);
}

.sk-feed-wrap .gh-card + .gh-card {
    margin-top: 0;
}

.sk-feed-wrap .gh-card-title {
    font-size: 2.2rem;
    line-height: 1.3;
}

.sk-feed-wrap .gh-loadmore {
    display: flex;
    margin: 4rem auto 0;
}

@media (max-width: 767px) {
    .sk-authors-main {
        padding-top: 4.8rem;
    }

    .sk-pagehead-title {
        font-size: 3.6rem;
    }

    .sk-author-grid {
        grid-template-columns: 1fr;
    }

    .sk-profile-avatar {
        width: 96px;
        height: 96px;
    }

    .sk-profile-name {
        font-size: 3.2rem;
    }
}
