:root {
    color-scheme: light dark;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 60rem;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1.5rem 15rem;
    color: CanvasText;
    background: Canvas;
}

header,
main,
footer {
    width: 100%;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

a {
    text-underline-offset: 0.2em;
}

.site-nav {
    position: fixed;
    top: 1rem;
    left: 1rem;

    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    width: 11rem;
    padding: 1rem;

    border: 1px solid GrayText;
    border-radius: 0.5rem;
    background: Canvas;
}

.site-nav a {
    display: block;
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.25rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 60rem) {
    body {
        padding: 1.5rem;
    }

    .site-nav {
        position: static;
        width: auto;
        margin-bottom: 2rem;
    }
}

pre,
code {
    font-family:
        "Atkinson Hyperlegible Mono",
        ui-monospace,
        monospace;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid GrayText;
    border-radius: 0.4rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid GrayText;
    font-size: 0.9rem;
}

.page-header-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid GrayText;
    font-size: 0.9rem;
}

.page-sequence,
.page-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-nav a {
    text-decoration: none;
}

.page-header-nav a:hover,
.page-header-nav a:focus-visible {
    text-decoration: underline;
}

.site-nav ul {
    list-style: none;
    padding-left: 0;
}

.site-nav ul ul {
    padding-left: 1.2rem;
}

.nav-number {
    color: GrayText;
    margin-right: .35rem;
}

.nav-title {
    font-weight: 600;
}

.site-nav a[aria-current="page"] {
    background: ButtonFace;
    color: ButtonText;
    outline: 1px solid GrayText;
    font-weight: 700;
}

.breadcrumb {
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb ol {
    flex-wrap: wrap;
    gap: 0.4rem;

    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    margin-left: 0.4rem;
    content: "/";
    color: GrayText;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: GrayText;
}
