:root {
  /* Colors */
  --primary-color: hsl(0, 0%, 12%);
  --secondary-color: hsl(0, 0%, 20%);
  --tertiary-color: hsl(225, 51%, 67%);
  --background-color: hsl(0, 0%, 8%);
  --text-color: hsl(0, 0%, 100%);

  /* Font size */
  --default-font-size: 4vw;
}

/* Font presets */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-VariableFont_slnt\,wght.ttf")
    format("truetype");
  font-style: normal;
  font-optical-sizing: auto;
}

.inter-regular {
  font-family: "Inter", serif;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0;
}

.inter-semi-bold {
  font-family: "Inter", serif;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 0;
}

.inter-bold {
  font-family: "Inter", serif;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  background-color: var(--background-color);
}

.main-container {
  width: 100%;
  padding: 0 24px;
}

.social-media-card {
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.4rem);
  border-radius: 8px;
  width: 100%;
  max-width: 40rem;
  background-color: var(--primary-color);
}

.social-media-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-image {
  width: 8rem;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-name {
  text-align: center;
  color: var(--text-color);
  font-size: clamp(2rem, 2.5vw, 2.4rem);
}

.profile-location {
  text-align: center;
  color: var(--tertiary-color);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
}

.profile-bio {
  color: var(--text-color);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  text-align: center;
}

.social-media-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  list-style: none;

  li {
    width: 100%;
  }
}

.social-media-button {
  display: block;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-size: clamp(1.4rem, 1.6vw, 1.6rem);
  color: var(--text-color);
  text-decoration: none;
  width: 100%;
  background-color: var(--secondary-color);
  transition: 0.3s ease-out;

  &:hover {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
  }

  &:active {
    transform: scale(0.95);
  }

  &:focus {
    outline: 2px solid var(--tertiary-color);
    outline-offset: 4px;
  }
}

.attribution {
  padding: 0 24px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-color);
  font-size: clamp(1.4rem, 1.6vw, 1.6rem);
}

.attribution-link {
  color: var(--tertiary-color);
}
