body {
    font-family: 'Georgia', serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    text-align: center;
    padding: 3rem 0;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

#neumann-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#neumann-video {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1 {
    font-size: 3rem;
    font-weight: normal;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-top: 0.5rem;
}

#qc-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 8px 16px;
    background: #007acc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

#qc-link:hover {
    background: #005999;
}

main {
    padding: 3rem 2rem;
}

#letter-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.letter-item {
    position: relative;
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    text-align: center;
    background-color: #f9f9f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.letter-item h3 {
    font-size: 1.1em;
    margin-top: 8px;
    margin-bottom: 10px;
}

.letter-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8em;
    color: #666;
    min-height: 20px;
    margin-bottom: 12px;
}

.letter-person {
    color: #888;
    font-size: 1em;
}

.letter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.letter-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
}

.letter-item a {
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    transition: color 0.3s;
}

.letter-item a:hover {
    color: #0055aa;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #888;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.github-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    color: #333;
    transition: color 0.3s;
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.github-link:hover {
    color: #0077cc;
}

.github-link svg {
    margin-left: 4px;
}

/* Title variants for desktop vs mobile */
.title-mobile {
    display: none;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    /* Show mobile title, hide desktop title */
    .title-desktop {
        display: none;
    }
    
    .title-mobile {
        display: block;
    }
    
    /* Make title smaller on mobile */
    h1 {
        font-size: 2rem;
    }
    
    /* Adjust video size on mobile */
    #neumann-video {
        width: 150px;
    }
}
