* {
    box-sizing: border-box
}

html {
    color-scheme: dark;
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #101722;
    color: #e7edf5;
    font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: #8ed7ff;
    text-underline-offset: .2em
}

a:hover {
    color: #fff
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid #ffd479;
    outline-offset: 5px
}

.wrap {
    width: min(900px, calc(100% - 40px));
    margin: auto
}

header {
    border-bottom: 1px solid #334155;
    background: #141e2d
}

.brand {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 750;
    text-decoration: none;
    color: #fff;
    margin: 20px 0 10px
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-bottom: 20px
}

nav a {
    font-size: .95rem
}

nav a[aria-current=page] {
    color: #fff;
    font-weight: 700
}

main {
    padding: 46px 0 64px;
    min-height: 65vh
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 24px
}

h2 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-top: 0
}

.lead {
    font-size: 1.15rem;
    color: #cbd5e1
}

.card,
details {
    background: #182334;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px
}

.cards .card {
    margin: 0
}

.card p:last-child {
    margin-bottom: 0
}

summary {
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 650
}

details p {
    margin-bottom: 0
}

.note {
    border-left: 4px solid #e7ba6b;
    padding: 12px 18px;
    background: #27283a;
    color: #f7e1b7
}

.skip {
    position: absolute;
    left: 12px;
    top: -100px;
    background: #101722;
    padding: 12px;
    z-index: 2
}

.skip:focus {
    top: 12px
}

footer {
    border-top: 1px solid #334155;
    padding: 24px 0;
    color: #aab8ca;
    font-size: .9rem
}

li+li {
    margin-top: 8px
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}

pre {
    padding: 14px 18px;
    overflow-x: auto;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0b1220;
    color: #e7edf5;
    font-size: 1rem;
    line-height: 1.5;
}

pre code {
    font-family: ui-monospace, SFMono-Regular, Consolas,
        "Liberation Mono", monospace;
}