@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* type & motion (shared) */
    --font-display: 'Press Start 2P', ui-monospace, monospace;
    --font-body: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --transition: 0.5s ease;
}

/* Colours :3 */
:root, html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0e1a;
    --bg-alt: #111530;
    --panel: rgba(21, 26, 53, 0.42);
    --panel-border: rgba(120, 140, 220, 0.28);
    --text: #dfe3ff;
    --text-dim: #8b91c4;
    --heading: #fdf6d8;
    --accent: #f3e6a8;
    --link: #8fd3ff;
    --link-hover: #ffe37a;
    --hover-bg: rgba(255, 255, 255, 0.06);
    --glow: 0 0 12px rgba(243, 230, 168, 0.5);
    --link-glow: 0 0 18px rgba(143, 211, 255, 0.35);
    --selection: rgba(143, 211, 255, 0.28);
    --footer: #eef1ff;
    --name-tag: #8fd3ff;
}
html[data-theme="light"] {
    color-scheme: light;
    --bg: #eef1ff;
    --bg-alt: #e2e7fb;
    --panel: rgba(255, 255, 255, 0.45);
    --panel-border: rgba(120, 140, 220, 0.38);
    --text: #181c40;
    --text-dim: #5b6299;
    --heading: #2a2f8f;
    --accent: #e0a100;
    --link: #1f5fd6;
    --link-hover: #c2410c;
    --hover-bg: rgba(42, 47, 143, 0.07);
    --glow: none;
    --link-glow: none;
    --selection: rgba(42, 47, 143, 0.18);
    --footer: #eef1ff;
}
:root { --glass-blur: blur(8px); }
html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-image) center / cover no-repeat;
    pointer-events: none;
}

/* Enter screen */
#enter-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: var(--bg);
    color: var(--heading);
    cursor: pointer;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#enter-screen.hide { opacity: 0; visibility: hidden; }
.enter-title { font-family: var(--font-display); font-size: 22px; text-shadow: var(--glow); }
.enter-hint { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
body.locked { overflow: hidden; }

/* Padding And Margin */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); color: var(--text); }

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color var(--transition);
}
a:hover { color: var(--link-hover); }

:focus-visible {
    outline: 2px solid var(--link-hover);
    outline-offset: 3px;
    border-radius: 3px;
}

/* layout */
.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 225px;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0 24px;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

header.hero {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0 24px;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--panel-border);
}
#logo-link { border: none; text-shadow: none; }
header.hero .site-title {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--heading);
    text-shadow: var(--glow);
    animation: flickering 0.9s step-end infinite;
    will-change: opacity;
}

main { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar .panel { padding: 16px 18px; margin-bottom: 20px; }

/* Buttons */
button {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

/* Panels */
.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 28px;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 30px rgba(0, 0, 0, 0.22);
}
html[data-theme="light"] .panel {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 30px rgba(42, 47, 143, 0.12);
}
.panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    color: var(--heading);
}
.panel h2::before {
    content: '';
    width: 10px;
    height: 10px;
    flex: none;
    background: var(--accent);
}
.panel h2 a { border: none; color: inherit; }
.panel h3 { font-family: var(--font-display); font-size: 11px; font-weight: 400; color: var(--heading); margin: 14px 0 4px; }

.welcome-blurb { text-align: left; }
.welcome-blurb p { margin-bottom: 12px; max-width: 68ch; }
.welcome-blurb .stamp { font-size: 12px; font-style: italic; color: var(--text-dim); }

/* Framed picture & name tag */
.pfp {
    float: left;
    width: 120px;
    height: 130px;
    margin: 2px 16px 8px 0;
    object-fit: cover;
    border: 1px solid var(--panel-border);
    background: var(--bg-alt);
    image-rendering: pixelated;
}
.nametag:hover { color: var(--bg); background: var(--link-hover); }
.facts-title { clear: none; }

ul.facts { list-style: none; margin-top: 14px; }
ul.facts li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; }
ul.facts li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

/* Blog list */
ul.bloglist { list-style: none; }
ul.bloglist li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--panel-border);
}
ul.bloglist li:last-child { border-bottom: none; }
ul.bloglist .date { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* Sidebar links */
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 3px 0; }
.sidebar-links a { border: none; }
.sidebar-links a:hover { text-decoration: underline; }
.status-line { font-size: 13px; color: var(--text-dim); }
.ok { color: #5dffa6; }

/* Footer */
footer.pagefoot {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed var(--panel-border);
    font-size: 11px;
    color: var(--footer);
}

/* extras */
a { text-shadow: var(--link-glow); }
.panel h2 a, .sidebar-links a { text-shadow: var(--link-glow); }

/* flickering title */
@keyframes flickering {
    0% { opacity: 1; } 6% { opacity: 0.8; } 12% { opacity: 1; } 18% { opacity: 0.6; }
    24% { opacity: 1; } 30% { opacity: 0.9; } 36% { opacity: 1; } 44% { opacity: 1; }
    52% { opacity: 0.75; } 58% { opacity: 1; } 66% { opacity: 0.85; } 72% { opacity: 1; }
    80% { opacity: 0.55; } 86% { opacity: 1; } 92% { opacity: 0.9; } 100% { opacity: 1; }
}

/* CRT scanlines */
@media (min-width: 601px) {
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 900;
        pointer-events: none;
        opacity: 0.12;
        background: repeating-linear-gradient(0deg, transparent 0 2px, #000 2px 3px);
    }
    html[data-theme="light"] body::before { opacity: 0.03; }
}

.skip-to {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 10px;
    font-family: var(--font-display);
    background: var(--bg);
    border: 1px solid var(--panel-border);
    transform: translateY(-120%);
    transition: transform 0.2s;
    z-index: 1300;
}
.skip-to:focus { transform: none; }

.arrow { color: var(--accent); font-weight: bold; margin-right: 8px; }
.moon-c { color: #ffe98a; }
.cloud-c { color: #8fd3ff; }

marquee { display: block; margin-bottom: 20px; color: var(--text-dim); font-size: 13px; }
marquee * { text-shadow: none; }

.terminal { background: rgba(0, 0, 0, 0.55); color: #d3d3d3; border-color: #383838; }
.terminal h2 { color: #d3d3d3; }
.terminal .ok { color: #36fda0; text-shadow: 0 0 12px #36fda0; }

.sidebar textarea {
    width: 100%;
    height: 62px;
    resize: none;
    margin-top: 8px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--panel-border);
    font-family: var(--font-body);
    font-size: 11px;
}
.center { text-align: center; }
.sidebar .center small { display: block; margin-top: 6px; color: var(--text-dim); }

#menu-toggle, #menu-backdrop { display: none; }

/* Menu */
@media (max-width: 920px) {
    .page { grid-template-columns: minmax(0, 1fr); padding: 60px 12px 60px; }
    .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    padding: 64px 10px 10px;
    background: var(--panel);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--panel-border);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1201;
    }
    #menu-toggle {
        display: flex;
        align-items: center;
        position: fixed;
        top: 12px;
        right: 12px;
        height: 34px;
        line-height: 1;
        z-index: 1203;
        background: var(--bg);
        color: var(--link);
        padding: 7px 10px;
        font-size: 12px;
    }
    #menu-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, 0.45); }
    body.menu-open { overflow: hidden; }
    body.menu-open .sidebar { transform: none; }
    body.menu-open #menu-backdrop { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Theme button */
header.hero { position: relative; }
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1203;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--accent);
    cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }
.theme-toggle .dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
@media (max-width: 920px) {
    .theme-toggle { right: 110px; }
}

/* Blog Post Page */
.post h2 { margin-bottom: 6px; }
.post-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--panel-border); }
.post-body { font-size: 15px; line-height: 1.8; }
.post-body p { margin: 0 0 1.2em; max-width: 68ch; overflow-wrap: anywhere; }
.post-body h3 { margin: 1.8em 0 0.6em; }
.post-body blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); color: var(--text-dim); }
.post-body img { max-width: 100%; height: auto; }
.post-back { display: inline-block; margin-bottom: 14px; font-size: 13px; border: none; }
.post-back:hover { text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--panel-border); font-size: 13px; }
.post-nav a { border: none; }
@media (max-width: 600px) { .post-body { font-size: 14px; line-height: 1.75; } }

/* Blog With Config (main) Panel */
body.blog-page .page {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 32px 100px;
    transition: padding-right 0.25s ease;
}
body.blog-page.menu-open .page { padding-right: 292px; }
body.blog-page .post-body p { max-width: none; }

body.blog-page .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    padding: 64px 10px 10px;
    background: var(--panel);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--panel-border);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1201;
}
body.blog-page.menu-open .sidebar { transform: none; }

body.blog-page #menu-toggle {
    display: flex;
    align-items: center;
    position: fixed;
    top: 12px;
    right: 12px;
    height: 34px;
    line-height: 1;
    z-index: 1203;
    background: var(--bg);
    color: var(--link);
    padding: 7px 10px;
    font-size: 12px;
}
body.blog-page .theme-toggle { right: 110px; }

/* Responsive Config (Menu) */
body.blog-page.menu-open #menu-backdrop { display: block; inset: 0 260px 0 0; background: transparent; z-index: 1200; }

@media (max-width: 920px) {
    body.blog-page .page { padding: 60px 12px 60px; }
    body.blog-page.menu-open .page { padding-right: 12px; }
    body.blog-page .sidebar { width: min(82vw, 260px); }
    body.blog-page.menu-open #menu-backdrop { inset: 0; background: rgba(0, 0, 0, 0.45); }
}

/* Scroll */
* { scrollbar-width: thin; scrollbar-color: var(--panel-border) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
::-webkit-scrollbar-corner { background: transparent; }

/*Fixed Buttons (LINUX) */
@media (max-width: 920px), (hover: none) and (pointer: coarse) {
    #menu-toggle,
    body.blog-page #menu-toggle,
    .theme-toggle,
    body.blog-page .theme-toggle { position: absolute; }
    header.hero { position: static; }
}

/* Arts gallery */
.gallery-count { font-size: 12px; color: var(--text-dim); margin: -6px 0 14px; }
.gallery-empty { color: var(--text-dim); padding: 20px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gallery-card {
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--hover-bg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.gallery-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.gallery-card.broken { opacity: 0.4; }
.gallery-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-alt);
    cursor: zoom-in;
}
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card-info { padding: 8px 10px; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
 
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox-content { position: relative; margin: 0; max-width: 94vw; text-align: center; }
.lightbox-img { display: block; max-width: 94vw; max-height: 78vh; margin: 0 auto; border: 1px solid var(--panel-border); border-radius: 8px; background: var(--bg-alt); }
.lightbox-info { margin-top: 10px; font-size: 13px; color: #e8e8f4; display: flex; justify-content: center; gap: 14px; }
.lightbox-count { color: #9aa0c8; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-family: var(--font-body);
    font-size: 26px;
    line-height: 1;
    color: #e8e8f4;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--panel-border);
    border-radius: 50%;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--link-hover); border-color: var(--link-hover); }
.lightbox-close { top: -14px; right: -6px; }
.lightbox-prev { left: -6px; top: calc(50% - 40px); }
.lightbox-next { right: -6px; top: calc(50% - 40px); }
.lightbox-prev[hidden], .lightbox-next[hidden] { display: none; }
 