:root {
    --bg-color: #f8f9fa;
    --text-main: #202124;
    --accent-color: #1a73e8; /* A clean blue for the "active" feel */
    --card-bg: #ffffff;
    --font-header: 'Google Sans', sans-serif;
    --font-body: 'Figtree', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header Styling */
.main-header {
    text-align: center;
    padding: 60px 20px;
}

.main-header h1 {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    color: #5f6368;
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 800px;
}

.section-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #70757a;
    margin-bottom: 20px;
    text-align: center;
}

/* The Author Grid */
.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Card/Button Styling */
.author-card {
    background-color: var(--card-bg);
    border: 1px solid #dadce0;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.author-card.active {
    border-left: 4px solid var(--accent-color); /* Highlight Joaquin's blog */
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid #dadce0;
}

.source-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.source-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Floating back button for the sub-pages */
.floating-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    font-family: var(--font-header);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.floating-back-btn:hover {
    transform: scale(1.05);
    background-color: #fff;
}


#comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

#comment-form input, #comment-form textarea {
    font-family: 'Figtree', sans-serif;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#comment-form input:focus, #comment-form textarea:focus {
    border-color: #88a9c3;
}

#comment-form button {
    background-color: #2f3640;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Google Sans';
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
    transition: background 0.3s;
}

#comment-form button:hover {
    background-color: #88a9c3;
}