@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Oswald:wght@600&display=swap');


html {
    padding: 30px;
    padding-top: 200px;
    padding-bottom: 100px;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 18px;
    max-width: 600px;
    margin: auto;
    line-height: 1.5;
    font-size: 20px;
    font-weight: 400;
}

h1, h2 {
    font-family: 'Oswald', sans-serif;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

nav *{
    margin: 0;
}

.spacer {
    flex: 1;
    margin: -20px -10px;
}

header {
    background-color: #4B2790;
    padding: 20px;
    color: white;
    margin: 0 -20px;
}

#logo img {
    border: none;
}

a {
    color: #333;
}

a:hover {
    background-color: #4B2790;
    color: white;
}

img {
    max-width: 100%;
    border: 1px solid rgba(0,0,0,0.3);
}

.caption {
    text-transform: uppercase;
    opacity: 0.8;
    width: 100%;
    margin-bottom: 2em;
    margin-top: 0.5em;
    text-align: center;
    font-size: 0.7em;
}

@media (prefers-color-scheme: dark) {
    body, nav {
        background-color: #222;
        color: #ddd;
    }

    a {
        color: #ddd;
    }
}


@media (max-width: 600px) {
    nav {
        font-size: 0.8em;
    }
    #logo {
        display: none;
    }
}

@media (max-width: 400px) {
    nav {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
    }
    nav .spacer {
        display: none;
    }
}
