:root {
    --bg: #222233;
    --card: #111522;
    --text: #e1e6ff;
    --muted: #aab4d6;
    --footer-bg: #22222255;
    --accent: #7aa2ff;
    --line: accent;
    --logo-text: #7aa2ff;
    --accent2: #7dffb2;
    --shadow: 0 10px 50px 10px rgba(0, 0, 0, .35);
    --radius: 16px;
    --max: 1500px;
    --header-h: 50px;
    --color-note: rgba(100, 160, 255, 0.9);
    --color-warn: rgba(255, 140, 90, 0.95);
}

* {
    box-sizing: border-box;
}

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

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

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

/* raleway-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url('../../fonts/raleway-v37-latin-regular.woff2') format('woff2');
}

/* raleway-italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    src: url('../../fonts/raleway-v37-latin-italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Major Mono Display';
    font-style: italic;
    font-weight: 400;
    src: url('../../fonts/major-mono-display-v18-latin-regular.woff2') format('woff2');
}

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

body {
    padding-top: var(--header-h);
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

a {
    color: inherit
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 18px;
}

.muted {
    opacity: 0.8;
}

.callout {
    display: block;
    border: none;
    padding: 4px 14px;
    background: transparent;
    margin: 24px 0;
    border-radius: 0;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.callout.note {
    border-left: 3px solid var(--color-note);
}

.callout.warn {
    border-left: 3px solid var(--color-warn);
}

.callout.warn strong {
    color: var(--color-warn);
    font-weight: 700;
    font-size: 1.4em;
}

.callout.note strong {
    color: var(--color-note);
    font-weight: 700;
    font-size: 1.4em;
}

.bullets {
    font-size: 24px;
    padding: 0 0 0 18px;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

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

.bullets li b {
    color: var(--accent2);
}

code.inline {
    font-family: 'JetBrainsMono', monospace;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 90%;
    white-space: nowrap;
}

pre,
pre code,
code.hljs,
pre code.hljs,
.hljs,
.hljs * {
    font-family: 'JetBrainsMono', monospace;
}


.heading {
    font-family: "Raleway";
    padding-top: 20px;
    font-size: 2.0rem;
}


header {
    position: fixed;
    top: 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 2px 15px;
}

.logo-text {
    font-family: "Major Mono Display";
    font-weight: 200;
    font-size: 30px;
    letter-spacing: 1px;
}

.logo-text a {
    text-decoration: none;
    color: var(--logo-text);
    text-shadow: 0 0 18px rgba(122, 162, 255, 0.4);
    transition: text-shadow 250ms ease, color 250ms ease;
}

.logo-text a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(122, 162, 255, 1), 0 0 30px rgba(122, 162, 255, 0.7), 0 0 60px rgba(122, 162, 255, 0.4);
}

.stretcher {
    flex-grow: 1
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg, #1a1a1a);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    margin-top: -4px;
    padding-top: 10px;
}


.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content .navlink {
    display: block;
    min-width: unset;
    width: 100%;
}

.navlink {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    padding: 8px 12px;
    min-width: unset;
    border-radius: 5px;
    font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 17px;
}

.navlink::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
    font-size: 15px;
}

.navlink:hover::after,
.navlink:focus-visible::after {
    transform: scaleX(1);
}


/* THIS is what keeps the underline */
.navlink.active::after,
.navlink[aria-current="page"]::after {
    transform: scaleX(1);
    background: #FFFFFF;
}

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


.github-star {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 17px;
    font-family: 'Outfit', sans-serif;
    transition: border-color 180ms ease, color 180ms ease;
}

.github-star:hover {
    border-color: rgba(255,255,255,0.35);
    color: var(--text);
}

.github-star svg {
    color: #e3b341;
}

.star-count,
.github-count,
.codeberg-count {
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 8px;
    color: var(--text);
}

footer {
    text-align: center;
    padding: 24px 18px;
    font-size: 14px;
    color: var(--muted);
    font-family: 'Outfit', sans-serif;
    background: var(--footer-bg);
}

a {
    color: pink;
    text-decoration: none;
}

a:not(.navlink):not(.github-star):not(.logo-text a):hover {
    text-decoration: underline;
}

