
/* Base layout */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f4f4f6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.site-header {
    background: #1f2933;
    color: #fff;
    padding: 2.5rem 0 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-header h1 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
}

.tagline {
    margin: 0.1rem 0 0.35rem;
    font-weight: 300;
    font-size: 1.05rem;
}

.credentials {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact a {
    color: #e5f1ff;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact a:hover {
    text-decoration: underline;
}

/* Top navigation */
.top-nav {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.top-nav a {
    color: #d1e3ff;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
}

.top-nav a:hover {
    background: rgba(255,255,255,0.12);
}

/* Main card */
.main-card {
    background: #fff;
    margin-top: -1.25rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding-bottom: 1.25rem;
}

/* Sections */
section {
    padding: 1.75rem 1.5rem 0.75rem;
    border-bottom: 1px solid #e3e6ea;
}

section:last-of-type {
    border-bottom: none;
    padding-bottom: 1.75rem;
}

h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Special blocks */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #edf2ff;
    color: #1f2933;
    font-size: 0.9rem;
    border: 1px solid #d0ddff;
}

.roles-summary {
    margin-top: 0.5rem;
}

/* CV grid */
.cv-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cv-highlight-grid ul {
    padding-left: 1.1rem;
    margin-top: 0.25rem;
}

/* Publications */
.section-intro {
    margin-bottom: 0.75rem;
}

.pub-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.pub-list li {
    margin-bottom: 0.6rem;
}

.pub-meta {
    font-size: 0.9rem;
    color: #555;
    margin-left: 0.25rem;
}

code {
    background: #f1f3f6;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Projects */
.project-list {
    padding-left: 1.1rem;
}

/* Links */
a {
    color: #0c5ac4;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    padding-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
    .site-header {
        padding: 2rem 0 1.75rem;
    }
    .main-card {
        margin-top: -0.75rem;
    }
}

