@import url("https://fonts.googleapis.com/css2?family=Lora:wght@300;400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
    --highlight-color: #a85751;
    --nav-color: #555;
    --hover-bg-color: #f5f5dc;
    --font-serif: 'Lora', serif;
    --font-sans: 'Manrope', sans-serif;
    --font-mono: 
}
body {
    font-family: 'Lora', serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5; /* Increased from 1.3 to 1.5 */
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fcfcfc;
    text-align: left;
}
header, footer {
    text-align: center;
}
h1 {
    font-size: 36px;
    color: var(--highlight-color);
    text-transform: lowercase;
    font-weight: 500;
    margin-bottom: 12px; /* Reduced from 15px to 12px */
}
h2 {
    font-size: 18px; /* Increased from 16px to 18px */
    color: #2c3e50;
    text-transform: lowercase;
    font-weight: 700;
    margin-top: 24px; /* Added margin-top */
    margin-bottom: 12px; /* Increased from 8px to 12px */
}
.top-nav {
    margin: 6px 0; /* Reduced from 15px to 12px */
}
.top-nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #34495e;
    text-transform: lowercase;
    padding: 2px 5px;
}
.top-nav a:hover {
    background-color: var(--hover-bg-color);
    color: var(--highlight-color);
}
.top-nav a.active {
    color: var(--highlight-color);
}
.header-line {
    border-top: 1px solid #e0e0e0; /* Lighter color */
}
header {
    margin-bottom: 50px;
}

footer {
    margin-top: 50px; /* Added to increase space above footer */
    font-size: 12px; 
    color: #999;
}

/* Dark mode toggle button style */
#darkModeToggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}

/* Dark mode styles */
[data-theme="dark"] {
    --highlight-color: #da7871;
}
[data-theme="dark"] {
    filter: invert(1) hue-rotate(180deg);
}
[data-theme="dark"] img,
[data-theme="dark"] iframe {
    filter: invert(1) hue-rotate(180deg);
}
[data-theme="dark"] h2 {
    color: #4b7488;
}