* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Flex', sans-serif;
    background-color: #f9f9f9;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-header {
    background-color: #ffffff;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 3rem;
}

.site-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.writer-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.writer-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.writer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.writer-years {
    font-size: 1rem;
    color: #e67e22;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.writer-works h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.writer-works p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.5;
}

.writer-short-desc {
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}


.read-more-btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #e67e22;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2rem;
    }

    .writers-grid {
        grid-template-columns: 1fr;
    }
}

.writer-detail {
    padding-bottom: 4rem;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    text-decoration: none;
    color: #666666;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link a:hover {
    color: #e67e22;
}

.writer-detail article h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.writer-detail .years {
    font-size: 1.2rem;
    color: #e67e22;
    display: block;
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.main-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.biography {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

.biography p {
    margin-bottom: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .writer-detail article h1 {
        font-size: 2.5rem;
    }
}