:root {
  --panel: rgba(34, 36, 43, 0.86);
  --muted: rgba(255, 255, 255, 0.33);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  font-family: Arial, sans-serif;
  font-size: 18pt;
  color: #fff;
  background: #fff;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(88deg, rgba(230, 145, 145, 0.56) 18%, rgba(101, 78, 211, 0.45) 93%),
    url("assets/images/bg.jpg") center / cover no-repeat fixed;
}

a {
  color: inherit;
}

.profile {
  display: grid;
  min-height: 100vh;
  padding: 1.5625rem;
  place-items: center;
}

.profile-card {
  width: min(100%, 25rem);
  padding: 3.125rem 2.5rem;
  text-align: center;
  background: var(--panel);
  border-radius: 2rem;
  animation: intro 700ms ease-out both;
}

.avatar {
  display: block;
  width: 7rem;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border-radius: 999px;
}

h1 {
  margin: 0 0 1.125rem;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.175;
  letter-spacing: -0.075rem;
}

p {
  margin: 0 0 1.625rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.425;
  letter-spacing: -0.025rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.social-links svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

.linkedin {
  color: #0072b1;
}

.twitter {
  color: #77d6d6;
}

.facebook {
  color: #5780de;
}

.instagram {
  color: #58a2d6;
}

.email {
  color: #ffd600;
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(1.6875rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1680px) {
  html {
    font-size: 13pt;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 11pt;
  }
}

@media (max-width: 736px) {
  html {
    font-size: 11pt;
  }

  .profile-card {
    padding-inline: 2rem;
  }
}

@media (max-width: 360px) {
  .profile-card {
    padding: 2.34375rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .social-links {
    gap: 0.75rem;
  }
}
