@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;600&family=Source+Sans+3:wght@300;600&display=swap');

/* =========================================================
   RESET
   ========================================================= */

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

html {
    font-size: 16px;
}

html,
body,
h1,
p,
ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    background: #302a2a url("assets/images/bg.jpg?v=3a39a049") center / cover fixed no-repeat;
    font-family: "Source Sans 3", sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: none;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        url("background.svg") center / 640px repeat,
        linear-gradient(
            190deg,
            transparent 30%,
            rgba(0, 0, 0, 0.631) 67%,
            #302a2a 100%
        );
}

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem;
}

.content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.content-inner {
    width: min(100%, 35rem);
    text-align: center;
}

.content-inner > * + * {
    margin-top: 1.25rem;
}

/* =========================================================
   PROFILE IMAGE
   ========================================================= */

.profile-image {
    display: block;
    width: 6.75rem;
    margin: 0 auto 2rem;
}

.profile-image .frame {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.569);
    border-radius: 50%;
}

.profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.375rem;
    object-fit: cover;
    border-radius: 50%;
}

/* =========================================================
   TEXT
   ========================================================= */

.title {
    color: #fff;
    font-family: "Source Sans 3", sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 0.75;
}

.bio {
    width: min(100%, 22.5rem);
    margin-inline: auto;
    color: #fff;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.875;
}

/* =========================================================
   SOCIAL CARD
   ========================================================= */

.socials {
    width: 100%;
    margin-top: 2rem;
    padding: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.271);
    border-radius: 1.25rem;
    background:
        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.078),
            rgba(255, 255, 255, 0.271)
        );
    -webkit-backdrop-filter: blur(0.3rem);
    backdrop-filter: blur(0.3rem);
}

.socials-wrapper {
    width: 100%;
}

.socials-inner {
    padding: 2rem;
    border-radius: calc(1.25rem - 1px);
}

/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.social-links a {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: 3.5rem;
    padding: 0 1.75rem;

    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.369);
    border-radius: 0.625rem;

    background:
        linear-gradient(
            221deg,
            rgba(255, 255, 255, 0.122) 3%,
            transparent 96%
        ),
        rgba(255, 255, 255, 0.071);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.231);
    transform: scale(1.0425);
}

.social-links svg {
    flex: 0 0 1.5em;
    width: 1.5em;
    height: 1.5em;
    margin-left: 0.5em;
    fill: #fff;
    pointer-events: none;
}

.social-links .label {
    flex: 1;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

/* =========================================================
   LOAD-IN ANIMATION
   ========================================================= */

.profile-image,
.title,
.bio,
.socials,
.social-links li {
    animation: fade-up 1s ease both;
}

.profile-image { animation-delay: 0ms; }
.title         { animation-delay: 100ms; }
.bio           { animation-delay: 200ms; }
.socials       { animation-delay: 300ms; }

.social-links li:nth-child(1) { animation-delay: 425ms; }
.social-links li:nth-child(2) { animation-delay: 550ms; }
.social-links li:nth-child(3) { animation-delay: 675ms; }
.social-links li:nth-child(4) { animation-delay: 800ms; }
.social-links li:nth-child(5) { animation-delay: 925ms; }

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 736px) {
    .page {
        padding: 2rem 1.75rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .socials-inner {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .social-links a {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .page {
        padding: 1.5rem 1.3125rem;
    }

    .socials-inner {
        padding: 0.9375rem;
    }

    .social-links {
        gap: 0.9375rem;
    }

    .title {
        font-size: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}
}
