/* ---------------------------------------------------------------
   Academic homepage — minimal, fast, dependency-free.
   Edit the variables below to re-theme the whole site.
   --------------------------------------------------------------- */

:root {
  --accent: #00356b;          /* Yale blue */
  --accent-light: #205aa3;    /* link blue (medium) */
  --accent-hover: #2f6fbf;    /* lighter blue for hover feedback */
  --text: #1a1a1a;
  --text-soft: #4d4d4d;       /* dark gray for secondary info */
  --muted: #5a5a5a;
  --rule: #e2e2e2;
  --bg: #ffffff;
  --max-width: 780px;
  /* One clean system sans across the whole site (headings + body). */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-head: var(--font);
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  margin: 0;
  font-size: 18px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------- University banner ---------- */

.uni-banner {
  background: var(--accent);
}

.uni-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uni-banner .uni-wordmark img {
  height: 24px;
  width: auto;
  display: block;
}

.uni-banner .uni-wordmark:hover img { opacity: 0.85; }

.uni-banner .uni-link {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.uni-banner .uni-link:hover {
  color: #ffffff;
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Header / nav ---------- */

header.site {
  border-bottom: 1px solid var(--rule);
}

nav.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}

nav.site .brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
  margin-right: auto;
  font-size: 1.1rem;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
}

nav.site a:hover,
nav.site a.active {
  color: var(--accent);
}

/* ---------- Intro block ---------- */

.intro {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.intro img.photo {
  /* Sized by height so the photo lines up with the name/contact block
     regardless of the image's aspect ratio. */
  height: 208px;
  width: auto;
  background: #f0f0f0;
  flex-shrink: 0;
}

.intro h1 {
  font-family: var(--font-head);
  margin: 0 0 0.15rem;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.intro .role {
  color: var(--text-soft);
  margin: 0 0 0.75rem;
}

/* Affiliation links blend into the gray text; underline on hover. */
.intro .role a { color: inherit; }
.intro .role a:hover { text-decoration: underline; }

.contact {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.contact a { color: var(--accent-light); }

/* Hiring notice — green from Yale's web accent palette; passes WCAG AA
   as text on white (the yellow accent doesn't). */
.hiring {
  font-weight: 700;
  color: #5f712d;
  margin: 1.25rem 0 0;
}

/* Whole line links to #prospective; no underline at rest, hover
   darkens + underlines as the click affordance. */
.hiring a {
  color: inherit;
  text-decoration: none;
}

.hiring a:hover {
  color: #4c5a24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Prominent profile / scholarly-index links */
.profiles {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
  line-height: 2;
}

.profiles a { color: var(--accent-light); }

/* ---------- Generic ---------- */

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1 { font-family: var(--font-head); }

h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
}

section p:first-of-type { margin-top: 0.75rem; }

/* ---------- Publication list ---------- */

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

ul.pubs > li {
  padding: 0.55rem 0;
}

ul.pubs .title { font-weight: 600; }
ul.pubs .title a { color: var(--accent-light); }
ul.pubs .title a:hover { color: var(--accent-hover); }

ul.pubs .authors,
ul.pubs .venue,
ul.pubs .meta {
  color: var(--text);
  font-size: 0.95rem;
}

ul.pubs .venue strong { font-weight: 700; }

/* Talks: bold the location line (first .meta right after the title) */
ul.pubs .title + .meta { font-weight: 700; }

ul.pubs .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.me { font-weight: 700; }

ul.pubs .links {
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

ul.pubs .links a { margin-right: 0.75rem; }

/* ---------- Footer ---------- */

footer.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site .colophon {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

/* Stack the photo above the name before the name column gets cramped. */
@media (max-width: 560px) {
  .intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .intro img.photo { width: 130px; height: auto; }
  ul.news li { flex-direction: column; gap: 0; }
}
