.attribution { 
    font-size: 0.6875rem; text-align: center; /* attribution text styling */
} 
.attribution a { 
    color: hsl(228, 45%, 44%); text-decoration: none; /* attribution link styling */
} 

body {
  background-color: hsl(0, 0%, 8%); /* body background color styling */
} 

body {
  background-color: hsl(0, 0%, 8%); /* body background color and text color styling */
  color: hsl(0, 0%, 100%); /* body background color and text color styling */
} 

@font-face {
  font-family: "Inter"; /* font-face declaration for Inter font family with variable weight and slant */
  src: url("./assets/fonts/Inter-VariableFont_slnt,wght.ttf") format("truetype"); /* font-face declaration for Inter font family with variable weight and slant */
  font-weight: 400 700; /* font-face declaration for Inter font family with variable weight and slant */
  font-display: swap; /* font-face declaration for Inter font family with variable weight and slant */
} 

body {
  font-family: "Inter", sans-serif; /* body font family styling */
} 

body {
  margin: 0; /* remove default margin */
}

.profile-card {
  box-sizing: border-box; /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  width: calc(100% - 3rem); /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  max-width: 24rem; /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  padding: 2.5rem; /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  background-color: hsl(0, 0%, 12%); /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  border-radius: 0.75rem; /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  text-align: center; /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
  line-height: 1.5; /* profile card container styling with box-sizing, width, padding, background color, border radius, and text alignment */
} 

.avatar {
  width: 5.5rem; /* avatar image styling with width, height, and border radius for circular shape */
  height: 5.5rem; /* avatar image styling with width, height, and border radius for circular shape */
  border-radius: 50%; /* avatar image styling with width, height, and border radius for circular shape */
} 

.avatar {
  display: block; /* Make the avatar a block element */
  margin: 0 auto 1.5rem; /* Center the avatar horizontally and add bottom margin */
} 

.profile-card h1 {
  font-size: 1.5rem; /* profile card heading styling with bottom margin */
  font-weight: 600; /* profile card heading styling with bottom margin */
  margin: 0 0 0.25rem; /* profile card heading styling with bottom margin */
} 

.location {
  color: hsl(75, 94%, 57%); /* location text styling with bottom margin */
  font-size: 0.875rem; /* location text styling with bottom margin */
  font-weight: 700; /* location text styling with bottom margin */
  margin: 0 0 1.5rem; /* location text styling with bottom margin */
} 

.bio { 
  font-size: 0.875rem; /* bio text styling with no margin */
  font-weight: 400; /* bio text styling with no margin */
  margin: 0; /* bio text styling with no margin */
}

.profile-card ul {
  list-style: none; /* Remove the bullets */
  padding-inline-start: 0;  /* Remove the indent */
  margin: 1.5rem 0 0; /* Add top margin to separate from the bio */
} 

.profile-card li a { /* Style the links inside the list items */
  display: block; /* Make the link a block element */
  padding: 0.75rem; /* Add padding for better click area */
  font-size: 0.875rem; /* Set font size for the links */
  line-height: 1.5; /* Set line height for better readability */
}

.profile-card li a {
  display: block; /* Make the link a block element */
  padding: 0.75rem; /* Add padding for better click area */
  border-radius: 0.5rem; /* Add border radius for rounded corners */
  background-color: hsl(0, 0%, 20%); /* Grey 700 */
  color: hsl(0, 0%, 100%); /* White */
  font-weight: 700; /* Make the text bold */
  text-decoration: none; /* Remove underline from links */
}

.profile-card li a:hover,
.profile-card li a:focus-visible { /* Add hover and focus-visible styles for better accessibility */
  background-color: hsl(75, 94%, 57%); /* Green 500 */
  color: hsl(0, 0%, 8%); /* Dark text for contrast */
}

.profile-card li a:focus-visible { /* Add focus-visible styles for better accessibility */
  outline: 2px solid hsl(75, 94%, 57%); /* Green 500 */
  outline-offset: 3px; /* Add some space between the outline and the element */
}

.attribution a:hover,
.attribution a:focus-visible { /* Add hover and focus-visible styles for better accessibility */
  text-decoration: underline; /* Underline the link on hover and focus-visible */
}

.attribution a:focus-visible { /* Add focus-visible styles for better accessibility */
  outline: 2px solid currentColor; /* Use current text color for the outline */
  outline-offset: 3px; /* Add some space between the outline and the element */
}

main { /* Main content styling */
  min-height: 100vh; /* Ensure the main content takes at least the full viewport height */
  display: flex; /* Use flexbox for layout */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}

.profile-card ul { /* Style the unordered list inside the profile card */
  display: grid; /* Use CSS Grid for layout */
  gap: 1rem; /* Add gap between grid items */
}

@media (max-width: 27rem) { /* Media query for screens smaller than 27rem (432px) */
  .profile-card { /* Adjust profile card padding for smaller screens */
    padding: 1.5rem; /* Reduce horizontal padding */
  }
}