:root {
    --bg: #eef0f4;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.10), 0 6px 16px rgba(0, 0, 0, 0.06);
    --c-email: #e3503e;
    --c-linkedin: #0a66c2;
    --c-github: #7c3aed;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1117;
        --card: #161b22;
        --text: #e6edf3;
        --muted: #8b949e;
        --border: rgba(255, 255, 255, 0.08);
        --shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.35);
        --c-linkedin: #58a6ff;
        --c-github: #a371f7;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem
}

.card {
    background: var(--card);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 764px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border)
}

.avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--border);
    position: relative;
    overflow: hidden
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 250ms;
    filter: grayscale(1) contrast(1.1)
}

.info {
    flex-grow: 1;
    width: 100%
}

h1 {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: .2rem
}

.byline {
    font-size: .95rem;
    color: var(--muted);
    margin-bottom: 1.75rem
}

.links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%
}

.link-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    text-decoration: none;
    padding: .6rem .75rem;
    border-radius: .65rem;
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, box-shadow .15s;
    color: inherit
}

.link-item:hover {
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07)
}

.link-email {
    border-left-color: var(--c-email)
}

.link-linkedin {
    border-left-color: var(--c-linkedin)
}

.link-github {
    border-left-color: var(--c-github)
}

.link-badge {
    width: 34px;
    height: 34px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.icon {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex-shrink: 0
}

.link-email .link-badge {
    background: var(--c-email)
}

.link-linkedin .link-badge {
    background: var(--c-linkedin)
}

.link-github .link-badge {
    background: var(--c-github)
}

.link-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left
}

.link-service {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted)
}

.link-value {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap
}

@media (min-width:768px) {
    .card {
        flex-direction: row;
        text-align: left;
        padding: 2.5rem 3rem;
        gap: 2.5rem;
        align-items: center
    }

    .avatar {
        width: 240px;
        height: 240px
    }

    .avatar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 71, 138, .3);
        border-radius: 50%;
        pointer-events: none;
        transition: opacity 250ms;
        opacity: 1;
        z-index: 2
    }

    .avatar:hover::before {
        opacity: 0
    }

    .avatar:hover {
        box-shadow: 0 0 0 3px var(--card), 0 0 0 7px #192d4a
    }

    .avatar:hover img {
        filter: grayscale(.2) contrast(1);
        transform: scale(1.03)
    }

    .link-service {
        font-size: .8rem
    }

    .link-value {
        font-size: .9rem
    }
}