/* Minimalist Monospace Website Styles */
/* JetBrains Mono Nerd Font Mono Regular – place font file in static/fonts/ (see README in that folder) */

@font-face {
    font-family: 'JetBrainsMono Nerd Font Mono';
    font-style: normal;
    font-weight: 400;
    src: url('/static/fonts/JetBrainsMonoNerdFont-Regular.woff2') format('woff2'),
         url('/static/fonts/JetBrainsMonoNerdFont-Regular.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrainsMono Nerd Font Mono', 'JetBrains Mono', 'Courier New', 'Courier', monospace;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: #333;
    text-decoration: none;
    margin-right: 1.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s;
}

nav a:hover {
    border-bottom: 1px solid #333;
}

main {
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #333;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

footer {
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

footer .rust-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    vertical-align: middle;
}

footer .rust-logo svg {
    margin-left: 0.2em;
}

code {
    font-family: 'JetBrainsMono Nerd Font Mono', 'JetBrains Mono', 'Courier New', 'Courier', monospace;
    font-weight: 400;
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
}

pre {
    font-family: 'JetBrainsMono Nerd Font Mono', 'JetBrains Mono', 'Courier New', 'Courier', monospace;
    font-weight: 400;
    background-color: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

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

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

.blog-list {
    list-style: none;
    margin-left: 0;
}

.blog-list li {
    margin-bottom: 0.75rem;
}

.quotes-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    background-color: #fafafa;
}

.quotes-block .quote-text {
    flex: 1;
    margin-bottom: 0;
}

.quotes-block .dice-btn {
    flex-shrink: 0;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    transition: background 0.2s;
}

.quotes-block .dice-btn:hover {
    background: #eee;
}

.article-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.article-image {
    margin: 1.5rem 0 2rem;
}

.article-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.article-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.article-image-bw img {
    filter: grayscale(100%);
}

.poem-cover {
    margin: 1.5rem 0 2rem;
    text-align: center;
}

.poem-cover img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid #ddd;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    nav a {
        display: block;
        margin-bottom: 0.5rem;
    }
}

