/* General Styles - Analog Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

body {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    background-color: #f5f1e8;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    color: #3d2817;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.8;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 115, 85, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 115, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Tags Styles - Analog */
.tags {
    width: 100%;
    background-color: #ede8dd;
    padding: 15px 0;
    position: sticky;
    top: 60px;
    left: 0;
    z-index: 998;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 2px dashed #8b7355;
}

.tags ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.tags ul li {
    margin: 5px 10px;
}

.tags ul li a {
    color: #5d4037;
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 16px;
    border: 2px solid #8b7355;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f5f1e8;
}

.tags ul li a:hover {
    background-color: #8b7355;
    color: #ede8dd;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 rgba(139, 115, 85, 0.3);
}

/* Navigation Styles - Analog */
.top-nav {
    background-color: #ede8dd;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.top-nav ul li {
    margin: 0;
}

.top-nav ul li a {
    color: #5d4037;
    text-decoration: none;
    display: block;
    padding: 20px 28px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Courier Prime', monospace;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid #8b7355;
}

.top-nav ul li:last-child a {
    border-right: none;
}

.top-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b7355;
    transition: all 0.3s ease;
}

.top-nav ul li a:hover {
    color: #3d2817;
    background-color: rgba(139, 115, 85, 0.1);
}

.top-nav ul li a:hover::after {
    width: 100%;
}

/* Main Content Styles */
main {
    margin-top: 120px;
    padding: 40px 20px;
    flex: 1;
    background: transparent;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 72px;
    padding-bottom: 30px;
    border-bottom: 3px double #8b7355;
}

.blog-header h1 {
    font-size: 3.5em;
    margin: 0 0 20px 0;
    color: #3d2817;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
}

.blog-subtitle {
    font-size: 1.3em;
    color: #6d4c41;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-style: italic;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    background: #ede8dd;
    padding: 35px;
    border: 3px double #8b7355;
    box-shadow: 4px 4px 0 rgba(139, 115, 85, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.blog-post::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(139, 115, 85, 0.3);
    pointer-events: none;
}

.blog-post:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(139, 115, 85, 0.3);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Courier Prime', monospace;
    border-bottom: 1px dotted #8b7355;
    padding-bottom: 12px;
}

.post-date {
    color: #6d4c41;
    font-size: 0.9em;
    font-weight: 400;
}

.post-category {
    padding: 4px 10px;
    border: 1px solid #8b7355;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
}

.post-category.theology {
    background-color: #d7ccc8;
    color: #5d4037;
}

.post-category.general {
    background-color: #d7ccc8;
    color: #5d4037;
}

.post-category.philosophy {
    background-color: #d7ccc8;
    color: #5d4037;
}

.post-category.robotics {
    background-color: #d7ccc8;
    color: #5d4037;
}

.post-category.literature {
    background-color: #d7ccc8;
    color: #5d4037;
}

.blog-post h2 {
    margin: 0 0 16px 0;
    font-size: 2em;
    color: #3d2817;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.blog-post h2 a {
    color: #3d2817;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post h2 a:hover {
    color: #8b7355;
    text-decoration: underline;
}

.post-excerpt {
    color: #5d4037;
    font-size: 1.15em;
    line-height: 1.8;
    margin: 0 0 24px 0;
    font-weight: 400;
}

.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.read-more-link {
    color: #6d4c41;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 1em;
    font-family: 'Courier Prime', monospace;
    border-bottom: 1px solid #8b7355;
}

.read-more-link:hover {
    color: #3d2817;
    border-bottom-width: 2px;
}

.pdf-download {
    color: #6d4c41;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    font-size: 1em;
    font-family: 'Courier Prime', monospace;
    border: 2px solid #8b7355;
    padding: 6px 12px;
    background: #f5f1e8;
}

.pdf-download:hover {
    color: #3d2817;
    background: #ede8dd;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 rgba(139, 115, 85, 0.3);
}

/* Footer Styles - Analog */
.thin-footer {
    width: 100%;
    max-width: 700px;
    background-color: #ede8dd;
    color: #3d2817;
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto;
    border: 3px double #8b7355;
    box-shadow: 4px 4px 0 rgba(139, 115, 85, 0.2);
}

.thin-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.thin-footer .footer-content img.monero-logo {
    max-height: 22px;
    margin-right: 8px;
    filter: sepia(30%) contrast(1.2);
}

.thin-footer .footer-content .wallet-box {
    background-color: #f5f1e8;
    color: #3d2817;
    border: 2px solid #8b7355;
    padding: 15px;
    width: 100%;
    word-break: break-word;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
}

.thin-footer .footer-content .wallet-label {
    font-size: 1em;
    margin-bottom: 8px;
    text-align: center;
}

.thin-footer .footer-content .monero-text {
    font-size: 0.8em;
    word-wrap: break-word;
    color: #6d4c41;
    font-family: 'Courier Prime', monospace;
}

/* Responsive Styles - Analog */
@media (max-width: 768px) {
    .tags {
        padding: 10px 0;
        top: 60px;
    }
    
    .tags ul li {
        margin: 5px 8px;
    }

    .tags ul li a {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .top-nav {
        top: 0;
    }

    .top-nav ul li a {
        padding: 15px 18px;
        font-size: 0.95em;
        border-right: none;
        border-bottom: 1px solid #8b7355;
    }

    .top-nav ul li:last-child a {
        border-bottom: none;
    }

    main {
        margin-top: 120px;
        padding: 20px 15px;
    }

    .blog-header h1 {
        font-size: 2.2em;
    }

    .blog-subtitle {
        font-size: 1.1em;
    }

    .blog-post {
        padding: 25px;
    }

    .blog-post h2 {
        font-size: 1.6em;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .thin-footer {
        width: 90%;
        padding: 25px 20px;
    }
}

