* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #121212;
    color: #e2e8f0;

    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================
   Header
========================================== */

.header {
    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 72px;
    padding: 0 36px;

    background: #121212;

    border-bottom: 1px solid #1f2937;

    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;

    color: white;
}

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

.header nav {
    display: flex;
    gap: 16px;
}

/* ==========================================
   Layout
========================================== */

.container {
    display: flex;
    min-height: calc(100vh - 72px);
}

.sidebar {
    width: 300px;

    padding: 36px 24px;

    background: #121212;

    border-right: 1px solid #1f2937;
}

.content {
    flex: 1;

    max-width: 980px;

    padding: 56px;

    margin: 0 auto;
}

/* ==========================================
   Sidebar
========================================== */

.sidebar h3 {
    margin: 28px 0 12px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;

    color: #94a3b8;
}

.sidebar ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.sidebar li {
    margin-bottom: 6px;
}

.sidebar a {
    display: block;

    padding: 10px 14px;

    border-radius: 8px;

    color: #cbd5e1;

    transition: .15s;
}

.sidebar a:hover {
    background: #000000;
    color: white;
    text-decoration: none;
}

/* ==========================================
   Typography
========================================== */

h1 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 42px;
    font-weight: 700;

    color: white;
}

h2 {
    margin-top: 52px;
    margin-bottom: 18px;

    padding-bottom: 10px;

    border-bottom: 1px solid #1f2937;

    color: white;
}

h3 {
    color: white;
}

.lead {
    font-size: 22px;
    color: #94a3b8;
}

p {
    margin-bottom: 18px;

    color: #cbd5e1;
}

/* ==========================================
   Lists
========================================== */

ul,
ol {
    padding-left: 22px;
}

li {
    margin-bottom: 10px;
}

/* ==========================================
   Code
========================================== */

pre {
    overflow-x: auto;

    margin: 24px 0;

    padding: 22px;

    border: 1px solid #334155;
    border-radius: 12px;

    background: #000000;

    color: #e2e8f0;
}

code {
    padding: 2px 6px;

    border-radius: 4px;

    background: #000000;

    color: #93c5fd;

    font-family: Consolas, Monaco, monospace;
}

pre code {
    padding: 0;
    background: transparent;
}

/* ==========================================
   Diagrams
========================================== */

.diagram {
    background: #000000;

    border: 1px solid #334155;

    border-radius: 12px;

    color: #e2e8f0;

    line-height: 1.6;

    display: flex;
    justify-content: center;
    margin: 2rem 0;
    text-align: center;
}

.diagram pre {
    display: inline-block;
}

/* ==========================================
   Tables
========================================== */

table {
    width: 100%;

    margin: 24px 0;

    border-collapse: collapse;
}

th,
td {
    padding: 14px;

    border: 1px solid #334155;
}

th {
    background: #000000;
    color: white;
}

td {
    color: #cbd5e1;
}

/* ==========================================
   Navigation
========================================== */

.nav-section {
    margin-bottom: 36px;
}

.header nav a {
    display: inline-block;

    padding: 8px 16px;

    border-radius: 8px;

    color: #cbd5e1;

    transition: .15s;
}

.header nav a:hover {
    background: #000000;
    text-decoration: none;
}

.header nav a.active,
.sidebar a.active {
    background: #2563eb;

    color: white;

    font-weight: 600;
}

.header nav a.active:hover,
.sidebar a.active:hover {
    background: #2563eb;
}

/* ==========================================
   Branding
========================================== */

.branding {
    display: flex;
    flex-direction: column;
}

.tagline {
    margin-top: 4px;

    font-size: 13px;

    color: #94a3b8;
}

.tagline span {
    display: block;

    margin-top: 2px;

    font-size: 12px;

    color: #64748b;
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 900px) {

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;

        border-right: none;
        border-bottom: 1px solid #1f2937;
    }

    .content {
        padding: 28px;
    }

}
