@font-face {
    font-family: 'Victor Mono';
    src: url('../fonts/VictorMono/VictorMono-Regular.woff2') format('woff2');
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Outfit/outfit-v15-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Outfit/outfit-v15-latin-700.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'JetBrainsMono';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/JetBrainsMono/JetBrainsMono-Regular.woff2') format('woff2');
}

:root {
    --bg: #3a4568;
    --card: rgba(17, 21, 34, 0.72);
    --text: #e1e6ff;
    --logo-text: pink;
    --muted: #aab4d6;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #7aa2ff;
    --accent2: #7dffb2;
    --shadow: 0 10px 50px 10px rgba(0, 0, 0, .35);
    --radius: 16px;
    --max: 1200px;
    --header-h: 80px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-h);
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
}

a {
    color: inherit;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 2px 15px;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    z-index: 1000;
}

.logo-text {
    font-weight: 700;
    font-size: 40px;
    color: var(--logo-text);
    letter-spacing: .3px;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.logo-text a {
    text-decoration: none;
}

.stretcher {
    flex-grow: 1;
}

.navlinks {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}

.navlinks a {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 12px;
}

.navlinks a:hover {
    color: var(--text);
    background: rgba(36, 48, 77, .35);
}

.navlinks a.active,
.navlinks a[aria-current="page"] {
    color: var(--text);
    background: rgba(36, 48, 77, .55);
}


.github-logo {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    fill: var(--muted);
}


.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 26px 18px 80px;
}

.hero {
    padding: 22px 0 10px;
}

.hero-title {
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -.6px;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.hero-sub {
    color: var(--muted);
    font-size: 18px;
    max-width: 85ch;
    margin-top: 10px;
    font-family: 'Outfit';
}

.layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.toc {
    font-family: 'Outfit';
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 14px;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
}

.toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
}

.toc a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}



.toc .small {
    font-size: 14px;
    opacity: 0.9;
    padding-left: 18px;
}

.content {
    padding: 18px;
}

.section {
    padding: 8px 0 22px;
}

[id] {
    scroll-margin-top: calc(var(--header-h) + 14px);
}

.section h2 {
    font-family: 'Outfit';
    font-size: 28px;
    margin: 6px 0 10px;
    letter-spacing: -.2px;
}

.section h3 {
    font-family: 'Outfit';
    font-size: 20px;
    margin: 18px 0 8px;
}

.section p,
.section li {
    font-family: 'Outfit';
    font-size: 18px;
}

.callout {
    margin: 14px 0;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.callout.note {
    border-left: 4px solid rgba(100, 160, 255, 0.9);
}

.callout.warn {
    border-left: 4px solid rgba(255, 140, 90, 0.95);
}

.callout strong {
    display: inline-block;
    margin-bottom: 6px;
}

pre {
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 14px;
    overflow: auto;
}

code {
    font-family: JetBrainsMono, ui-monospace, monospace;
}

code.inline {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 95%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.table th,
.table td {
    padding: 12px 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table th {
    font-family: 'Outfit';
    text-align: left;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.18);
    font-weight: 700;
}

.table td {
    font-family: 'Outfit';
    font-size: 17px;
}

.table tr:last-child td {
    border-bottom: 0;
}

details.details {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
}

details.details summary {
    cursor: pointer;
    font-family: 'Outfit';
    color: var(--text);
}

hr.sep {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin: 22px 0;
}

@media (max-width: 980px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: relative;
        top: 0;
    }
}
