* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: "Libre Baskerville", serif;
    font-size: 8px;
    background-color: #cacaca;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.5;
    text-align: center;
}

/* add spacing before all h2 headings */
h2 {
    margin-top: 2rem;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.5;
    font-weight: 700;
}

p {
    font-size: 2.5rem;
    line-height: 1.5;
    text-align: justify;
}

main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    box-sizing: border-box;
}

nav {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: black;
    font-size: 2rem;
    gap: 2rem;
}

nav a {
    font-size: 2rem;
    font-variant: small-caps;
    color: black;
    text-decoration: none;
}

nav a.active {
    font-weight: bold;
}

.about-text {
    grid-column: 2 / 4;
}

/* add a spare line between consecutive paragraphs */
.about-text p + p {
    margin-top: 2rem;
}

/* same for the second section if it contains paragraphs */
.about-second p + p {
    margin-top: 2rem;
}

.about-text img {
    display: block;
    margin-top: 10vh;
    margin-bottom: 3vh;
    margin-left: auto;
    margin-right: auto;
    max-width: 15vw;
    height: auto;
}

.about-second {
    height: 100vh;
    grid-row: 2 / 3;
    grid-column: 2 / 4;
}

.image-wrap img {
    max-width: 80%;
    height: auto;
    display: block;
}
