:root {
    --sidebar-target-width: 250px;
    --search-mark-bg: #4a9cd1;
}

/* Grid (Systems) Theme - Applied globally */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

body {
    --bg: #f8f9fa;
    --fg: #1a202c;
}

#grid-theme-style, .grid-theme {
    background-color: #f8f9fa !important;
    color: #1a202c !important;
}

.grid-theme .content {
    color: #1a202c !important;
}

.grid-theme body {
    background-image: 
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.grid-theme h1,
.grid-theme h2,
.grid-theme h3,
.grid-theme p,
.grid-theme li,
.grid-theme a {
    color: #1a202c !important;
}

.content h2 {
    color: var(--sidebar-active);
}

.content strong {
    color: var(--search-mark-bg);
    font-weight: 600;
}

.content a {
    color: var(--links);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease-in-out;
}

.content a:hover {
    text-decoration-color: var(--links);
}

.content hr {
    border-color: var(--sidebar-active);
    opacity: 0.6;
}

/* CV link in navbar */
#mdbook-menu-bar .right-buttons {
    display: flex;
    align-items: center;
}

#mdbook-menu-bar .cv-link {
    color: var(--icons);
    text-decoration: none;
    font-weight: 500;
    line-height: var(--menu-bar-height);
    transition: color 0.2s;
}

#mdbook-menu-bar .cv-link:hover {
    color: var(--links);
    text-decoration: underline;
}
