@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400&display=swap');

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

:root {
    --bg: #000000;
    --text: #ff3a3a;
    --text-dim: #8a2020;
    --text-bright: #ff6b6b;
    --border: #4a1515;
    --link: #ff3a3a;
    --link-hover: #ffffff;
}

body.colourblind {
    --text: #00d4ff;
    --text-dim: #0088aa;
    --text-bright: #66e5ff;
    --border: #004466;
    --link: #00d4ff;
}

body.colourblind .scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 212, 255, 0.03) 2px,
        rgba(0, 212, 255, 0.03) 3px
    );
}

body.colourblind .site-title,
body.colourblind h2 {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

body.colourblind .site-title::selection,
body.colourblind h2::selection {
    text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff, 0 0 40px #00d4ff;
}

body.colourblind ::selection {
    background: #00d4ff;
    text-shadow: 0 0 20px #00d4ff, 0 0 30px #00d4ff, 0 0 40px #00d4ff;
}

html {
    font-size: 22px;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    padding: 2rem;
    padding-top: 8rem;
}

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

.site-title {
    text-shadow: 0 0 10px rgba(255, 58, 58, 0.5);
}

.site-title::selection,
h2::selection {
    text-shadow: 0 0 20px #ff3a3a, 0 0 30px #ff3a3a, 0 0 40px #ff3a3a;
}

h2 {
    text-shadow: 0 0 10px rgba(255, 58, 58, 0.5);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 100;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.site-header .site-title {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.main-nav {
    margin: 0;
    padding: 0;
    border: none;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-dim);
    text-decoration: none;
}

.nav-list a:hover {
    color: var(--text-bright);
}

.nav-list a.active {
    color: var(--text);
}

.content {
    margin-bottom: 3rem;
}

.main-section,
.info-section,
.updates-section,
.index-section {
    margin-bottom: 3rem;
}

.index-table {
    border-collapse: collapse;
}

.index-table td {
    padding: 0.2rem 0;
}

.index-label {
    color: var(--text-dim);
    padding-right: 3rem;
}

.index-list {
    list-style: none;
}

.index-list li {
    padding: 0.25rem 0;
}

h2 {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h2::before {
    content: none;
}

p {
    margin-bottom: 0.75rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

.simple-list,
.link-list,
.updates-list {
    list-style: none;
}

.simple-list li,
.link-list li,
.updates-list li {
    padding: 0.25rem 0;
}

.simple-list li::before,
.link-list li::before {
    content: none;
}

.updates-list .date {
    color: var(--text-dim);
}

.journal-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.journal-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.entry-date {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.entry-link {
    display: block;
    color: inherit;
}

.entry-link:hover .entry-date,
.entry-link:hover .entry-preview {
    color: var(--text-bright);
}

.entry-preview {
    color: var(--text-dim);
    margin: 0;
}

.single-entry {
    border-bottom: none;
    padding-bottom: 0;
}

.back-link {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    font-weight: normal;
    color: var(--text-bright);
    margin: 1.5rem 0 0.75rem 0;
}

.entry-content h1::before,
.entry-content h2::before,
.entry-content h3::before {
    content: none;
}

.entry-content ul,
.entry-content ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
}

.entry-content li {
    padding: 0.25rem 0;
}

.entry-content blockquote {
    border-left: 1px solid var(--border);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-dim);
}

.entry-content code {
    background: #111;
    padding: 0.15em 0.4em;
}

.entry-content pre {
    background: #111;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content strong {
    color: var(--text-bright);
    font-weight: normal;
}

.entry-content em {
    font-style: italic;
}

.button-note {
    color: var(--text-dim);
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.button-container img {
    image-rendering: pixelated;
}

.site-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
}

.colourblind-toggle {
    background: none;
    border: 1px solid var(--text);
    color: var(--text);
    padding: 0.2rem 0.4rem;
    font-family: inherit;
    font-size: 0.65rem;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.colourblind-toggle:hover {
    color: var(--link-hover);
    border-color: var(--link-hover);
}

::selection {
    background: #ff3a3a;
    color: #000;
    text-shadow: 0 0 20px #ff3a3a, 0 0 30px #ff3a3a, 0 0 40px #ff3a3a;
}

a:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@media (min-width: 1200px) {
    html {
        font-size: 24px;
    }

    body {
        padding: 3rem;
        padding-top: 9rem;
    }

    .container {
        max-width: 900px;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 28px;
    }

    body {
        padding: 4rem;
        padding-top: 10rem;
    }

    .container {
        max-width: 1000px;
    }
}

@media (min-width: 2000px) {
    html {
        font-size: 32px;
    }

    body {
        padding: 5rem;
        padding-top: 11rem;
    }

    .container {
        max-width: 1100px;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    body {
        padding: 1rem;
        padding-top: 6rem;
    }

    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 400px) {
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .scanlines {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
