@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');

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

body {
    background: #0a0a0a;
    color: #c8c8c8;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    line-height: 1.7;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px clamp(20px, 5vw, 80px);
}

/* ASCII Logo */
header {
    margin-bottom: 50px;
    text-align: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.ascii-logo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    letter-spacing: 0;
    line-height: 1.2;
    -webkit-font-feature-settings: "liga" 0;
    font-feature-settings: "liga" 0;
    color: #888;
    margin-bottom: 24px;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Fallback: when screen is too small for ASCII art, show plain text instead */
.logo-text {
    display: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #888;
    transition: color 0.3s ease;
}

.logo-link:hover .ascii-logo,
.logo-link:hover .logo-text {
    color: #ddd;
}

nav {
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
    text-align: left;
}

nav a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #c8c8c8;
}

/* Post List */
.post-list {
    border: 1px solid #1a1a1a;
    padding: 24px 32px;
}

.post-entry {
    padding: 12px 0;
    border-bottom: 1px solid #111;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-entry:last-child {
    border-bottom: none;
}

.post-entry a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.post-entry a:hover {
    color: #fff;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.post-content img {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.post-content img:hover {
    opacity: 0.8;
}
.post-entry time {
    color: #444;
    font-size: 13px;
}

/* Single Post */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.post-header time {
    color: #444;
    font-size: 13px;
}

.post-content {
    border: 1px solid #1a1a1a;
    padding: 32px;
}

.post-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ddd;
    margin: 32px 0 12px 0;
}

.post-content h3 {
    font-size: 16px;
    font-weight: 500;
    color: #bbb;
    margin: 24px 0 8px 0;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content a {
    color: #7a9cc6;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-color: #7a9cc6;
}

.post-content code {
    background: #141414;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #b0b0b0;
}

.post-content pre {
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 2px;
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 2px solid #333;
    padding-left: 16px;
    color: #777;
    margin: 20px 0;
}

.post-content ul, .post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-content li {
    margin-bottom: 4px;
}

/* Responsive - small screens: hide ASCII, show plain text left-aligned */
@media (max-width: 600px) {
    .ascii-logo {
        display: none;
    }

    .logo-text {
        display: block;
    }

    header {
        text-align: left;
    }

    .container {
        padding: 30px clamp(16px, 5vw, 80px);
    }

    .post-list {
        padding: 16px 20px;
    }

    .post-content {
        padding: 20px;
    }
}
