.page {
    width: min(100%, var(--max));
    margin: auto;
}

.profile {
    text-align: center;
    padding: 32px 0;
}

.avatar {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    border: 1px solid var(--border);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.username {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.bio {
    max-width: 540px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
}

.sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section h2 {
    margin: 0 0 8px 4px;
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

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

.link-card {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 12px 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
    color: inherit;

    text-decoration: none;

    transition:
        background-color .16s,
        border-color .16s,
        transform .16s;
}

.link-card:hover {
    background: var(--hover);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

.link-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;

    border-radius: 12px;
    background: rgba(255, 255, 255, .06);

    font-size: 1.15rem;
}

.link-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    margin: 0 12px;
}

.link-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .98rem;
}

.link-text small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
}

.arrow {
    color: var(--muted);
    font-size: 1.15rem;
}

footer {
    width: min(100%, var(--max));
    margin: 48px auto 0;
    color: var(--muted);
    text-align: center;
    font-size: .78rem;
}


/* ================================
   YouTube Menu
================================ */

.youtube-menu {
    position: relative;
    width: 100%;
}

.youtube-main {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.youtube-main .youtube-arrow {
    transition: transform .2s ease;
}


/* ================================
   YouTube Submenu
================================ */

.youtube-submenu {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 70%;
    max-height: 0;
    margin: 8px auto 0;

    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        max-height .25s ease,
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* ================================
   Open State
================================ */

.youtube-menu.is-open .youtube-submenu {
    max-height: 300px;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

.youtube-menu.is-open .youtube-arrow {
    transform: rotate(90deg);
}


/* ================================
   Submenu Items
================================ */

.youtube-submenu-item {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 56px;
    padding: 10px 12px;

    box-sizing: border-box;

    border: 1px solid transparent;
    border-radius: 12px;

    background: rgba(255, 255, 255, .20);

    text-decoration: none;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

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

.youtube-submenu-item:hover {
    background: rgba(255, 255, 255, .27);
    border-color: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}