/* ----------------------------------------
   Variables (colors, fonts)
   ---------------------------------------- */
:root {
    --green: hsl(75, 94%, 57%);
    --white: hsl(0, 0%, 100%);
    --grey-900: hsl(0, 0%, 8%);
    --grey-800: hsl(0, 0%, 12%);
    --grey-700: hsl(0, 0%, 20%);
    --grey-600: hsl(0, 0%, 30%);
    --font-family: 'Inter', sans-serif;
}

/* ----------------------------------------
   GLOBAL (reset & base styles)
   ---------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    /* body copy = 14px */
}

body {
    background-color: var(--grey-900);
    color: var(--white);
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* ----------------------------------------
   CARD CONTAINER
   ---------------------------------------- */
.card {
    background-color: var(--grey-800);
    width: 300px;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* ----------------------------------------
   AVATAR
   ---------------------------------------- */
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--grey-700);
    margin: 0 auto;
}

/* ----------------------------------------
   NAME, LOCATION, DESCRIPTION
   ---------------------------------------- */
.name {
    margin-top: 1rem;
    font-size: 1.5rem;
    /* 24px */
    font-weight: 700;
    color: var(--white);
}

.location {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    /* ~14px */
    font-weight: 600;
    color: var(--green);
}

.description {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    /* ~14px */
    font-weight: 400;
    /* font-style: italic; */
    color: var(--white);
}

/* ----------------------------------------
   LINKS (buttons)
   ---------------------------------------- */
.links {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-btn {
    display: block;
    text-decoration: none;
    background-color: var(--grey-700);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease-in-out;
}

.link-btn:hover {
    background-color: var(--grey-600);
}

/* ----------------------------------------
   ATTRIBUTION
   ---------------------------------------- */
.attribution {
    margin-top: 1.5rem;
    font-size: 11px;
    color: var(--grey-600);
    text-align: center;
}

.attribution a {
    color: var(--grey-600);
    font-weight: 600;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}


/* -------------------------------------------------------------------
   ADDITIONAL STATES: FOCUS & ACTIVE
   ------------------------------------------------------------------- */

/* 1) Focus state (keyboard/tab navigation) */
.link-btn:focus {
    outline: 2px solid var(--green);
    /* outline to indicate focus */
    outline-offset: 2px;
}

/* 2) Active state (when someone is actually pressing/clicking it) */
.link-btn:active {
    background-color: var(--green);
    /* switch to bright green */
    color: var(--grey-900);
    /* dark text for contrast */
    transform: translateY(1px);
    /* subtle “pressed” effect */
}