/* Minimalist website CSS */

/* --- Font Imports --- */
/* Google Fonts: Bitter (Headers), Source serif 4 (Body), Crimson Pro (Body) */
@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&display=swap");
/* @import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..144,200..900;1,8..144,200..900&display=swap'); */

/* Local Font: Fira Code (kept for code blocks) */
@font-face {
    font-family: "Fira Code";
    src: url("../assets/fonts/Fira_Code_v6.2/woff2/FiraCode-Light.woff2")
        format("woff2");
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: "Fira Code";
    src: url("../assets/fonts/Fira_Code_v6.2/woff2/FiraCode-Regular.woff2")
        format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Fira Code";
    src: url("../assets/fonts/Fira_Code_v6.2/woff2/FiraCode-Medium.woff2")
        format("woff2");
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: "Fira Code";
    src: url("../assets/fonts/Fira_Code_v6.2/woff2/FiraCode-SemiBold.woff2")
        format("woff2");
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: "Fira Code";
    src: url("../assets/fonts/Fira_Code_v6.2/woff2/FiraCode-Bold.woff2")
        format("woff2");
    font-weight: 700;
    font-style: normal;
}

/* JetBrains Mono for enhanced readability */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

/* CMU Serif (Computer Modern Unicode) — Knuth's LaTeX default, self-hosted */
@font-face {
    font-family: "CMU Serif";
    src: url("../assets/fonts/cmu-serif/cmu-serif-500-roman.woff2")
        format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "CMU Serif";
    src: url("../assets/fonts/cmu-serif/cmu-serif-500-italic.woff2")
        format("woff2");
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: "CMU Serif";
    src: url("../assets/fonts/cmu-serif/cmu-serif-700-roman.woff2")
        format("woff2");
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: "CMU Serif";
    src: url("../assets/fonts/cmu-serif/cmu-serif-700-italic.woff2")
        format("woff2");
    font-weight: 700;
    font-style: italic;
}

/* Newsreader — on-screen serif by Production Type, commissioned by Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap");

/* Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
/* Work sans */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* Roboto Mono */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,200;1,300&display=swap");

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

#green-txt {
    color: #40a02b;
}

#lavender-txt {
    color: #7287fd;
}

#lavender-txt a {
    color: inherit;
}

#teal-txt {
    color: #179299;
}

#sapphire-txt {
    color: #209fb5;
}

#purple-txt {
    color: #9058f8;
}

#turquoise-txt {
    color: #00fcb5;
}

#quote-txt {
    color: #8c8fa1;
}

#agender-gradient {
    background: linear-gradient(
        90deg,
        #000,
        #bababa,
        #fff,
        #b8f483,
        #fff,
        #bababa,
        #000
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#rainbow-gradient {
    background: linear-gradient(
        90deg,
        #ff00ea,
        #ff8a00,
        #ffe600,
        #4cff00,
        #00c3ff,
        #7b00ff
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 200;
    text-align: left;
}

body {
    font-family: "Fira Code";
    font-weight: 200;
    line-height: 1.5;
    color: #c6d0f5;
    background-color: #0a0a0f;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    font-size: 14px;
}

/* Paper Shaders wallpaper — fixed full-screen canvas mount over dimmed image */
#paper-wallpaper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: #9fadbc;
    background-image: url("/assets/images/nuclear-circle-crops-dark.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#paper-wallpaper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    mix-blend-mode: soft-light;
}

/* --- Typography & Links --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Bitter", serif;
    font-weight: 200;
    text-align: left;
}

.site-link {
    color: #d4c896;
}
.site-link:hover {
    color: #e8dba8;
}

.make-white {
    color: #c6d0f5;
    -webkit-text-fill-color: #c6d0f5;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* utility: purple → cyan → lavender gradient text */
.make-purple {
    background: linear-gradient(90deg, #7f3de8 10%, #4be83d 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-align: left;
}

a {
    color: #9058f8;
    text-decoration: none;
    transition: all 0.2s ease;
    text-decoration: underline;
}

a:hover {
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

nav a {
    font-family: "Newsreader", serif;
    color: #2d1b4e;
    font-weight: 500;
}

/* --- Layout Components --- */
main {
    margin-bottom: 40px;
}

.intro {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.category {
    margin-bottom: 15px;
}
.category p:first-child {
    font-weight: normal;
}

.particle-toggle {
    text-align: left;
    margin: 20px 0;
}

.particle-toggle label {
    cursor: pointer;
    font-size: 0.9em;
}
.particle-toggle input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.markdown-content img.figure {
    max-width: 60%;
    display: block;
    margin: 20px auto;
}

/* caption */
.caption {
    text-align: center;
    display: block;
    margin: 4px auto 20px;
    font-style: italic;
    font-size: 0.9em;
    color: #8c8fa1;
}
.markdown-content p.caption {
    max-width: 60%;
    box-sizing: border-box;
}

/* equations rendered as standalone italic paragraphs from markdown */
.equation {
    text-align: center;
    display: block;
    margin: 4px auto 20px;
    font-style: italic;
}

/* writing.html — gradient + tiled SVG noise (TV static), noise at ~50% opacity */
/* body.page-writing {
    --writing-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix type='saturate' values='0' in='t'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-color: #0f1228;
    background-image: var(--writing-noise), linear-gradient(
        125deg,
        #00fcb52c 0%,
        #209fb566 35%,
        #9058f860 100%
    );
    background-size: 256px 256px, cover;
    background-repeat: repeat, no-repeat;
    background-position: 0 0, center;
    min-height: 100vh;
} */

.writings a {
    color: #c6d0f5;
    /* no underline */
    text-decoration: none;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: transform 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    cursor: zoom-in;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 95%;
    max-height: 95vh;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(95vh - 60px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    color: #c6d0f5;
    font-size: 0.95rem;
    text-align: center;
    max-width: 720px;
    line-height: 1.4;
}

.lightbox-caption:empty {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 12px;
}

.lightbox-close:hover {
    color: #c6d0f5;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
}

/* --- Box Grid --- */
.box-grid {
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center items */
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap; /* responsive wrap */
}

.box {
    border: 1px solid rgba(127, 61, 232, 0.45); /* translucent blue/violet edge */
    padding: 20px;
    width: 31%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
    transition: all 0.3s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background: rgba(8, 10, 24, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 4px 30px rgba(20, 24, 64, 0.35), inset 0 0 0 1px rgba(144, 200, 255, 0.05);
}

.box:hover {
    box-shadow: 0 6px 40px rgba(80, 120, 255, 0.25), inset 0 0 0 1px rgba(160, 200, 255, 0.18);
}

.long-box {
    border: 1px solid rgba(127, 61, 232, 0.45);
    padding: 10px;
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
    overflow-wrap: break-word;
    background: rgba(8, 10, 24, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 4px 30px rgba(20, 24, 64, 0.35), inset 0 0 0 1px rgba(144, 200, 255, 0.05);
}

/* to make box slimmer? */
.long-box:hover {
    box-shadow: 0 2px 6px rgba(236, 0, 0, 0.1);
}

/* --- Markdown Content --- */
.markdown-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    padding: 20px 0;
    line-height: 1.8; /* Slightly more breathing room for serif body */
    font-family: "Inter", sans-serif;
}

.markdown-content h1 {
    font-size: 2em;
    margin-bottom: 30px;
}
.markdown-content h2 {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
}
.markdown-content h3 {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
}
.markdown-content p {
    margin-bottom: 20px;
}
.markdown-content ul,
.markdown-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}
.markdown-content li {
    margin-bottom: 8px;
}

.markdown-content blockquote {
    border-left: 3px solid #9a60ff;
    padding-left: 20px;
    margin-left: 0;
    color: #8d4bf7;
    font-style: italic;
    font-family: "JetBrains Mono", monospace; /* Use Bitter for quotes */
    margin-bottom: 20px;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.markdown-content code {
    font-family:
        "JetBrains Mono", monospace; /* Keep Fira Code for inline code */
    background-color: #ede9fe;
    padding: 2px 4px;
    border-radius: 3px;
    color: #5b21b6;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #ede9fe;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-family: "Fira Code", monospace; /* Keep Fira Code for code blocks */
}

.markdown-content em,
.markdown-content i {
    font-style: italic;
}
.markdown-content strong,
.markdown-content b {
    font-weight: bold;
}

/* --- Footer --- */
footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.9em;
    color: #5b21b6;
    opacity: 0.7;
    font-family: "Bitter", serif;
}

.post-navigation {
    margin-top: 40px;
    text-align: left;
}
.footnotes {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ede9fe;
    font-size: 0.9em;
}
.post-metadata {
    font-style: italic;
    color: #5b21b6;
    opacity: 0.8;
    margin-bottom: 30px;
    font-size: 0.9em;
}

/* ===== Dark page layout (index, quests, me, readlogs, social-graph) ===== */

body.dark-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    min-width: 0;
    /* padding: 80px 20px 40px; */
}

.pane {
    background: #0a0a14;
    border: 1px solid rgba(127, 61, 232, 0.25);
    border-radius: 3px;
    box-shadow: 0 0 24px rgba(127, 61, 232, 0.06);
    max-width: 1000px;
    width: 100%;
    min-width: 0;
    padding: 36px 40px;
    overflow-x: wrap;
    font-family: "Fira Code", "JetBrains Mono", "Roboto Mono", monospace;
    animation: fadeIn 1.2s ease-out;
}

.pane h1 {
    font-family: "Fira Code", monospace;
    font-size: 2em;
    font-weight: 200;
    color: #ffffff;
    margin: 0 0 4px;
}

.pane h2 {
    color: #9058f8;
    font-family: "Fira Code", monospace;
    font-weight: 200;
    font-size: 1.5em;
    margin: 18px 0 8px;
}

.pane p {
    margin-bottom: 5px;
    font-size: 1em;
    line-height: 1.5;
    color: #c6d0f5;
}

.pane a {
    color: #838ba7;
    text-decoration: none;
    transition: all 0.2s;
}

.pane a:hover {
    color: #fff;
}

.pane hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 14px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .pane {
        padding: 24px 20px;
    }
    .pane h1 {
        font-size: 1.15em;
    }
    header {
        padding: 12px 16px;
    }
}

body.dark-page nav {
    display: flex;
    align-items: center;
    gap: 2em;
}

body.dark-page nav a {
    color: #89dceb;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s,
        border-color 0.2s;
    font-family: "Newsreader", serif;
}

body.dark-page nav a:hover {
    color: #a6e3a1;
}

body.dark-page nav a[aria-current="page"] {
    color: #89dceb;
    border-bottom-color: #89dceb;
}

body.dark-page nav .theme-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1em;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}

body.dark-page nav .theme-toggle:hover {
    color: #b39ddb;
}
body.dark-page nav .theme-toggle.active {
    color: #44c1ff;
}

.pane.transparent {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.purple-gradient {
    background: linear-gradient(90deg, #ebfc00, #9058f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 200;
    text-align: left;
}

.trans-gradient {
    background: linear-gradient(
        90deg,
        #5bcefa,
        #f5a9b8,
        #fff,
        #f5a9b8,
        #5bcefa
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gray-txt {
    color: #838ba7;
    font-weight: 300;
}

.text-arbor {
    font-family: "Fira Code", monospace;
    font-size: 0.9em;
    line-height: 1.5;
    color: #c6d0f5;
    background: none;
    border: none;
    padding: 8px 0;
    margin: 8px 0;
    overflow-x: wrap;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}

/* ===== Full-screen layout ===== */

body.dark-page.fullscreen .video-bg,
body.dark-page.fullscreen .overlay {
    display: none;
}

body.dark-page.fullscreen .landing-content {
    padding: 0;
}

body.dark-page.fullscreen .pane {
    max-width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    height: 100vh;
    padding: 80px 60px 0;
    animation: none;
    overflow-y: auto;
}

body.dark-page.fullscreen .pane nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    margin-bottom: 0;
}

body.dark-page.fullscreen .pane .markdown-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

/* ===== Writing pages inside dark layout ===== */

body.dark-page .markdown-content {
    color: #c6d0f5;
    max-width: 100%;
    padding: 0;
    font-family: "Newsreader", "Crimson Pro", Georgia, serif;
    font-size: 16px;
    line-height: 1.5;
}

body.dark-page .markdown-content h1 {
    color: #9140d0;
    font-size: 2em;
    font-weight: 700;
    font-family: "Newsreader", serif;
    line-height: 1.2;
    margin-top: 1em;
    margin-bottom: 0.67em;
}
body.dark-page .markdown-content h2 {
    color: #9140d0;
    font-size: 1.5em;
    font-weight: 700;
    font-family: "Newsreader", serif;
    line-height: 1.2;
    margin-top: 0.83em;
    margin-bottom: 0.83em;
}

body.dark-page .markdown-content h3 {
    color: #9140d0;
    font-size: 1.17em;
    font-weight: 700;
    font-family: "Newsreader", serif;
    line-height: 1.2;
    margin-top: 1em;
    margin-bottom: 1em;
}

body.dark-page .markdown-content p {
    margin-bottom: 1em;
    padding-bottom: 0;
}
body.dark-page .markdown-content li {
    color: #c6d0f5;
    opacity: 0.85;
    margin-bottom: 0.25em;
    line-height: 1.5;
}

/* Editorial bullet design — em-dash marker with hanging indent */
body.dark-page .markdown-content ul {
    list-style: none;
    padding-left: 1.25em;
    margin-bottom: 1em;
}
body.dark-page .markdown-content ul > li {
    position: relative;
    padding-left: 0.75em;
}
body.dark-page .markdown-content ul > li::before {
    content: "—";
    position: absolute;
    left: -0.55em;
    top: 0;
    color: #9140d0;
    opacity: 0.8;
    font-weight: 400;
}
body.dark-page .markdown-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
body.dark-page .markdown-content ol > li::marker {
    color: #9140d0;
    opacity: 0.8;
    font-family: "Newsreader", serif;
}

body.dark-page .markdown-content a {
    color: #94e2d5;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

body.dark-page .markdown-content a:hover {
    color: #a6e3a1;
}

body.dark-page .markdown-content code {
    background-color: rgba(144, 88, 248, 0.12);
    color: #c6d0f5;
}

body.dark-page .markdown-content pre {
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(198, 208, 245, 0.08);
}

body.dark-page .markdown-content blockquote {
    color: #809cd1;
    border-left-color: #d07277;
    font-family: "CMU Serif", "Newsreader", serif;
    font-style: italic;
}

body.dark-page .markdown-content em,
body.dark-page .markdown-content i {
    color: #89dceb;
}

body.dark-page .markdown-content strong,
body.dark-page .markdown-content b {
    color: #bf956a;
    font-weight: 700;
}

/* Post metadata — author, date, tags (Glassmorphic Nu Disco palette) */
body.dark-page .markdown-content .post-meta {
    margin-bottom: 1.5em;
}
body.dark-page .markdown-content .post-author {
    color: #9140d0;
}
body.dark-page .markdown-content .post-date {
    color: #809cd1;
}
body.dark-page .markdown-content .post-tag {
    font-size: 0.8em;
    border: 1px solid rgba(148, 226, 213, 0.4);
    border-radius: 0;
    padding: 2px 6px;
    margin-left: 8px;
    font-family: "Fira Code", monospace;
    text-decoration: none;
    color: #94e2d5;
    opacity: 0.85;
    transition:
        opacity 0.2s,
        border-color 0.2s;
}
body.dark-page .markdown-content .post-tag:hover {
    opacity: 1;
    border-color: #94e2d5;
    color: #94e2d5;
}
body.dark-page .markdown-content .post-tag:hover {
    opacity: 1;
    border-color: #74ade8;
    color: #74ade8;
}

body.dark-page .post-navigation {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(198, 208, 245, 0.08);
}

body.dark-page .post-navigation a {
    color: #5900ff;
    font-family: "Fira Code", monospace;
    font-size: 0.85em;
    text-decoration: none;
}

body.dark-page .post-navigation a:hover {
    color: #c6d0f5;
}

/* ── Writing page: violetswap terminal theme ── */

body.page-writing .tags-cloud {
    margin-bottom: 25px;
}

body.page-writing .tags-cloud .tags-label {
    opacity: 0.6;
    font-family: "Fira Code", monospace;
    font-size: 0.9em;
}

/* tag links — thin white border, sharp corners, offset purple rect */
body.page-writing .tags-cloud a {
    border: 1px solid #c6d0f5;
    border-radius: 0px;
    padding: 2px 6px;
    margin-left: 8px;
    font-family: "Fira Code", monospace;
    font-size: 0.8em;
    text-decoration: none;
    color: #c6d0f5;
    display: inline-block;
    margin-bottom: 6px;
    box-shadow: 2px 2px 0 #7f3de8;
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

body.page-writing .tags-cloud a:hover {
    box-shadow:
        2px 2px 0 #7f3de8,
        0 0 10px rgba(198, 208, 245, 0.15);
    text-shadow: 0 0 6px rgba(198, 208, 245, 0.25);
}

/* joke tags — dotted borders */
body.page-writing .tags-cloud a[href*="experimentalist-confetti"],
body.page-writing .tags-cloud a[href*="theorists-attempting-to-touch-ground"] {
    border-style: dotted;
}

/* Section headers */
body.page-writing h2 {
    color: #b39ddb;
    border-bottom: 1px solid #2a2a3a;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}
body.page-writing h2::before {
    content: "§ ";
    opacity: 0.5;
}

/* Post list grid — date column + title column */
.post-list {
    list-style: none;
    padding: 0;
}
.post-list li {
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 1.5em;
    padding: 0.15em 0;
}
.post-list li {
    position: relative;
}
.post-list .date {
    color: #555;
    font-variant-numeric: tabular-nums;
}
.post-list li::before {
    content: "▸";
    position: absolute;
    left: -1.2em;
    color: #b39ddb;
    opacity: 0;
    transition:
        opacity 120ms,
        transform 120ms;
}
.post-list li:hover::before {
    opacity: 1;
    transform: translateX(2px);
}
.post-list li:hover .title {
    color: #fff;
}

/* --- Light Mode --- */
body.light-mode {
    background: #e8e4df url('/assets/images/nuclear-circle-crops.jpg') center/cover fixed;
    color: #1a1a2e;
}
body.light-mode a { color: #5b21b6; }
body.light-mode a:hover { color: #7c3aed; }
body.light-mode .site-link { color: #92400e; }
body.light-mode footer p { color: #6b7280; }
body.light-mode .make-purple {
    background: linear-gradient(90deg, #5b21b6, #059669);
    -webkit-background-clip: text;
    background-clip: text;
}
body.light-mode .box,
body.light-mode .long-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(50px);
}
body.light-mode .box[style*="9058f8"],
body.light-mode .box[style*="7287fd"],
body.light-mode .long-box[style*="9058f8"],
body.light-mode .long-box[style*="7287fd"] {
    border-color: rgba(144, 88, 248, 0.3) !important;
    box-shadow: 0 4px 30px rgba(144, 88, 248, 0.12);
}
