/* 1990s Retro Web Styling */

body {
    background-color: #C0C0C0;
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    color: #000000;
    margin: 0;
    padding: 20px;
}



.main-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #C0C0C0;
    border: 3px outset #C0C0C0;
    padding: 10px;
}

header h1 {
    font-size: 24px;
    text-align: center;
    margin: 0;
    padding: 10px 0;
}

header h1 a {
    text-decoration: none;
    color: #000080;
}

header h1 a:hover {
    text-decoration: underline;
}

nav {
    text-align: center;
    margin: 10px 0;
}

nav a {
    color: #0000FF;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    text-decoration: underline;
}

hr {
    border: 1px inset #808080;
    height: 2px;
    margin: 10px 0;
}

main {
    background-color: #FFFFFF;
    border: 2px inset #C0C0C0;
    padding: 15px;
    margin: 10px 0;
}

.post h2 {
    font-size: 20px;
    color: #000080;
    border-bottom: 2px solid #000080;
    margin-bottom: 10px;
}

.post-summary h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.post-summary h3 a {
    color: #0000FF;
    text-decoration: none;
}

.post-summary h3 a:hover {
    text-decoration: underline;
}

.meta {
    font-style: italic;
    color: #808080;
    font-size: 12px;
    margin: 5px 0;
}

.content {
    line-height: 1.6;
}

/* Link colors */
a {
    color: #0000FF;
    text-decoration: none;
}

a:visited {
    color: #800080;
}

a:hover {
    text-decoration: underline;
}

a:active {
    color: #FF0000;
}

/* Code blocks */
pre {
    background-color: #E0E0E0;
    border: 1px inset #808080;
    padding: 10px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    white-space: pre-wrap;
    overflow-x: auto;
}

code {
    font-family: "Courier New", monospace;
    font-size: 12px;
}

/* Lists */
ul, ol {
    margin-left: 20px;
}

li {
    margin: 5px 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #000080;
    font-weight: bold;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }

/* Shift org-mode headings: org * -> should look like h3, org ** -> should look like h4, etc */
.content .outline-2 h2 { font-size: 16px; margin-bottom: 5px; } /* org * */
.content .outline-3 h3 { font-size: 14px; margin-bottom: 5px; } /* org ** */

h3 { font-size: 16px; margin-bottom: 5px; }
h4 { font-size: 14px; }

footer {
    text-align: center;
    font-size: 14px;
    color: #808080;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}

.made-with {
    font-size: 22px;
    line-height: 22px;
    color: #808080;
}

.tech-logo {
    height: 1em;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.browser-logo {
    height: 31px;
    vertical-align: middle;
}

.tech-logo:hover {
    opacity: 1;
}

.browser-sticker {
    margin-top: 10px;
    text-align: center;
}

.browser-logo {
    height: 31px;
    width: 88px;
    border: 2px inset #808080;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.browser-logo:hover {
    opacity: 1;
}

/* Index page specific styles */
.latest-post .post-preview {
    background-color: #F0F0F0;
    border: 2px inset #C0C0C0;
    padding: 15px;
    margin-bottom: 15px;
}

.recent-posts .post-item {
    margin: 10px 0;
    padding: 5px 0;
}

.recent-posts .post-item h4 {
    margin: 0 0 3px 0;
}

.recent-posts .post-item h4 a {
    color: #0000FF;
    text-decoration: none;
}

.recent-posts .post-item h4 a:hover {
    text-decoration: underline;
}

.navigation-links p {
    text-align: center;
    margin: 10px 0;
}

.navigation-links a {
    color: #0000FF;
    text-decoration: none;
}

.navigation-links a:hover {
    text-decoration: underline;
}

.tags-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.popular-tags {
    margin: 10px 0;
}

.tag-link {
    display: inline-block;
    background-color: #E0E0E0;
    border: 1px solid #808080;
    padding: 3px 8px;
    margin: 2px 5px 2px 0;
    color: #000080;
    text-decoration: none;
    font-size: 12px;
}

.tag-link:hover {
    background-color: #D0D0D0;
    text-decoration: underline;
}

.tags {
    font-size: 12px;
    color: #808080;
    margin: 5px 0;
}

.tags a {
    color: #0000FF;
    text-decoration: none;
}

.tags a:hover {
    text-decoration: underline;
}

/* Dark mode styles - placed at end for higher specificity */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #2D2D2D;
        color: #E0E0E0;
    }
    
    .main-container {
        background-color: #2D2D2D;
        border: 3px outset #404040;
    }
    
    main {
        background-color: #1A1A1A;
        border: 2px inset #404040;
    }
    
    header h1 a {
        color: #6B9BD1;
    }
    
    nav a {
        color: #7BA7E7;
    }
    
    .post h2 {
        color: #6B9BD1;
        border-bottom: 2px solid #6B9BD1;
    }
    
    .post-summary h3 a {
        color: #7BA7E7;
    }
    
    a {
        color: #7BA7E7;
    }
    
    a:visited {
        color: #B19CD9;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #6B9BD1;
    }
    
    .latest-post .post-preview {
        background-color: #1F1F1F;
        border: 2px inset #404040;
    }
    
    pre {
        background-color: #1F1F1F;
        border: 1px inset #404040;
    }
    
    .tag-link {
        background-color: #1F1F1F;
        border: 1px solid #404040;
        color: #6B9BD1;
    }
    
    .tag-link:hover {
        background-color: #2A2A2A;
    }
    
    hr {
        border: 1px inset #404040;
    }
    
    .meta {
        color: #A0A0A0;
    }
    
    footer {
        color: #A0A0A0;
    }
    
    .tags {
        color: #A0A0A0;
    }
    
    .tags a {
        color: #7BA7E7;
    }
    
    .made-with {
        color: #A0A0A0;
        font-size: 22px;
        line-height: 22px;
    }
    
    .tech-logo {
        height: 1em;
    }
    
    .browser-sticker {
        text-align: center;
    }
    
    .browser-logo {
        border: 2px inset #404040;
    }
}