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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

p,
li {
    text-wrap: pretty;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

#root,
#__next,
body {
    isolation: isolate;
}


:root {
    /* Colors */
    --navy: hsl(233, 47%, 7%);
    --blue: hsl(244, 37%, 16%);
    --purple: hsl(277, 64%, 61%);
    --white-heading-stats: hsl(0, 0%, 100%);
    --white-paragraph: hsl(0, 0%, 100%, 0.75);
    --white-stat-headings: hsla(0, 0%, 100%, 0.6);

    /* Typography */
    --fs-general: .9375rem;
    --ff-inter: "Inter", sans-serif;
    --ff-lexend: "Lexend Deca", sans-serif;
    --fw-400: 400;
    --fw-700: 700;
}

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(5rem, 8vh, 5rem) 1.375rem;
    background-color: var(--navy);
    color: var(--white-heading-stats);
    font-size: var(--fs-general);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: clamp(2rem, 1.12rem + 3.76vw, 4.5rem);
    flex: 1;
}

.hero-stats {
    text-align: start;
    font-family: var(--ff-inter);
    margin-bottom: clamp(1.875rem, 1.215rem + 2.82vw, 3.75rem);
}

.hero-stats .title-stats {
    font-size: clamp(1.6rem, 0.81rem + 1.88vw, 2.5rem);
    font-weight: var(--fw-700);
    max-width: 31.25rem;
    line-height: 1.15;
    letter-spacing: 1.3px;
    margin-bottom: clamp(1rem, 0.648rem + 1.5vw, 2rem);

    span {
        color: var(--purple);
    }
}

.hero-stats .description-stats {
    color: var(--white-paragraph);
    font-weight: var(--fw-400);
    line-height: 1.7;
    letter-spacing: 1.15px;
    max-width: 27rem;
    font-size: clamp(0.813rem, 0.768rem + 0.19vw, 0.938rem);
}

.stats {
    font-family: var(--ff-inter);
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.stat-item {
    display: flex;
    gap: .3125rem;
    flex-direction: column;
    align-items: start;
}

.stats .stat-label {
    text-transform: uppercase;
    color: var(--white-stat-headings);
    font-weight: var(--fw-400);
    letter-spacing: 1.5px;
    font-size: 0.75rem;
}

.stats .stat-number {
    font-size: 1.5rem;
    font-weight: var(--fw-700);
    color: var(--white-heading-stats);
    letter-spacing: 1.5px;
}

.card-stats {
    background-color: var(--blue);
    display: flex;
    border-radius: .5rem;
    width: 100%;
    max-width: 1110px;
    overflow: hidden;
}

.card-image {
    display: flex;
    flex: 1;
    background-color: hsl(277, 64%, 61%);
    border-radius: 0 .5rem .5rem 0;
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: 0.75;
}

@media (max-width: 768px) {

    body {
        place-items: normal;
    }

    .card-content {
        align-items: center;
    }

    .hero-stats {
        text-align: center;
    }

    .card-stats {
        flex-direction: column-reverse;
        border-radius: 1rem;
    }

    .card-image {
        border-radius: 1rem 1rem 0 0;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        align-items: center;
    }
}