:root {
  --page: #ffffff;
  --text: #171717;
  --muted: #5f6368;
  --line: #e4e6e9;
  --link: #1267cf;
  --figure-bg: #fafafa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.16em; }

.page,
.subpage,
.top-nav {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.35rem 0 0;
  font-size: 0.88rem;
}

.top-nav a { color: #4f555d; }
.top-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }

.page { padding: 2.15rem 0 5.5rem; }

.bio {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.6rem, 5vw, 4.8rem);
}

.bio-photo-wrap {
  margin: 0;
  width: 100%;
  align-self: center;
}
.bio-photo {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.bio-copy h1,
.page-title {
  margin: -0.04em 0 1.05rem;
  font-size: clamp(2.15rem, 3.1vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bio-copy h1 { text-align: center; }

.interests {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.96rem;
  text-align: center;
}

.bio-copy p { margin: 0 0 0.95rem; }
.bio-copy ul { margin: 0.15rem 0 1.15rem; padding-left: 1.15rem; }
.bio-copy li { margin: 0.22rem 0; }

.profile-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  font-size: 0.98rem;
}
.profile-links a + a::before {
  content: "/";
  display: inline-block;
  margin: 0 0.72rem;
  color: #969ba2;
  text-decoration: none;
}

.section { margin-top: clamp(4.5rem, 8vw, 7rem); }
.section h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.65rem, 2.35vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.news-section { margin-top: clamp(4rem, 7vw, 6rem); }
.news-list {
  max-width: 920px;
  margin: 0;
  padding-left: 1.25rem;
}
.news-list li { margin: 0.45rem 0; }
.news-date { color: var(--muted); }

.projects { display: grid; gap: clamp(3.5rem, 6vw, 5.5rem); }
.project {
  display: grid;
  grid-template-columns: minmax(235px, 0.82fr) minmax(0, 1.65fr);
  align-items: center;
  gap: clamp(2rem, 3.8vw, 3.8rem);
}

.project-media { margin: 0; }
.project-figure-link { display: block; }
.project-figure {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: var(--figure-bg);
}
.project-body { padding-top: 0; }
.project-title {
  margin: 0 0 0.32rem;
  font-size: clamp(1.32rem, 1.75vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.project-authors {
  margin: 0 0 1.25rem;
  color: #33373d;
  font-size: 0.96rem;
  line-height: 1.45;
}
.project-authors strong { font-weight: 700; }
.field { margin-top: 0.95rem; }
.field h3 {
  display: inline;
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.field h3::after { content: ": "; }
.field p {
  display: inline;
  margin: 0;
  color: #2f3338;
  font-size: 0.96rem;
  line-height: 1.58;
}

.service-list {
  max-width: 980px;
  margin: 0;
  padding-left: 1.15rem;
}
.service-list li { margin: 0.42rem 0; }

.subpage {
  min-height: auto;
  padding: 2.3rem 0 5.5rem;
}
.subpage .page-title { margin-top: 1.8rem; margin-bottom: 1.8rem; }
.research-quote {
  max-width: 900px;
  margin: 0 auto;
  color: #33373d;
  font-size: clamp(1.5rem, 2.15vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.research-quote p { margin: 0; font-style: italic; text-align: center; }
.research-quote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.96rem;
  font-style: normal;
  letter-spacing: 0;
  text-align: right;
}
.research-section { margin-top: clamp(3.5rem, 6vw, 5rem); }
.research-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.research-disclosure > summary::-webkit-details-marker { display: none; }
.research-disclosure > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}
.research-disclosure[open] > summary::after { content: "−"; }
.research-disclosure > summary h2 { margin-bottom: 1.8rem; }
.research-disclosure > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.35rem;
}
.research-intro {
  max-width: none;
  margin: -0.45rem 0 2.75rem;
  color: #2f3338;
  font-size: clamp(1.18rem, 1.65vw, 1.45rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.note-card { padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-card h2 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.note-card p { margin: 0.25rem 0; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .page,
  .subpage,
  .top-nav { width: min(720px, calc(100% - 2rem)); }
  .bio,
  .project { grid-template-columns: 1fr; }
  .bio { gap: 2.2rem; align-items: start; }
  .bio-photo-wrap { width: min(250px, 100%); justify-self: center; }
  .bio-copy h1 { margin-top: 0; }
  .projects { gap: 4rem; }
  .project { gap: 1.6rem; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .top-nav { justify-content: flex-start; gap: 1rem; padding-top: 1.05rem; }
  .page { padding-top: 1.75rem; }
  .bio-copy h1,
  .page-title { font-size: clamp(2rem, 10vw, 2.65rem); }
  .section h2 { font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .project-title { font-size: 1.4rem; }
}
