:root {
    --bg-color: #E9DED8;
    --text-color: #030826;
    --accent-color: #295899;

}

@font-face {
    font-family: "typeheadline";
    src: url("../fonts/atwriter.ttf");
}

html {
    scroll-behaviour: smooth;
    font-size: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    scrollbar-gutter: stable both-edges;
    scrollbar-color: #444 #ccc;
    -webkit-font-smoothing: antialiased;
    font-family: Arial, Helvetica, sans-serif;
    width: 60%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font-size: 100%;
    line-height: calc(1em + 0.8rem);
}

h1 {
    overflow-wrap: break-word;
    text-wrap: balance;
    text-align: center;
}

ul {
    list-style: none;
    line-height: 2em;
    margin-top: 1rem;
}

p {
    text-align: center;
    &:first-letter{
        font-size: 1.2em;
    }
}

a {
    color: var(--text-color);

    &:visited {
        color: inherit;
    }

}

h1.specfont {
    margin-top: 2rem;
    font-family: typeheadline, "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 3rem;
    @media (max-width: 500px) {
        font-size: 2rem;
    }

    color: var(--accent-color);
}

h2 {
    font-size: 1.5rem;
    font-family: typeheadline, "Palatino Linotype", "Book Antiqua", Palatino, serif;
    color: var(--accent-color);
    margin-top: 2rem;

    &.center {
        text-align: center;
    }

}

header {
    width: 95%;
    margin-inline: auto;
    margin-top: 3rem;
    @media (max-width: 500px) {
        margin-top: 1rem;
    }
}

main {
    margin-top: 3rem;
    @media (max-width: 500px) {
        margin-top: 2rem;
    }
}

.left {
    text-align: left;

    p {
        text-align: left;
    }

}

section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
    margin-inline: auto;
    @media (min-width: 600px) {
        width: 70%;
        font-size: 1.2rem;
    }

    @media (min-width: 1000px) {
        width: 50%;
        font-size: 1.4rem;
    }
}

footer {
    text-align: center;
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;

    a {
        display: inline-block;
    }

}


