/* --- Kazsia's Archive - Final Nostalgic Theme --- */

/* --- Variables & Reset --- */
:root {
    --bg-color: #f5f5dc; /* Beige, like old paper */
    --panel-bg: #eae0c8; /* A slightly darker parchment */
    --content-bg: #fffbf0; /* Very light cream */
    --text-color: #3b312c; /* Dark, soft brown */
    --heading-color: #5d4c41; /* Muted sepia/brown */
    --border-color: #c9bda9;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --link-color: #0000ee;
    --link-visited: #551a8b;
    --font-stack: 'Georgia', 'Times New Roman', serif;
    --heading-font-stack: 'Verdana', 'Arial', sans-serif;
    --bg-texture: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAFNJREFUaIHt0UEKACAIBUEF7L/l/Y+2UIM2aaTjV6D88+c5F4GAYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDA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PBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBo-');
}

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

body {
    background-color: var(--bg-color);
    background-image: var(--bg-texture);
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 16px; /* Slightly larger base for readability */
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: underline;
}

a:visited {
    color: var(--link-visited);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    image-rendering: pixelated;
}

ul {
    list-style-position: inside;
    padding-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

hr {
    height: 1px;
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* --- Soft Box Style --- */
.bevel-out {
    border: 1px solid var(--border-color);
    box-shadow: 2px 2px 5px var(--shadow-color);
}

.bevel-in {
    border: 1px solid var(--border-color);
    box-shadow: inset 1px 1px 3px var(--shadow-color);
}

/* --- Main Layout --- */
.site-container {
    max-width: 960px;
    margin: 1rem auto;
    padding: 1rem;
    background-color: var(--panel-bg);
}

.main-layout {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.main-content-wrapper {
    flex-grow: 1;
    min-width: 0;
    background-color: var(--content-bg);
    padding: 1rem;
}

footer {
    padding: 1.5rem 0 0.5rem;
    text-align: center;
    font-size: 12px;
    color: var(--text-color);
}

/* --- Site Header --- */
.site-header {
    padding: 0.5rem 1rem;
    text-align: center;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.site-header .logo { 
    font-family: var(--font-stack);
    font-weight: normal;
    font-size: 2rem;
    color: var(--heading-color);
    text-shadow: 1px 1px 2px var(--shadow-color);
    text-decoration: none;
}

/* --- Content Header (Tabs) --- */
.content-header {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin-bottom: 1rem;
    background: transparent;
}

.content-tabs {
    display: flex;
}

.content-tabs a {
    padding: 0.5rem 1rem;
    background-color: var(--panel-bg);
    margin-right: 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: normal;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.content-tabs a.active {
    background-color: var(--content-bg);
    position: relative;
    border-bottom-color: var(--content-bg);
    font-weight: bold;
}

/* --- Sidebar --- */
.sidebar-box {
    background-color: var(--panel-bg);
    margin-bottom: 1rem;
    padding: 0.8rem;
}

.sidebar-heading {
    font-family: var(--heading-font-stack);
    font-size: 1rem;
    font-weight: bold;
    color: var(--heading-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul a {
    display: block;
    padding: 2px 4px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 2px;
}
.sidebar-box ul a:hover {
    background-color: var(--heading-color);
    color: var(--content-bg);
}

.sidebar-box ul a.active {
    font-weight: bold;
    text-decoration: underline;
}

.profile-box ul {
    font-size: 0.85rem;
}
.profile-box li {
    margin-bottom: 0.3rem;
}

/* --- Main Content --- */
.page-title {
    font-family: var(--font-stack);
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--heading-color);
}

.main-content h2 {
    font-family: var(--font-stack);
    font-size: 1.3rem;
    font-weight: normal;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

.main-content p {
    margin-bottom: 1rem;
}

.quick-access-list {
    list-style: square inside;
    padding-left: 0;
}

.project-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 2px 2px 5px var(--shadow-color);
}
.project-card h3 {
    font-family: var(--font-stack);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}
.project-card .tags {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* --- Forms & Buttons --- */
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: normal;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem;
    background-color: var(--content-bg);
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.themed-button {
    font-family: var(--heading-font-stack);
    font-size: 14px;
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    box-shadow: 1px 1px 3px var(--shadow-color);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 3px;
}

.themed-button:active {
    box-shadow: inset 1px 1px 3px var(--shadow-color);
    transform: translateY(1px);
}

/* --- Mobile Menu & Overlay --- */
.mobile-menu-toggle { display: none; }
.site-overlay { display: none; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .site-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    .main-layout {
        display: block;
        margin-top: 0;
    }
    .main-content-wrapper {
        border: none;
        box-shadow: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: var(--panel-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
        font-family: var(--heading-font-stack);
        font-size: 14px;
        padding: 5px 10px;
        cursor: pointer;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        z-index: 1001;
        border-radius: 3px;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: var(--panel-bg);
        background-image: var(--bg-texture);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        overflow-y: auto;
        padding: 1rem;
        padding-top: 5rem;
        border-right: 1px solid #000;
    }
    
    body.mobile-menu-active .sidebar {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    body.mobile-menu-active .site-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    .site-header {
        position: relative;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .main-content-wrapper {
        padding: 0;
    }
    
    .site-header {
        padding: 0.8rem 1rem;
    }
    .site-header .logo {
        font-size: 1.8rem;
    }

    .content-header {
        padding: 0.5rem;
    }
    .content-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }

    .content-tabs a {
        margin-right: 0;
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .main-content h2 {
        font-size: 1.3rem;
    }
}
