/* Font */
@font-face {
    font-family: 'SpaceGrotesk';
    src: url('/static/blog/font/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* General */
:root {
    --bg-main: #0B0D10;
    --bg-surface: #12151A;
    --bg-elevated: #1A1F26;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent-gold: #D4AF37;
    --accent-gold-soft: #E6C96A;
    --accent-blue: #3B82F6;
    --border: #23272F;
}


.__grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.__radial-bg-left {
    background: radial-gradient(
            circle at top left,
            rgba(59,130,246,0.08),
            transparent 60%
        );
}

.__radial-bg-right {
    background: radial-gradient(
            circle at top right,
            rgba(59,130,246,0.08),
            transparent 60%
        );
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'SpaceGrotesk', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    letter-spacing: 0.015em;
    font-size: 1.1rem;
    word-spacing: 0.02em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    letter-spacing: -0.01em;
    font-weight: 600;
}

body {
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
}

.bytestaq {
    width: 100%;
    display: flex;
    height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

article {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) transparent;
    margin-left: 300px;
    width: calc(100% - 300px);
}

main {
    padding: 0 2rem;
    max-width: 100%;
}

.code-block {
    border: 1px solid var(--border);
    border-radius: .6rem;
    padding: 1rem;
    background: var(--bg-elevated);
    max-width: 100%;
    margin: 1rem 0;
    overflow: auto;


    & .code-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;

        & .cp-btn {
            user-select: none;
            -moz-user-select: none;
            cursor: pointer;
        }

        & .cp-btn:hover {
            color: var(--accent-gold-soft);
            transition: color .5s;
        }
    }

        & .k, .kn {
        color: 	#C586C0;
    }

    & .nf, .fm {
        color: #DCDCAA;
    }

    & .p {
        color: #CCCCCC;
    }

    & .nd , .nc, .nn {
        color: 	#4EC9B0;
    }

    & .bp {
        color: #9CDCFE;
    }

    pre {
        background: #0f141a;
        border-radius: 4px;
        padding: 1.4rem 1.6rem;
        margin: 0;
        box-shadow:
            inset 0 1px 4px rgba(0,0,0,0.5),
            inset 0 0 0 1px rgba(255,255,255,0.02);
    }
}


.code-block .codehilite {
    max-height: 30rem;
    overflow: auto;
    background: #0f141a;
    border-radius: 4px;
} 

.code-block .codehilitetable {
    border-collapse: collapse;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
}

.code-block .codehilitetable td {
    margin: 0 !important;
    vertical-align: top !important;
}

.code-block .codehilitetable .linenos {
    width: 3.5ch;
    min-width: 3.5ch;
    text-align: right;
    color: var(--text-muted);
    user-select: none;
    background: #0c1117;
    padding: 1.4rem .75rem 1.4rem .75rem !important;
}

.code-block .codehilitetable .code {
    padding: 1.4rem 1.6rem !important;
}

.code-block .linenodiv,
.code-block .linenodiv pre,
.code-block .codehilitetable .code pre {
    margin: 0 !important;
    padding: 0 !important;
}

.code-block .codehilitetable .linenos pre,
.code-block .codehilitetable .code pre,
.code-block .codehilitetable .linenos pre span,
.code-block .codehilitetable .code pre span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    white-space: pre !important;
}

.code-block .linenos .normal {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    font-size: inherit !important;
    font-family: inherit !important;
    opacity: .5;
}


nav a {
    text-decoration: none;
    color: var(--accent-gold-soft);
}

nav a:hover {
    text-decoration: underline;
    color: var(--accent-gold);
    transition: color .5s;
}

