:root {
  --Green: hsl(75, 94%, 57%);
  --White: hsl(0, 0%, 100%);
  --Grey700: hsl(0, 0%, 20%);
  --Grey800: hsl(0, 0%, 12%);
  --Grey900: hsl(0, 0%, 8%);
  --font: "Inter";
}

body {
  background: var(--Grey900);
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font), sans-serif;
}

.profile-card {
  width: 370px;
  background: var(--Grey800);
  border-radius: 18px;
  box-shadow: 0 8px 24px #0006;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 37px 32px 32px 32px;
}

.profile-avatar {
  width: 89px;
  height: 89px;
  border-radius: 50%;
  margin-bottom: 27px;
  overflow: hidden;
  box-shadow: 0 2px 14px #0002;
  background: #272727;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  width: 100%;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-name-row {
  margin-bottom: 10px;
}
.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--White);
  line-height: 1.18;
  text-align: center;
}

.profile-location-row {
  margin-bottom: 18px;
}
.profile-location {
  color: var(--Green);
  font-size: 1.03rem;
  font-weight: 700;
  text-align: center;
}

.profile-bio-row {
  margin-bottom: 19px;
}
.profile-bio {
  font-size: 1.04rem;
  font-weight: 400;
  color: var(--White);
  margin: 0;
  line-height: 1.35;
  text-align: center;
}

.profile-links {
  width: 100%;
  margin-top: 22px;
}
.profile-links ul {
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.profile-link-item {
  width: 100%;
  list-style: none;
}
.profile-link-item a {
  display: block;
  width: 100%;
  background: var(--Grey700);
  color: var(--White);
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  text-align: center;
  padding: 10px 0 12px 0;
  font-size: 14px;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 2px 3px #0001;
}
.profile-link-item a:hover {
  background: var(--Green);
  color: var(--Grey900);
}

@media (max-width: 375px) {
  .profile-card {
    width: 99vw;
    border-radius: 10px;
    padding: 14px 0 14px 0;
  }
  .profile-info {
    padding: 0 10px;
  }
  .profile-avatar {
    width: 64px;
    height: 64px;
  }
  .profile-link-item a {
    font-size: 0.98rem;
    padding: 10px 0;
  }
}
