* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(16, 16, 16, 0.5);
    --bg-tertiary: #2a2a2a;
    --text-primary: #b0b0b0;
    --text-secondary: #808080;
    --accent: #d0d0d0;
    --accent-dim: #a0a0a0;
    --border: #333333;
    --shadow: rgb(24, 24, 24);
    
    /* Timing variables */
    --glitch-frequency: 10s;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        linear-gradient(rgba(208, 208, 208, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 208, 208, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Header Styles */
header {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: lowercase;
    letter-spacing: 0.0px;
    position: relative;
    display: inline-block;
    animation: glitch-interference var(--glitch-frequency) infinite;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.menu a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 250px);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent);
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    text-shadow: 0 0 20px var(--shadow);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    transition: all 0.3s;
    text-decoration: none;
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--shadow);
    text-decoration: underline;
}

/* Exclude logo link from underline */
.logo a:hover {
    text-decoration: none;
}

/* Code blocks */
code {
    background: var(--bg-secondary);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border);
}

pre {
    background: var(--bg-secondary);
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--accent);
    border-radius: 5px;
    margin: 1.5rem 0;
    box-shadow: 0 0 20px var(--shadow);
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

/* Footer */
footer {
    background: var(--bg-primary);
    border-top: 2px solid var(--accent);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    box-shadow: 0 0 20px var(--shadow);
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Page Lists */
.page-list {
    list-style: none;
    margin-top: 2rem;
}

.page-list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all 0.3s;
}

.page-list li:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--shadow);
    transform: translateX(5px);
}

.page-list a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-list a:hover {
    text-decoration: underline;
}

.page-list p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Articles */
article {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}