body {
    display: grid;
    margin: 0;
    justify-content: center;
    width: 100%;
    font-family: sans-serif;
    font-size: 2.5em;
}

body a { text-decoration: none; }
body a:hover { text-decoration: underline; }

main {
    width: calc(min(100vw, 1024px) - 4rem);
    padding: 0 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

header > h1 {
    margin: 0;
    font-size: 3rem;
}

#header-right > button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 1rem;
}

#header-right > button > svg {
    width: 3rem;
    height: 3rem;
}

body.dark {
    color: #ffffff;
    background-color: #000000;
}

body.dark button {
    color: #ffffff;
}

body.dark a {
    color: #aaaaff;
}

@media only screen and (min-width: 1024px) {
    body { font-size: 1em; }
    main {
        width: calc(min(100vw, 1024px) - 2rem);
        padding: 0 1rem;
    }
    header {
        padding: 0 1rem;
    }
    header > h1 {
        font-size: 1.6rem;
    }
    #header-right > button > svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

