@import url("./fonts.css");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  background: var(--grey-900);
  font-size: 14px;
  font-family: "Inter";
  font-weight: 400;
  color: var(--white);
  padding: 16px;
}

.card {
  background: var(--grey-800);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  width: 100%;
  max-width: 350px;

  .card__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    img {
      width: 100px;
      border-radius: 50%;
    }
  }
  .card__title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
  }
  .card__geo {
    color: var(--green);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
  }
  .card__bio {
    font-weight: 400;
  }
  .card__social {
    display: flex;
    flex-direction: column;
    gap: 16px;

    .card__social-link {
      padding: 16px 12px;
      background: var(--grey-700);
      color: var(--white);
      text-decoration: none;
      border-radius: 4px;
      text-align: center;
      font-weight: 600;
      transition: all 0.2s ease-in-out;

      &:hover {
        background-color: var(--green);
        color: var(--grey-700);
      }
    }
  }
}
