:root {
  --ink: #494e52;
  --faint: #7a8288;
  --line: #e6e8ea;
  --bg: #ffffff;
  --link: #1a6fd4;
  --measure: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.wrap {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 1.25rem 1.4rem 3.5rem;
}

.wrap.single { --measure: 52rem; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-name:hover { color: var(--link); }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--faint);
  text-decoration: none;
}

nav a:hover { color: var(--link); }

nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--link);
}

.layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 1.2rem;
}

.intro {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1.7rem;
  align-items: stretch;
  margin-bottom: 0.15rem;
}

.intro-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro .portrait {
  width: 124px;
  height: auto;
  display: block;
  border-radius: 50%;
}

.intro .intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.intro .intro-copy h1,
.intro .intro-copy p {
  margin: 0;
}

.intro h1 { margin-bottom: 0.3rem; }

.intro .role {
  margin: 0;
  font-size: 1.02rem;
}

.intro .meta {
  margin: 0;
}

.intro .links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0.8rem 0 0;
  line-height: 1.55;
}

.sidebar .portrait {
  width: 96px;
  height: auto;
  display: block;
  border-radius: 50%;
}

.sidebar h1 {
  font-size: 1.2rem;
  margin: 0.85rem 0 0.15rem;
}

.sidebar .role,
.sidebar .place {
  margin: 0.15rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sidebar .place {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.sidebar .links {
  margin: 0.85rem 0 0;
  line-height: 1.85;
}

.sidebar .links a.mark {
  display: flex;
  align-items: center;
}

h1 {
  font-size: 1.56rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.7rem;
  color: var(--ink);
}

.meta {
  margin: 0 0 0.35rem;
}

.links {
  margin: 0.7rem 0 1rem;
  line-height: 1.9;
}

.links a.mark {
  display: inline-flex;
  align-items: center;
}

.icon {
  width: 1em;
  height: 1em;
  margin-right: 0.38em;
  flex: 0 0 auto;
  fill: currentColor;
}

main > h2:first-child { margin-top: 0.15rem; }

h2 {
  margin: 2.1rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

h3 {
  margin: 1.45rem 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
}

p { margin: 0.7rem 0; overflow-wrap: break-word; }

a[href^="http"]:not(.mark)::after {
  content: "\00a0\2197";
  font-size: 0.78em;
  text-decoration: none;
}

.note {
  margin-top: -0.15rem;
  color: var(--faint);
  font-size: 0.92rem;
}

ul, ol { margin: 0.35rem 0 0; padding-left: 1.2rem; }
li { margin: 0.35rem 0; }

.pubs { list-style: none; padding: 0; }
.pubs li { margin: 0; }
.pub {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.3rem 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.pub-year {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.pub p { margin: 0; }
.pub i { font-style: italic; }

.more { margin-top: 1rem; }

.research-fig {
  display: block;
  margin: 1rem auto 0.3rem;
  max-width: 100%;
  height: auto;
}

.caption {
  margin: 0.15rem 0 1.15rem;
  color: var(--faint);
  font-size: 0.92rem;
  line-height: 1.5;
}

table.directions {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 0.2rem;
}

table.directions th,
table.directions td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

table.directions th {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

table.directions td.dir {
  font-weight: 600;
  width: 38%;
  padding-right: 1.2rem;
}

.site-footer {
  clear: both;
  margin-top: 2.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .sidebar { position: static; }
  .intro { grid-template-columns: 1fr; }
  .intro .intro-copy { display: block; }
  .intro .portrait,
  .sidebar .portrait { width: 112px; }
  h1 { font-size: 1.4rem; }
  .pub { grid-template-columns: 2.6rem 1fr; }
  table.directions td.dir { width: auto; display: block; padding-bottom: 0.1rem; }
  table.directions td,
  table.directions th { display: block; }
  table.directions th:nth-child(2),
  table.directions td:nth-child(2) { padding-top: 0; }
}
