html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    background-color: #fafafa;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #212121;
    color: #fff;
    padding: 1em 2em;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
}

header a:hover {
    text-decoration: underline;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    font-size: 1rem;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    margin: 0 auto;
    padding: 1em;
    max-width: 832px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

main h1 {
    font-size: 2.25rem;
    line-height: 2.75rem;
    margin: 0;
}

main p {
    margin-top: 1em;
    font-size: 1rem;
    line-height: 1.5rem;
}

main a {
    text-decoration: underline;
    color: #000;
}



/* tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border: none;
}

table th {
    font-style: italic;
    font-weight: normal;
}

table td a {
    text-decoration: underline;
    color: inherit;
}

table td:first-child a {
    font-weight: bold;
    text-decoration: none
}

/* dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #fff;
    }

    main {
        background-color: #121212;
        color: #fff;
    }

    main a {
        color: #fff;
    }
}