/* Ef-Melissa-Light Theme Styling */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: #484431; /* fg-main */
    background-color: #fff6d8; /* bg-main */
    max-width: 800px;
    margin: 0 auto;
    padding: 1em;
}

h1, h2, h3 {
    color: #80431a; /* fg-alt */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.2em;
    padding-bottom: 0.3em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

a {
    color: #a26310; /* yellow */
    text-decoration: none;
}

a:hover {
    color: #ba5205; /* yellow-warmer */
    text-decoration: underline;
}

p {
    margin: 1em 0;
}

pre {
    background-color: #f5e9cb; /* bg-dim */
    border: 1px solid #c5baa6; /* border */
    border-radius: 3px;
    padding: 1em;
    overflow: auto;
    font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, Menlo, monospace;
}

code {
    font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, Menlo, monospace;
    background-color: #f5e9cb; /* bg-dim */
    color: #c74400; /* string - red-warmer */
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Navigation */
.nav {
    margin-bottom: 2em;
    border-bottom: 1px solid #c5baa6; /* border */
    border-top: 1px solid #c5baa6; /* border */
    padding-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    padding: 0.8em 1em;
    border-radius: 4px;
}

.nav a {
    margin-right: 1.5em;
    font-weight: 500;
    color: #403328; /* fg-mode-line */
}

.nav a:hover {
    color: #c74400; /* red-warmer */
}

/* Content area */
ul {
    padding-left: 1.5em;
}

ul li {
    margin-bottom: 0.8em;
}

/* Date in posts */
.post-date {
    color: #68708a; /* fg-dim */
    font-size: 0.9em;
}

/* Links to posts */
ul li a {
    color: #5a7400; /* green-warmer */
}

ul li a:hover {
    color: #007a0a; /* green */
}

/* View all posts button */
a[href="archive.html"] {
    display: inline-block;
    color: #403328; /* fg-mode-line */
    padding: 0.5em 1em;
    border-radius: 4px;
    margin-top: 1em;
    border: 1px solid #c5baa6; /* border */
}

a[href="archive.html"]:hover {
    text-decoration: none;
}

/* Footer */
.footer {
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #c5baa6; /* border */
    color: #68708a; /* fg-dim */
    font-size: 0.9em;
    text-align: center;
    padding: 1em;
    border-radius: 4px;
}

/* Blockquotes */
blockquote {
    border-left: 3px solid #c5baa6; /* border */
    margin-left: 1em;
    padding-left: 1em;
    color: #68708a; /* fg-dim */
    font-style: italic;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

th {
    background-color: #e7d7c6; /* bg-alt */
    color: #80431a; /* fg-alt */
    padding: 0.5em;
    border: 1px solid #c5baa6; /* border */
    text-align: left;
}

td {
    padding: 0.5em;
    border: 1px solid #c5baa6; /* border */
}

tr:nth-child(even) {
    background-color: #f5e9cb; /* bg-dim */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 0.8em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .nav a {
        margin-bottom: 0.5em;
    }
}

/*/* Dark Mode Styles */*/
/*@media (prefers-color-scheme: dark) {*/
/*    body {*/
/*        color: #e0d8bd; /* light equivalent of fg-main */*/
/*        background-color: #2a2622; /* dark equivalent of bg-main */*/
/*    }*/
/**/
/*    h1, h2, h3 {*/
/*        color: #e0a877; /* light equivalent of fg-alt */*/
/*    }*/
/**/
/*    a {*/
/*        color: #e6c46c; /* light equivalent of yellow */*/
/*    }*/
/**/
/*    a:hover {*/
/*        color: #ffab77; /* light equivalent of yellow-warmer */*/
/*    }*/
/**/
/*    pre {*/
/*        background-color: #221f1a; /* dark equivalent of bg-dim */*/
/*        border: 1px solid #544a3b; /* dark equivalent of border */*/
/*    }*/
/**/
/*    code {*/
/*        background-color: #221f1a; /* dark equivalent of bg-dim */*/
/*        color: #ff8f66; /* light equivalent of red-warmer */*/
/*    }*/
/**/
/*    .nav {*/
/*        border-bottom: 1px solid #544a3b; /* dark equivalent of border */*/
/*        border-top: 1px solid #544a3b; /* dark equivalent of border */*/
/*    }*/
/**/
/*    .nav a {*/
/*        color: #bfb39d; /* light equivalent of fg-mode-line */*/
/*    }*/
/**/
/*    .nav a:hover {*/
/*        color: #ff8f66; /* light equivalent of red-warmer */*/
/*    }*/
/**/
/*    .post-date {*/
/*        color: #9d9baf; /* light equivalent of fg-dim */*/
/*    }*/
/**/
/*    ul li a {*/
/*        color: #b8cc66; /* light equivalent of green-warmer */*/
/*    }*/
/**/
/*    ul li a:hover {*/
/*        color: #66ff77; /* light equivalent of green */*/
/*    }*/
/**/
/*    a[href="archive.html"] {*/
/*        color: #bfb39d; /* light equivalent of fg-mode-line */*/
/*        border: 1px solid #544a3b; /* dark equivalent of border */*/
/*    }*/
/**/
/*    .footer {*/
/*        border-top: 1px solid #544a3b; /* dark equivalent of border */*/
/*        color: #9d9baf; /* light equivalent of fg-dim */*/
/*    }*/
/**/
/*    blockquote {*/
/*        border-left: 3px solid #544a3b; /* dark equivalent of border */*/
/*        color: #9d9baf; /* light equivalent of fg-dim */*/
/*    }*/
/**/
/*    th {*/
/*        background-color: #3a3630; /* dark equivalent of bg-alt */*/
/*        color: #e0a877; /* light equivalent of fg-alt */*/
/*        border: 1px solid #544a3b; /* dark equivalent of border */*/
/*    }*/
/**/
/*    td {*/
/*        border: 1px solid #544a3b; /* dark equivalent of border */*/
/*    }*/
/**/
/*    tr:nth-child(even) {*/
/*        background-color: #221f1a; /* dark equivalent of bg-dim */*/
/*    }*/
/*}*/
/**/
