:root {
    --grid-gap: 1.5rem;
}

body {
    background-color: #f9fafb;
}

.authors-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.directory-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.directory-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.directory-hero p {
    color: #4b5563;
    font-size: 1.1rem;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
}

.author-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.author-photo {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.author-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-info {
    padding: 1.25rem;
    text-align: center;
}

.author-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.author-info p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.author-card:hover .author-photo img {
    transform: scale(1.05);
}
