/* -------------------------------------------------------------------------- */
/* 1. Profile Layout & Header */
/* -------------------------------------------------------------------------- */

.author .archive-header { display: block !important; }

.profile-container {
    max-width: 82rem;
    margin: 0 auto;
    padding-top: var(--space-8);
    padding-inline: var(--space-5);
}

.author-header { margin-bottom: var(--space-8); text-align: center; }

/* --- Avatar: The Gothic Portrait --- */
.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.rounded-avatar {
    width: 9.5rem;
    height: 9.5rem;
    padding: var(--space-1);
    border: 0.1rem solid var(--color-border-subtle);
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.rounded-avatar:hover {
    filter: grayscale(0%);
    transform: translateY(-0.125rem);
    border-color: var(--color-border-main);
    box-shadow: var(--shadow-md);
}

/* --- Profile Typography --- */
.profile-title {
    margin-bottom: var(--space-2);
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.75rem);
    font-style: italic;
    font-weight: var(--font-weight-medium);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.profile-bio {
    max-width: 44rem;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: 1.7;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 2. Section Headings (The Museum Labels) */
/* -------------------------------------------------------------------------- */

.curated-archives-hub { margin-bottom: var(--space-8); }

.profile-section-label, .recent-updates-label {
    position: relative;
    margin-bottom: var(--space-6);
    color: var(--color-text-muted);
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

/* Elegant divider lines */
.profile-section-label::before, .profile-section-label::after,
.recent-updates-label::before, .recent-updates-label::after {
    content: "";
    display: inline-block;
    width: 2.5rem;
    height: 1px;
    margin: 0 0.85rem;
    vertical-align: middle;
    background: var(--color-border-main);
}

/* -------------------------------------------------------------------------- */
/* 3. The Grid Layout (The "Where")
/* We define the container layout here, but let the component handle the card.
----------------------------------------------------------------------------- */

.archives-grid-profile {
    display: grid;
    /* Using auto-fill for a more fluid specimen gallery feel */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: center;
    gap: var(--space-6);
    max-width: 75rem;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* 4. Responsive Adjustments */
/* -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .profile-title { font-size: 2.8rem; }
    .archives-grid-profile {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-4);
    }
}