html {
    padding: 0;
    margin: 0;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F6EFE3;
    color: #223144;
    font-family: 'Space Grotesk', Verdana, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

h1 {
    font-size: 3.8rem;
    line-height: 3.8rem;
}

h2 {
    font-size: 3rem;
    line-height: 3rem;
}

h3 {
    font-size: 2.44rem;
    line-height: 2.44rem;
}

h4 {
    font-size: 1.95rem;
    line-height: 1.95rem;
}

h5 {
    font-size: 1.56rem;
    line-height: 1.56rem;
}

h6 {
    font-size: 1.25rem;
    line-height: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: 'Instrument Serif', serif;
    color: #223144;
    letter-spacing: -0.03em;
    font-weight: normal;
    text-align: justify;
    text-justify: inter-word;
}

header {
    padding: 20px 40px;
    margin: 0 0 40px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

header .header-content {
    max-width: 890px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

header a {
    text-decoration: none;
}

nav ul {
    margin: 0;
    padding: 20px 0;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

nav ul li {
    display: block;
}

nav a {
    font-weight: bold;
    color: #223144;
    text-transform: uppercase;
    text-decoration: none;
}

nav a.active {
    border-bottom: #223144 solid 2px;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 890px;
    max-width: 90%;
    min-height: 100%;
    margin: 20px auto;
    padding: 0 20px;
}

.btn-primary, .btn-secondary {
    color: #223144;
    border: 2px solid #223144;
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 2px 2px rgba(0,0,0,0.1);
}

.btn-primary {
    color: #fff;
    background-color: #223144;
}

footer {
    background-color: #223144;
    color: #fff;
    margin: 0;
    padding: 10px 20px;
    text-align: center;
    font-weight: lighter;
    font-size: 12px;
}


@media screen and (max-width: 768px) {
    .header-content {
        padding: 20px 0;
        margin: 0 auto 20px;
        max-width: 90%;
        flex-direction: column;
        align-content: center;
    }
    
    h1 {
        font-size: 3rem;
    }

    nav ul {
        padding: 0;
    }

    main {
        max-width: 90%;
        padding: 20px 0;
    }

}