/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    background: #fafafa;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

/* ── Links ── */
a {
    color: #1a5276;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Header ── */
header {
    margin-bottom: 2.5rem;
}

header h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
}

.tagline {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 0.7rem;
}

nav.links {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

nav.links a {
    color: #1a5276;
}

.sep {
    color: #bbb;
    margin: 0 0.25rem;
}

/* ── Sections ── */
section {
    margin-bottom: 2.2rem;
}

h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
}

section p {
    margin-bottom: 0.7rem;
    font-size: 0.97rem;
}

/* ── News ── */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    font-size: 0.93rem;
    margin-bottom: 0.45rem;
    padding-left: 0;
}

.date {
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    color: #888;
    display: inline-block;
    width: 5.5rem;
    flex-shrink: 0;
}

/* ── Publications ── */
.pub {
    margin-bottom: 1.2rem;
}

.pub-title {
    font-weight: 600;
    font-size: 0.97rem;
    margin-bottom: 0.15rem !important;
}

.pub-title a {
    color: #1a1a1a;
}

.pub-title a:hover {
    color: #1a5276;
}

.pub-authors {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.1rem !important;
}

.pub-venue {
    font-size: 0.88rem;
    color: #777;
    font-style: italic;
    margin-bottom: 0.15rem !important;
}

.pub-links {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    margin-bottom: 0 !important;
}

.pub-links a {
    margin-right: 0.4rem;
    color: #1a5276;
}

/* ── Projects ── */
.project {
    margin-bottom: 1rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.project-title {
    font-weight: 600;
    font-size: 0.97rem;
}

.project-title a {
    color: #1a1a1a;
}

.project-title a:hover {
    color: #1a5276;
}

.project-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
}

.project p {
    font-size: 0.93rem;
    color: #444;
    margin-bottom: 0 !important;
}

.project p a {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    margin-right: 0.3rem;
}

/* ── Experience ── */
.exp {
    margin-bottom: 0.8rem;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-role {
    font-weight: 600;
    font-size: 0.95rem;
}

.exp-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.exp-org {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0 !important;
}

/* ── Misc ── */
#misc ul {
    list-style: none;
    padding: 0;
}

#misc li {
    font-size: 0.93rem;
    margin-bottom: 0.4rem;
}

/* ── Footer ── */
footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #aaa;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1.2rem 1.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .date {
        display: block;
        margin-bottom: 0.1rem;
    }

    .project-header,
    .exp-header {
        flex-direction: column;
        gap: 0;
    }

    .project-meta,
    .exp-date {
        font-size: 0.75rem;
    }
}
