body {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Gen Z mode: transforms all text to lowercase */
body.genz-mode {
    text-transform: lowercase;
    font-family: 'Quicksand', 'Latin Modern', Georgia, serif;
}

/* Sparkle after section headings in Gen Z mode */
body.genz-mode h2::after {
    content: " \2728";
}

header {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.left-column {
    flex: 1;
    max-width: 250px;
}

.right-column {
    flex: 2;
}

.right-column h2 {
    margin-top: 0;
}

.headshot {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    margin-bottom: 10px;
    margin-top: 6px;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.social-icons {
    display: flex;
    justify-content: left;
    gap: 10px;
    margin-bottom: 10px;
}

.social-icons a {
    text-decoration: none;
}

.social-icons i {
    font-size: 20px;
    color: #333;
}

i.fas:hover:not(#dark-mode-toggle i),
i.fab:hover:not(#dark-mode-toggle i) {
    color: #a80000;
    transition: color 0.3s;
}

body.latex-dark i.fas,
body.latex-dark i.fab {
    color: #bbb;
}

body.latex-dark i.fas:hover:not(#dark-mode-toggle i),
body.latex-dark i.fab:hover:not(#dark-mode-toggle i) {
    color: #95daf3;
}

.contact-info {
    margin-top: 10px;
}

.contact-info p {
    margin: 5px 0;
}

.news-date {
    font-weight: bold;
    margin-right: 10px;
}

.publication-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.publication-list li {
    margin-bottom: 15px;
}

.publication-entry {
    margin: 0;
    line-height: 1.4;
}

.publication-list a {
    text-decoration: none;
}

.publication-list a:hover {
    text-decoration: underline;
}

.publication-list strong {
    font-weight: bold;
}

.publication-list em {
    font-style: italic;
}

.name-and-toggle {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.toggle-buttons {
    display: flex;
    gap: 8px;
    margin-left: 8px;
}

#dark-mode-toggle {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    line-height: 1;
    font-size: 20px;
    width: 36px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gen Z toggle styling */
#genz-mode-toggle {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    line-height: 1;
    font-size: 16px;
    width: 36px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style when Gen Z mode is active */
#genz-mode-toggle.active {
    background-color: #666; /* or any distinct color to show it's active */
    border: 1px solid #aaa; /* gives an outline even in light mode */
}

/* Outline around Gen Z button in dark mode */
body.latex-dark #genz-mode-toggle {
    border: 1px solid #aaa; /* same as dark-mode-toggle */
}

body.latex-dark #dark-mode-toggle {
    background-color: #3a3a3a;
    border: 1px solid #aaa;
}

body.latex-dark #dark-mode-toggle:hover {
    background-color: #555;
    color: #f1f1f1;
}

#dark-mode-toggle:hover {
    background-color: #555;
    color: #f1f1f1;
}

/* Hover for Gen Z mode toggle */
#genz-mode-toggle:hover {
    background-color: #555;
    color: #f1f1f1;
}

.right-column h2 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.talks-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.talks-list > li {
    margin-bottom: 15px;
}

.talk-title {
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.talk-title a {
    text-decoration: none;
}

.talk-details {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.talk-details li {
    margin-top: -6px;
}

.music-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0 0 0;
}

.music-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.performance-date {
    font-weight: bold;
    min-width: 85px;
    display: inline-block;
}

.performance-group {
    font-style: italic;
}

.performance-repertoire {
    font-size: 0.95em;
    color: #666;
}

body.latex-dark .performance-repertoire {
    color: #999;
}

.performance-venue {
    color: #555;
}

body.latex-dark .performance-venue {
    color: #aaa;
}

.music-list a {
    text-decoration: none;
}

.music-list a:hover {
    text-decoration: underline;
}

footer {
    padding-top: 5px;
}

/* Site switcher (shared look with the personal site) */
.site-switcher {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1000;
    font-family: 'Latin Modern', Georgia, serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 4px 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-switcher-link {
    color: #666;
    text-decoration: none;
    padding: 2px 4px;
    transition: color 0.2s;
}

.site-switcher-link:hover {
    color: #a80000;
}

.site-switcher-link.active {
    color: #111;
    font-weight: 600;
}

.site-switcher-divider {
    color: #bbb;
    margin: 0 2px;
}

body.latex-dark .site-switcher {
    background: rgba(30, 30, 30, 0.9);
    border-color: #444;
}

body.latex-dark .site-switcher-link {
    color: #aaa;
}

body.latex-dark .site-switcher-link.active {
    color: #f1f1f1;
}

body.latex-dark .site-switcher-link:hover {
    color: #95daf3;
}

body.latex-dark .site-switcher-divider {
    color: #555;
}

/* On narrow screens, drop the floating pill and let the switcher flow
   inline at the top of the page so it doesn't overlap the toggle buttons
   or the headshot/name header on mobile. */
@media (max-width: 720px) {
    .site-switcher {
        position: static;
        display: block;
        text-align: right;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 14px 0;
        font-size: 13px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    body.latex-dark .site-switcher {
        background: transparent;
        border: none;
    }
}
