/* ===== Base colors / vibe ===== */
body {
    margin: 0;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    color: #231f20;
    background-color: #d6d1c7; /* soft gray-beige, not white */
    /* subtle crosshatch texture */
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 8px),
        linear-gradient(225deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 8px);
    background-size: 8px 8px;
}

/* Links */
a {
    color: #5e4a66; /* eggplant */
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}

/* ===== Header & top navigation ===== */

.site-header {
    background: #171717; /* dark, but not pure black */
    color: #f5f5f5;
    border-bottom: 2px solid #5e4a66;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.site-title {
    font-family: "Georgia", serif;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
}

.site-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    opacity: 0.8;
}

.top-nav {
    margin-left: auto;
    font-size: 0.9rem;
    white-space: nowrap;
}

.top-nav a {
    color: #f5f5f5;
    font-weight: 500;
    text-decoration: none;
}

.top-nav a + a::before {
    content: " | ";
    color: #aaaaaa;
    padding: 0 0.35rem;
}

.top-nav a.active {
    color: #a8c77d; /* bok choy accent */
}

.top-nav a:hover,
.top-nav a:focus {
    color: #a8c77d;
    text-decoration: none;
}

/* Header meta strip */
.header-meta {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem 0.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d1d1d1;
}

.meta-pill {
    border: 1px solid #444;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

/* ===== Page layout ===== */

.page {
    padding: 1.5rem 0 3rem 0;
}

.page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1.2fr);
    gap: 1.5rem;
    align-items: flex-start;
}

/* Columns */
.column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ===== Cards / sections ===== */

.section {
    position: relative;
}

.card {
    background: #ebe4d6;
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* slight hover “lift” */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

/* faux corner brackets */
.card::before,
.card::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 2px;
}

.card::before {
    top: 6px;
    left: 8px;
}

.card::after {
    bottom: 6px;
    right: 8px;
}

/* small “panel bar” – subtle LCARS-ish nod */
.hero-card,
.console-card {
    border-top: 3px solid #5e4a66;
}
.updates-card,
.bio-card,
.quick-links-card,
.note-card {
    border-top: 3px solid #a8c77d;
}

/* label on cards */
.card-label {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #5e4a66;
    background: #d4ccb8;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    margin-bottom: 0.55rem;
}

/* make supporting sections a hair subtler than hero */
.updates-card .card-label,
.bio-card .card-label {
    font-size: 0.6rem;
}

/* Hero card */
.hero-card h1 {
    margin: 0 0 0.5rem 0;
    font-family: "Georgia", serif;
    font-size: 1.6rem;
    color: #3a3042;
}

/* Updates */
.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.update-tag {
    display: inline-block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #c8d9aa;
    color: #28301a;
    margin-right: 0.4rem;
}

/* Bio */
.bio-card h2 {
    margin-top: 0.2rem;
    font-family: "Georgia", serif;
    font-size: 1.2rem;
}

/* Side console */
.console-card {
    background: #e0dacb;
}

.console-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    font-size: 0.8rem;
}

.console-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.console-key {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #4a4330;
}

.console-value {
    padding-left: 0.75rem;
    color: #222;
}

.console-ok {
    color: #2f6b33;
}

.console-warn {
    color: #8b3f2e;
}

/* Quick links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.quick-links li {
    margin-bottom: 0.4rem;
}

.quick-links a {
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.4);
}
.quick-links a:hover {
    border-bottom-style: solid;
}

/* Scratchpad */
.note-card p {
    font-size: 0.9rem;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.project-card h4 {
    margin-top: 0;
    font-family: "Georgia", serif;
    font-size: 1.05rem;
    color: #3a3042;
}

.project-meta {
    font-size: 0.8rem;
    color: #5a554b;
}

.project-archive {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0.3rem 0 0 0;
}

/* Journal */
.journal-card h2 {
    margin-top: 0.2rem;
    font-family: "Georgia", serif;
    font-size: 1.1rem;
}

.journal-meta {
    font-size: 0.8rem;
    color: #5a554b;
    margin-top: 0.1rem;
}

/* ===== Footer ===== */

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    background: #cfc9bd;
    padding: 0.75rem 0;
    font-size: 0.8rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    align-items: center;
    color: #474139;
}

.footer-sep {
    opacity: 0.6;
}

/* ===== Mobile / small screens ===== */

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    width: 30px;
    height: 24px;
    padding: 3px 4px;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: #f5f5f5;
    display: block;
}

@media (max-width: 820px) {

    .header-inner {
        align-items: center;
    }

    .top-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #171717;
        padding: 0.5rem 1.25rem 0.8rem;
        border-bottom: 1px solid #5e4a66;
        white-space: normal;
    }

    .top-nav a {
        display: inline-block;
        margin: 0.2rem 0.3rem 0.2rem 0;
    }

    .top-nav a + a::before {
        content: "";
    }

    .site-header.nav-open .top-nav {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .header-meta {
        padding-top: 0.35rem;
    }

    .page-grid {
        grid-template-columns: 1fr;
    }
}
