/* Site styles (2026 redesign): home page and inner pages */

/* Fonts, hosted with the site (Newsreader trimmed to weights 400-500, all optical sizes; Poppins 400/500/600).
   latin-ext files are downloaded only if a page uses those characters. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap;
    src: url('../fonts/newsreader-latin-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap;
    src: url('../fonts/newsreader-latin-ext-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap;
    src: url('../fonts/newsreader-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap;
    src: url('../fonts/newsreader-latin-ext-italic.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('../fonts/poppins-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('../fonts/poppins-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('../fonts/poppins-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
    --bg: #fbfaf7;
    --ink: #1f1f1f;
    --text: #333333;
    --muted: #6b6b6b;
    --body: #4a4a4a;
    --rule: #e9e6df;
    --accent: #7a5800;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Poppins', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
}

a { color: #444; text-decoration: none; }
a:hover, a:focus-visible { color: #000; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* "Skip to content": hidden until reached with the Tab key */
.skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 10;
    padding: 8px 14px; border-radius: 4px;
    background: #222; color: #fff; font-size: 15px; font-weight: 500;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: #fff; }
main:focus { outline: none; }

/* Header and navigation */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 32px;
    padding: 18px 40px;
    border-bottom: 1px solid var(--rule);
}


.site-header ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.site-header li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.site-header .cv-button {
    padding: 0 18px;
    border-radius: 20px;
    background: #222;
    color: #fff;
    font-weight: 500;
}
.site-header .cv-button:hover,
.site-header .cv-button:focus-visible { background: #000; color: #fff; }
.cv-pdf { margin-left: 4px; font-weight: 400; opacity: .8; }
.cv-icon { display: none; }

/* Page */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 64px;
}

.intro {
    padding: 72px 0 44px;
}

.intro h1 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 9vw, 84px);
    line-height: 1;
    letter-spacing: -1px;
    color: var(--ink);
}

.statement {
    margin: 0 0 20px;
    max-width: 30em;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(21px, 2.6vw, 26px);
    line-height: 1.45;
    color: var(--body);
}

.affiliation {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
}

picture { display: contents; }   /* the banner's <picture> wrapper: lay out the image itself */

.banner {
    display: block;
    width: 100%;
    height: clamp(160px, 25vw, 300px);
    object-fit: cover;
    object-position: center 35%;
}

/* Two columns: What's new + side */
.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 72px;
    padding-top: 52px;
}

.whats-new { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }

h2 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    color: #222;
}
.whats-new h2 { font-size: 32px; margin-bottom: 8px; }

.feed { list-style: none; margin: 0; padding: 0; }

.feed a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
}

.feed .kind {
    flex: 0 0 130px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.feed .item { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed .title { font-size: 17px; font-weight: 600; line-height: 1.4; color: #222; }
.feed .meta { font-size: 14px; color: var(--muted); }
.feed a:hover .title { text-decoration: underline; text-underline-offset: 3px; }

.more-links, .arrow-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 18px 0 0;
}
.arrow-links { flex-direction: column; gap: 8px; margin-top: 12px; }
.prose ul.arrow-links { list-style: none; padding-left: 0; }
.prose .arrow-links a { font-size: 16px; text-decoration: none; }
.more-links a, .arrow-links a { font-size: 14px; font-weight: 500; color: var(--accent); }

.side p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); }
.side .arrow-links { margin-top: 14px; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}
.link-list li:first-child a { padding-top: 0; }
.link-list .title { font-size: 15px; font-weight: 600; color: #222; }
.link-list .meta { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--rule);
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
.site-footer p { margin: 0; }

/* ---- Inner pages (About, Teaching, Students) ---------------------- */

.inner .site-header { justify-content: space-between; }
.site-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    color: #222;
}
.site-header li a[aria-current="page"] {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.page-head { padding: 64px 0 36px; }
.page-head h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -.5px;
    color: var(--ink);
}
.page-head .lede {
    margin: 16px 0 0;
    max-width: 40em;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.5;
    color: var(--body);
}

.prose { max-width: 42em; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--body); }
.prose p { margin: 0 0 16px; }
.prose a, .text-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(122, 88, 0, .35);
    text-underline-offset: 3px;
}
.prose a:hover, .text-link:hover { text-decoration-color: var(--accent); color: #5a4100; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }

/* About: text beside photos */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.split > .prose { flex: 999 1 520px; min-width: 0; }
.photos { flex: 1 1 280px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 28px; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; height: auto; border-radius: 4px; }
.photos figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li { margin-bottom: 6px; }

/* Teaching */
.year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0 0 40px;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
}
.year-nav span { color: var(--muted); }
.year-nav a { color: var(--accent); }
.course-year { margin: 0 0 40px; scroll-margin-top: 24px; }
.course-year h2 { font-size: 28px; margin-bottom: 4px; }
.courses, .prose .courses { list-style: none; margin: 0; padding: 0; }
.courses li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.courses .course-title { display: block; font-size: 17px; font-weight: 600; color: #222; }
.courses .course-meta { display: block; font-size: 14px; color: var(--muted); }
.courses p { margin: 6px 0 0; font-size: 15px; line-height: 1.65; color: var(--body); }

/* Students */
.people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px 28px;
    margin: 0 0 56px;
    padding: 0;
    list-style: none;
}
.person a, .person > div { display: block; }
.person img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    background: var(--rule);
}
.person .name { display: block; margin-top: 10px; font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.25; color: #222; }
.person .role { display: block; font-size: 14px; color: var(--muted); }
.person a:hover .name { text-decoration: underline; text-underline-offset: 3px; }

.intro-pair { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 64px; margin-bottom: 56px; }
.intro-pair > .prose { flex: 3 1 460px; min-width: 0; max-width: none; }
.intro-pair > .callout {
    flex: 2 1 300px;
    padding: 24px 28px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: #fff;
}
.intro-pair > .callout h2 { margin-top: 0; font-size: 22px; }
.intro-pair > .callout p:last-child { margin-bottom: 0; }


/* Research */
.selected-work {
    margin: 0 0 48px;
    padding: 28px 32px 24px;
    background: #f3eee2;
    border: 1px solid #e6dfcd;
    border-radius: 8px;
}
.selected-work h2 { margin-bottom: 8px; }
.selected-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; }
.selected-grid .pub { border-bottom: 0; padding: 14px 0 10px; }
.selected-grid .chip { background: #fbfaf7; }
.filter-bar {
    position: sticky; top: 0; z-index: 2;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin: 0 0 8px; padding: 14px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}
.filter-bar label { font-size: 14px; color: var(--muted); }
.filter-bar select {
    min-height: 44px; padding: 0 40px 0 14px;
    font: inherit; font-size: 15px; color: #222;
    border: 1px solid #d6d1c6; border-radius: 22px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none; appearance: none;
}
.filter-count { font-size: 14px; color: var(--muted); }
.pub-year { padding-top: 32px; scroll-margin-top: 48px; }   /* room for the sticky filter bar when jumping to a year */
.pub-year h2 { font-size: 30px; margin-bottom: 4px; }
.pub { padding: 18px 0; border-bottom: 1px solid var(--rule); max-width: 50em; }
.selected-grid .pub { max-width: none; }
.pub p { margin: 0; }
.pub-kind { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.pub-title { margin: 4px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.3; color: #1f1f1f; }
.pub-title a { color: inherit; }
.pub-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.pub-authors { font-size: 15px; color: #333; }
.pub-venue { font-size: 15px; line-height: 1.55; color: var(--muted); }
.pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; margin-top: 10px !important; }
.chip {
    display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
    border: 1px solid #d6d1c6; border-radius: 15px; background: #fff;
    font-size: 13px; font-weight: 500; color: #333;
}
.chip:hover { border-color: var(--accent); color: #000; }
.pub-topics { margin-left: 6px; font-size: 13px; color: #8a8a8a; }

/* Talks */
.talk-year { display: block; padding-top: 32px; scroll-margin-top: 24px; }
.talk-year > h2 { font-size: 30px; margin-bottom: 4px; }
.talk-year.upcoming {
    margin: 0 0 16px;
    padding: 24px 32px 12px;
    background: #f3eee2;
    border: 1px solid #e6dfcd;
    border-radius: 8px;
}
.upcoming .talk:last-child { border-bottom: 0; }
.talk { padding: 18px 0; border-bottom: 1px solid var(--rule); max-width: 50em; }
.talk p { margin: 0; }
.talk-title { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; color: #1f1f1f; }
.talk-with { font-size: 15px; color: #333; }
.talk-venues { list-style: none; margin: 6px 0 0; padding: 0; }
.talk-untitled { padding: 8px 0; border-bottom: 0; }
.talk-untitled .talk-venues { margin-top: 0; }
.talk-untitled .talk-place { color: #333; }
.talk-venues li { display: flex; gap: 0 16px; padding: 2px 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.talk-date { flex: 0 0 112px; color: var(--accent); font-size: 13px; font-weight: 500; line-height: 22px; white-space: nowrap; }
.talk-place { flex: 1 1 auto; min-width: 0; }
.talk-remote { white-space: nowrap; }
.earlier-head { margin: 48px 0 8px; font-size: 26px; }
details.talk-year { padding-top: 0; max-width: 50em; border-bottom: 1px solid var(--rule); }
details.talk-year summary {
    display: flex; align-items: baseline; gap: 16px;
    min-height: 52px; padding: 12px 0;
    cursor: pointer; list-style: none;
}
details.talk-year summary::-webkit-details-marker { display: none; }
details.talk-year summary::after {
    content: ""; margin-left: auto; align-self: center;
    width: 9px; height: 9px;
    border-right: 2px solid #8a8a8a; border-bottom: 2px solid #8a8a8a;
    transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
details.talk-year[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
details.talk-year .year { font-family: var(--serif); font-size: 24px; font-weight: 500; color: #222; }
details.talk-year .count { font-size: 14px; color: var(--muted); }
details.talk-year summary:hover .year { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
details.talk-year .talk:last-child { border-bottom: 0; }

/* ---- Phones ---------------------------------------------------------- */
@media (max-width: 640px) {
    .site-header { padding: 14px 16px; }
    .page { padding: 0 16px 48px; }
    .site-footer { padding: 20px 16px; }

    /* menu: wrapped, underlined text links */
    .site-header ul { gap: 0 22px; font-size: 16px; }
    .site-header li a {
        display: inline-block;
        min-height: 0;
        line-height: 44px;
        text-decoration: underline;
        text-decoration-color: #cfc8b8;
        text-underline-offset: 5px;
    }
    .site-header .cv-button,
    .site-header .cv-button:hover,
    .site-header .cv-button:focus-visible {
        padding: 0;
        border-radius: 0;
        background: none;
        color: var(--accent);
        font-weight: 600;
        text-decoration-color: var(--accent);
    }
    .cv-pdf { margin-left: 0; font-weight: 600; opacity: 1; }
    .cv-icon { display: inline; vertical-align: -2px; margin-left: 6px; }

    /* inner pages: CV is an ordinary menu link, so only the current page stands out */
    .inner .site-header .cv-button,
    .inner .site-header .cv-button:hover,
    .inner .site-header .cv-button:focus-visible {
        color: #444;
        font-weight: 400;
        text-decoration-color: #cfc8b8;
    }
    .inner .cv-pdf { font-weight: 400; }
    .inner .cv-icon { display: none; }

    /* inner pages: name, then the menu under a thin rule */
    .inner .site-header { display: block; padding-bottom: 6px; }
    .inner .site-header nav { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--rule); }
    .page-head { padding: 36px 0 24px; }
    .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .person .name { font-size: 18px; }
    .pub-title { font-size: 20px; }
    .selected-work { padding: 20px 18px 12px; margin-left: -4px; margin-right: -4px; }
    .selected-grid .pub + .pub { border-top: 1px solid #e3dac4; }
    .pub-topics { flex-basis: 100%; margin-left: 0; }
    .filter-bar { flex-wrap: nowrap; gap: 8px 12px; }
    .filter-bar label { flex: none; }
    .filter-bar select { flex: 1 1 auto; min-width: 0; }
    /* paper count: hidden on phones so the bar stays on one line (still read out by screen readers) */
    .filter-count {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
    .intro-pair > .callout { padding: 20px; }
    .person .role { font-size: 13px; }
    .talk-title { font-size: 19px; }
    .talk-year.upcoming { padding: 18px 18px 6px; margin-left: -4px; margin-right: -4px; }
    .talk-venues li { flex-direction: column; padding: 4px 0; }
    .talk-date { flex: none; line-height: 1.5; }
}

/* Home page on phones: name, tagline and title first, then the menu */
@media (max-width: 640px) {
    .home { display: flex; flex-direction: column; }
    .home .site-header, .home .page { display: contents; }

    .home .intro { order: 1; padding: 44px 16px 24px; }
    .home .intro h1 { margin-bottom: 14px; }
    .home .statement { margin-bottom: 12px; }

    .home .site-header nav {
        order: 2;
        margin: 0 16px 28px;
        padding: 6px 0;
        border-top: 1px solid var(--rule);
        border-bottom: 1px solid var(--rule);
    }

    .home .banner { order: 3; width: auto; margin: 0 16px; }
    .home .columns { order: 4; padding: 36px 16px 48px; }
    .home .feed a { padding: 14px 0; }
    .home .feed .kind { flex-basis: 100%; }
    .home .site-footer { order: 5; }
}
