@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Inconsolata:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');


:root {
    --bg: #000000;
    --surface: #222129;
    --border: #d179fd;
    --text-title: #d179fd;
    --text: #f9eeff;
    --text-bold: #d179fd;
    --text-muted: #9a9a9a;
    --font-scale: 1em;
    --sidebar-width: 320px;
    --rule: 1px;
    --page-max-width: 72rem;
    --font-title: '';
    --font-display: "UnifrakturCook", serif;
    --font-main: 'Inconsolata', monospace;

    --border-style: var(--rule) solid var(--border);
}

b {
    color: var(--text-bold);
    text-shadow: 0 0 3px #d179fd9d;
}

::selection {
    background-color: var(--text-bold);
    /* Highlight color */
    color: var(--surface);
}

* {
    box-sizing: border-box;
}

/* Effects (only visible on desktop)*/
/* Effects: scanlines */

#scanlines.active::before {
    content: " ";
    display: block;
    position: fixed;
    pointer-events: none;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgb(0 0 0 / 30%) 50%, rgb(0 0 0 / 0%) 50%);
    background-size: auto;
    background-size: 100% 2px, 3px 100%;
    z-index: 100;
}

/* Effects: rain */
#rain {
    display: none;
}

#rain.active {
    display: block;
    position: fixed;
    width: calc(100vw + 500px);
    left: -500px;
    top: 0;
    z-index: -2;
    opacity: 0.55;
}

html,
body {
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: var(--font-scale);
    line-height: 1.6;
}

img {
    max-width: 100%;
    border: var(--border-style);
    display: block;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--bg);
    background: var(--text-title);
}

::-webkit-scrollbar {
    width: 10px;
}

/* -------------------------------------------------------------- *
 * layout 
 * -------------------------------------------------------------- */

.layout {
    background: var(--surface);
    display: flex;
    max-width: var(--page-max-width);
    margin: 2rem auto;
    border-left: var(--border-style);
    border-right: var(--border-style);
    border-bottom: var(--border-style);
    border-top: var(--border-style);
    min-height: 100vh;
}

/* sidebar */

.sidebar {
    /* position: sticky; */
    top: 0;
    align-self: flex-start;
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--border-style);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text-title);
}

.subtitle {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;
    /* text-transform: uppercase; */
    font-style: italic;
}

.profile {
    border: 1px solid var(--border);
    border-top: 8px solid var(--border);
    padding: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    font-size: 0.8rem;
}

.profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.profile-blurb {
    border: 1px solid var(--border);
    padding: 5px;
}

.noborder {
    border: none;
}

.profile .profile-img {
    flex: 0 0 60px
}

.profile img {
    border: 1px solid var(--border);
}

.profile .profile-desc {
    color: var(--text-muted);
    margin: 0;
}


.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 24px;
}

.menu-link {
    border: 1px solid var(--border);
    text-decoration: none;
    padding: 3px 6px;
    display: inline-block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
}

.menu-link:hover {
    background: var(--text-title);
    border-color: var(--border);
    color: var(--surface);
}

.menu-link.active {
    background: var(--text-title);
    border-color: var(--border);
    color: var(--bg);
    font-weight: bold;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 34px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Control panel */

.control-panel {
    border: 1px solid var(--border);
    border-top: 8px solid var(--border);
    padding: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    font-size: 0.8rem;
}

.control-panel-labels {
    display: flex;
    flex-direction: column;
}


/* -------------------------------------------------------------- *
 * main content
 * -------------------------------------------------------------- */

.main {
    display: flex;
    flex-direction: column;
    border-left: var(--border-style);
    flex: 1 1 auto;
    min-width: 0;
}

.card-title {
    font-family: var(--font-display);
    color: var(--text-title);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.15;
    margin: 0;
}

.page-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.title-deco {
    font-family: var(--font-display);
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-columns>div {
    flex: 1 1 220px;
}

.about-columns h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-columns ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-columns ul li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.about-columns ul li:last-child {
    border-bottom: none;
}


.content-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(120px, auto);
    grid-auto-flow: dense;
    gap: 1px;
    padding-bottom: 1px;
    background-color: #d179fd;
}

.card {
    background: var(--surface);
    /* border-bottom: var(--border-style); */
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card--wide {
    grid-column: 1 / -1;
}

.card--large {
    grid-column: span 4;
}

.card--small {
    grid-column: span 2;
}

.card--tall {
    grid-row: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    clip-path: polygon(calc(100% - 20px) 0,
            100% 50%,
            calc(100% - 20px) 100%,
            0 100%,
            0 0);
    color: var(--bg);
    background-color: var(--border);
    padding: 7px;
    gap: 1rem;
    font-family: monospace;
}

.card-header b {
    font-weight: bold;
    color: var(--surface);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 16px;
}

.card-header small {
    font-weight: bold;
    text-transform: lowercase;
    white-space: nowrap;
}

.card p {
    margin: 0;
}

.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.card ul li:last-child {
    border-bottom: none;
}

.card ul a {
    text-decoration: none;
}

.card ul a:hover {
    text-decoration: underline;
}

.card .button {
    align-self: flex-start;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card .button:hover {
    background: var(--border);
    color: var(--surface);
}

/* -------------------------------------------------------------- *
 * footer
 * -------------------------------------------------------------- */
.site-footer {
    background: var(--surface);
    margin-top: auto;
    color: var(--text-muted);
    font-size: 12px;
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    padding: 1.25rem;
    text-align: center;
}

.site-footer::after {
    content: "⁺₊✧ victorialopez.net ✧ last updated 2026-08-07 ✧₊⁺";
}

/* -------------------------------------------------------------- *
 * mobile
 * -------------------------------------------------------------- */

@media (max-width: 768px) {
    .main {
        border-left: none;
    }

    .layout {
        flex-direction: column;
        margin: 0;
        min-height: 100vh;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: none;
    }

    .sidebar {
        position: relative;
        top: auto;
        align-self: stretch;
        flex-basis: auto;
        width: 100%;
        height: auto;
        overflow: visible;
        border-right: none;
        border-bottom: var(--border-style);
        padding: 1.25rem 1.5rem;
    }

    .subtitle,
    .profile {
        display: none;
    }

    .control-panel {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }


    .menu {
        display: none;
        position: static;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        margin-top: 14px;
        margin-bottom: 0;
        border: var(--border-style);
        background: var(--surface);
    }

    .menu.open {
        display: flex;
    }

    .menu-link {
        border: none;
        border-bottom: 1px solid var(--border);
        padding: 11px 12px;
        font-size: 15px;
    }

    .menu-link:last-child {
        border-bottom: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }

    .card--wide,
    .card--tall,
    .card--large,
    .card--small {
        grid-column: auto;
        grid-row: auto;
        border-right: none;
    }

    .card-title {
        font-size: 30px;
    }

    .about-columns {
        gap: 1.25rem;
    }

    .site-footer {
        padding: 1.25rem;
        border-bottom: none;
        border-right: none;
    }

    #rain {
        display: none;
    }
}

/* -------------------------------------------------------------- *
 * shared: section dividers (year / month / group labels)
 * -------------------------------------------------------------- */

.section-divider {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: var(--bg);
    background-color: var(--border);
    padding: 7px 10px;
    font-family: "UnifrakturCook";
}

.section-divider b {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
}

/* -------------------------------------------------------------- *
 * masonry boxes (links, lists)
 * -------------------------------------------------------------- */

.masonry {
    column-count: 3;
    column-gap: 0;
}

.masonry .box {
    break-inside: avoid;
    border: 0.5px solid var(--border);
    width: 100%;
}

.card p,
.box p {
    margin: 0;
}

.card ul,
.box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card ul li,
.box ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.card ul li:last-child,
.box ul li:last-child {
    border-bottom: none;
}

.card ul a,
.box ul a {
    text-decoration: underline;
}

.card ul a:hover,
.box ul a:hover {
    background: var(--text);
    color: var(--bg);
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.button-grid img {
    max-height: 31px;
    width: auto;
    image-rendering: pixelated;
}

/* -------------------------------------------------------------- *
 * gallery (art, wall) 
 * -------------------------------------------------------------- */

.gallery {
    column-count: 4;
    column-gap: 0;
}

.gallery-item {
    break-inside: avoid;
    cursor: pointer;
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    margin: 0;
}

.gallery-item.gallery-cw {
    border: var(--border-style);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------------- *
 * lightbox (art, wall)
 * -------------------------------------------------------------- */

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(12, 12, 12, 0.92);
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--surface);
    border: var(--border-style);
    display: flex;
    flex-direction: column;
}

.lightbox-box img {
    display: block;
    max-width: 90vw;
    max-height: 75vh;
    width: auto;
    height: auto;
    margin: 0;
    border: none;
}

.lightbox-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 10px 14px;
    border-top: var(--border-style);
    font-size: 13px;
    color: var(--text-muted);
}

.lightbox-caption b {
    color: var(--text);
    font-weight: bold;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: var(--text);
    color: var(--bg);
}

/* -------------------------------------------------------------- *
 * post cards (microblog) -- header reuses .card-header,
 * body wraps loose paragraphs/images/quotes with spacing
 * -------------------------------------------------------------- */

.post-content>*+* {
    margin-top: 0.75rem;
}

.post-content img {
    max-height: 420px;
    width: auto;
}

.post-content blockquote {
    margin: 0;
    padding: 8px 14px;
    border-left: 3px solid var(--border);
    color: var(--text-muted);
    font-style: italic;
}

.content-warning {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .masonry {
        column-count: 2;
    }

    .gallery {
        column-count: 3;
    }
}

@media (max-width: 480px) {
    .masonry {
        column-count: 1;
    }

    .gallery {
        column-count: 2;
    }

    .lightbox-overlay {
        padding: 0.75rem;
    }
}

.imgtext {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}


/* Background patterns */

.bg-paper-lines {
    background-color: #222129;
    background-image: repeating-linear-gradient(to right, transparent 0, transparent 1.6666666666666667px, #222129 1.6666666666666667px, #222129 5px, transparent 5px, transparent 6.666666666666667px), repeating-linear-gradient(to bottom, transparent 0, transparent 1.6666666666666667px, #222129 1.6666666666666667px, #222129 5px, transparent 5px, transparent 6.666666666666667px), linear-gradient(to bottom, #d179fd 0.6px, transparent 0.6px), linear-gradient(to right, #d179fd 0.6px, transparent 0.6px);
    background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 0 -0.2px, -0.2px 0;
}

.bg-paper-lines-thin {
    background-color: #222129;
    /* opacity: 0.8; */
    background-image: linear-gradient(#d179fd 1px, transparent 1px), linear-gradient(90deg, #d179fd 1px, transparent 1px), linear-gradient(#d179fd 0.5px, transparent 0.5px), linear-gradient(90deg, #d179fd 0.5px, #222129 0.5px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -1px -1px, -1px -1px, -0.5px -0.5px, -0.5px -0.5px;
}

.bg-crosses {
    background-color: var(--surface);
    background: radial-gradient(circle, transparent 20%, var(--surface) 20%, var(--surface) 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, var(--surface) 20%, var(--surface) 80%, transparent 80%, transparent) 25px 25px, linear-gradient(var(--border) 2px, transparent 2px) 0 -1px, linear-gradient(90deg, var(--border) 2px, var(--surface) 2px) -1px 0;
    background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
}


/* -------------------------------------------------------------- *
 * custom checkboxes
 * -------------------------------------------------------------- */

/* Container wrapper for alignment */
label.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    color: var(--text);
    font-size: 14px;
    user-select: none;
}

/* Hide native checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    background-color: var(--surface);
    cursor: pointer;
    position: relative;
    display: grid;
    place-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Hover effect matching your menu buttons */
input[type="checkbox"]:hover {
    border-color: var(--border);
    box-shadow: 0 0 5px #d179fd9d;
}

/* Focus style for accessibility */
input[type="checkbox"]:focus-visible {
    outline: 1px solid var(--text-title);
    outline-offset: 2px;
}

/* Custom Checkmark (Pixelated / Terminal X or Check) */
input[type="checkbox"]::before {
    content: "×"; /* Renders a sharp 'X' that fits the Y2K/gothic style */
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: bold;
    color: var(--bg);
    transform: scale(0);
    transition: transform 0.1s ease-in-out;
    line-height: 1;
}

/* Checked state */
input[type="checkbox"]:checked {
    background-color: var(--border);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Disabled state */
input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--text-muted);
}