/* 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;
}

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

/* Navigation Styles - Analog */
.top-nav {
    background-color: #ede8dd;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    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 {
    flex: 1;
    padding-top: 0;
    background: transparent;
}

/* Hero Section - Analog */
.hero {
    background: transparent;
    padding: 80px 40px 60px;
    border-bottom: 2px dashed #8b7355;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5em;
    margin: 0 0 30px 0;
    color: #3d2817;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    border-bottom: 3px double #8b7355;
    padding-bottom: 20px;
}

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

.hero-text .hero-description {
    font-size: 1.2em;
    color: #5d4037;
    line-height: 1.9;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-image {
    text-align: center;
    position: relative;
}

.profile-pic {
    max-width: 350px;
    width: 100%;
    height: auto;
    border: 4px solid #8b7355;
    border-style: double;
    box-shadow: 
        8px 8px 0 rgba(139, 115, 85, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    background: #ede8dd;
    padding: 8px;
}

/* Recent Articles Section - Analog */
.recent-articles {
    padding: 80px 40px;
    background-color: transparent;
    border-bottom: 2px dashed #8b7355;
}

.section-title {
    font-size: 2.5em;
    margin: 0 0 50px 0;
    color: #3d2817;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    border-top: 3px double #8b7355;
    border-bottom: 3px double #8b7355;
    padding: 20px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

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

.article-date {
    color: #6d4c41;
    font-weight: 400;
}

.article-category {
    background-color: #d7ccc8;
    color: #5d4037;
    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;
}

.article-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.6em;
    color: #3d2817;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.article-card h3 a {
    color: #3d2817;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    color: #8b7355;
    text-decoration: underline;
}

.article-card p {
    color: #5d4037;
    margin: 0 0 24px 0;
    line-height: 1.8;
    font-size: 1.05em;
}

.read-more {
    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:hover {
    color: #3d2817;
    border-bottom-width: 2px;
}

/* About Section - Analog */
.about-section {
    padding: 80px 40px;
    background-color: transparent;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2em;
    color: #5d4037;
    line-height: 1.9;
    margin: 0 0 24px 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Projects & Work Section - Analog */
.projects-work-section {
    padding: 80px 40px;
    background-color: transparent;
    border-bottom: 2px dashed #8b7355;
}

.projects-work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.subsection-title {
    font-size: 2em;
    margin: 0 0 35px 0;
    color: #3d2817;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 15px;
}

/* Projects Section - Analog */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-item {
    background: #ede8dd;
    border: 2px solid #8b7355;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 rgba(139, 115, 85, 0.2);
    position: relative;
}

.project-item:hover {
    border-color: #6d4c41;
    box-shadow: 5px 5px 0 rgba(139, 115, 85, 0.3);
    transform: translate(-1px, -1px);
}

.project-item h3 {
    font-size: 1.4em;
    margin: 0 0 15px 0;
    color: #3d2817;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Courier Prime', monospace;
}

.project-item h3 a {
    color: #3d2817;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-item h3 a:hover {
    color: #8b7355;
    text-decoration: underline;
}

.project-description {
    font-size: 1.05em;
    color: #5d4037;
    line-height: 1.8;
    margin: 0;
}

/* Work Section - Analog */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px dotted #8b7355;
    transition: all 0.2s ease;
}

.work-item:last-child {
    border-bottom: none;
}

.work-item:hover {
    background-color: rgba(139, 115, 85, 0.1);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-left: 3px solid #8b7355;
}

.work-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #8b7355;
    background: #ede8dd;
    padding: 4px;
}

.work-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(20%) contrast(1.1);
}

.work-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.work-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.work-company-title {
    font-size: 1em;
    color: #3d2817;
    font-weight: 600;
    letter-spacing: 0.01em;
    flex: 1;
    font-family: 'Courier Prime', monospace;
}

.work-date {
    font-size: 0.9em;
    color: #6d4c41;
    font-weight: 400;
    white-space: nowrap;
    font-family: 'Courier Prime', monospace;
}

/* 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) {
    .container {
        padding: 0 20px;
    }

    .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;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text .subtitle {
        font-size: 1.15em;
    }

    .profile-pic {
        max-width: 280px;
    }

    .recent-articles,
    .about-section,
    .projects-work-section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-work-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .subsection-title {
        font-size: 1.6em;
    }

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

