@font-face {
    font-family: 'monocraft';
    src: url('../assets/fonts/Monocraft-Black.ttf') format('truetype');
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #0a0a08;
    --fg:          #d4cfc0;
    --accent:      #c8b87a;
    --dim:         #5a5548;
    --border:      #2a2a24;
    --side-bar-w:  220px;
    --font:        'monocraft';
}

html, body {
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    overflow: hidden;
}

/* shell: full-screen flex row */
#shell {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: row;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out 0.3s, visibility 1s ease-out 0.3s;
}

#shell.visible {
    opacity: 1;
    visibility: visible;
}

/* content: fills all space left of sidebar */
#content {
    flex: 1 1 0;
    min-width: 0;
    overflow-y: auto;
    padding: 3rem;
    border-right: 1px solid var(--border);
    height: 100%;
}

/* sidebar: fixed width, never shrinks, always full height */
#sidebar {
    flex: 0 0 var(--side-bar-w);
    width: var(--side-bar-w);
    min-width: var(--side-bar-w);
    max-width: var(--side-bar-w);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

#nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 64px);
    gap: 1.2rem 1rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--dim);
    font-size: 10px;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.nav-item:hover,
.nav-item:active,
.nav-item.active {
    color: var(--accent);
}

.nav-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.6) sepia(1) hue-rotate(10deg);
    transition: filter 0.2s;
}

.nav-item:hover .nav-icon img,
.nav-item:active .nav-icon img,
.nav-item.active .nav-icon img {
    filter: brightness(1) sepia(0.4) hue-rotate(10deg);
}

.nav-label {
    text-align: center;
    line-height: 1.2;
}