:root {
    --bg-color-light: rgb(244, 244, 254);
    --bg-color-dark: rgb(15, 15, 30);
    --text-color-light: rgb(230, 230, 250);
    --text-color-dark: rgb(15, 15, 20);
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
    font-weight: 300;
}

header {
    display: flex;
}
header img.logo {
    width: 3em;
    margin-right: 1em;
}

h1, h2 {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

p, a, ul {
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    color: inherit;
}
h1 {
    font-weight: 500;
}

p {
    font-weight: normal;
}

main, footer {
    max-width: 25rem;
    margin: 20% auto;
    padding: 0.5em
}

footer {
    display: flex;
    gap: 1em;
}

ul {
    list-style: none;
}

@media (prefers-color-scheme: dark) {
    html {
        background-color: var(--bg-color-dark);
        color: var(--text-color-light);
    }
}
