:root {
    --primary: #2563eb;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.5;
    font-size: 15px;
}

.container {
    max-width: 800px;
    /* More compact */
    margin: 0 auto;
    padding: 0 15px;
}

/* Link utility */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: white;
    padding: 2rem 0;
    /* Reduced padding */
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.name {
    font-size: 1.8rem;
    /* Smaller, cleaner */
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #111827;
}

.title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Profile - Single Column */
.profile-section {
    margin-bottom: 2rem;
    text-align: left;
}

.profile-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
    font-weight: 600;
}

.profile-section ul {
    list-style: none;
    padding: 0;
}

.profile-section li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    /* Better spacing for single column listing */
    line-height: 1.6;
}

.social-links-compact {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 0.75rem;
    /* Closer gap for buttons */
}

.link-btn {
    display: inline-block;
    background: white;
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.link-btn:hover {
    background-color: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.announcement-box {
    margin-top: 0.75rem;
}

.announcement-box u {
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--text-light);
}

/* Sections */
section {
    margin-bottom: 2.5rem;
    /* Reduced margin */
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #111827;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cols on PC */
    gap: 1rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-card h3 {
    font-size: 0.9rem;
    padding: 0.75rem;
    margin: 0;
    line-height: 1.3;
}

.video-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Publications */
.filter-controls {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-item {
    display: flex;
    gap: 1rem;
}

.year {
    font-weight: 700;
    color: var(--text);
    /* Darker for emphasis */
    min-width: 60px;
    /* Slightly wider for [YYYY] */
    font-size: 0.95rem;
}

.pub-details {
    flex: 1;
}

.pub-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.pub-authors u {
    text-decoration: underline;
    text-decoration-color: var(--text-light);
    font-weight: 500;
}

.pub-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }

    .pub-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .year {
        font-size: 0.9rem;
        color: var(--primary);
    }
}