@font-face {
    font-family: 'VT323';
    src: url('VT323-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'ITC Avant Garde Gothic Bold';
    src: url('ITC Avant Garde Gothic Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    background: #001100;
    color: #33ff66;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 1.15rem;
    line-height: 1.45;
    text-shadow: 0 0 5px #33ff66;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0)    0px,
        rgba(0,0,0,0)    2px,
        rgba(0,0,0,0.25) 3px,
        rgba(0,0,0,0.25) 4px
    );
    pointer-events: none;
    animation: flicker 3s infinite;
    z-index: 1000;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.92; }
}

header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #33ff66;
    background: rgba(0, 17, 0, 0.85);
    position: sticky;
    top: 0;
    z-index: 10;
}

header nav {
    display: flex;
    gap: 0.75rem;
    max-width: 960px;
    margin: 0 auto;
}

header nav a {
    color: #33ff66;
    text-decoration: none;
    border: 1px solid #33ff66;
    border-radius: 8px;
    padding: 0.35rem 1.1rem;
    font-size: 1rem;
}

header nav a:hover {
    background: rgba(51, 255, 102, 0.12);
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

.title {
    font-family: 'ITC Avant Garde Gothic Bold', 'VT323', 'Courier New', monospace;
    font-size: 2.6rem;
    margin: 1rem 0 1.5rem;
    text-shadow: 0 0 10px #33ff66;
    letter-spacing: 1px;
}

pre.writeup {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    background: transparent;
}

figure {
    margin: 1.5rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #33ff66;
    box-shadow: 0 0 14px rgba(51, 255, 102, 0.35);
}

figcaption {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}
