@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/open-sans-v43-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/open-sans-v43-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
    font-size: 62.5%; /* set font size to 10px, browser default is 16px; */
}

body {
    font-family: 'Open Sans', sans-serif;
    color: white;
    background: black;

    --primary: hsl(345 89% 44%);
    --accent: hsl(159 90% 56%);
    --activity-icon-color: white;

    --animation-delay: 300ms;
}

@media (min-width: 600px) {
    /* desktop */

    .layout {
        padding: 7vh 5vw 7vh 5vw;
        background-size: 200% 80%;
        margin: auto;
        place-content: center;
        gap: 18rem;
    }

    .logo {
        width: 40rem;
    }

    .activity-container {
        gap: 6rem;
    }

    .activity-item {
        gap: .5rem;
        font-size: 1.8rem;
    }

    .activity-icon {
        width: 4rem;
        height: 4rem;
    }
}

@media (max-width: 600px) {
    /* mobile */

    .layout {
        padding: 7vh 5vw 7vh 5vw;
        background-size: 200% 120%;
        grid-template-rows: auto 1fr auto;
    }

    .logo {
        width: 70%;
    }

    .activity-container {
        gap: 5.5rem;
        flex-direction: column;
    }

    .activity-item {
        gap: 1.1rem;
        font-size: 1.5rem;
        letter-spacing: .2rem;
    }

    .activity-item > span {
        scale: 1.1 1;
    }

    .activity-icon.sm {
        width: 2.5rem;
        height: 2.5rem;
    }

    .activity-icon.md {
        width: 3rem;
        height: 3rem;
    }
}

.layout {
    position: absolute;
    inset: 0;
    display: grid;

    background-image: radial-gradient(hsl(0 0% 100% / 17%) 0%, hsl(0 0% 100% / 0%) 60%);
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.layout-bottom {
    display: grid;
    place-content: center;
    align-items: center;
    justify-items: center;
}

.logo-container {
    display: grid;
    place-items: center;

    animation-name: show-animation;
    animation-duration: 600ms;
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    animation-fill-mode: forwards;

    transform: translateY(2rem);
    opacity: 0;
}

.activity-container {
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.activity-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 300;
    text-transform: uppercase;

    animation-name: show-animation;
    animation-duration: 200ms;
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    animation-fill-mode: forwards;

    transform: translateX(3rem);
    opacity: 0;
}

.activity-item:nth-child(1) {
    animation-delay: calc(var(--animation-delay) + 300ms);
}

.activity-item:nth-child(2) {
    animation-delay: calc(var(--animation-delay) + 400ms);
}

.activity-item:nth-child(3) {
    animation-delay: calc(var(--animation-delay) + 500ms);
}

@keyframes stagger-animation {
    100% {
        transform: translateX(0rem);
        opacity: 1;
    }
}

.activity-icon {
    fill: var(--activity-icon-color);
    stroke: black;
    --icon-fill-r: var(--activity-icon-color);
    /*--icon-stroke-r: none;*/
    /*--icon-stroke-g: black;*/
}

.contact-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;

    animation-name: show-animation;
    animation-duration: 200ms;
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    animation-delay: calc(var(--animation-delay) + 900ms);
    animation-fill-mode: forwards;

    transform: translateY(3rem);
    opacity: 0;
}

@keyframes show-animation {
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-item {
    cursor: pointer;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    border-radius: 10rem;
    background-color: hsl(0 0% 100% / 15%);
    border: 1px solid hsl(0 0% 100% / 5%);
    padding: 0.5rem 1.8rem;
    transition: background-color 120ms ease-out;

    font-size: 1.4rem;
    font-weight: 300;
}

.contact-item:hover {
    background-color: hsl(0 0% 100% / 25%);
}

a {
    text-decoration: none;
    color: white;
    white-space: nowrap;
}

.icon-container {
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
    stroke-width: 1px;
    box-sizing: content-box;
    pointer-events: none;
}

.contact-icon {
    stroke: white;
    width: 2rem;
    height: 2rem;

    fill: none;
    --icon-fill-r: var(--accent);
    --icon-stroke-r: none;
    --icon-stroke-g: black;
}