/* Import Source Code Pro Light */
@font-face {
    font-family: 'Source Code Pro';
    src: url('SourceCodePro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

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

:root {
    /* Background colors */
    --bg: #0a0a0e;
    --bg-overlay: rgba(120, 80, 160, 0.04);
    --bg-overlay-subtle: rgba(120, 80, 160, 0.02);
    --bg-glow: rgba(120, 80, 160, 0.06);

    /* Text colors */
    --text: #ffffff;
    --text-bright: #ffffff;

    /* Accent colors */
    --accent: #777777;
    --accent-dim: #705888;
    --accent-dark: #4a3860;

    /* Heading colors */
    --h2-color: #ffffff;

    /* Shadow/glow */
    --accent-glow: rgba(144, 112, 176, 0.4);

    /* Scanline opacity */
    --scanline-opacity: 0.7;
}

html {
    background-color: var(--bg) !important;
    color-scheme: only dark;
}

body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Source Code Pro', 'Fira Mono', 'Liberation Mono', monospace;
    line-height: 1.55;
    font-size: 18px;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: none;
}

/* Particle canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: var(--scanline-opacity);
}

.container {
    max-width: 800px;
    margin: 0 auto 0 80px;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    margin-bottom: 60px;
    text-align: center;
    border: 2px solid var(--accent);
    padding: 24px;
    background: var(--bg-overlay);
}

.ascii-art {
    color: var(--accent);
    font-size: 10px;
    line-height: 1.1;
    overflow-x: hidden;
    text-shadow: 0 0 8px var(--accent-glow);
    margin-bottom: 12px;
    font-weight: bold;
}

.subtitle {
    color: var(--accent-dim);
    font-size: 18px;
    margin-top: 12px;
}

/* Typography */
section {
    margin-bottom: 48px;
}

p {
    margin-bottom: 1.5em;
    color: var(--text) !important;
}

.greeting {
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 2em;
}

h2 {
    color: var(--h2-color);
    font-size: 18px;
    margin: 2.5em 0 1em 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-dark);
    padding-bottom: 8px;
}

h3 {
    color: var(--text-bright);
    font-size: 18px;
    margin: 2em 0 1em 0;
}

.prompt {
    color: var(--accent);
    margin-right: 10px;
}

/* Lists */
ul {
    list-style: none;
    margin: 1.2em 0 1.2em 0;
    padding-left: 0;
}

ul li {
    margin: 0.7em 0;
    padding-left: 28px;
    position: relative;
    color: var(--text) !important;
}

ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-dim);
    font-size: 18px;
}

.contents-list li::before {
    content: "▸";
    font-size: 18px;
    color: var(--accent-dim);
}

/* Highlighting */
.highlight {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Note */
.note {
    border-left: 3px solid var(--accent-dark);
    padding-left: 20px;
    margin: 2em 0;
    color: var(--accent-dim);
}

/* Quote */
.quote {
    margin: 4em 0;
    padding: 32px;
    border: 2px solid var(--accent-dark);
    background: var(--bg-overlay-subtle);
    position: relative;
}

.quote::before {
    content: "┌─";
    position: absolute;
    top: 8px;
    left: 8px;
    color: var(--accent-dim);
    font-size: 18px;
}

.quote::after {
    content: "─┘";
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: var(--accent-dim);
    font-size: 18px;
}

.quote p {
    color: var(--text-bright) !important;
    font-size: 18px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.quote cite {
    display: block;
    text-align: right;
    color: var(--green-dim);
    font-size: 18px;
    margin-top: 16px;
}

/* Footer */
footer {
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid var(--accent-dark);
}

.terminal-prompt {
    text-align: center;
    color: var(--accent);
    font-size: 18px;
}

/* Character flicker effect */
.flicker-char {
    animation: flicker 0.2s ease-in-out;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    75% {
        opacity: 0.4;
    }
}

/* Subtle glow on screen */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        var(--bg-glow) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

/* Text selection */
::selection {
    background-color: var(--accent);
    color: var(--bg);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    transition: all 0.2s;
}

a:hover {
    color: var(--text-bright);
    border-bottom-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 24px 0;
        margin: 0 auto;
    }

    .ascii-art {
        font-size: 5px;
        white-space: pre;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    header {
        padding: 16px;
    }

    body {
        font-size: 16px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 16px;
    }

    .quote p {
        font-size: 16px;
    }

    .subtitle {
        font-size: 14px;
    }
}
