:root {
    --bg: #c9c3b5;
    --text: #24231f;
    --muted: #69655d;

    --primary: #d94d20;
    --secondary: #d94d20;
    --highlight: #d94d20;
    --tertiary: #24231f;
    --warm: #d94d20;
    --brightblue: "#0075f2";


    --font: "JetBrains Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--bg);
    color: var(--text);

    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
}


/* MAIN LAYOUT */

.site-layout {
    max-width: 1280px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 0 36px;

    display: grid;
    grid-template-columns: minmax(400px, 0.9fr) minmax(460px, 1.1fr);
    gap: 52px;
}


/* LEFT SIDEBAR */

.sidebar {
    min-width: 0;
    width: 100%;
}

.sidebar-inner {
    position: sticky;
    top: 0;

    width: min(100%, 440px);
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 52px 0 32px;
}


/* HERO */

.hero {
    display: block;
}

.ascii-logo {
    overflow: hidden;
}

.ascii-logo pre {
    margin: 0 0 20px;

    color: var(--primary);

    font-size: clamp(0.42rem, 0.72vw, 0.68rem);
    font-weight: 700;
    line-height: 1.1;

    white-space: pre;
}

.intro {
    max-width: 450px;

    margin: 0 0 28px;

    color: var(--text);

    font-size: 1rem;
}


/* NAVIGATION */

nav {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

nav a {
    width: fit-content;

    color: var(--muted);
    text-decoration: none;

    font-size: 0.82rem;

    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

nav a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.nav-number {
    display: inline-block;
    width: 42px;

    color: var(--secondary);
}
nav a.active {
    color: var(--text);
    transform: translateX(5px);
}

nav a.active .nav-number {
    color: var(--primary);
}

nav a.active::after {
    content: " <";
    color: var(--primary);
}

/* SIDEBAR STATUS */

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--muted);
}

.status {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 0.75rem;
    line-height: 1.8;
}

.status span {
    margin-right: 7px;
}

.green {
    color: var(--secondary);
}

.orange {
    color: var(--primary);
}

.separator {
    color: #555249;
}

.tiny {
    margin: 0;
    padding-top: 4px;

    color: var(--muted);

    font-size: 0.7rem;
    line-height: 1.7;
}


/* RIGHT CONTENT */

.content {
    min-width: 0;

    padding-top: 18vh;
}

.content section {

    margin: 0;
    padding-bottom: 90px;

    scroll-margin-top: 80px;
}


/* HEADINGS */

h2 {
    margin-top: 0;
    margin-bottom: 22px;

    color: var(--text);

    font-size: 1.1rem;
}

h2 span {
    color: var(--secondary);
}

h3 {
    margin-top: 0;
    margin-bottom: 8px;

    color: var(--tertiary);
}


/* EXPERIENCE */


.timeline {
    margin-top: 45px;
}

.experience-item {
    margin-bottom: 70px;
}

.experience-date {
    margin-bottom: 18px;

    color: var(--primary);

    font-size: 0.85rem;
    font-weight: 700;
}

.experience-item h3 {
    margin: 0;

    color: var(--text);

    font-size: 1rem;
}

.experience-org {
    margin: 3px 0 18px;

    color: var(--muted);

    font-size: 0.8rem;
}

.experience-details {
    display: flex;
    flex-direction: column;

    color: var(--muted);

    font-size: 0.8rem;
    line-height: 1.8;
}

.resume-link {
    color: var(--primary);

    font-size: 0.85rem;
    text-decoration: none;
}

.resume-link:hover {
    text-decoration: underline;
}


/* PROJECTS */

.project-card {
    margin-bottom: 35px;
}

.project-card pre {
    margin: 0;

    color: var(--highlight);

    font-family: var(--font);
    line-height: 1.4;

    overflow-x: auto;
}


/* PHOTOGRAPHY */

.photo-links {
    display: flex;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 30px;
}

.photo-links a {
    color: var(--tertiary);
    text-decoration: none;
}

.photo-links a:hover {
    color: var(--warm);
}

.section-intro {
    color: var(--muted);
}

.photo-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin: 25px 0 50px;
}

.photo-filter button {
    border: 0;
    padding: 0;

    background: none;
    color: var(--muted);

    font: inherit;
    font-size: 0.8rem;

    cursor: pointer;
}

.photo-filter button:hover,
.photo-filter button.active {
    color: var(--primary);
}

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.photo-item {
    margin: 0;
}

.photo-item img {
    display: block;

    width: 100%;
    height: auto;

    margin: 10px 0 12px;

    object-fit: cover;
}

.photo-meta {
    display: flex;
    justify-content: space-between;

    color: var(--primary);

    font-size: 0.75rem;
}

.photo-item figcaption {
    color: var(--muted);

    font-size: 0.75rem;
}


/* PHOTO GALLERY SUBPAGE */

.gallery-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 40px 96px;
}

.gallery-header {
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    color: var(--text);
}

.gallery-intro {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.gallery-actions a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
}

.gallery-actions a:hover {
    color: var(--primary);
}

.gallery-empty {
    margin-top: 24px;
    padding: 28px 22px;
    border: 1px dashed rgba(36, 35, 31, 0.3);
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: lowercase;
}

.gallery-badge {
    margin: 8px 0 0;
    color: var(--primary);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 36px;
}

.gallery-filters button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.gallery-filters button:hover,
.gallery-filters button.active {
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
}

.gallery-card {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(36, 35, 31, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(36, 35, 31, 0.15);
    cursor: pointer;
    transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card img:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(36, 35, 31, 0.12);
}

.gallery-card figcaption {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: lowercase;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: rgba(18, 16, 13, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.lightbox::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    background: rgba(255, 255, 255, 0.04);
    transform: scale(0.94) translateY(10px);
    opacity: 0;
    animation: lightboxIn 0.28s ease forwards;
}

@keyframes lightboxIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.lightbox-caption {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #f3eee8;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.vault-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 84px 28px 120px;
}

.vault-card {
    padding: 28px 24px 20px;
    border: 1px solid rgba(36, 35, 31, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.vault-card h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    color: var(--text);
}

.vault-card p {
    margin: 14px 0 0;
    color: var(--muted);
}

.vault-form {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.vault-form label {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vault-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(36, 35, 31, 0.18);
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
    font: inherit;
}

.vault-form button {
    width: fit-content;
    border: 1px solid rgba(36, 35, 31, 0.18);
    background: var(--text);
    color: var(--bg);
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.vault-form button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.form-error {
    margin-top: 18px;
    color: var(--primary);
    font-size: 0.8rem;
}

.archive-list {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(36, 35, 31, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.archive-item strong {
    color: var(--text);
    font-size: 0.9rem;
}

.archive-item span {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-item a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.75rem;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #f5f2ee;
    cursor: pointer;
    font: inherit;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.lightbox-close {
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2.2rem;
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}

body.lightbox-open {
    overflow: hidden;
}


/* FOOTER */

footer {
    padding-bottom: 60px;

    color: var(--muted);

    font-size: 0.7rem;
}


/* TEXT SELECTION */

::selection {
    background: var(--primary);
    color: var(--bg);
}


/* MOBILE */

@media (max-width: 850px) {

    .site-layout {
        display: block;

        padding: 0 24px;
    }

    .sidebar-inner {
        position: relative;

        height: auto;
        min-height: 85vh;

        padding: 60px 0;
    }

    .sidebar-bottom {
        margin-top: 60px;
    }

    .content {
        padding-top: 0;
    }

    .content section {
        min-height: 0;

        padding-bottom: 110px;
    }

    .entry {
        grid-template-columns: 1fr;

        gap: 5px;
    }

    .ascii-logo pre {
        font-size: clamp(0.34rem, 1.45vw, 0.65rem);
    }

}
.ascii-planet {
    margin: 30px 0 0;

    color: var(--text);

    font-family: var(--font);

    font-size: 5px;
    line-height: 1;

    font-weight: 500;

    white-space: pre;

    overflow: visible;

    user-select: none;
    width: 400px;
    height: 260px;

    margin-top: 25px;

    overflow: hidden;
}

#ascii-planet {
    position: relative;

    width: 400px;
    height: 340px;

    margin: 0 auto;

    overflow: hidden;
}