/* ================================= */
/* RESET                             */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    min-height: 100%;
}
p { text-indent: 2em; }

/* ================================= */
/* BASE LAYOUT & DARK BACKGROUND     */
body {
    font-family: "Garamond", "Times New Roman", serif;
    background: #040404; /* Darker */
    color: #e4e4e4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    line-height: 1.9;
    overflow-x: hidden;
    position: relative;
}

/* ================================= */
/* COLOR GRADING LAYER               */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    background: rgba(0,0,0,0.25);
    mix-blend-mode: multiply;
}

/* ================================= */
/* REACTIVE LAYERED GRAIN            */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.45;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: grainShift .1s linear infinite;
}
body[data-mouse]::before {
    transform: translate(calc(var(--mouse-x) * 5px), calc(var(--mouse-y) * 5px));
}

/* ================================= */
/* VIGNETTE                          */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9996;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.8) 100%);
}

/* ================================= */
/* VERTICAL BANDING                  */
.banding {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9995;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 4px
    );
    animation: bandShift .1s linear infinite;
}

/* ================================= */
/* HEADER                            */
header {
    margin-bottom: 30px;
}
header h1 {
    font-size: 3em;
    letter-spacing: 1px;
    color: #f5f5f5;
    text-shadow:
        0 0 20px rgba(255,0,0,0.6),
        0 0 30px rgba(200,0,0,0.5),
        0 0 40px rgba(150,0,0,0.5);
}

/* ================================= */
/* NAVIGATION                        */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}
nav li { position: relative; }
nav li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -10px;
    color: #444;
}
nav a {
    text-decoration: none;
    color: #9c3c35;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow:
        0 0 10px rgba(255,255,255,0.3),
        0 0 15px rgba(255,255,255,0.3),
        0 0 20px rgba(255,255,255,0.3);
    transition: 0.3s;
}
nav a:hover { color: #ffffff; }

/* ================================= */
/* MAIN CONTENT                      */
main {
    padding: 20px 0;
}
h2 {
    margin-bottom: 10px;
    color: #e6e6e6;
   text-shadow:
        0 0 10px rgba(255,0,0,0.6),
        0 0 20px rgba(200,0,0,0.5),
        0 0 30px rgba(150,0,0,0.5);
}

/* ================================= */
/* ANIMATIONS                        */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    3% { opacity: 0.95; }
    6% { opacity: 1; }
}
@keyframes grainShift {
    0% { background-position: 0 0; }
    50% { background-position: 100px 150px; }
    100% { background-position: 0 0; }
}
@keyframes bandShift {
    0% { background-position: 0 0; }
    50% { background-position: 0 20px; }
    100% { background-position: 0 0; }
}
@keyframes tracking {
    0%, 96%, 100% { transform: translateX(0); }
    97% { transform: translateX(-3px); }
    98% { transform: translateX(3px); }
}

/* Style each post article */
#blog article {
    border: 1px solid rgba(255,255,255,0.06);
    padding: 25px;
    margin-bottom: 50px; /* ↑ increased spacing */
    max-width: 800px;
    background: rgba(0,0,0,0.6); /* semi-transparent panel */
    text-align: left;
}

/* ================================= */
/* MOBILE                            */
@media (max-width: 700px) {
    body { align-items: flex-start; }
}