/* Base styles */
body {
  background-color: #fff;
  padding: 50px;
  font: 14px/1.6 "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #555;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #222;
  margin: 0 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: 26px;
}

h2 {
  color: #066f91;
  font-size: 20px;
  margin-top: 30px;
}

h3, h4, h5, h6 {
  color: #066f91;
}

p, ul, ol, table, pre, dl {
  margin: 0 0 18px;
}

/* Links */
a {
  color: #02818a;
  text-decoration: none;
}

a:hover, a:focus {
  color: #01666e;
  text-decoration: underline;
}

/* Layout */
.wrapper {
  width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

header {
  width: 280px;
  padding-right: 40px;
  position: fixed;
}

header h1 {
  margin-bottom: 15px;
}

header h1 a {
  color: #222;
}

header h1 a:hover {
  text-decoration: none;
  color: #066f91;
}

.profile-photo {
  max-width: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.tagline {
  color: #666;
  font-size: 13px;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Navigation */
nav {
  margin-bottom: 25px;
}

.nav-link {
  margin: 0 0 8px;
}

.nav-link a {
  font-size: 14px;
  color: #02818a;
}

.nav-link a:hover {
  color: #01666e;
}

/* Social links */
.social-links {
  margin-top: 20px;
}

.social-links a {
  margin-right: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
}

.social-links img {
  height: 28px;
  width: 28px;
}

/* Main content */
section {
  width: 540px;
  margin-left: 320px;
  padding-bottom: 50px;
}

/* Experience items */
.experience-item {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-item h3 {
  margin-bottom: 1px;
  font-size: 16px;
}

.experience-item .role {
  color: #333;
  font-weight: 600;
  margin-bottom: 0;
}

.experience-item .period {
  color: #888;
  font-size: 13px;
  margin-bottom: 4px;
}

.experience-item .description {
  color: #555;
  font-size: 13px;
}

.experience-item .description p {
  margin-bottom: 4px;
}

.experience-item ul {
  margin: 2px 0 0;
  padding-left: 18px;
}

.experience-item li {
  margin-bottom: 1px;
  font-size: 13px;
}

/* Publications */
.publication {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.publication:last-child {
  border-bottom: none;
}

.publication .title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
}

.publication .authors {
  font-size: 13px;
  color: #666;
  margin-bottom: 0;
}

.publication .venue {
  font-size: 13px;
  font-style: italic;
  color: #888;
  margin-bottom: 1px;
}

.publication .links {
  margin-bottom: 0;
}

.publication .links a {
  font-size: 12px;
  margin-right: 10px;
}

/* Footer */
footer {
  width: 280px;
  position: fixed;
  bottom: 50px;
  color: #999;
}

footer small {
  font-size: 11px;
}

/* Responsive */
@media screen and (max-width: 960px) {
  .wrapper {
    width: auto;
    padding: 0 20px;
  }

  header, section, footer {
    float: none;
    position: static;
    width: 100%;
  }

  header {
    padding-right: 0;
    margin-bottom: 30px;
  }

  section {
    margin-left: 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
  }

  footer {
    position: static;
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 20px;
  }

  h1 {
    font-size: 22px;
  }

  .profile-photo {
    max-width: 150px;
  }
}
