body {
    font-family: Geneva;
    font-size: 12pt;
    background: linear-gradient(to right bottom, #EFF5EF, #EFEFFA);
    padding-bottom: 2rem;
}

h1 {
    background: linear-gradient(to left, #52848f, #5cAeA9);
    border: 1px solid #52848f;
    border-radius: 5px;
    color: #113333;
    font-size: 64pt;
    padding: 15px 20px 15px 50px;
    margin: 0;
    font-weight: normal;
}

h2 {
    background: linear-gradient(to right, #52848f, #5cAeA9);
    border: 1px solid #52848f;
    border-radius: 5px;
    color: #113333;
    font-size: 20pt;
    padding: 10px 20px 10px 50px;
    margin-top: 2rem;
    font-weight: normal;
}

h1 + h2 {
    margin-top: 0;
}

p {
    font-size: 12pt;
    color: #113333;
    font-family: Verdana;
    text-align: justify;
}

a {
    font-size: 12pt;
    color: #663300;
}

a:visited {
    color: #663300;
}

li {
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 12pt;
    color: #113333;
    text-align: justify;
}

header {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    gap: 2rem;
}

header article {
    width: calc((100% - 4rem)/3);
}

header > img {
    max-height: 500px;
    align-self: flex-end;
}

.narrow {
    width: 70%;
}

.introBoxes {
    margin: 1rem auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1rem;
    column-gap: 2rem;
}

.introBoxes article {
    margin: 0;
    display: block;
    width: calc((100% - 4rem)/3);
}

.introBoxes .withImage {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.introBoxes article h3 {
    font-weight: normal;
    font-size: 2rem;
    border-bottom: 2px solid #555;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.introBoxes .withImage img {
    align-self: center;
    bottom: 0;
    border: 1px solid black;
} 

.examples {
    margin: 1rem auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1rem;
}

.examples figure {
    margin: 0;
    display: block;
    width: 33%;
    text-align: center;
}

.examples img {
    width: 340px;
    height: 250px;
    border: 1px solid black;
    vertical-align: middle;
}

.gems {
    margin: 1rem auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    row-gap: 1rem;
    margin-bottom: 1rem;
}

.gems figure {
    margin: 0;
    display: block;
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gems figcaption {
    text-align: center;
    text-wrap: balance;
    width: 80%;
    margin-top: 0.5rem;
}

.gems img {
    border: 1px solid black;
    vertical-align: middle;
}

@media screen and (max-width: 1900px) and (min-width: 1400px) {
    .narrow {
        width: 1300px;
    }
}

@media screen and (max-width: 1400px) {
    .narrow {
        width: calc(100% - 1rem);
    }
}

@media screen and (max-width: 1300px) {
    header article {
        width: unset;
    }

    header > img {
        max-width: 50%;
    }

    .introBoxes article {
        width: 100%;
    }

    .introBoxes .withImage {
        flex-direction: row;
    }

    .examples figure {
        width: calc((100% - 2rem)/2);
    }
  
    .gems figure {
        width: calc((100% - 2rem)/2);
    }
}

@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
    }

    header > img {
        align-self: center;
        max-width: 100%;
        max-height: 400px;
    }

    h2 {
        padding: 10px 20px;
    }

    .introBoxes .withImage {
        flex-direction: column;
    }

    .examples figure {
        width: 100%;
    }
  
    .gems figure {
        width: 100%;
    }
}