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

html, body {
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

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

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

p, h1, h2, h3, h4, h5 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5 {
    text-wrap: balance;
}

/* Default */

body {
    font-family: "Inter", "Lexend Deca", sans-serif;
    background-color: hsl(233, 47%, 7%);
    color: hsl(0, 0%, 100%);
}

.section {
    display: grid;
    place-content: center;
    height: 100vh;
}

/* Styles - Utilities*/

.container {
    max-width: 1440px;
    margin: 0 auto;
}

.section__container {
    padding: 0 16px;
}

.section__wrapper {
    display: flex;
    max-width: 1100px;
    background-color: hsl(244, 38%, 16%);
}

.section__details {
    flex: 1 1 560px;
    padding: 72px 112px 62px 72px;
}

.section__title {
    font-family: "Inter";
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 32px;
}

.section__title--clr {
    color: hsl(277, 64%, 61%);
}

.section__text {
    font-family: "Inter";
    font-family: 400;
    font-size: 0.9375rem;
    color: hsla(0, 0%, 100%, 0.75);
    margin-bottom: 72px;
}

.section__items {
    display: flex;
}

.section__item {
    margin-right: auto;
}
.section__item:nth-child(3) {
    margin-right: 0;
}

.section__item-numb {
    font-family: "Inter";
    font-weight: 700;
    font-size: 1.5rem;
    color: hsl(0, 0%, 100%);
}

.section__item-text {
    font-family: "Lexend Deca";
    font-weight: 400;
    font-size: 0.75rem;
    color: hsla(0, 0%, 100%, 0.75);

}

.section__cover-wrapper {
    flex: 1 1 540px;
        isolation: isolate;
        position: relative;
        background: url("./images/image-header-desktop.jpg") center center / cover no-repeat;
}

.section__cover-overlay {
    position: absolute;
    inset: 0;
    background-color: hsla(277, 64%, 61%, 0.48);
}

@media (max-width: 61rem) {
    .section__wrapper {
        flex-direction: column;
        text-align: center;
        border-radius: 12px;
        overflow: hidden;
    }
    .section__cover-wrapper {
        order: -1;
    }
    .section__details {
        padding: 72px 62px;
    }
    .section__items {
        margin-bottom: 0;
    }
}

@media (max-width: 34rem) {
    .section__wrapper {
        max-width: 330px;
    }
    .section__title {
        font-size: 1.75rem;
    }
    .section__items {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .section__item {
        margin: 0;
    }
    .section__cover-wrapper {
        flex: 1 1 400px;
    }
}

