:root {
  --background: #ffffff;
  --text: #222222;
  --muted: #6a6a6a;
  --link: #315b8a;
  --border: #e5e5e5;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.65;
}

main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 60px;
}

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

a:hover {
  text-decoration: underline;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.location svg {
  flex-shrink: 0;
}

/* -------------------------
   NAV
   ------------------------- */

nav {
  position: absolute;
  top: 0;
  right: 0;
  height: calc(1.9rem * 1.2); /* match h1 line box */
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 0.8rem;
}

nav a {
  color: var(--muted);
}

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

nav a:not(:last-child)::after {
  content: " · ";
  color: var(--border);
  margin: 0 4px;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: #4f4f4f;
}

/* -------------------------
   INTRO
   ------------------------- */

.intro {
  position: relative;
  margin-bottom: 48px;
}

.portrait {
  float: right;
  width: 140px;
  height: auto;
  margin: 96px 12px 16px 28px;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 520px) {
  .portrait {
    float: none;
    display: block;
    width: 120px;
    margin: 12px 0 20px;
  }
}

h1 {
  margin: 0 0 10px;

  font-family:
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.position {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.85rem;
}

p {
  margin: 0 0 16px;
}

.profile-links {
  margin-top: 20px;
  font-size: 0.95rem;
}

.profile-links .sep {
  color: var(--muted);
  margin: 0 4px;
}

.last-name {
  color: #8a8a8a;
}

/* -------------------------
   SECTIONS
   ------------------------- */

section {
  margin-top: 46px;
}

h2 {
  margin: 0 0 22px;
  padding-bottom: 7px;

  border-bottom: 1px solid var(--border);

  font-size: 1.4rem;
  font-weight: 600;
}

h3 {
  margin: 0 0 10px;
  padding-bottom: 3px;

  font-size: 1.1rem;
  font-weight: 600;
}

ul + h3 {
  margin-top: 28px;
}

/* -------------------------
   PUBLICATIONS
   ------------------------- */

.pub-year {
  margin: 28px 0 4px;
  color: #7a94a8;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-year:first-of-type {
  margin-top: 0;
}

.publication {
  margin-bottom: 20px;
}

.publication:last-child {
  margin-bottom: 0;
}

.publication-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.publication-authors {
  color: var(--muted);
  font-size: 0.88rem;
}

.publication-venue {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1px;
  font-style: italic;
}

.publication-summary {
  margin-top: 7px;
  margin-bottom: 0;
  color: #4f4f4f;
  font-size: 0.94rem;
}

.publication-links {
  white-space: nowrap;
}

/* -------------------------
   SIMPLE LIST SECTIONS
   ------------------------- */

ul {
  margin: 0;
  padding-left: 21px;
}

li {
  margin-bottom: 12px;
  padding-left: 2px;
}

li:last-child {
  margin-bottom: 0;
}

.year {
  font-weight: 600;
}

/* -------------------------
   FOOTER
   ------------------------- */

footer {
  margin-top: 55px;
  padding-top: 18px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 0.84rem;
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 600px) {
  main {
    padding-top: 42px;
  }

  h1 {
    font-size: 1.7rem;
  }

  nav {
    height: calc(1.7rem * 1.2);
  }

  section {
    margin-top: 38px;
  }
}
