/* Walter H. White — academic personal page */

:root {
    --bg: #fafaf7;
    --fg: #1d1d1d;
    --muted: #5e5e5e;
    --accent: #00857a;
    --rule: #d9d6cf;
    --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Charter", "Iowan Old Style", "Source Serif Pro", Georgia, serif;
    font-size: 18px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

header {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.01em;
}

header .role {
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

nav {
    margin-top: 1rem;
    font-size: 0.9rem;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 1.25rem;
    border-bottom: 1px solid transparent;
}

nav a:hover {
    border-bottom-color: var(--accent);
}

nav a.current {
    color: var(--fg);
    font-weight: 600;
}

main h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

main p {
    margin: 0 0 1rem 0;
}

main ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem 0;
}

main li {
    margin-bottom: 0.4rem;
}

a {
    color: var(--accent);
}

a:visited {
    color: #6b3a8a;
}

.subtle {
    color: var(--muted);
    font-size: 0.9rem;
}

.pub {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--rule);
}

.pub .title {
    font-weight: 600;
}

.pub .meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 0.15rem;
}

footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.82rem;
}

footer a {
    color: var(--muted);
}

@media (max-width: 600px) {
    body { padding: 2rem 1rem 3rem; font-size: 17px; }
    header h1 { font-size: 1.4rem; }
}
