:root {
  /* colors */
  --green: hsl(75, 94%, 57%);
  --white: hsl(0, 0%, 100%);
  --gray-700: hsl(0, 0%, 20%);
  --gray-800: hsl(0, 0%, 12%);
  --gray-900: hsl(0, 0%, 8%);

  /* font */
  --font: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  font-size: 14px;
  background-color: var(--gray-900);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  flex-direction: column; /* to allow footer below card */
}

/* card */
.card {
  background-color: var(--gray-800);
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
}

/* avatar */
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

/* text styles */
.name {
  font-weight: 700;
  font-size: 1.5rem;
}

.location {
  color: var(--green);
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
}

.bio {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

/* links */
.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.links a {
  display: block;
  background-color: var(--gray-700);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.links a:hover, .links a:focus {
  background-color: var(--green);
  color: var(--gray-900);
}

/* footer attribution */
footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 11px;
  color: var(--white);
}

footer a {
  color: var(--green);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
