:root {
    --bg: #1a1a1a;
    --surface: #222222;
    --ink: #e0e0e0;
    --muted: #8a8a8a;
    --accent: #e74c3c;
    --hairline: rgba(255, 255, 255, 0.1);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    min-height: 100vh;
    padding: 8vh 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Source Code Pro', monospace;
    background: var(--bg);
    color: var(--ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

body > * {
    position: relative;
    z-index: 1;
}

#body.loading > header,
#body.loading > main {
    display: none !important;
}

#body:not(.loading) > #loading-message {
    display: none !important;
}

#loading-message {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--muted);
    font-size: 1rem;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.profile-photo {
    width: 170px;
    height: 170px;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent);
    border-radius: 50%;
    object-fit: cover;
}

.profile h1 {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1.1;
}

.profile-role {
    margin: 0.8rem 0 0;
    padding-top: 0.6rem;
    font-variant: all-small-caps;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    color: var(--accent);
    border-top: 1px solid currentColor;
}

.links {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 520px;
}

.link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.1rem;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    box-shadow: inset 3px 0 0 var(--accent);
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.link::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: -110%;
    right: -110%;
    bottom: 50%;
    height: 300%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.045) 0%, transparent 40%);
    border-radius: 50%;
    pointer-events: none;
}

.link > * {
    position: relative;
    z-index: 1;
}

.link:hover {
    transform: translateY(-2px);
    border-color: rgba(231, 76, 60, 0.5);
    box-shadow: inset 3px 0 0 var(--accent), 0 6px 20px rgba(0, 0, 0, 0.45);
}

.link-icon {
    flex-shrink: 0;
    width: 1.4rem;
    margin-right: 0.25rem;
    text-align: center;
    font-size: 1.15rem;
    color: var(--accent);
}

.link-label {
    padding-right: 1.25rem;
    white-space: nowrap;
}

.link-value {
    flex: 1;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.link-out {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--muted);
}

@media (max-width: 480px) {
    body {
        padding-top: 6vh;
    }

    .profile-photo {
        width: 130px;
        height: 130px;
    }

    .profile h1 {
        font-size: 2.4rem;
    }

    .profile-role {
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .link {
        gap: 0.5rem;
        padding: 0.85rem 0.9rem;
    }

    .link:has(.link-value) .link-label {
        display: none;
    }

    .link-value {
        font-size: 0.9rem;
        color: var(--ink);
        text-align: left;
    }
}
