@font-face {
  font-family: "Inter";
  src: url(./assets/fonts/Inter-VariableFont_slnt\wght.ttf);
}

: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%);

  --font-family: "Inter", sans-serif;

  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-24: 24px;
  --spacing-40: 40px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--grey-900);
  color: var(--white);
  line-height: 1.5;
}

.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile {
  background-color: var(--grey-800);
  width: 327px;
  padding: var(--spacing-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-24);
  text-align: center;
  border-radius: 12px;

  @media (width >= 768px) {
    width: 384px;
    padding: var(--spacing-40);
  }

  .profile__image {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .profile__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);

    .profile__name {
      font-size: 1.5rem;
      font-weight: var(--font-weight-semibold);
    }

    .profile__location {
      font-size: 0.875rem;
      font-weight: var(--font-weight-bold);
      color: var(--green);
    }
  }

  .profile__bio {
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
  }

  .profile__social {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-16);
    width: 100%;

    .profile__social-link {
      text-decoration: none;
      padding: var(--spacing-12);
      color: var(--white);
      background-color: var(--grey-700);
      border-radius: 8px;
      font-size: 0.875rem;
      font-weight: var(--font-weight-bold);
      transition: all 0.4s ease;

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