/* =================================================================
   Maison Noir — Luxury Author Profile Template Styles
   ================================================================ */

.site-main {
    background-color: var(--bg-color, #fcfbf9);
    color: var(--text-color, #2c2823);
    padding-bottom: 6rem;
}

/* --- Author Hero Header --- */
.author-hero {
    position: relative;
    background-color: var(--dark, #1a1816);
    color: var(--cream, #f4f1ea);
    text-align: center;
    padding: 5rem 2rem 4rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.author-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Constrain inner content for elegant line lengths */
.author-hero > * {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.author-hero__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold, #d4af37);
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: block;
}

.author-hero__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    color: #fff;
}

/* --- Role & Meta Row --- */
.author-hero-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.author-hero__role,
.author-hero__title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin: 0;
}

.author-hero__role {
    color: var(--gold, #d4af37);
}

.author-hero__title {
    color: rgba(244, 241, 234, 0.6);
}

.author-hero__separator {
    color: rgba(244, 241, 234, 0.3);
    font-size: 0.8rem;
}

/* --- Bio Typography --- */
.author-hero__bio {
    max-width: 580px;
    margin: 0 auto 1.8rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(244, 241, 234, 0.8);
    font-weight: 300;
}

/* --- Social & Website Pill Buttons --- */
.author-hero__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.author-hero__socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cream, #f4f1ea);
    text-decoration: none;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    transition: all 0.3s ease;
}

.author-hero__socials a svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* Special case adjustment for filled SVG icons like X/Twitter if needed */
.author-hero__socials a svg.is-filled {
    fill: currentColor;
    stroke: none;
}

.author-hero__socials a:hover {
    background-color: var(--gold, #d4af37);
    border-color: var(--gold, #d4af37);
    color: var(--dark, #1a1816);
    transform: translateY(-1px);
}

/* --- Section Heading --- */
.site-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-main .section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.site-main .section-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--gold, #d4af37);
    margin: 0.8rem auto 0;
    opacity: 0.4;
}

.site-main .section-heading .eyebrow {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--gold, #d4af37);
    margin-bottom: 0.5rem;
    display: block;
}

.site-main .section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--dark, #1a1816);
}

/* --- Post Grid Container --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.site-main > .container > .text-muted {
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted, #7c756c);
    font-style: italic;
    padding: 3rem 0;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .author-hero {
        padding: 3.5rem 1.2rem 3rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

