/* Text identity */
.name {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--heading);
}

.title {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Layout */
.profile-container {
    max-width: var(--container-width-content);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    text-align: center;
    margin-top: -150px; /* Pull up to center better */
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.icon-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-hover) ease;
    border: 1px solid var(--border-subtle);
}

.icon-link:hover {
    background-color: var(--surface-hover);
    border-color: var(--heading-hover);
    transform: translateY(-2px);
}

.icon-link svg {
    width: 20px;
    height: 20px;
    color: var(--heading);
}

/*
 * Banner — last so image download starts after text is styled
 *
 * Image specs:
 * Full JPEG: 4032×823
 * Small JPEG: 1600×327
 * Avif: q75
 * Webp: q90
 */
.hero-banner {
    width: 100%;
    height: 300px;
    background-color: var(--background);
    background-repeat: no-repeat;
    background-image: image-set(
        url("../images/hero.avif") type("image/avif"),
        url("../images/hero.webp") type("image/webp"),
        url("../images/hero.jpeg") type("image/jpeg")
    );
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* mobile/tablet */
@media (max-width: 768px) {
    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1rem;
    }

    .hero-banner {
        height: 200px;
        background-image: image-set(
            url("../images/hero-small.avif") type("image/avif"),
            url("../images/hero-small.webp") type("image/webp"),
            url("../images/hero-small.jpeg") type("image/jpeg")
        );
    }
}
