/* Minimal Sphinx Traditional Theme */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Times, "Times New Roman", Georgia, serif;
    font-size: 16px;
    line-height: 1.1;
    color: #000;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Times, "Times New Roman", Georgia, serif;
    font-weight: bold;
    margin: 1.5em 0 0.5em 0;
    line-height: 1.1;
}

/* Reduce space on first heading after header */
main h1:first-child {
    margin-top: 0.3em;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.1em; }
h5 { font-size: 1em; }
h6 { font-size: 0.9em; }

p {
    margin: 1em 0;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: underline;
}

a:hover {
    color: #003d7a;
}

a:visited {
    color: #551a8b;
}

/* Navigation */
nav {
    margin-bottom: 0.3em;
    padding-bottom: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2em;
    padding-left: 0;
}

nav a {
    text-decoration: none;
    font-weight: normal;
    font-family: "Courier New", Courier, monospace;
}

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

/* ASCII art title styling */
header pre {
    font-family: "Courier New", Courier, monospace;
}

.header-desktop {
    font-size: min(1vw, 0.85rem);
    display: block;
}

.header-mobile {
    display: none;
}

/* Main content */
main {
    line-height: 1.1;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border: 1px dotted lightgrey;
}

/* Code blocks */
pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 1em;
    margin: 1em 0;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Lists */
ul, ol {
    margin: 1em 0;
    padding-left: 2em;
    line-height: 1.1;
}

/* Remove margin from nested lists */
li ul, li ol {
    margin: 0;
}

li {
    margin: 0;
}

/* Blockquotes */
blockquote {
    margin: 1em 0;
    padding-left: 2em;
}

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

th, td {
    border: 1px solid #ddd;
    padding: 0.5em;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Post lists */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin: 0.1em 0;
    padding: 0.1em 0;
}

.post-list a {
    text-decoration: none;
    font-size: 1.1em;
}

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

.post-date {
    color: #666;
    font-size: 0.9em;
    margin-left: 1em;
}

/* Journal entries */
.journal-entry {
    display: flex;
    gap: 2em;
    margin-bottom: 1.5em;
    list-style: none;
    font-size: 1em;
}

.journal-entry time {
    font-family: Times, "Times New Roman", Georgia, serif;
    flex-shrink: 0;
    width: 6em;
    color: #666;
}

.journal-entry .entry-content {
    flex-grow: 1;
    margin: 0;
}

.journal-entry .entry-content p {
    margin: 0;
}

/* Footer */
footer {
    margin-top: 3em;
    padding-top: 1em;
    color: #666;
    font-size: 0.9em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    a {
        color: #66b3ff;
    }
    
    a:hover {
        color: #99ccff;
    }
    
    a:visited {
        color: #cc99ff;
    }
    
    pre {
        background-color: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    code {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    blockquote {
        border-left-color: #666;
    }
    
    th, td {
        border-color: #444;
    }
    
    th {
        background-color: #2d2d2d;
    }
    
    .post-date {
        color: #999;
    }
    
    .journal-entry time {
        color: #999;
    }
}

/* Responsive adjustments */

@media (max-width: 600px) {

    .header-mobile {
        font-size: 10px;
        display: block;
    }

    .header-desktop {
        display: none;
    }

    body {
        padding: 10px;
        font-size: 14px;
    }
    
    .journal-entry {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .journal-entry time {
        width: auto;
    }
}


@media (max-width: 400px) {

    nav ul {
        flex-direction: column;
        gap: 0.5em;
    }

} 
