/*homepage only*/

.introduction {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

.author-sidebar {
    flex: 0 0 20rem;
    display: flex;
    flex-direction: column;
    padding: 10px;
    min-width: 0;
    gap: 10px;
    border: 2px solid var(--link-color);
}

.author-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.author-name {
    overflow-wrap: anywhere;
}

.page-buttons {
    flex: 0 1 420px;
    max-width: 420px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.page-button {
    position: relative;
    min-width: 0;
    min-height: 104px;
    padding: 1rem;
    border: 2px solid var(--link-color);
    font-size: var(--text-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
    transition: background-color 0.1s, color 0.1s;
}

.page-button-link {
    color: var(--link-color);
    text-decoration: none;
}

.page-button-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.page-button-note {
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.3;
    color: var(--muted-color);
}

.page-button-sub {
    position: relative;
}

.page-button:hover {
    background: var(--highlight-color);
}

.page-button:hover .page-button-link {
    color: var(--link-hover-color);
}

.page-button:has(.page-button-link:focus-visible, .page-button-sub:focus-visible) {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

.switch-presence {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--link-color);
}

.presence-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.presence-header>span {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    min-width: 0;
}

.presence-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    font-size: var(--text-xs);
    line-height: 1.45;
    gap: 2px 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.presence-footer>:last-child {
    margin-left: auto;
    font-size: var(--text-sm);
    opacity: 0.7;
}

.presence-art {
    position: relative;
    flex-shrink: 0;
    display: block;
}

.presence-art-main {
    display: block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.presence-art-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 26px;
    height: 26px;
    border: 2px solid var(--bg-color);
}

.presence-name {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.presence-status-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: var(--text-xs);
    line-height: 1.35;
    color: var(--sm-text-secondary, var(--muted-color));
    overflow: hidden;
    overflow-wrap: anywhere;
}

.presence-dot {
    display: inline-block;
    vertical-align: middle;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    background: var(--muted-color);
}

.presence-dot.online {
    background: #4ade80;
}

.presence-muted {
    color: var(--muted-color);
}

.bless-text {
    font-family: var(--font-family);
    font-weight: 400;
}

@media (max-width: 600px) {
    .introduction {
        flex-direction: column;
        gap: 20px;
    }

    .author-sidebar,
    .page-buttons {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .page-buttons {
        grid-template-columns: minmax(0, 1fr);
    }
}
