@font-face {
    font-family: Inter;
    src: url(./fonts/Inter-VariableFont_opsz\,wght.ttf);
}
@font-face {
    font-family: Lexend Deca;
    src: url(./fonts/LexendDeca-VariableFont_wght.ttf);
}

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

:root {
    --navy950main_background: hsl(233, 47%, 7%);
    --blue950_card_background: hsl(244, 37%, 16%);
    --purple500_accent: hsl(277, 64%, 61%);
    --white_main_heading_stats: hsl(0, 0%, 100%);
    --white_main_paragraph: hsla(0, 0%, 100%, 0.75);
    --white_stat_headings: hsla(0, 0%, 100%, 0.6);
}

html, body {
    height: 100%;
}

body {
    background-color: var(--navy950main_background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    width: calc(100% - 12vw);
    background-color: var(--blue950_card_background);
    max-width: 450px;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
}

figure {
    position: relative;
}
.overlay {
    position: absolute;
    inset: 0;
    background-color: var(--purple500_accent);
    opacity: 0.5;
    border-radius: 1.25rem 1.25rem 0 0;
}

picture img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-inline-size: 100%;
    max-height: 250px;
    border-radius: 1.25rem 1.25rem 0 0;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    gap: 1rem;
}
.text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.heading {
    font-size: 1.7rem;
    text-align: center;
    font-family: Inter;
    color: white;
    font-weight: 700;
}

.heading span {
    color: var(--purple500_accent);
}

.desc {
    text-align: center;
    font-family: Inter;
    color: var(--white_main_paragraph);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 175%;
}

.statistics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.statistic {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Lexend Deca;
    gap: 0.5rem;
}

.stat {
    font-size: 1.55rem;
    color: white;
}
.info {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--white_stat_headings)
}

@media (min-width: 1440px) {
    .container {
        display: flex;
        flex-direction: row-reverse;
        max-width: 1200px;
    }
    figure {
        width: 50%;
    }
    picture img {
        max-height: none;
        height: 100%;
    }
    .overlay, picture img {
        border-radius: 0 1.25rem 1.25rem 0;
    }
    .content {
        padding: 4rem 2.5rem;
        width: 50%;
        justify-content: space-around;
    }
    .heading {
        font-size: 3rem;
        text-align: left;
    }
    .desc {
        font-size: 1.25rem;
        text-align: left;
    }
    .statistics {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
    .stat {
        font-size: 2.5rem;
    }
    .info {
        font-size: 0.9rem;
    }
}