/* inter-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Inter";
    font-style: normal;
    font-weight: 300;
    src: url("fonts/inter-v18-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/inter-v18-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    src: url("fonts/inter-v18-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --color-theme: #f5821f;
    --color-bg-dark: #606a71;
    --color-bg-light: #ecedee;
    --font: "Inter";
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font), sans-serif;
    background-color: #fff;
    color: #000;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    gap: 2rem;
    font-size: 16px;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s;
    &:hover {
        color: var(--color-theme);
    }
}

h1 {
    font-weight: 100;
    font-size: 1.75rem;
    border-bottom: 1px solid var(--color-theme);
    color: var(--color-bg-dark);
    padding-bottom: 1rem;
}

h2 {
    color: var(--color-bg-dark);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.15;
}

ul {
    padding: 0 0 0 1rem;
    margin: 0 0 1.5rem 0;
    li {
        &::marker {
            content: "_ ";
            color: var(--color-theme);
        }
    }
}

strong {
    font-weight: 700;
}

em {
    font-weight: 300;
}

header {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
    .img {
        display: flex;
        align-items: center;
        justify-content: center;
        img {
            width: 50rem;
            height: auto;
            max-width: 80%;
        }
    }
}

main {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap: 1rem;
    height: 100%;
    section {
        &.left {
            background-color: var(--color-bg-dark);
            flex: 2;
            padding: 3rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            .text {
                display: flex;
                flex-direction: column;
                color: #fff;
                .left {
                    padding: 1.25rem;
                    font-size: 1.25rem;
                    line-height: 1.25;
                    em {
                        font-size: 1.125rem;
                    }
                }
                .right {
                    border-left: 0;
                    border-top: 1px solid var(--color-theme);
                    padding: 1rem 1.5rem;
                }
            }
        }
        &.right {
            background-color: var(--color-bg-light);
            flex: 3;
            display: flex;
            flex-direction: column-reverse;
            .left {
                width: 100%;
                height: 50vw;
                font-size: 0;
                background-image: url("img/Laptop_AdobeStock_299297527_Comp_midi_full.jpg");
                background-size: cover;
                background-position: 40% center;
                background-repeat: no-repeat;
            }
            .right {
                padding: 1rem 1.5rem 2rem;
                .text {
                    padding-left: 2rem;
                    margin-top: 3rem;
                }
            }
        }
    }
}

footer {
    text-align: center;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    a {
        font-weight: 700;
        font-size: 1.25rem;
    }
}

@media (min-width: 1366px) {
    header {
        flex: 1;
        margin: 0;
    }
    body {
        main {
            flex: 5;
            flex-direction: row;
            section {
                &.right {
                    flex-direction: row;
                    .left {
                        height: 100%;
                        width: 30rem;
                    }
                    .right {
                        padding: 1rem 4rem 4rem;
                        .text {
                            padding-left: 8rem;
                        }
                    }
                }
            }
        }
    }
    footer {
        flex: 1;
    }
}

@media (min-width: 1920px) {
    main {
        section {
            &.left {
                .text {
                    flex-direction: row;
                    gap: 4rem;
                    .right {
                        border-left: 1px solid var(--color-theme);
                        border-top: 0;
                    }
                }
            }
        }
    }
}
