@font-face {
    font-family: "Alte Haas Grotesk";
    src: url("../fonts/altehaasgroteskregular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Alte Haas Grotesk";
    src: url("../fonts/altehaasgroteskbold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ease-gentle: cubic-bezier(0.61, 1, 0.88, 1);
    --stagger: 200ms;
}

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

body {
    font-family: "Alte Haas Grotesk", Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
    margin: 0;
    min-height: 100svh;
    display: grid;
    place-content: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

p {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.125rem;
    margin: 0;
}

#bio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    width: fit-content;
}

#headshot {
    display: block;
    width: 13.6875rem;
    height: 13.5rem;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#details {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

@keyframes unblur {
    from {
        opacity: 0;
        filter: blur(6px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1,
#details p {
    animation: unblur 1s var(--ease-gentle) both;
}

#details p:first-of-type {
    animation-delay: var(--stagger);
}

#details p:nth-of-type(2) {
    animation-delay: calc(var(--stagger) * 2);
}

@media (prefers-reduced-motion: reduce) {

    h1,
    #details p {
        animation-name: fade-in;
    }
}

@media (min-width: 48rem) {
    #bio {
        flex-direction: row;
        align-items: center;
        gap: 4.125rem;
        width: auto;
    }

    #headshot {
        width: 12.4375rem;
        height: 16.625rem;
        object-position: center;
        flex-shrink: 0;
    }

    #copy {
        width: 16rem;
    }
}
