.author {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

/* Background Image Setup */
.author-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    /* Occupy less space (smaller image) */
    height: 100%;
    z-index: 0;
}

.author-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.9;
    position: absolute;
    top: 0;
    right: 0;
    transition: opacity 0.5s ease;
}

/* Default (Dark Theme) */
.author-bg-img-dark {
    opacity: 0.9;
}

.author-bg-img-light {
    opacity: 0;
}

/* Light Theme */
[data-theme="light"] .author-bg-img-dark {
    opacity: 0;
}

[data-theme="light"] .author-bg-img-light {
    opacity: 0.9;
}

.author-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft gradient that fades out well before the image (image starts at 65%) */
    background: linear-gradient(to right, var(--bg-color) 10%, transparent 50%),
        linear-gradient(to top, var(--bg-color) 0%, transparent 20%);
}

.author-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    position: relative;
    z-index: 1;
    /* Above background */
    max-width: 65%;
    /* Limit content width to not overlap face too much */
}

/* Label Column */
.author-label-col {
    padding-top: 1rem;
}

.vertical-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-color);
    white-space: nowrap;
}

/* Content Column */
.author-content-col {
    padding-right: var(--spacing-lg);
}

.author-name {
    font-size: 6rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.author-manifesto p {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.author-bio p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.author-tags {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.author-tags li {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.author-tags li:not(:last-child)::after {
    content: "/";
    position: absolute;
    right: -1rem;
    color: var(--accent-color);
    opacity: 0.5;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.btn-link:hover {
    opacity: 0.8;
}

.btn-link .arrow {
    transition: transform 0.3s ease;
}

.btn-link:hover .arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1024px) {
    .author {
        min-height: auto;
        padding: 0;
        /* Remove padding to let bg touch top if needed, or keep small */
        display: block;
        position: relative;
    }

    /* Poster Background */
    .author-bg {
        display: block;
        position: absolute;
        top: 0;
        right: -10%;
        /* Less bleed */
        width: 70%;
        /* More overlap to left */
        height: 350px;
        z-index: 0;
    }

    .author-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .author-overlay {
        display: block;
        /* Gradient: Start darkening later (30%) to reveal more face, fade to bottom */
        background:
            linear-gradient(to right, var(--bg-color) 10%, transparent 70%),
            linear-gradient(to bottom, transparent 70%, var(--bg-color) 100%);
    }

    /* Hide inline image */
    .author-mobile-img {
        display: none !important;
    }

    .author-grid {
        display: block;
        max-width: 100%;
        padding-top: 4rem;
        /* Top padding for content */
        position: relative;
        z-index: 1;
    }

    .author-label-col {
        display: none;
    }

    .author-content-col {
        width: 100%;
        /* Reset to full width */
        padding-right: 0;
        padding-left: 0;
    }

    .author-name {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1;
        max-width: 65%;
        /* Restrict name width to avoid photo */
    }

    .author-meta {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 0;
        /* Remove spacer */
        min-height: auto;
        max-width: 65%;
        /* Restrict meta width to avoid photo */
    }

    .author-tags {
        flex-direction: column;
        /* Vertical list */
        gap: 0.5rem;
        align-items: flex-start;
    }

    .author-tags li {
        font-size: 0.75rem;
        /* Reduced from 0.9rem */
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    /* Keep slashes if desired, or remove. Image shows slashes. */
    .author-tags li:not(:last-child)::after {
        content: "/";
        position: static;
        /* Inline slash */
        margin-left: 0.5rem;
        opacity: 0.5;
        color: var(--accent-color);
    }

    .btn-link {
        font-size: 1rem;
        align-self: flex-start;
    }

    /* Bio Text - Separately Below */
    .author-bio {
        padding-right: 1rem;
    }

    .author-manifesto p {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .author-bio p {
        font-size: 0.9rem;
        /* Standard readable size */
        line-height: 1.5;
        margin-bottom: 2rem;
        color: var(--text-muted);
    }
}

/* Desktop: Hide mobile image */
@media (min-width: 1025px) {
    .author-mobile-img {
        display: none;
    }
}