@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #212121;
  --muted: #555;
  --paper: #f5f2f0;
  --accent: #ffd54f;
  --line: #d8d4d1;
  --sans: 'Droid Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
a { color: inherit; text-decoration: underline; text-underline-offset: .12em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #785700; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; padding: .65rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--paper); }
.header-inner { width: calc(100% - 3.5rem); min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.2rem; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.site-nav a { padding: .7rem .15rem .45rem; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; border-bottom: 7px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav .nav-cv { font-weight: 400; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.3; }
h1 { font-family: 'Courier New', monospace; font-size: clamp(2rem, 3.5vw, 2.75rem); margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin: 0 0 .65rem; text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.home-heading { padding: 3rem 0 3.5rem; text-align: center; }
.home-quote { max-width: 850px; margin: 3rem auto 0; font-family: 'Courier New', monospace; font-size: 1rem; line-height: 1.8; }
.home-quote p { display: inline; }
.home-quote blockquote { display: inline; margin: 0; }
.home-quote figcaption { display: inline; }
.home-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 4rem; align-items: start; padding-bottom: 3rem; }
.profile-sidebar { padding-top: .1rem; }
.portrait { width: 266px; max-width: 100%; margin: 0 auto; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; border: 2px solid var(--line); border-radius: 50%; }
.profile-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: 1.1rem auto 0; max-width: 300px; }
.profile-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.profile-link:hover { background: #e6e0dc; }
.profile-link img { width: 32px; height: 32px; object-fit: contain; }
.profile-link--github img { padding: 3px; background: #5f6368; border-radius: 50%; }
.announcements { margin-top: 2rem; }
.announcements h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.announcements-intro { margin-bottom: .7rem; color: var(--muted); font-size: .9rem; }
.recruiting, .announcements-scroll {
  border: 1px solid rgba(178, 139, 53, .38);
  border-left: 3px solid #d7b65c;
  border-top-color: rgba(208, 174, 95, .44);
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .18) 36%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(165deg, rgba(255, 232, 169, .32), rgba(255, 250, 232, .16) 50%, rgba(211, 170, 68, .13));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(142, 107, 35, .08),
    0 4px 12px rgba(108, 82, 30, .07),
    0 1px 2px rgba(108, 82, 30, .06);
}
.announcements-scroll { max-height: 24rem; overflow-y: auto; padding: .15rem .9rem; scrollbar-gutter: stable; scrollbar-color: #b5a16d transparent; }
.announcements-scroll:focus-visible { outline: 3px solid #785700; outline-offset: 4px; }
.announcements-list { list-style: none; padding: 0; margin: 0; }
.announcements-list li { padding: .8rem 0; }
.announcements-list li + li { border-top: 1px solid rgba(178, 139, 53, .2); }
.announcement-year { display: block; color: var(--muted); font-size: .875rem; margin-bottom: .25rem; }
.announcements-list p { font-size: 1rem; line-height: 1.6; margin: 0; }
.home-content { min-width: 0; }
.home-content section + section { margin-top: 1.35rem; }
.recruiting { color: var(--ink); margin-top: 1.25rem; padding: 1.15rem 1.3rem; }
.recruiting h3 { display: block; color: inherit; margin: 0 0 .55rem; font: inherit; font-weight: 700; }
.recruiting p { display: block; margin: 0; }
.recruiting a { color: #0000a0; }
.education-list { list-style-type: square; margin: .3rem 0 0; padding-left: 1.25rem; }
.education-list li { margin-bottom: .35rem; }
.contact-emails { overflow-wrap: anywhere; }
.page-heading { padding: 3rem 0; text-align: center; }
.page-body { padding-bottom: 3rem; }
.page-body > section + section, .page-body [data-paper-group] + [data-paper-group] { margin-top: 2rem; }
.topics { padding-left: 1.4rem; margin: 0 0 1.5rem; list-style-type: square; }
.topics li { margin-bottom: .2rem; }
.paper-search { margin: 1.5rem 0 2rem; }
.paper-search summary { width: fit-content; font-size: 1rem; text-decoration: underline; text-underline-offset: .15em; }
.paper-tools { padding-top: 1rem; }
.search-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: .8rem; }
.search-row label { font-size: 1rem; }
.search-row input { min-width: 0; width: min(100%, 420px); padding: .5rem .7rem; border: 1px solid #888; background: white; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter { border: 1px solid #aaa; padding: .3rem .65rem; color: var(--ink); background: transparent; font-size: .9rem; }
.filter:hover { background: #eee8df; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: #a67f14; }
.result-count { margin: .6rem 0 0; color: var(--muted); font-size: .9rem; }
.paper { position: relative; margin: 1rem 0 1.4rem 1.3rem; padding-left: .1rem; }
.paper::before { content: '▪'; position: absolute; left: -1.2rem; top: 0; }
.paper-title { font: inherit; font-weight: 600; margin: 0 0 .3rem; }
.authors { font-size: 1rem; margin: 0 0 .25rem; }
.authors strong { font-weight: 600; }
.paper-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 1rem; }
.equal-note { color: var(--muted); font-size: .9rem; margin: .3rem 0 1rem; }
.thesis { padding-top: 1.5rem; }
.thesis p { margin-bottom: .5rem; }
.text-link { font-size: 1rem; }
.project { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 3rem; align-items: center; padding: 1.5rem 0 2rem; }
.project-figure { margin: 0; }
.project-figure img { width: 100%; max-height: 300px; object-fit: contain; }
.project h2 { font-size: 1.25rem; font-weight: 600; text-decoration: none; margin: .25rem 0 .7rem; }
.project p { font-size: 1rem; }
.project-venue { font-size: 1rem; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 1rem; }
.institution { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 1rem; }
.course { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 1.2rem; margin: 0 0 1.15rem; }
.course-term { color: var(--muted); font-size: 1rem; }
.course h3 { font-size: 1rem; font-weight: 600; line-height: 1.6; margin: 0; }
.course p { margin: 0; font-size: 1rem; }
.mentee { margin-top: 1.5rem; }
.mentee h4 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .5rem; }
.mentee p { margin-bottom: .5rem; }
.teaching-cta { margin-top: 2rem; color: #0000d0; }
.teaching-cta h3 { font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem; font-size: .875rem; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
@media (max-width: 1050px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .5rem; padding-block: 1rem .4rem; }
  .home-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; }
  .project { grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { width: calc(100% - 2.5rem); }
  .site-nav { gap: .15rem 1rem; }
  .site-nav a { font-size: .95rem; }
  .home-heading { padding: 2.5rem 0; }
  .home-quote { margin-top: 1.8rem; }
  .home-layout { grid-template-columns: 1fr; gap: 2rem; }
  .profile-sidebar { width: 100%; }
  .portrait { width: 240px; }
  .home-content section + section { margin-top: 1.6rem; }
  .page-heading { padding: 2.5rem 0; }
  .project { grid-template-columns: 1fr; gap: 1rem; }
  .project-figure { max-width: 400px; }
  .course { grid-template-columns: 1fr; gap: .1rem; }
  .search-row { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .search-row input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; }
  .site-header, .paper-search, .footer-links, .skip-link { display: none; }
  .wrap { width: 100%; }
  .home-heading { padding: 1rem 0 2rem; }
  .home-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; }
  .paper, .project, .course { break-inside: avoid; }
  .recruiting, .announcements-scroll { background: transparent; box-shadow: none; border-color: var(--line); }
  .announcements-scroll { max-height: none; overflow: visible; scrollbar-gutter: auto; }
  .announcements-list li { break-inside: avoid; }
  [data-paper][hidden], [data-paper-group][hidden] { display: block !important; }
}
