/*
 * Skeleton-based styles, adapted from Botao He's homepage
 * (https://github.com/Bottle101/bottle101.github.io).
 */

html {
  font-family: sans-serif;
  font-size: 62.5%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: "Titillium Web", Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

article,
footer,
header,
main,
nav,
section {
  display: block;
}

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

img {
  border: 0;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #1772d0;
  outline-offset: 2px;
}

strong {
  font-weight: 600;
}

.container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.column,
.columns {
  width: 100%;
  float: left;
}

@media (min-width: 400px) {
  .container {
    width: 85%;
    padding: 0;
  }
}

@media (min-width: 550px) {
  .container {
    width: 80%;
  }

  .column,
  .columns {
    margin-left: 4%;
  }

  .column:first-child,
  .columns:first-child {
    margin-left: 0;
  }

  .one.column,
  .one.columns {
    width: 4.66666666667%;
  }

  .two.columns {
    width: 13.3333333333%;
  }

  .three.columns {
    width: 22%;
  }

  .four.columns {
    width: 30.6666666667%;
  }

  .five.columns {
    width: 39.3333333333%;
  }

  .six.columns {
    width: 48%;
  }

  .seven.columns {
    width: 56.6666666667%;
  }

  .eight.columns {
    width: 65.3333333333%;
  }

  .nine.columns {
    width: 74%;
  }

  .ten.columns {
    width: 82.6666666667%;
  }

  .eleven.columns {
    width: 91.3333333333%;
  }

  .twelve.columns {
    width: 100%;
    margin-left: 0;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 300;
}

h1 {
  font-size: 4rem;
  line-height: 1.2;
  letter-spacing: -0.1rem;
}

h2 {
  font-size: 3.6rem;
  line-height: 1.25;
  letter-spacing: -0.1rem;
}

h3 {
  font-size: 3rem;
  line-height: 1.3;
  letter-spacing: -0.1rem;
}

h4 {
  font-size: 2.4rem;
  line-height: 1.35;
  letter-spacing: 0.1rem;
}

h5 {
  font-size: 1.8rem;
  line-height: 1.5;
  letter-spacing: -0.05rem;
}

h6 {
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0;
}

@media (min-width: 550px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 4.2rem;
  }

  h3 {
    font-size: 3.6rem;
  }

  h4 {
    font-size: 3rem;
  }

  h5 {
    font-size: 2.4rem;
  }

  h6 {
    font-size: 1.5rem;
  }
}

p {
  margin-top: 0;
}

.button,
button {
  display: inline-block;
  height: 38px;
  padding: 0 30px;
  color: #555;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
}

.button:hover,
.button:focus,
button:hover,
button:focus {
  color: #333;
  border-color: #888;
  outline: 0;
}

ul {
  list-style: circle inside;
}

ol {
  list-style: decimal inside;
}

ol,
ul {
  padding-left: 0;
  margin-top: 0;
}

li {
  margin-bottom: 1rem;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e1e1e1;
}

th:first-child,
td:first-child {
  padding-left: 0;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

.button,
button {
  margin-bottom: 1rem;
}

table,
p,
ul,
ol {
  margin-bottom: 2.5rem;
}

.u-full-width {
  width: 100%;
}

.u-pull-right {
  float: right;
}

.u-pull-left {
  float: left;
}

.container::after,
.row::after,
.u-cf {
  display: table;
  clear: both;
  content: "";
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 6px 10px;
  color: #fff;
  background: #222;
  transform: translateY(-150%);
}

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

.header {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 60px;
  text-align: left;
}

.header .row {
  width: 100%;
  display: grid;
  grid-template-columns: 190px minmax(0, 600px);
  column-gap: 36px;
  row-gap: 0;
  align-items: start;
  justify-content: center;
}

.header .row::after {
  display: none;
  content: none;
}

.header .three.columns,
.header .nine.columns {
  width: auto;
  margin-left: 0;
  float: none;
}

.profile-picture-frame {
  position: relative;
  width: 190px;
  height: 190px;
  overflow: hidden;
  background: #efede9;
  border: 1px solid #e1e4e8;
  border-radius: 50%;
}

.profile-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-description h1 {
  margin-bottom: 17px;
  color: #12151a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.08rem;
}

.main-description p {
  margin-bottom: 0;
  color: #2f3339;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  line-height: 1.45;
}

.header-statement {
  width: 100%;
  clear: both;
  padding-top: 58px;
}

.header-tagline {
  width: 100%;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1.42;
  letter-spacing: 0;
}

.job-note p {
  margin-bottom: 0;
}

.job-note {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 0;
  color: #222;
  background: #eef2fa;
  border-left: 3px solid #315aa6;
  border-radius: 0 6px 6px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
}

.header-buttons {
  margin-top: 16px;
}

.header-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  margin: 0 5px 0 0;
  color: #17191d;
  font-size: 1.4rem;
  line-height: 34px;
  letter-spacing: 0;
  text-transform: none;
  border-color: #d1d6de;
  border-radius: 999px;
  gap: 8px;
}

.header-buttons .button:hover,
.header-buttons .button:focus {
  color: #17191d;
  background: #f7f8fa;
  border-color: #9da5af;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-icon-fill {
  fill: currentColor;
  stroke: none;
}

.docs-section {
  scroll-margin-top: 6.5rem;
  padding: 4rem 0;
  margin-bottom: 0;
  border-top: 1px solid #eee;
}

.navbar {
  display: none;
}

.navbar-spacer {
  display: none;
}

.paper {
  margin-bottom: 20px;
}

.paper p {
  margin-bottom: 2px;
}

.paper .button {
  display: inline-block;
  height: 25px;
  padding: 0 10px;
  margin-bottom: 0;
  font-weight: 100;
  line-height: 25px;
  text-transform: none;
}

.paper-heading {
  font-size: 19px;
  font-weight: 600;
}

.publication-highlight {
  color: #f394a7;
  font-weight: 700;
}

.author-link {
  color: inherit;
}

.author-link:hover,
.author-link:focus {
  color: #f09228;
}

.paper-summary {
  display: inline-block;
  margin-top: 3px;
  color: #444;
  font-style: italic;
}

.publication-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.publication-table td {
  vertical-align: top;
}

.publication-media {
  width: 40%;
  text-align: center;
}

.publication-details {
  width: 60%;
}

.publication-media img,
.publication-media video {
  width: 90%;
  height: auto;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 15px;
}

/* Text block from the title to the buttons; js/script.js sizes the media to it. */
.publication-text {
  display: flow-root;
}

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

@media (min-width: 750px) {
  .publication-table .publication-media {
    vertical-align: middle;
  }

  .publication-media img,
  .publication-media video {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: var(--media-height, none);
    margin: 0 auto;
  }
}

.equal-contribution {
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.footer {
  padding: 15px 0 40px;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  border-top: 1px solid #eee;
}

.list-heading {
  margin-bottom: 1rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.honors-list {
  list-style: none;
}

.honors-list li {
  padding-left: 14px;
  border-left: 3px solid #e1e4e8;
}

.honor-year {
  color: rgb(250, 80, 80);
  font-size: 14px;
  white-space: nowrap;
}

.honor-detail {
  color: #444;
  font-size: 15px;
}

@media (min-width: 750px) {
  .navbar + .docs-section,
  .navbar + main > .docs-section:first-child {
    border-top-width: 0;
  }

  .navbar,
  .navbar-spacer {
    display: block;
    width: 100%;
    height: 6.5rem;
    background: #fff;
    z-index: 99;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }

  .navbar-spacer {
    display: none;
  }

  .navbar > .container {
    width: 100%;
  }

  .navbar-list {
    margin-bottom: 0;
    list-style: none;
  }

  .navbar-item {
    position: relative;
    float: left;
    margin-bottom: 0;
  }

  .navbar-link {
    margin-right: 35px;
    color: #222;
    font-size: 11px;
    font-weight: 600;
    line-height: 6.5rem;
    letter-spacing: 0.2rem;
    text-decoration: none;
    text-transform: uppercase;
  }

  .navbar-link.active {
    color: #33c3f0;
  }

  .has-docked-nav .navbar {
    position: fixed;
    top: 0;
    left: 0;
  }

  .has-docked-nav .navbar-spacer {
    display: block;
  }

  .has-docked-nav .navbar > .container {
    width: 80%;
  }
}

/* Original experience timeline */

.timeline {
  position: relative;
  width: 800px;
  padding: 1em 0;
  margin: 20px auto 0;
  list-style-type: none;
}

.timeline::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: block;
  width: 6px;
  height: 100%;
  margin-left: -3px;
  background: linear-gradient(
    to bottom,
    rgba(80, 80, 80, 0) 0%,
    rgb(80, 80, 80) 8%,
    rgb(80, 80, 80) 92%,
    rgba(80, 80, 80, 0) 100%
  );
  content: " ";
}

.timeline li {
  padding: 1em 0;
}

.timeline li::after {
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
  content: "";
}

.direction-l {
  position: relative;
  width: 370px;
  float: left;
  text-align: right;
}

.direction-r {
  position: relative;
  width: 370px;
  float: right;
}

.flag-wrapper {
  position: relative;
  display: inline-block;
  text-align: center;
}

.flag {
  position: relative;
  display: inline;
  padding: 6px 10px;
  background: rgb(248, 248, 248);
  border-radius: 5px;
  font-weight: 600;
  text-align: left;
}

.direction-l .flag {
  box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-r .flag {
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.15);
}

.direction-l .flag::before,
.direction-r .flag::before {
  position: absolute;
  top: 50%;
  right: -40px;
  z-index: 10;
  display: block;
  width: 12px;
  height: 12px;
  margin-top: -10px;
  background: #fff;
  border: 4px solid rgb(255, 80, 80);
  border-radius: 10px;
  content: " ";
}

.direction-r .flag::before {
  right: auto;
  left: -40px;
}

.direction-l .flag::after {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0;
  height: 0;
  margin-top: -8px;
  border: solid transparent;
  border-width: 8px;
  border-left-color: rgb(248, 248, 248);
  pointer-events: none;
  content: "";
}

.direction-r .flag::after {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 0;
  height: 0;
  margin-top: -8px;
  border: solid transparent;
  border-width: 8px;
  border-right-color: rgb(248, 248, 248);
  pointer-events: none;
  content: "";
}

.time-wrapper {
  display: inline;
  color: rgb(250, 80, 80);
  font-size: 0.66666em;
  line-height: 1em;
  vertical-align: middle;
}

.direction-l .time-wrapper {
  float: left;
}

.direction-r .time-wrapper {
  float: right;
}

.time {
  display: inline-block;
  padding: 4px 6px;
  background: rgb(248, 248, 248);
}

.desc {
  margin: 1em 0.75em 0 0;
  font-size: 0.77777em;
  line-height: 1.5em;
}

.direction-r .desc {
  margin: 1em 0 0 0.75em;
}

@media screen and (max-width: 1000px) {
  .timeline {
    width: 640px;
  }

  .direction-l,
  .direction-r {
    width: 290px;
  }
}

@media screen and (max-width: 800px) {
  .timeline {
    width: 620px;
  }

  .direction-l,
  .direction-r {
    width: 280px;
  }
}

@media screen and (max-width: 660px) {
  .timeline {
    width: 100%;
    padding: 4em 0 1em;
  }

  .timeline li {
    padding: 2em 0;
  }

  .direction-l,
  .direction-r {
    width: 100%;
    float: none;
    text-align: center;
  }

  .flag-wrapper {
    text-align: center;
  }

  .flag {
    z-index: 15;
    background: rgb(255, 255, 255);
  }

  .direction-l .flag::before,
  .direction-r .flag::before {
    top: -30px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-top: 0;
    margin-left: -9px;
  }

  .direction-l .flag::after,
  .direction-r .flag::after {
    top: -8px;
    left: 50%;
    width: 0;
    height: 0;
    margin-top: 0;
    margin-left: -8px;
    border: solid transparent;
    border-width: 8px;
    border-bottom-color: rgb(255, 255, 255);
  }

  .time-wrapper {
    position: relative;
    z-index: 14;
    display: block;
    margin: 4px 0 0;
  }

  .direction-l .time-wrapper,
  .direction-r .time-wrapper {
    float: none;
  }

  .desc,
  .direction-l .desc,
  .direction-r .desc {
    position: relative;
    z-index: 15;
    padding: 1em;
    margin: 1em 1em 0;
    background: rgb(245, 245, 245);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 749px) {
  .publication-table,
  .publication-table tbody,
  .publication-table tr,
  .publication-table td {
    display: block;
    width: 100%;
  }

  .publication-table td {
    padding-right: 0;
    padding-left: 0;
  }

  .publication-media {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .publication-media img,
  .publication-media video {
    width: min(90%, 420px);
  }

  .publication-details {
    padding-top: 12px;
  }
}

@media (max-width: 549px) {
  .header {
    margin-top: 35px;
    margin-bottom: 35px;
  }

  .header .row {
    display: block;
  }

  .profile-picture-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
  }

  .main-description {
    text-align: center;
  }

  .main-description h1 {
    margin-bottom: 14px;
    font-size: 3.8rem;
  }

  .main-description p {
    font-size: 1.6rem;
  }

  .header-statement {
    padding-top: 28px;
  }

  .header-tagline {
    margin-bottom: 22px;
    font-size: 2.4rem;
  }

  .job-note {
    padding: 15px 18px;
    font-size: 1.6rem;
  }

  .header-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .header-buttons .button {
    width: 100%;
    padding: 0 13px;
    margin: 0;
  }

  .footer .columns {
    margin-bottom: 5px;
  }
}
