/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #0f0f12;
    --text-color: #e0e0e0;
    --accent-color: #7b61ff; /* Purple accent */
    --secondary-accent: #00ff9d; /* Green accent for the Museum */
    --border-style: 1px solid #333;
    --font-main: 'Courier New', Courier, monospace;
    --font-head: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

a { color: var(--text-color); text-decoration: none; border-bottom: 1px dashed var(--accent-color); transition: 0.3s; }
a:hover { background-color: var(--accent-color); color: #000; }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: var(--border-style);
    margin-bottom: 40px;
}

nav ul { list-style: none; display: flex; gap: 20px; }
.logo { font-weight: bold; font-size: 1.2rem; border: 1px solid var(--text-color); padding: 5px 10px; }

/* --- SECTIONS --- */
section { margin-bottom: 60px; }

h2 {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.indicator { width: 10px; height: 10px; background-color: var(--accent-color); }

/* --- THE ARCHIVE (Grid Layout) --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.entry-card {
    border: var(--border-style);
    padding: 15px;
    transition: transform 0.2s;
}

.entry-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }
.date { font-size: 0.8rem; opacity: 0.6; display: block; margin-bottom: 10px; }
.tag { font-size: 0.7rem; border: 1px solid #555; padding: 2px 6px; border-radius: 4px; }

/* --- THE MUSEUM (Interactive Container) --- */
#museum .indicator { background-color: var(--secondary-accent); }

.museum-viewport {
    width: 100%;
    height: 400px;
    background-color: #000;
    border: 2px solid var(--secondary-accent);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.artifact-placeholder {
    text-align: center;
    color: var(--secondary-accent);
}

/* --- FOOTER --- */
footer {
    border-top: var(--border-style);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 50px;
}

/* --- BLOG POST STYLES --- */
.post-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.post-content ul, .post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* --- LIGHT MODE THEME OVERRIDES --- */
body.light-mode {
    /* Warm, parchment-like beige */
    --bg-color: #f4f1ea;
    
    /* Dark Charcoal for high contrast text */
    --text-color: #2b2b2b;
    
    /* Darker purple for visibility on light bg */
    --accent-color: #624add;
    
    /* Darker green for visibility on light bg */
    --secondary-accent: #008f58;
    
    /* Darker grey for borders */
    --border-style: 1px solid #a8a8a8; 
}

/* --- TOGGLE BUTTON STYLES (ICON) --- */
#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-color); /* Uses current theme color */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}

#theme-toggle:hover svg {
    stroke: var(--accent-color); /* Lights up purple on hover */
}

#theme-toggle:active {
    transform: scale(0.9); /* Click effect */
}