:root {
    /* very basic light/dark theme, with default browser colors */
    color-scheme: dark light;
    /*stop layout shift when switching between pages with and without scrollbars */
    scrollbar-gutter: stable both-edges; 
}

* {
    box-sizing: border-box;
}

/* necessary for older versions of Safari, for now */
@media (prefers-color-scheme: dark) {
    body {
        background: #1C1B22;
        color: #FBFBFE;
    }
    a {
        color: #9E9EFF;
    }
    a:visited {
        color: #D0A8F5;
    }
    a:active {
        color: #FF9E9E;
    }
}

body {
    max-inline-size: 40em;
    margin: 1rem auto;
    padding: 0 10px;
    line-height: 1.5;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family:'Times New Roman', Times, serif;
}

/* Ravel formatting */

.ravel-intro {
    font-style: italic;
}

.ravel summary {
    font-weight: bold;
    background-color: CanvasText;
    color: Canvas;
    margin-left: -5px;
    padding: 0 5px;
    width: fit-content;
}

.ravel summary:focus {
    outline-offset: 5px;
}

/* remove list formatting */
.ravel ul[role="list"] {
    list-style: none;
    /* add border and indenting */
    margin: 0 0 0 10px;
    padding-left: 5px;
    border-left: solid 1.5px;
}

/* add spacing to separate options*/
.ravel li {
    margin-top: 0.5rem;
}

/* when <p> is last, switch bottom margin for padding so the line continues */
