:root {
  color-scheme: light;
  --ink: #222222;
  --muted: #66635f;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100% - 48px, 688px);
  margin: 0 auto;
  padding: 64px 0 40px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #aaa6a0;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.introduction {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
}

.portrait {
  display: block;
  width: 144px;
  height: 144px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 17px;
  margin-top: 18px;
  font-size: 15px;
}

.profile-links a {
  white-space: nowrap;
}

section {
  margin-top: 42px;
}

h2 {
  margin-bottom: 17px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.35px;
  font-weight: 600;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: inherit;
}

.experience-list,
.education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li + li,
.education-list li + li {
  margin-top: 21px;
}

.entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}

.date,
.detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.date {
  flex-shrink: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.experience-list .detail {
  margin: 1px 0 6px;
}

.background-summary {
  text-align: justify;
}

strong {
  font-weight: 600;
}

.research-list,
.honors-list {
  padding-left: 18px;
  margin: 0;
}

.research-list li,
.honors-list li {
  padding-left: 3px;
}

.research-list li + li {
  margin-top: 16px;
}

.research-list .detail {
  margin-top: 2px;
}

.section-note {
  margin-top: 20px;
  font-size: 15px;
}

.other-degrees {
  margin-top: 10px;
}

.honors-list li + li {
  margin-top: 9px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid #e7e5e2;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 560px) {
  .page {
    padding-top: 36px;
  }

  .introduction {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 20px;
  }

  .introduction-copy {
    display: contents;
  }

  h1 {
    grid-column: 2;
    align-self: center;
    margin-bottom: 0;
    font-size: 28px;
  }

  .portrait {
    grid-column: 1;
    grid-row: 1;
    width: 100px;
    height: 100px;
  }

  .introduction p,
  .profile-links {
    grid-column: 1 / -1;
  }

  .profile-links {
    margin-top: -4px;
  }

  .entry-heading {
    flex-wrap: wrap;
    gap: 0 12px;
  }
}

@media print {
  .page {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  body {
    font-size: 11pt;
  }

  section {
    margin-top: 24px;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  li,
  .introduction {
    break-inside: avoid;
  }

  .skip-link,
  footer {
    display: none;
  }
}
