:root {
    --bg-color: #fdf6e3;
    --bg-texture: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    --text-main: #362b23;
    --text-code: #2a475e;
    --accent: #b58900;
    --link: #cb4b16;
    --sidebar-width: 250px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    color: var(--text-main);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 19px;
    line-height: 1.6;
}

.layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 90vh;
}

aside {
    padding: 40px 20px;
    border-right: 1px dashed #8b7d6b;
    text-align: center;
    font-size: 0.9em;
}

main {
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.menu-link {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    background: rgba(255,255,255,0.3);
}

.menu-link:hover {
    background: var(--text-main);
    color: var(--bg-color);
    transform: scale(1.02);
}

.nav-icon {
    vertical-align: middle;
    margin-right: 10px;
    width: 30px;
    height: auto;
    mix-blend-mode: multiply;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed #8b7d6b;
    opacity: 0.9;
}

.badge-container img {
    display: block;
    mix-blend-mode: multiply;
    transition: transform 0.2s;
    height: 30px;
}

.badge-container img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.retro-counter-label {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 2px;
    display: block;
    text-transform: uppercase;
}

.retro-counter {
    background-color: #000;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    padding: 5px 8px;
    border: 3px inset #555;
    font-size: 16px;
    display: inline-block;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff0000;
}

@media (max-width: 768px) {
    .layout { display: block; }
    aside { border-right: none; border-bottom: 1px dashed #8b7d6b; }
    main { padding: 20px; }
}

h1, h2, h3 {
    font-family: 'Verdana', sans-serif;
    color: #222;
    margin-top: 0;
}