:root {
    --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color-scheme: light dark;

    --light-color: #000;
    --dark-color: #fff;

    --light-muted-color: #5c5c5c;
    --dark-muted-color: #a8a8a8;

    --light-fill: #1F2041;
    --dark-fill: #5052A5;
}

* {
    box-sizing: border-box;
    background-color: light-dark(var(--light-bg), var(--dark-bg));
    color: light-dark(var(--light-color), var(--dark-color));
    line-height: 1.56;
}

a {
    color: light-dark(var(--light-color), var(--dark-color));
    text-decoration: none;
}

p, li {
    hyphens: auto;
}

h3 {
    margin-top: 0px;
    margin-bottom: 0px;
}

body {
    font-family: var(--system-ui);
    font-size: 1.2rem;
    margin: 0px;
}

section {
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
}

section.hero {
    margin: 0px;
    max-width: 100%;
}

.hero {
    display: flex;
    flex-flow: row nowrap;
    gap: 15px;
    background-image: url("img/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    height: 700px;
}

.hero-text {
    max-width: 600px;
    align-self: flex-end;
    margin-left: 120px;
    margin-bottom: 140px;
    color-scheme: dark;
}

.hero-heading-small {
    font-size: 1.8rem;
    margin-bottom: 0px;
}

.hero-heading-large {
    font-size: 3rem;
    margin-top: 0px;
    line-height: 1.2;
}

ul {
    margin-top: 5px;
}

.benefits-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 50px;
    padding: 30px 0px;
}

.icon-container {
    width: 25%;
    display: flex;
    place-items: center;
    align-items: center;
    justify-content: center;
}

.icon-container.img {
    width: 45%;
}

.icon {
    width: 40%;
    margin: auto;
    fill: var(--dark-fill);
}

.icon-img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    border-radius: 5px;
}

.cta {
    display: flex;
    flex-flow: column;
    align-items: center;
    border: 2px dashed var(--dark-fill);
    padding: 25px;
    border-radius: 5px;
}

.cta-button-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 15px;
}

.cta-button {
    padding: 10px 15px;
    border: 1px solid;
    border-radius: 5px;
}

summary {
    font-weight: bold;
    margin-bottom: 20px;
}

footer {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    gap: 15px;
}

.footer-nav a {
    color: light-dark(var(--light-muted-color), var(--dark-muted-color));
}
.footer-nav a:hover {
    color: light-dark(var(--light-color), var(--dark-color));
}

@media screen and (max-width: 900px) {
    .hero {
        height: 500px;
    }
    .hero-text {
        margin-left: 0px;
        margin-bottom: 0px;
    }
    .hero-heading-large {
        font-size: 1.9rem;
    }
    .hero-heading-small {
        font-size: 1.4rem;
    }
    section {
        margin: 40px auto;
    }
    .cta {
        text-align: center;
    }
}

@media screen and (max-width: 450px) {
    .hero {
        height: 620px;
        background-size: contain;
        background-position: top;
    }
    .hero-text {
        color-scheme: unset;
    }
    .hero-heading-large {
        font-size: 1.3rem;
    }
    .hero-heading-small {
        font-size: 1.2rem;
    }
    .benefits-container {
        flex-flow: column;
    }
    .icon-container {
        width: 65%;
        margin: 0px auto;
    }
    .icon-container.img {
        width: 100%;
        margin: 0px;
    }
    .cta-button-container {
        flex-flow: column;
    }
    .footer-nav {
        flex-flow: column;
        align-items: center;
    }
}