/* Pixel font for that low-res feel */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    /* Prevents browsers from smoothing the pixels */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    background-color: #b5ac99;
    /* High-contrast dot grid for a "printed" look */
    background-image: radial-gradient(#8a8271 2px, transparent 2px);
    background-size: 6px 6px;
    
    font-family: 'VT323', monospace;
    color: #000;
    margin: 15px;
    padding: 0;
}

/* THE SCREEN EFFECT: Adds grain and scanlines over the whole site */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    pointer-events: none;
    background-size: 100% 3px, 3px 100%;
}

#container {
    background-color: #e6e0d3;
    max-width: 700px;
    margin: 0 auto;
    /* Jagged Double Border */
    border: 5px solid #000;
    outline: 3px solid #7d1a1a;
    box-shadow: 12px 12px 0px #4a453a;
    position: relative;
    overflow: hidden;
}

header {
    text-align: center;
    border-bottom: 6px solid #7d1a1a;
    padding: 25px 10px;
    background: #d6cfbf;
}

.title-wrap { line-height: 0.7; }

.title-top {
    font-size: 1.8rem;
    letter-spacing: 5px;
    color: #444;
    text-transform: uppercase;
}

.title-main {
    font-size: 7rem;
    color: #7d1a1a;
    text-transform: uppercase;
    /* Hard shadow, no blur */
    text-shadow: 4px 4px 0px #000;
}

.date-line {
    font-size: 1.4rem;
    background: #000;
    color: #e6e0d3;
    padding: 2px 15px;
    margin-top: 20px;
    display: inline-block;
}

#wrapper {
    display: flex;
    background-color: #e6e0d3;
}

#sidebar {
    width: 160px;
    border-right: 5px solid #000;
    padding: 15px;
    background-color: #cdc5b3;
}

.nav-box h3 {
    background-color: #7d1a1a;
    color: #fff;
    font-size: 1.5rem;
    padding: 5px;
    margin: 0 0 10px 0;
    border: 2px solid #000;
}

#sidebar ul { list-style: none; padding: 0; }

#sidebar li a {
    text-decoration: none;
    color: #000;
    font-size: 1.3rem;
    display: block;
    padding: 4px;
    border-bottom: 2px solid #7d1a1a;
}

#sidebar li a:hover {
    background: #000;
    color: #fff;
}

main { padding: 20px; flex: 1; }

.headline {
    font-size: 2.8rem;
    color: #000;
    line-height: 0.9;
    margin-top: 0;
    text-transform: uppercase;
}

.byline {
    font-size: 1.2rem;
    background: #7d1a1a;
    color: #fff;
    padding: 0 5px;
    display: inline-block;
    margin: 10px 0;
}

.image-area {
    border: 3px solid #000;
    background: #999;
    /* Dithered look */
    background-image: repeating-conic-gradient(#888 0% 25%, #999 0% 50%) 50% / 4px 4px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    background: #000;
    color: #0f0; /* Retro green text */
    padding: 5px;
    font-size: 1rem;
}

.archive-list {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.archive-list th {
    background: #000;
    color: #fff;
    text-align: left;
    padding: 5px;
}

.archive-list td {
    border-bottom: 2px solid #7d1a1a;
    padding: 10px 5px;
}

footer {
    background: #000;
    color: #7d1a1a;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
}