@import url("https://fonts.googleapis.com/css2?family=Lora:wght@300;400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wght@100..900&family=SUSE:wght@100..800&display=swap');

:root {
    --highlight-color: #a85751;
    --nav-color: #555;
    --hover-bg-color: #f5f5dc;
}
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: 44px;
    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: 24px;
    font-weight: 400;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--highlight-color);
}



.top-nav {
    margin: 7px 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 */
    margin: 8px 0; /* Reduced from 10px to 8px */
}
header {
    margin-bottom: 50px;
}



.content-wrapper {
    display: flex;
    max-width: 670px;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px; /* Added to increase space above footer */
    align-content: center;
}
.vertical-nav {
    flex-shrink: 0;
    width: 180px;
    padding: 15px 30px 15px 0;
    border-right: 1px solid #e0e0e0; /* Faint vertical line */
    text-align: right; /* Right-align the content */
}
.vertical-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.vertical-nav li {
    margin-bottom: 15px;
}
.vertical-nav a {
    text-decoration: none;
    color: var(--nav-color);
    text-transform: lowercase;
    font-weight: 400 !important; /* Force normal weight */
}
.vertical-nav a:hover,
.vertical-nav a:active,
.vertical-nav a:focus {
    font-weight: 400 !important;
    color: var(--nav-color);
}
.main-content {
    flex-grow: 1;
}
.section {
    margin-bottom: 30px; /* Reduced from 40px */
}

/* Removed .contact-email:hover style */
.header-line {
    border-top: 1px solid #e0e0e0; /* Lighter color */
    margin: 8px 0; /* Reduced from 10px to 8px to match index */
}
p {
    margin-top: 0; /* Added to reduce space above paragraphs */
    margin-bottom: 10px; /* Added to reduce space below paragraphs */
}

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

.writing-list {
    list-style-type: none;
    padding: 0;
}
.writing-item {
    padding-left: 20px;
    margin-bottom: 25px;
}
.writing-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
}

.writing-link {
    text-decoration: none;
    color: inherit;
}

.writing-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    font-family: 'Arial';
}
.writing-description {
    margin-bottom: 0;
}

/* 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"] h2 {
    color: #4b7488;
}
