:root {
    --bg-color: #0d0d0f;
    --text-color: #a0a0b0;
    --accent-color: #7d5bbe; /* Mensis Purple */
    --neon-blue: #00f2ff;
    --border-style: 2px solid #2a2a3a;
    --terminal-font: 'Courier New', Courier, monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--terminal-font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CRT Overlay Effect - Optimized */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 250px;
    grid-template-areas: 
        "header header"
        "nav nav"
        "main aside"
        "footer footer";
    gap: 20px;
}

header {
    grid-area: header;
    text-align: center;
    border-bottom: var(--border-style);
    padding-bottom: 20px;
}

.ascii-logo {
    color: var(--accent-color);
    font-size: 12px;
    line-height: 1.2;
    text-shadow: 0 0 5px var(--accent-color);
}

.subtitle {
    font-style: italic;
    font-size: 0.9em;
    color: var(--neon-blue);
}

nav {
    grid-area: nav;
    text-align: center;
    border-bottom: var(--border-style);
    padding: 10px 0;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

main {
    grid-area: main;
}

aside {
    grid-area: aside;
    font-size: 0.85em;
    border-left: var(--border-style);
    padding-left: 20px;
}

.post-preview {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #2a2a3a;
}

.post-preview h2 a {
    color: var(--accent-color);
    text-decoration: none;
}

.post-preview h2 a:hover {
    text-decoration: underline;
}

.date {
    font-size: 0.8em;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--neon-blue);
    font-size: 0.9em;
}

.widget {
    margin-bottom: 30px;
    border: 1px solid #2a2a3a;
    padding: 10px;
    background: #15151a;
}

.widget h3 {
    margin-top: 0;
    font-size: 1em;
    color: var(--accent-color);
    border-bottom: 1px solid #2a2a3a;
}

.status-ok { color: #00ff00; font-weight: bold; }
.status-low { color: #ff0000; animation: blink 1s infinite; }

@keyframes blink {
    50% { opacity: 0; }
}

.hit-counter {
    text-align: center;
}

.counter-box {
    background: #000;
    color: #0f0;
    border: 1px solid #333;
    padding: 2px 5px;
    margin: 0 1px;
    font-family: monospace;
    font-size: 1.2em;
}

.page-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: var(--border-style);
}

.page-section h2 {
    color: var(--neon-blue);
}

.top-link {
    display: block;
    margin-top: 20px;
    font-size: 0.8em;
    color: #444;
    text-decoration: none;
}

.top-link:hover {
    color: var(--accent-color);
}

.webring-nav a {
    color: var(--accent-color);
    text-decoration: none;
    margin-right: 10px;
}

.webring-nav a:hover {
    text-decoration: underline;
}

.sigil-container {
    width: 100%;
    height: 150px;
    background: #000;
    border: 1px solid #1a1a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#author-sigil {
    stroke: var(--neon-blue);
    opacity: 0.8;
}

.sigil-container svg {
    animation: sigil-pulse 4s ease-in-out infinite;
}

@keyframes sigil-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

.sigil-meta {
    font-size: 0.7em;
    color: #444;
    text-align: right;
    margin-top: 5px;
}

footer {
    grid-area: footer;
    text-align: center;
    margin-top: 40px;
    color: #444;
}

hr {
    border: none;
    border-top: var(--border-style);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "nav"
            "main"
            "aside"
            "footer";
    }
    aside {
        border-left: none;
        border-top: var(--border-style);
        padding-left: 0;
        padding-top: 20px;
    }
}
