/* @import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css); */
:root{
  --font-sans:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

body{
  font-family: var(--font-sans);
  background:#f7f7f7;
  color:#222;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

body,div,ul,ol {
  margin:0;
  padding:0;
}

*{
  box-sizing:border-box;
}

a{
  color:inherit;
  text-decoration:none;
  text-underline-offset:3px;
}
a:hover{
  color:dodgerblue;
}

header{
  width:100%;
  padding:24px 0;
  position:relative;
}

.logo{
  font-size:36px;
  font-weight:400;
  letter-spacing:2px;
  margin-bottom: 2px;
  padding-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  place-content: center;
}
.logo img{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  display: none;
}
.logo > div{
  display: flex;
  gap: .5rem;
}
.logo > div > span:nth-child(1){
  scale: 1.5;
  translate: -12px -8px;
  /* transform: translate(-12px, -8px); */
  color: #9C27B0;
}
.logo > div > span:nth-child(2){
  rotate: -15deg;
  color: #009688;
}
.logo > div > span:nth-child(3){
  rotate: 15deg;
  color: #FF9800;
}
.logo > div > span:nth-child(4){
  rotate: -15deg;
  color: #FF5722;
}

nav{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 12px 1rem;
  font-size: 22px;
  border-top: dotted 5px #9999;
  border-bottom: dotted 5px #9999;
  background-color: #eaeaea;
  padding: 10px 1rem 10px;
}

nav a{
  transition:0.3s;
  text-underline-offset:5px;
  border-bottom: dotted 2px transparent;
  padding: 0 1rem;
}

/* nav a:hover{
  opacity:0.6;
} */
nav a.active{
  color:dodgerblue;
  opacity:0.7;
  /* text-decoration:underline; */
  border-bottom: dotted 2px dodgerblue;
}

.search-btn{
  position:absolute;
  right:28px;
  top:18px;
  width:52px;
  height:52px;
  border:2px solid #222;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
  transition:0.3s;
}

.search-btn:hover{
  background:#222;
  color:#fff;
}

.hero{
  flex:1;
  display:flex;
  justify-content:center;
  text-align:center;
  padding:40px 20px;
}
.hero.v-center{
  align-items:center;
}

.card{
  max-width:700px;
}

.avatar{
  width:220px;
  height:220px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:30px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.name{
  font-size:50px;
  font-weight:400;
  margin-bottom:10px;
  letter-spacing:1px;
}

.subtitle{
  font-size:28px;
  font-weight:400;
  margin-bottom:28px;
}

.desc{
  font-size:20px;
  line-height:1.8;
  color:#444;
  margin-bottom:36px;
}

.social{
  display:flex;
  justify-content:center;
  gap:26px;
  font-size:28px;
}

.social a{
  transition:0.3s;
}

.social a:hover{
  transform:translateY(-4px);
}

.facebook{ color:#1877f2; }
.twitter{ color:#111; }
.github{ color:#111; }
.butterfly{ color:#1da1f2; }

footer{
  text-align:center;
  padding:30px 1rem 10px;
  font-size:14px;
  color:#333;
  line-height:1.5;
  border: solid 1px #9996;
}

footer span{
  color:#2b59ff;
}

.theme-btn{
  position:fixed;
  left:18px;
  bottom:18px;
  width:42px;
  height:42px;
  border:1px solid #111;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  cursor:pointer;
}

@media(max-width:768px){

  .logo{
    font-size:28px;
  }

  nav{
    gap:8px 1rem;
    font-size:16px;
  }

  .avatar{
    width:170px;
    height:170px;
  }

  .name{
    font-size:38px;
  }

  .subtitle{
    font-size:22px;
  }

  .desc{
    font-size:18px;
  }

  .search-btn{
    width:46px;
    height:46px;
  }
}
