/* ===== Theme Variables ===== */
:root {
    --bg: #f6f3ee;
    --text: #2e2e2e;
    --muted: #8a867f;
    --border: #e6e2da;
    --card: #ffffff;
}

body.dark {
    --bg: #1f1f1f;
    --text: #e8e6e3;
    --muted: #a5a29c;
    --border: #333;
    --card: #2a2a2a;
}

/* ===== Base ===== */
body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Layout */
.container {
    display: flex;
    max-width: 1000px;
    margin: 60px auto;
    gap: 40px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--card);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid var(--border);
    height: fit-content;
}

.sidebar h2 {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar a {
    display: block;
    text-decoration: none;
    color: var(--text);
    margin: 10px 0;
    font-size: 15px;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Main Content */
.content {
    flex: 1;
}

/* Title */
.site-title {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Toggle Button */
.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 40px;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.8;
}

/* Journal Entries */
.entry {
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.entry h2 {
    font-size: 18px;
    font-weight: normal;
    color: var(--muted);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    font-size: 13px;
    color: var(--muted);
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        margin: 30px;
    }

    .sidebar {
        width: 100%;
    }
}