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

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

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

body {
    background-color: var(--grey-900);
    min-height: 100vh;
    font-family: 'inter', sans-serif;
    display: grid;
    place-items: center;
}

.profile-card {
    background-color: var(--grey-800);
    width: 100%;
    padding: 2.5rem 2rem;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;

}

.avatar{
    height: 100px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 1.5rem;
    object-fit: cover;

}

h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--green);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.bio {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 400;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links{
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
}

.social-links li{
    width: 100%;
    
}

.social-links a {
    width: 100%;
    background: var(--grey-700);
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    padding: 0.9rem 0;
    outline: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


.social-links a:hover,
.social-links a:focus {
    color: var(--grey-900);
    background: var(--green);
    transform: translate(-2px, -2px);
}

.attribution a {
    color: var(--white);
    text-decoration: none;
}


@media (max-width: 375px) {
    .profile-card {
        padding: 1.5rem 0.5rem;
    }
    .avatar {
        height: 80px;
    }
}