* {
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  height: 100%;
  line-height: 1.62;
  min-width: 320px;
  -webkit-font-smoothing: subpixel-antialiased;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  transition-duration: 0.2s;
}

/* Layout */

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 15px;
}
.container {
  flex: 1 0 auto;
  min-height: 420px;
  position: relative;
  text-align: center;
}
.container-inner {
  left: 50%;
  margin-right: -50%;
  position: absolute;
  top: 38%;
  transform: translate(-50%, -38%);
}
.footnotes {
  flex: 0 0 auto;
  text-align: center;
}

.container-inner {
  display: flex;
  flex-direction: column;
}

.name {
  order: 2;
}

.avatar {
  order: 1;
}

.contacts {
  order: 3;
}

/* Styles */

.avatar {
  height: 96px;
  margin: 48px auto 0 auto;
  width: 96px;
}
.avatar img {
  border: solid 2px;
  border-radius: 100%;
  height: 96px;
  width: 96px;
}

.name {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin: 24px 0 0 0;
}

.contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 48px auto 0 auto;
  padding: 0;
  max-width: 20em;
  width: 100%;
}
.contacts li {
  display: block;
  flex-grow: 1;
  flex-basis: 0;
  margin: 0 6px;
  padding: 0;
}
.contacts li a {
  border: solid 1px;
  border-radius: 9999px;
  display: block;
  font-weight: 500;
  padding: 0.5em 0.5em;
}
.contacts li a .icon {
  height: 16px;
  margin: 0 0.25em 0 0 ;
  vertical-align: middle;
  width: 16px;
}

.footnotes {
  font-size: 12px;
}

.versions {
  display: block;
  font-weight: 300;
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
}
.versions li {
  display: inline-block;
}
.versions li:not(:last-of-type)::after {
  display: inline-block;
  content: '\2192';
  margin: 0 0.25em;
}
.versions .current {
  font-weight: 500;
}

/* Small screens */

@media only screen and (max-width: 600px) {
  .name {
    font-size: 40px;
  }
  .contacts {
    font-size: 0.85rem;
  }
}

/* Theme */

html, body {
  background: #f9f9f9;
  color: #191919;
}

a {
  color: #999;
}
a:hover, a:active {
  color: #069;
}

.avatar img {
  border-color: transparent;
}

.contacts li a {
  background: #fff;
  border-color: #efefef;
  color: #6f6f6f;
}
.contacts li a:hover,
.contacts li a:active {
  border-color: #e5eff4;
  color: #069;
}

.footnotes {
  color: #999;
}

@media (prefers-color-scheme: dark) {
  html, body {
    background: #191919;
    color: #f9f9f9;
  }

  .avatar img {
    border-color: #f9f9f9;
  }

  .contacts li a {
    background: #333;
    border-color: #555;
    color: #999;
  }
  .contacts li a:hover,
  .contacts li a:active {
    background-color: #069;
    border-color: #069;
    color: #e5eff4;
  }
}

/* Utilities */

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.hide {
  display: none;
  visibility: hidden;
}
