/* =========================
   1. RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #141414;
    --color-card: #1f1f1f;
    --color-accent: #c5f82a;
    --color-text: #ffffff;
    --color-text-muted: #d1d1d1;
    --color-button: #333;
    --color-button-text: #ffffff;

    --radius: 10px;

    --font-main: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.5;
    background: var(--color-bg);

    display: grid;
    place-items: center;
    min-height: 100vh;

    padding: 0 8px;
}

/* =========================
   2. PROFILE CARD (BLOCK)
========================= */
.profile {
    width: 100%;
    max-width: 360px;

    background: var(--color-card);
    border-radius: var(--radius);

    padding: 24px 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* =========================
   3. HEADER
========================= */
.profile__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.profile__avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}

/* Name */
.profile__name {
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text);
}

/* Location */
.profile__location {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
}

/* Bio */
.profile__bio {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

/* =========================
   4. SOCIAL LINKS
========================= */
.profile__nav {
    width: 100%;
}

.profile__list {
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================
   5. BUTTON (REUSABLE)
========================= */
.profile__link {
    display: block;
    width: 100%;

    background: var(--color-button);
    color: var(--color-button-text);

    text-decoration: none;
    text-align: center;

    font-weight: 600;

    padding: 14px;
    border-radius: var(--radius);

    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover */
.profile__link:hover {
    background: var(--color-accent);
    color: #333;
}

/* Focus (WCAG critical) */
.profile__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Active */
.profile__link:active {
    transform: scale(0.98);
}