:root {
    color-scheme: dark;
    --page: #0f1720;
    --panel: #182530;
    --text: #eaf2ff;
    --muted: #afbdcd;
    --accent: #50d8fe;
    --line: #30404d;
    font-family: Inter, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(ellipse at top right, #15343f, transparent 38rem), var(--page);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-underline-offset: .2em;
}

a:hover {
    text-decoration-thickness: .15em;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.wrap {
    width: min(68rem, 100% - 2.5rem);
    margin-inline: auto;
}

header,
footer {
    background: var(--page);
}

header {
    border-bottom: 1px solid var(--line);
}

footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding-block: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.brand img {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .4rem;
    object-fit: contain;
}

nav ul,
nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb {
    color: var(--muted);
    font-size: .92rem;
    margin-block: 1.5rem 2.5rem;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: .65rem;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    margin: 0 0 1rem;
    max-width: 20ch;
    font-size: clamp(2.35rem, 6vw, 4.3rem);
    letter-spacing: -.045em;
}

h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    letter-spacing: -.02em;
}

dt {
    margin-top: 1rem;
    font-weight: 700;
}

dd {
    margin: .25rem 0 0;
    color: var(--muted);
}

p,
li {
    max-width: 72ch;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.06rem, 3vw, 1.28rem);
}

.button {
    display: inline-block;
    margin-top: .5rem;
    padding: .65rem 1rem;
    background: var(--accent);
    border-radius: .55rem;
    color: #071018;
    font-weight: 700;
    text-decoration: none;
}

.hero,
.grid,
.question,
.related {
    margin-bottom: clamp(2.2rem, 7vw, 4rem);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: .9rem;
    padding: clamp(1rem, 4vw, 1.65rem);
}

.panel p:last-child,
.panel ul:last-child,
.panel ol:last-child,
.panel dl:last-child {
    margin-bottom: 0;
}

.panel li + li,
.related li + li {
    margin-top: .6rem;
}

@media (max-width: 42rem) {
    .grid {
        grid-template-columns: 1fr;
    }
}
