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

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

p { margin: 0; line-height: 1.5; }

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

@supports (font-variation-settings: normal) {
    :root { font-family: InterVariable, sans-serif; }
}

@keyframes wheeeee {
    from {
        rotate: 0deg;
    }
    to {
        rotate: 360deg;
    }
}

nav button {
    all: unset;
    background-color: white;
    border-radius: 2em;
    margin: 0.35em;
    padding: 0 2em;
}

body {
    background-color: #2f2f2f;
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70em;
    margin: 2em auto 0 auto;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.logo {
    width: 4em;
    animation: 5s linear 0s infinite normal wheeeee;
}

header {
    width: 100%;
    padding: 1.5rem 0;
    position: sticky;
    z-index: 2; /* prevent carousel overlap*/
    top: 0;
}

nav {
    display: flex;
    font-size: 1.1rem;
    justify-content: space-between;
    background-color: rgba(109, 109, 109, 0.5);
    backdrop-filter: blur(6px);
    border-radius: 9999px;

    .links {
        padding: 1em 1.5em;
    }
}

.links {
    display: flex;
    text-align: center;
    gap: 2em;
    align-items: center;

    a {
        gap: 1em;
        text-decoration: none;
        color: white;
    }
}

.swiper {
    width: 100%;
    margin: 2.5em 0;
    border-radius: 1.5em;
    overflow: hidden;
}

.swiper-slide {
    display: grid;

    img, .capt {
        grid-area: 1/2;
    }

    h1 {
        font-weight: bold;
        line-height: 1;
    }
}

.one {
    align-items: center;
    justify-items: end;

    h1 {
        font-size: 4.5em;
        padding-right: 1em;
    }
}

.two {
    color: white;

    h1 {
        font-size: 5em;
        padding-left: 0.5em;
    }
}

.three, .four {
    color: white;
    align-items: end;

    .capt {
        padding: 2em;
    }

    h1 {
        font-size: 4em;
        margin: 1rem 0;
    }
}

.widgets {
    display: flex;
    justify-content: space-between;
    gap: 3em;
    margin: 1em 0;
    color: white;

    img {
        border-radius: 0.75em;
    }

    figure {
        all: unset;
        padding: 1.5em;
        background-color: rgba(217, 217, 217, 0.1);
        border-radius: 1em;

        a {
            display: block;
            color: white;
            font-weight: bold;
            margin-top: 2em;
        }
    }

    figcaption {
        p {
            color: #a0a0a0;
        }
    }
}

.lastword {
    color: white;
    display: flex;
    gap: 2em;
    margin: 4em 0;
    padding: 4em;
    background-color: rgba(217, 217, 217, 0.1);
    border-radius: 1em;


    h1 {
        font-size: 4em;
        text-wrap: pretty;
        margin: 0;
    }

    p {
        margin: 2em 0;
    }

    img {
        width: 25em;
        padding: 0 2em;
        height: auto;
    }

    button {
        all: unset;
        background-color: white;
        color: black;
        padding: 1em 2em;
        border-radius: 2em;
    }
}

footer {
    padding: 0 2em;
    background-color: #181818;
    color: white;

    .brand {
        display: flex;
        align-items: center;
        p {
            font-size: 2em;
            padding: 1em 0.5em;
        }
    }

    .links img {
        width: 2em;
        filter: invert();
    }

    .top, .bottom {
        display: flex;
        padding: 2em 0;
        justify-content: space-between;
    }

    .top {
        border-bottom: 1px solid white;
    }
}