/* === Design tokens === */
:root {
    --bg:           #f8f5f0;
    --bg-card:      #ffffff;
    --bg-subtle:    #f0ece5;
    --text:         #2c2825;
    --text-muted:   #6b6560;
    --accent:       #5c7a6e;
    --border:       #e0d9cf;
    --link:         #4a6fa5;
    --link-hover:   #2d4f7a;

    --font-body:    'Inter', system-ui, sans-serif;
    --font-display: 'Crimson Pro', Georgia, serif;
    --radius:       6px;
    --max-w:        740px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:           #1c1917;
        --bg-card:      #242220;
        --bg-subtle:    #2a2724;
        --text:         #e8e2d9;
        --text-muted:   #9a9490;
        --accent:       #7ea898;
        --border:       #3a3530;
        --link:         #7a9fcf;
        --link-hover:   #a5c0e0;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 44px;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* === Typography === */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.25;
}

h1 { font-size: 2.6rem; letter-spacing: -0.02em; }

h2 {
    font-size: 1.35rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 { font-size: 1rem; font-weight: 600; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-decoration-thickness: 1px; }

/* === Header / Hero === */
header {
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

header h1 { margin-bottom: 0.35rem; }

.hero-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-statement {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.contact-links a { color: var(--text-muted); }
.contact-links a:hover { color: var(--link); text-decoration: none; }

/* === Sticky top bar === */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    margin: -2rem -1.5rem 0;
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-brand {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
    white-space: nowrap;
}
.topbar-brand:hover { color: var(--link); text-decoration: none; }

.topbar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
}

.topbar a {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
}

.topbar a:hover {
    background: var(--bg-subtle);
    color: var(--text);
    text-decoration: none;
}

/* === Sections === */
section { margin-bottom: 3rem; }

section p + p { margin-top: 0.75rem; }

/* === Research themes (text) === */

.research-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.research-themes { margin-top: 1rem; }

.research-themes > div {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.research-themes > div:last-child { border-bottom: none; }

.research-themes dt {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.research-themes dd {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.55;
    margin-left: 0;
}

/* === Education === */
.education-list { list-style: none; }

.education-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.education-list li:last-child { border-bottom: none; }

.edu-school { font-size: 0.9rem; color: var(--text); }
.edu-degree { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

/* === Publications (text) === */
.pub-list { display: flex; flex-direction: column; }

.pub-entry {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.pub-entry:last-child { border-bottom: none; }

.pub-title {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

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

.pub-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pub-meta strong { color: var(--text); font-weight: 500; }

/* === Inspiration === */
.inspiration-intro {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.875rem;
}

.inspiration-item { font-size: 0.88rem; line-height: 1.45; }
.inspiration-item a { color: var(--text); font-weight: 500; }
.inspiration-item a:hover { color: var(--link); }
.inspiration-item .source {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* === Footer === */
footer {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* === Responsive === */
@media (max-width: 600px) {
    body { padding: 1.25rem 1rem 3rem; }
    h1 { font-size: 2rem; }
    .education-list li { flex-direction: column; gap: 0.1rem; }
    .topbar { margin: -1.25rem -1rem 0; padding: 0.5rem 1rem; }
    .topbar ul { gap: 0; }
    .topbar a { padding: 0.2rem 0.4rem; font-size: 0.75rem; }
}
