/* Simple, clean styles */

/* Self-hosted Space Mono (no third-party font requests) */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/space-mono-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/space-mono-700.woff2') format('woff2');
}

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

:root {
    --text-color: #2d3e3f;
    --link-color: #5a7c71;
    --link-hover: #3e5449;
    --typewriter-color: #8b6f5c;
    --bg-color: #f0f4f1;
    --text-light: #7a8d86;
    --max-width: 800px;
    --font-family: 'Space Mono', monospace;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    gap: 60px;
}

/* Left sidebar */
.sidebar {
    flex-shrink: 0;
    width: 150px;
    position: sticky;
    top: 60px;
    height: fit-content;
    background-color: transparent;
}

/* Right sidebar */
.sidebar-right {
    flex-shrink: 0;
    width: 150px;
    position: sticky;
    top: 60px;
    height: fit-content;
}

.links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.links-vertical a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.links-vertical a:hover {
    color: var(--link-color);
}

header {
    margin-bottom: 40px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Navigation */
nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 2px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--link-color);
    border-left-color: var(--link-color);
}

nav a.active {
    color: var(--link-color);
    border-left-color: var(--link-color);
}

/* Sidebar extra content */
.sidebar-extra {
    margin-top: 30px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Main content */
.content {
    flex: 1;
    max-width: var(--max-width);
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
}

main {
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Clickable text elements */
.clickable {
    color: var(--typewriter-color);
    cursor: pointer;
    border-bottom: 1px dotted var(--typewriter-color);
    transition: all 0.2s ease;
}

.clickable:hover {
    color: var(--link-hover);
    border-bottom-style: solid;
}

/* Completed drink state */
.drink-item.completed {
    color: var(--typewriter-color);
    cursor: default;
    border-bottom: 1px dotted transparent;
}

/* Links section */
.links {
    margin-top: 40px;
    font-size: 0.95rem;
}

.links a {
    margin: 0 5px;
}

.separator {
    color: #c2cfc6;
    margin: 0 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #7a8d86;
    font-size: 0.9rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    nav {
        flex-direction: row;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    nav a {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding-left: 0;
        padding-bottom: 2px;
    }
    
    nav a:hover,
    nav a.active {
        border-left: none;
        border-bottom-color: var(--link-color);
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    .links {
        line-height: 2;
    }
    
    .content {
        max-width: 100%;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--typewriter-color);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--typewriter-color);
    color: white;
}

/* Lists */
ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* Publications page */
.publication-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item .year {
    color: var(--link-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.publication-item h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 8px 0;
    line-height: 1.4;
}

.publication-item .authors {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 5px 0;
}

.publication-item .venue {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    margin: 5px 0;
}

.publication-item a {
    font-size: 0.9rem;
}

/* Supervision list */
.supervision-list {
    list-style: none;
    margin-left: 0;
}

.supervision-list li {
    margin-bottom: 14px;
    line-height: 1.4;
}

.supervision-list .student {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
}

.supervision-more {
    margin-bottom: 20px;
}

.supervision-more summary {
    cursor: pointer;
    color: var(--link-color);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.supervision-more summary:hover {
    color: var(--link-hover);
}

/* Profile image in sidebar */
.profile-image {
    margin: 20px 0 30px 0;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 70% center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for profile image */
@media (max-width: 768px) {
    .profile-image {
        margin: 15px 0 20px 0;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
    }
}

