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

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #08090d;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    background-image:
        linear-gradient(rgba(8, 9, 13, 0.82), rgba(8, 9, 13, 0.96)),
        url("bgimg.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    width: 540px;
    max-width: calc(100% - 30px);
    margin: auto;
    padding: 45px 0 25px;
}

.profile {
    text-align: center;
    margin-bottom: 28px;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0066, #8b00ff);
}

.avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #08090d;
}

.name {
    font-size: 25px;
    font-weight: bold;
}

.username {
    margin-top: 4px;
    color: #888;
    font-size: 13px;
}

.website {
    display: inline-block;
    margin-top: 12px;
    color: #ff0066;
    font-size: 14px;
    font-weight: bold;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.link {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 13px 8px 8px;
    background: rgba(20, 21, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: 150ms;
}

.link:hover,
.link:focus {
    background: rgba(255, 0, 102, 0.12);
    border-color: rgba(255, 0, 102, 0.6);
    outline: none;
}

.link img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 9px;
}

.link div {
    flex: 1;
    min-width: 0;
}

.link strong {
    display: block;
    font-size: 15px;
}

.link span {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 11px;
}

.link b {
    color: #555;
    font-size: 27px;
    font-weight: normal;
}

.link:hover b,
.link:focus b {
    color: #ff0066;
}

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #555;
    font-size: 10px;
}

footer span:first-child {
    color: #888;
}

@media (max-width: 600px) {
    main {
        padding-top: 30px;
    }

    .profile {
        margin-bottom: 22px;
    }

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

    .name {
        font-size: 22px;
    }

    .link {
        min-height: 65px;
    }

    .link img {
        width: 48px;
        height: 48px;
    }
}