@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,WONK@0,9..144,100..900,1;1,9..144,100..900,1&display=swap');

:root {
    --blue: rgb(62, 75, 84);
    --orange: rgb(250, 100, 0);
    --white: rgb(255, 245, 235);
}


html {
    background: linear-gradient(to top, var(--blue), var(--orange));
    /* Top to bottom gradient */
    font-size: 1.5em;
    line-height: 1.3;
}

@media screen and (max-width: 900px) {
    html {
        font-size: 1.25em;
    }
}
@media screen and (max-width: 500px) {
    html {
        font-size: 1em;
    }
}


body {
    margin: 0;
    font-family: sans-serif;
    color: var(--blue);
}

h1,
h2,
h3,
h4 {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "SOFT" 0,
        "WONK" 1;
    margin-top: 1rem;
    margin-bottom: 0rem;
    line-height: 1.1;
}

h1,
h2,
h3,
h4,
p,
ul,
img {
    width: 90vw;
    max-width: 35rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

p,
h2+h3 {
    margin-top: .75rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    color: var(--orange);
    font-size: 1.5rem;
}

a {
    color: inherit;
    font-weight: bold;
}

ul {
    font-size: 1rem;
}

li {
    margin: .25rem 0;
}

header,
section,
footer {
    overflow: hidden;
    padding: 1rem 0;
}

header,
section:nth-child(odd) {
    background-color: var(--blue);
    color: var(--white);
}

section:nth-child(even) {
    background-color: var(--white);
}


header h1 {
    display: flex;
    flex-direction: column;
}

header h1 .title {
    color: var(--orange);
    font-size: 3rem;
}

header h1 .subtitle {
    font-size: 1.5rem;
    margin-top: .25em;
}

header ul {
    padding: 0;
}

header ul li {
    list-style: none;
}

header ul strong {
    color: var(--orange)
}

header img {
    display: block;
}
footer {
    background-color: var(--orange);
}

footer h2 {
    color: var(--white);
}
