.story-profile-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(105, 82, 180, 0.12),
            transparent 34rem
        ),
        #111018;
    color: #eeeaf8;
}

.story-profile-page *,
.story-profile-page *::before,
.story-profile-page *::after {
    box-sizing: border-box;
}

.sp-topbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-brand {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.sp-nav {
    display: flex;
    gap: 22px;
}

.sp-nav a {
    color: #aaa4b8;
    text-decoration: none;
}

.sp-nav a:hover {
    color: #fff;
}

.sp-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 12px auto 80px;
}

.sp-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    background: rgba(255,255,255,.035);
}

.sp-cover-wrap {
    width: 180px;
}

.sp-cover {
    display: block;
    width: 180px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,.32);
}

.sp-cover-empty {
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    color: #8c849b;
    font-size: 2rem;
    font-weight: 800;
}

.sp-eyebrow,
.sp-section-label {
    color: #a89ae4;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 800;
}

.sp-hero h1 {
    margin: 8px 0 8px;
    max-width: 850px;
    font-size: clamp(2rem, 5vw, 4.3rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.sp-byline {
    margin-top: 14px;
    color: #bbb4c8;
    font-size: 1.05rem;
}

.sp-chip-row,
.sp-tags,
.sp-aliases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-chip-row {
    margin-top: 20px;
}

.sp-chip,
.sp-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #cfc8dc;
    font-size: .82rem;
}

.sp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.sp-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    color: #ded9e8;
    text-decoration: none;
    font-weight: 700;
}

.sp-button-primary {
    background: #eeeaf8;
    color: #17131f;
}

.sp-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(140px, 1fr)
        );
    gap: 10px;
    margin: 18px 0;
}

.sp-stat {
    padding: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
}

.sp-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.sp-stat-label {
    margin-top: 4px;
    color: #8f899b;
    font-size: .78rem;
}

.sp-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .85fr);
    gap: 18px;
    margin-top: 18px;
}

.sp-main-column,
.sp-side-column {
    min-width: 0;
}

.sp-panel {
    margin-bottom: 18px;
    padding: 26px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
}

.sp-panel h2 {
    margin: 7px 0 20px;
    font-size: 1.45rem;
}

.sp-panel h3 {
    margin-top: 5px;
}

.sp-audience-feature {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );
    gap: 14px;
}

.sp-big-number {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.04em;
}

.sp-muted {
    color: #918a9f;
}

.sp-explainer {
    margin: 22px 0 0;
    color: #8d8797;
    font-size: .88rem;
    line-height: 1.55;
}

.sp-commercial {
    border-color: rgba(168,154,228,.22);
}

.sp-commercial-hero {
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: rgba(168,154,228,.07);
}

.sp-commercial-hero h3 {
    margin-bottom: 5px;
}

.sp-commercial-stats {
    margin-top: 16px;
}

.sp-series-list {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.sp-series-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.sp-series-row span {
    color: #918a9f;
}

.sp-editions {
    margin-top: 26px;
}

.sp-edition-row {
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.sp-edition-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.sp-edition-title a,
.sp-text-link {
    color: #c7baf8;
    text-decoration: none;
}

.sp-edition-title a:hover,
.sp-text-link:hover {
    text-decoration: underline;
}

.sp-book-number {
    color: #777080;
    font-size: .78rem;
    font-weight: 500;
}

.sp-edition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 5px;
    color: #898391;
    font-size: .82rem;
}

.sp-definition-list {
    margin: 0;
}

.sp-definition-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sp-definition-list > div:last-child {
    border-bottom: 0;
}

.sp-definition-list dt {
    color: #898391;
}

.sp-definition-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.sp-aliases {
    margin: 12px 0 18px;
}

.sp-coverage-list {
    display: grid;
    gap: 9px;
}

.sp-coverage-item {
    color: #bfb8cb;
}

.sp-coverage-item span {
    margin-right: 7px;
    color: #a89ae4;
}

.sp-data-date {
    margin-top: 18px;
    color: #716b79;
    font-size: .78rem;
}

.sp-footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #706a78;
    font-size: .8rem;
}

@media (max-width: 760px) {

    .sp-topbar {
        padding: 18px 20px;
    }

    .sp-nav {
        gap: 12px;
        font-size: .85rem;
    }

    .sp-shell {
        width: min(100% - 24px, 1180px);
    }

    .sp-hero {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 18px;
        padding: 18px;
        align-items: start;
    }

    .sp-cover-wrap,
    .sp-cover {
        width: 92px;
    }

    .sp-hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.7rem);
    }

    .sp-actions {
        grid-column: 1 / -1;
    }

    .sp-grid {
        grid-template-columns: 1fr;
    }

    .sp-panel {
        padding: 20px;
    }

    .sp-footer {
        flex-direction: column;
    }

}
