/* mores.dev v2 - phosphor-green terminal (1983 CRT) */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: #0A0A0A;
    color: #33FF33;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    padding: 0;
}

/* CRT scanline overlay -- full viewport, fixed */
.crt-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
    mix-blend-mode: multiply;
}

/* CRT vignette -- screen curvature darkening at the edges */
.crt-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(0,0,0,0.55) 90%,
        rgba(0,0,0,0.85) 100%
    );
}

/* Subtle phosphor flicker on the whole frame */
@keyframes phosphor-flicker {
    0%, 100% { opacity: 1; }
    47%      { opacity: 0.985; }
    49%      { opacity: 1; }
    51%      { opacity: 0.97; }
    53%      { opacity: 1; }
}
.terminal {
    animation: phosphor-flicker 6s infinite;
}

/* Single-column terminal layout */
.terminal-col {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    color: #33FF33;
    background: #0A0A0A;
}

.viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boot-viewport .terminal-col {
    width: 100%;
}

.terminal-section {
    padding: 60px 0 60px 0;
    min-height: 50vh;
}

/* Boot stream -- system messages typewriting */
.boot-stream {
    color: #1A8A1A;
    margin-bottom: 24px;
    min-height: 6em;
    white-space: pre-wrap;
}

.boot-stream .ok    { color: #33FF33; }
.boot-stream .warn  { color: #FFA020; }

/* ASCII logo */
.ascii-logo {
    color: #80FF80;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.05;
    white-space: pre;
    margin: 24px 0;
    min-height: 8em;
    text-shadow: 0 0 6px rgba(128,255,128,0.35);
}

/* Prompt + blinking cursor */
.prompt-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #33FF33;
    margin-top: 12px;
}

.prompt-sigil {
    color: #FFA020;
    font-weight: 700;
}

.cursor-block {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    background: #FFA020;
    animation: blink 0.8s step-end infinite;
    box-shadow: 0 0 6px rgba(255,160,32,0.7);
}

@keyframes blink {
    50% { background: transparent; box-shadow: none; }
}

/* Section headers -- like ## in markdown / terminal output */
.section-head {
    color: #80FF80;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-shadow: 0 0 4px rgba(128,255,128,0.3);
}

/* Command-line nav */
.cmd-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.cmd-link {
    color: #33FF33;
    text-decoration: none;
    padding: 2px 0;
    transition: color 120ms linear, text-shadow 120ms linear;
    font-family: 'Fira Code', monospace;
}

.cmd-link .prompt-sigil { color: #FFA020; }

.cmd-link:hover,
.cmd-link.is-active {
    color: #80FF80;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(128,255,128,0.5);
}

.cmd-response {
    color: #1A8A1A;
    min-height: 1.5em;
    white-space: pre-wrap;
    margin-top: 6px;
}

.cmd-response .ok { color: #33FF33; }

/* Generic typewriter / list / paragraph blocks */
.typewriter,
.terminal-list,
.log-stream {
    color: #33FF33;
    white-space: pre-wrap;
    margin-bottom: 18px;
}

.terminal-list {
    list-style: none;
    padding-left: 0;
}

.terminal-list li {
    color: #33FF33;
    padding: 2px 0;
}

/* ASCII art blocks */
.ascii-art {
    color: #33FF33;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.1;
    white-space: pre;
    margin: 12px 0 18px 0;
    overflow-x: auto;
}

/* Log stream */
.log-stream {
    font-size: 13px;
    color: #1A8A1A;
    white-space: pre-wrap;
}

/* Footer */
.footer-line {
    color: #1A8A1A;
    margin-top: 24px;
    font-style: normal;
}

.end-cursor {
    /* same blinking block, used at end of stream */
}

/* Typewriter caret while content is being typed */
.is-typing::after {
    content: '';
    display: inline-block;
    width: 0.55em;
    height: 1em;
    background: #FFA020;
    margin-left: 2px;
    vertical-align: -0.15em;
    animation: blink 0.8s step-end infinite;
}

/* On-scroll fade for sections (subtle) */
.terminal-section { opacity: 0.35; transition: opacity 320ms linear; }
.terminal-section.is-visible { opacity: 1; }

/* small screens: shrink ASCII slightly so it doesn't overflow */
@media (max-width: 640px) {
    .ascii-logo { font-size: 10px; }
    .ascii-art  { font-size: 10px; }
    .terminal-col { padding: 16px; }
}
