:root {
    --pico-font-family: Inter, system-ui, sans-serif;
    --pico-font-size: 100%;
    --pico-line-height: 1.7;
    --pico-border-radius: 12px;
    --content-width: 760px;
    --nav-height: 72px;

    --text-color: #cbcbcb;
    --muted: #b0b0b0;
    --border: #e9e9e9;
}

body {
    color: var(--text-color);
}


ol li a {
    color: #c2c7d0;
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

.article-content p {
    text-align: justify !important;
}


/* ---------- Navbar ---------- */

.site-header {
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-left a,
.nav-right a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.launch-link {
    color: #6d5dfc !important;
    font-weight: 600;
}

/* ---------- Article Layout ---------- */

.article-shell {
    max-width: var(--content-width);
    margin: 6rem auto 8rem;
    padding: 0 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;

    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ---------- Typography ---------- */

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 800;

    margin-bottom: 2rem;
}

h2 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;

    margin-top: 4rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #929292;

    margin-bottom: 1.75rem;
}

ul,
ol {
    font-size: 1.15rem;
    line-height: 1.9;
}

a {
    color: #5b5df5;
}

strong {
    font-weight: 700;
}

/* ---------- Reading Comfort ---------- */

.article-content {
    margin-top: 2rem;
}

.article-content img {
    width: 100%;
    border-radius: 16px;
    margin: 2rem 0;
}

blockquote {
    border-left: 3px solid #d6d6d6;
    padding-left: 1.25rem;
    color: #555;
}

code {
    font-size: 0.9em;
}

pre {
    border-radius: 14px;
}

@media (max-width: 768px) {
    .site-nav {
        padding: 0 1rem;
    }

    .nav-left {
        gap: 1rem;
    }

    .article-shell {
        margin-top: 4rem;
    }

    p {
        font-size: 1.1rem;
    }
}

.code-block {
    margin: 2rem 0;

    background: #0f1115;
    border: 1px solid #1f232b;
    border-radius: 16px;

    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.85rem 1rem;

    background: #151922;
    border-bottom: 1px solid #232833;
}

.code-language {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;

    text-transform: lowercase;
}

.copy-btn {
    background: transparent;
    border: 0;
    color: #9ca3af;

    font-size: 0.85rem;
    cursor: pointer;

    padding: 0.25rem 0.5rem;
}

.copy-btn:hover {
    color: white;
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    border-radius: 0;

    overflow-x: auto;
}

.code-block code {
    font-family:
        "JetBrains Mono",
        "Fira Code",
        monospace;

    font-size: 0.95rem;
    line-height: 1.8;

    color: #e5e7eb;
}

.article-image {
    margin: 3rem 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.article-image img {
    width: 100%;
    display: block;

    border-radius: 16px;
    border: 1px solid #e8e8e8;
}

.article-image figcaption {
    margin-top: 0.85rem;

    font-size: 0.95rem;
    color: #737373;

    text-align: center;
}

.site-footer {
    /* margin-top: 2rem; */
    /* padding: 2.5rem 1.5rem; */

    border-top: 1px solid #393939;

    text-align: center;
}

.site-footer p {
    margin: 0;

    font-size: 0.95rem;
    color: #737373;
}

.site-footer strong {
    color: #111111;
    font-weight: 600;
}

.index {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #c4c5c5;
}

.index p {
    margin: 1rem;
    cursor: pointer;
    color: #c4c5c5;
}

.index p:hover {
    color: white;
    transition: 100ms ease-in-out;
    scale: 1.1;
}

a {
    text-decoration: none;
}

.arrow:hover {
    transform: translate(6px);
    scale: 1 !important;
    transition: 10ms ease-in-out;
}

code {
    padding: 0 !important;
    margin-left: -8em !important;
    line-height: 0.5 !important;
}