@import url(https://fonts.bunny.net/css?family=source-serif-pro:400,400i,700);

:root {
    color-scheme: light dark;

    --background-color: light-dark(
        oklch(0.9901 0.0161 95.22),
        oklch(0.1696 0.0017 17.32)
    );
    --text-color: light-dark(
        oklch(0.1696 0.0017 17.32) oklch(0.8463 0.0137 102.05)
    );
    --sub-color: light-dark(
        oklch(0.5375 0.0078 97.45),
        oklch(0.6169 0.0078 88.67)
    );
    --accent-color: light-dark(
        oklch(0.7948 0.1247 4.49),
        oklch(0.7948 0.1247 4.49)
    );
}

@media (max-width: 600px) {
    header {
        line-height: 1 !important;
    }
}

body {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.2;
    font-size: 1.4rem;
    font-family: "Source Serif Pro", serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

li {
    padding: 0 0 1rem;
}

li > * {
    padding-top: 1rem;
}

header {
    h2 {
        margin-bottom: -1.1rem;
    }
    text-wrap: wrap;
    padding: 0 0 0.3rem;
}

nav,
footer {
    padding: 20px 0;
}

a {
    color: var(--accent-color);
}

.sub,
code,
summary {
    font-size: 1.2rem !important;
    color: var(--sub-color);
}

thead > tr > th,
th[scope="row"] {
    font-weight: bold;
    color: var(--accent-color) !important;
}

table {
    table-layout: fixed;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 2px solid var(--sub-color);
}

tr {
    text-align: left;
}

th,
td {
    border: 1px solid var(--sub-color);
    padding: 8px 10px;
    font-weight: normal;
}
