:root {
  --text: #494e52;
  --muted: #7a8288;
  --line: #f2f3f3;
  --link: #224b8d;
  --link-hover: #1a386a;
  --page-width: 925px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #fff;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: #000;
}

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

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

a:focus-visible {
  outline: 3px solid rgba(248, 148, 6, 0.55);
  outline-offset: 2px;
}

p {
  margin: 0 0 0.5em;
}

ul {
  margin-block: 0.5em;
  padding-inline-start: 2em;
}

li {
  margin-bottom: 0.5em;
}

h1,
h2,
h3 {
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 8px 12px;
  color: #fff;
  background: #000;
  text-decoration: none;
}

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.masthead-inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 0.5em 1em;
}

.home-link {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.home-link:hover {
  color: #5c6266;
  text-decoration: none;
}

.site-shell {
  display: grid;
  grid-template-columns: 15.2542372881% 83.0508474576%;
  column-gap: 1.6949152542%;
  width: min(var(--page-width), 100%);
  margin: 1em auto 0;
  padding: 0 1em 3em;
}

.profile {
  min-width: 0;
}

.profile-card {
  position: sticky;
  top: 6em;
}

.avatar {
  display: block;
  width: 100%;
  max-width: 175px;
  height: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.profile h1 {
  margin: 10px 0;
  font-size: 1.4em;
}

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

.contact-list li,
.contact-list a {
  color: inherit;
}

.contact-list li,
.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--link);
  text-decoration: underline;
}

.contact-list svg {
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list .github-icon {
  fill: currentColor;
  stroke: none;
}

.content {
  min-width: 0;
  padding-left: 5.1020408163%;
  outline: none;
}

.content a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.section {
  scroll-margin-top: 5em;
}

.section h2 {
  margin: 1em 0 0.5em;
  font-size: 1.4em;
}

.section:first-child h2 {
  margin-top: 0;
}

.section h2 span {
  font-family: system-ui, sans-serif;
}

.research-list strong {
  color: #32383d;
}

.status,
.note,
footer {
  color: var(--muted);
}

.status {
  font-size: 0.92em;
}

.note {
  margin-left: 2em;
  font-size: 0.92em;
  font-style: italic;
}

footer {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-size: 0.85em;
}

@media (min-width: 80em) {
  :root {
    --page-width: 1280px;
  }
}

@media (max-width: 57.8124em) {
  .site-shell {
    display: block;
  }

  .profile {
    margin-bottom: 2em;
  }

  .profile-card {
    position: static;
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
  }

  .avatar {
    grid-row: 1 / span 2;
    width: 75px;
    min-width: 75px;
    padding: 0;
    border: 0;
  }

  .profile h1 {
    align-self: end;
    margin: 0 0 7px;
  }

  .contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15em 1em;
    align-self: start;
  }

  .contact-list li {
    margin-bottom: 0;
  }

  .content {
    padding-left: 0;
  }
}

@media (max-width: 34em) {
  .contact-list {
    display: grid;
    gap: 0.2em;
  }

  .section h2 {
    font-size: 1.3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
