* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.6;
}

a { color: #1eaedb; text-decoration: none; }
a:hover { color: #0fa0ce; }

.container {
  position: relative;
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  padding: 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: -.1rem; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: .1rem; }

p { margin-top: 0; margin-bottom: 2.5rem; }

.header {
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: left;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.profile-photo-wrap {
  flex: 0 0 22%;
  max-width: 180px;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
}

.main-description {
  flex: 1 1 auto;
}

.main-description h1 { margin-bottom: 0; }
.main-description p { margin-bottom: 0; }

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

.paper { margin-bottom: 20px; }
.paper p { margin-bottom: 2px; }
.paper-buttons { margin-top: 5px; }

.button {
  display: inline-block;
  height: 25px;
  padding: 0 25px;
  margin-right: 4px;
  border: 1px solid #bbb;
  border-radius: 4px;
  color: #555;
  background: transparent;
  font-size: 11px;
  font-weight: 100;
  line-height: 25px;
  letter-spacing: .1rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

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

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

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

.timeline li { padding: 1em 0; }
.timeline li::after { content: ""; display: block; clear: both; }

.direction-l,
.direction-r {
  position: relative;
  width: calc(50% - 30px);
}

.direction-l { float: left; text-align: right; }
.direction-r { float: right; text-align: left; }

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

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

.direction-l .flag::before,
.direction-r .flag::before {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -10px;
  content: "";
  background: #fff;
  border: 4px solid rgb(51,0,111);
  border-radius: 10px;
  z-index: 3;
}

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

.direction-l .flag::after,
.direction-r .flag::after {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -8px;
  content: "";
  border: 8px solid transparent;
}

.direction-l .flag::after { left: 100%; border-left-color: rgb(248,248,248); }
.direction-r .flag::after { right: 100%; border-right-color: rgb(248,248,248); }

.time-wrapper {
  display: inline;
  color: rgb(51,0,111);
  font-size: .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 .75em 0 0;
  font-size: .77777em;
  line-height: 1.5em;
}
.direction-r .desc { margin: 1em 0 0 .75em; }

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

.footer a { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}
.footer-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

@media (min-width: 550px) {
  .header { margin-top: 5rem; }
  h1 { font-size: 5rem; }
  h4 { font-size: 3rem; }
}

@media (max-width: 660px) {
  .container { width: 85%; }

  .header-row {
    gap: 2rem;
  }

  .profile-photo-wrap {
    flex-basis: 34%;
    max-width: 140px;
  }

  .main-description h1 {
    font-size: 3.6rem;
  }

  .timeline { width: 100%; padding: 4em 0 1em; }
  .timeline li { padding: 2em 0; }
  .direction-l,
  .direction-r { float: none; width: 100%; text-align: center; }
  .flag-wrapper { text-align: center; }
  .flag { background: #fff; z-index: 3; }

  .direction-l .flag::before,
  .direction-r .flag::before {
    top: -30px;
    left: 50%;
    right: auto;
    margin-left: -9px;
  }

  .direction-l .flag::after,
  .direction-r .flag::after {
    left: 50%;
    right: auto;
    top: -8px;
    margin-left: -8px;
    border: 8px solid transparent;
    border-bottom-color: #fff;
  }

  .time-wrapper { display: block; margin: 4px 0 0; }
  .direction-l .time-wrapper,
  .direction-r .time-wrapper { float: none; }

  .direction-l .desc,
  .direction-r .desc {
    margin: 1em 1em 0;
    padding: 1em;
    background: rgb(245,245,245);
    box-shadow: 0 0 1px rgba(0,0,0,.2);
  }

  .footer-grid { grid-template-columns: 1fr; }
}
