/* --- Variables & Reset --- */
:root {
    --main-bg: hsl(233, 47%, 7%);
    --card-bg: hsl(244, 38%, 16%);
    --accent: hsl(277, 64%, 61%);
    --white: hsl(0, 0%, 100%);
    --main-para: hsla(0, 0%, 100%, 0.75);
    --stat-head: hsla(0, 0%, 100%, 0.6);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background-color: var(--card-bg);
    max-width: 327px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.card-image {
    background-color: var(--accent);
    line-height: 0;
}

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

.info {
    padding: 40px 32px 0;
}

h1 {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 16px;
}

h1 span {
    color: var(--accent);
}

.info p {
    font-size: 15px;
    line-height: 25px;
    color: var(--main-para);
    margin-bottom: 40px;
}

.stats {
    padding: 0 32px 32px;
}

.stat {
    margin-bottom: 24px;
}

.stat:last-child {
    margin-bottom: 0;
}

.stat h2 {
    font-size: 24px;
    margin-bottom: 2px;
}

.stat p {
    font-family: 'Lexend Deca', sans-serif;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--stat-head);
}

@media (min-width: 1110px) {
    .card {
        max-width: 1110px;
        display: flex;
        flex-direction: row-reverse;
        text-align: left;
    }

    .header {
        display: flex;
        flex-direction: row-reverse;
    }

    .card-image,
    .card-image img {
        width: 540px;
        height: 446px;
    }

    .info {
        padding: 72px 95px 0 72px;
        width: 570px;
    }

    h1 {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 25px;
    }

    .info p {
        margin-bottom: 70px;
    }

    .stats {
        display: flex;
        padding: 0 72px 72px;
        width: 570px;
        justify-content: space-between;
        bottom: 0;
    }

    .stat {
        margin-bottom: 0;
    }
}

.attribution {
    font-size: 11px;
    text-align: center;
    margin-top: 20px;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}