* {
    box-sizing: content-box;
}

:root {
    --body-size: 800px;

    --light-blue: #7678ED;
    --dark-blue: #3D348B;
    --gradient: linear-gradient(45deg,
        var(--dark-blue),
        var(--light-blue),
        #F7B801,
        #F18701,
        #F35B04
    );
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    font-size: 18px;
}

h1 {
    font-family: "Lora", serif;
    font-weight: 800;
    font-style: normal;
    font-size: 50px;
    line-height: 1;
    margin: 0;
}

.subtitle {
    font-family: "Lora", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 15px;
}

@media (width >= 768px) {
    h1 {
        font-size: 60px;
    }
}

@media (width >= 992px) {
    h1 {
        font-size: 70px;
    }

    .subtitle {
        font-size: 18px;
    }
}

@media (width >= 1200px) {
    h1 {
        font-size: 80px;
    }

    .subtitle {
        font-size: 20px;
    }
}

@media (width >= 1400px) {
    .subtitle {
        font-size: 22px;
    }
}

.gradient {
    width: 100%;

    background: var(--gradient);
}

.gradient-5 {
    height: 5px;
}

header {
    margin: 30px auto 0;
    max-width: 1200px;
    padding: 0 30px;
}

header > section > .left {
    flex-shrink: 0;
    width: 200px;
}

@media (width >= 860px) {
    header > section > .left {
        width: calc(200px + (100vw - var(--body-size)) / 2 - 30px);
    }
}

@media (width >= 1260px) {
    header > section > .left {
        width: 400px;
    }
}

main {
    margin: 60px auto 30px;
    max-width: var(--body-size);
    padding: 0 30px;
}

section {
    margin-bottom: 30px;
}

@media (width >= 768px) {
    section {
        display: flex;
        align-items: start;
        gap: 30px;
    }
}

section h2 {
    font-family: "Lora", serif;
    font-style: italic;
    font-weight: 500;
    margin: 0 0 15px;
    font-size: 27px;
    line-height: 27px;
}

@media (width >= 768px) {
    section h2 {
        flex-shrink: 0;
        text-align: right;
        width: 200px;
    }
}

section p {
    margin: 0 0 15px;
}

.main-wrapper {
    min-height: calc(100vh - 50px);
}

section p a {
    color: var(--dark-blue);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all .25s;
}

section p a:hover {
    color: var(--light-blue);
}

section p a::after {
    content: "";
    display: block;
    background: var(--gradient);
    height: 1px;
    position: absolute;
    left: 0;
    right: 0;
    transition: all .25s;
    opacity: .5;
}

section p a:hover::after {
    opacity: 1;
}

footer {
    opacity: .2;
    height: 50px;
}
