/* Layout modelled on dballaelliott.com: sticky left sidebar, paper list on the right. UChicago maroon accent. */
:root {
    --accent: #800000;
    --accent-hover: #5c0000;
    --accent-bg: rgba(128, 0, 0, 0.07);
    --muted: #666;
    --border: #d9d9d9;
    --bg: #fffbf8;
    --mono: 'Source Code Pro', Monaco, Consolas, monospace;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0; background: var(--bg); color: #212121;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1rem; line-height: 1.6; font-weight: 450;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
p { margin: 0; }
strong { font-weight: 650; }
em { font-weight: 550; }
img { max-width: 100%; height: auto; }

.visually-hidden, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; padding: 12px; background: #eee; z-index: 100; }

.site-header {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1100px; margin: 0 auto; padding: 12px 20px; position: relative;
}
.name { font-size: 1.4rem; font-weight: 750; color: #212121; }
.hr-dotted { margin: 0 .5rem; height: 1px; border: 0; border-bottom: 1px dotted #ccc; }

.wrapper {
    display: grid; grid-template-columns: 250px 1fr; gap: 70px;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.sidebar {
    position: sticky; top: 0; height: 100vh; padding: 24px 0;
    display: flex; flex-direction: column; align-items: flex-start;
}
.headshot { width: 240px; border: 1px solid var(--border); border-radius: 4px; margin: 0 0 12px; }
.sidebar-meta { display: flex; flex-direction: column; gap: 1px; margin-bottom: 8px; }
.sidebar-title { color: #212121; }
.sidebar-affil { color: #444; }
.sidebar-contact { display: flex; flex-direction: column; gap: 2px; }
.email { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.cv-link, .paper-links a, .paper-links .soon {
    font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--accent);
    padding: 1px 2px; border-radius: 2px;
}
.cv-link:hover, .paper-links a:hover { color: var(--accent-hover); background: var(--accent-bg); }
.paper-links .soon { color: #212121; }
.email:hover { color: #212121; }

.main-col { padding: 28px 0; max-width: 800px; }
.main-col:focus { outline: none; }
.intro { font-size: 1.4rem; font-weight: 750; line-height: 1.55; color: #212121; margin: 0 0 .25rem; }
.bio { font-size: 1.15rem; line-height: 1.55; color: #212121; margin: 0 0 .5rem; }
.main-col h2 { font-size: 1.3rem; font-weight: 750; margin: 1.5rem 0 .75rem; }

ul.papers { list-style: none; padding-left: 0; margin: .5rem 0 0; }
li.paper { margin: 14px 0 18px; }
.paper-title { font-weight: 650; font-size: 1.15rem; line-height: 1.4; color: var(--accent); }
.paper-meta { display: block; color: var(--muted); margin-top: 2px; }
.paper-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: #d8d2cc; text-underline-offset: 2px; }
.paper-meta a:hover { color: #212121; }
.paper-venue { display: block; margin-top: 1px; color: #444; }
.paper-links { display: block; margin-top: 4px; }
.paper-meta.media { margin-top: 4px; font-size: .95rem; }


@media (max-width: 800px) {
    .site-header { padding: 12px 16px; }
    .wrapper { grid-template-columns: 1fr; gap: 18px; padding: 0 16px; }
    .sidebar { position: relative; height: auto; padding: 16px 0 0; }
    .headshot { width: 100%; max-width: 480px; }
    .email, .cv-link { padding: 6px 2px; }
    .main-col { padding: 0 0 28px; }
    .paper-links a { display: inline-block; padding: 6px 4px; margin: 0 6px 0 -4px; }
}
