:root {
  --grey-900: hsl(0, 0%, 8%);
  --grey-800: hsl(0, 0%, 12%);
  --grey-700: hsl(0, 0%, 20%);
  --white: hsl(0, 0%, 100%);
  --green: hsl(75, 94%, 57%);
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-VariableFont_slnt\,wght.ttf")
    format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/static/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/static/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/static/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

body {
  background-color: var(--grey-900);
  color: white;
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  height: 100vh;
  align-items: center;
}

.main {
  background-color: var(--grey-800);
  width: 100%;
  max-width: 310px;
  padding: 24px;
  border-radius: 16px;
}

header {
  display: grid;
  justify-items: center;
  text-align: center;
}

figure img {
  border-radius: 50%;
  width: 80px;
}

figcaption > h1 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
}

figcaption h2 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--green);
}

figcaption p {
  font-size: 16px;
  font-weight: 100;
  margin-top: 30px;
  margin-bottom: 0;
}

.social-links ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 0;
}

.social-links li {
  background-color: var(--grey-700);
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
}

.social-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
}

.social-links li:hover {
  background-color: var(--green);
}

.social-links li:hover a {
  color: var(--grey-900);
  font-weight: 600;
}
