:root {
    --very-dark-blue: hsl(230, 29%, 20%);
    --dark-grayish-blue: hsl(230, 11%, 40%);
    --grayish-blue: hsl(231, 7%, 65%);
    --light-grayish-blue: hsl(207, 33%, 95%);
    --red: hsl(0, 100%, 68%);

    --ff-Barlow: "Barlow", sans-serif;
    --ff-Barlow-Condensed: "Barlow Condensed", sans-serif;

    --fw-normal: 400;
    --fw-heavy: 700;

    --fs-regular: 1.125rem;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    user-select: none;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

button {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

h1,
h2,
h3 {
    line-height: 1.1;
}

body {
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: hidden;
}

.header {
    position: relative;
}

.bg-shadow {
    position: absolute;
    width: 50%;
    right: 0;
    top: 0;
    width: 50vw;
    height: 60vh;
    border-bottom-left-radius: 25%;
    background-color: var(--light-grayish-blue);
    z-index: -5;
}

.content-wrapper {
    margin-inline: auto;
    width: min(1280px, 100% - 3rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
}

.header__nav .content-wrapper {
    padding-block: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-btn {
    width: 32px;
    aspect-ratio: 1;
    background-image: url('images/icon-hamburger.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.menu-btn.active {
    background-image: url('images/icon-close.svg');
}

.nav-links {
    --time: 450ms;

    position: absolute;
    bottom: -200px;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    transition: visibility var(--time) ease-in-out, opacity var(--time) ease-in-out, bottom var(--time) ease-in-out;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-links.active {
    visibility: visible;
    opacity: 1;
    bottom: -248px;
}

.nav-links a {
    display: block;
    text-align: center;
    text-transform: uppercase;
    color: var(--very-dark-blue);
    font-weight: var(--fw-heavy);
    font-family: var(--ff-Barlow-Condensed);
    /* font-size: var(--fs-regular); */

}

.nav-links li:last-child a {
    color: var(--grayish-blue);
    border-top: 1px solid var(--grayish-blue);
    padding-block-start: 1.5rem;
}

.intro-section .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-block: 3rem 1rem;
}

.illustration img {
    max-width: revert;
    width: 130%;
}

.text {
    font-size: var(--fs-regular);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.text h4,
.text h1,
.cta-btn {
    font-family: var(--ff-Barlow-Condensed);
}

.text p {
    font-family: var(--ff-Barlow);
}

.tag {
    background-color: var(--very-dark-blue);
    padding: 0.25rem 0.75rem;
    color: var(--light-grayish-blue);
    border-radius: 24px;
    margin-inline-end: 1rem;
}

.text h1 {
    text-transform: uppercase;
    color: var(--very-dark-blue);
    font-size: clamp(2.75rem, 1.9392rem + 3.4595vw, 4.75rem);
}

.text p {
    color: var(--dark-grayish-blue);
}

.title, .context {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: var(--fw-normal);
    color: var(--grayish-blue);
}

.context {
    letter-spacing: 0;
}

.cta-btn {
    background-color: var(--red);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: var(--light-grayish-blue);
    display: inline-block;
    margin-inline-end: 1rem;
    text-transform: uppercase;
    transition: filter 350ms ease;
}
.cta-btn:hover {
    filter: brightness(90%);
}

@media screen and (width >=48em) {
    .menu-btn {
        display: none;
    }

    .nav-links {
        position: revert;
        background: transparent;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        flex-direction: row;
        gap: 4rem;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: 0;
    }

    .nav-links li:last-child a {
        padding-block-start: 0;
        border: none;
        margin-inline-start: 3rem;
        position: relative;
    }

    .nav-links a {
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 3px;
        height: 2px;
        background-color: var(--very-dark-blue);
        width: 0;
        transform-origin: left;
        transition: width 350ms ease-in;
    }

    .nav-links li:last-child a::after {
        background-color: var(--grayish-blue);
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-links li:last-child a::before {
        content: '';
        position: absolute;
        left: -150%;
        top: 50%;
        transform: translateY(-50%);
        width: 0.5rem;
        aspect-ratio: 1;
        background-color: var(--grayish-blue);
        border-radius: 50%;
    }

    .intro-section .content-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .illustration {
        order: 2;
        flex: 1;
    }

    .illustration img {
        width: 150%;
    }

    .text {
        flex: 1;
        gap: 2rem;
    }

    .text .description {
        width: 50%;
    }
}