/* KISS Dark Theme - Minimal CSS */
body {
    font-family: monospace;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    -webkit-text-size-adjust: 100%;
}

/* Links */
a {
    color: #6db3f2;
    text-decoration: underline;
}

a:visited {
    color: #b19cd9;
}

/* Header */
header {
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.site-title {
    font-weight: bold;
    font-size: 1.2em;
}

/* Hero */
.hero {
    margin: 40px 0;
}

.hero h1 {
    font-size: 1.5em;
    margin: 0;
}

.hero p {
    margin: 10px 0;
}

/* Projects */
.projects {
    margin: 40px 0;
}

.projects h2 {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.project-list {
    margin-bottom: 40px;
}

.project-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

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

.project-screenshot {
    flex: 0 0 300px;
    max-height: 300px;
    overflow: hidden;
}

.project-screenshot img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
}

.project-details {
    flex: 1;
}

.project-details h3 {
    font-size: 1.1em;
    margin: 0 0 15px 0;
}

.project-details p {
    margin: 15px 0;
    line-height: 1.6;
}

.project-links {
    margin-top: 20px;
}

/* Mobile styles - iPhone and similar devices */
@media only screen and (max-width: 430px) {
    html {
        font-size: 20px !important;
    }
    
    body {
        font-size: 20px !important;
        padding: 10px !important;
        max-width: 100% !important;
    }
    
    header {
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
    }
    
    nav {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    nav ul {
        gap: 10px !important;
        font-size: 20px !important;
        margin-top: 10px !important;
    }
    
    .site-title {
        font-size: 24px !important;
        display: block !important;
    }
    
    .hero {
        margin: 20px 0 !important;
    }
    
    .hero h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .hero p {
        font-size: 20px !important;
    }
    
    .projects h2 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .project-item {
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .project-screenshot {
        flex: 1 !important;
        max-height: none !important;
        width: 100% !important;
    }
    
    .project-details h3 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .project-details p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    
    .project-links a {
        font-size: 20px !important;
        padding: 15px 20px !important;
        display: inline-block !important;
        background: #1a1a1a !important;
        border: 1px solid #333 !important;
        text-decoration: none !important;
        margin-top: 10px !important;
    }
    
    h1, h2, h3 {
        word-wrap: break-word !important;
    }
    
    footer {
        font-size: 18px !important;
        padding-top: 20px !important;
        margin-top: 30px !important;
    }
    
    /* Blog posts on mobile */
    .recent-posts li {
        font-size: 18px !important;
        padding: 10px 0 !important;
    }
    
    /* Make all text more readable */
    p, li, a {
        font-size: 18px !important;
    }
}

/* Tablet styles */
@media only screen and (min-width: 431px) and (max-width: 768px) {
    body {
        font-size: 18px;
        padding: 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-item {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-screenshot {
        flex: 1;
        max-height: none;
    }
}

/* Posts */
.recent-posts {
    margin: 40px 0;
}

.recent-posts h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.recent-posts ul {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin: 10px 0;
}

/* Footer */
footer {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* General */
h1, h2, h3 {
    font-weight: bold;
    color: #f0f0f0;
}

pre {
    overflow-x: auto;
    background: #1a1a1a;
    padding: 10px;
    border: 1px solid #333;
}

code {
    background: #1a1a1a;
    padding: 2px 4px;
    color: #6db3f2;
}