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

html {
    background-color: #1d2021;
    background-image: radial-gradient(#252525 1.5px, #1d2021 1.5px);
    background-size: 25px 25px;
}

body {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #282828;
    color: #ebdbb2;
    font-size: 17px;
    min-height: 100vh;
    margin: 0;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: transparent;
    background-image: radial-gradient(#252525 1.5px, #1d2021 1.5px);
    background-size: 25px 25px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-nav {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.nav-link {
    color: #a89984;
    text-decoration: underline;
    font-size: 20px;
    transition: color 0.5s ease-in-out;
}

.nav-link:hover {
    color: #fe8019;
}

.intro a {
    color: #d65d0e;
    text-decoration: underline;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.ascii-art {
    font-size: 20px;
    white-space: pre;
    overflow: hidden;
    background: linear-gradient(90deg, #ebdbb2, #fabd2f, #fe8019, #fb4934, #fe8019, #fabd2f, #ebdbb2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    color: transparent;
    transition: background-position 0.5s ease;
}

.ascii-art:hover {
    background-position: 100% center;
}

header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.time {
    color: #928374;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-btn {
    color: #928374;
    text-decoration: none;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: color 0.5s ease-in-out;
    font-size: 16px;
    font-weight: bold;
}

.social-btn:nth-child(1):hover {
    color: #ebdbb2;
}

.social-btn:nth-child(2):hover {
    color: #fabd2f;
}

.social-btn:nth-child(3):hover {
    color: #fc9a24;
}

.social-btn:nth-child(4):hover {
    color: #fe8019;
}

.social-btn:nth-child(5):hover {
    color: #fb4934;
}

/* Posts */
.blog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 40px 20px;
}

.blog-title {
    color: #ebdbb2;
    font-size: 32px;
    margin-bottom: 40px;
    text-align: left;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.post-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #1d2021;
    border: 2px solid #3c3836;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    max-width: 800px;
}

.post-cover {
    width: 150px;
    height: 150px;
    border-radius: 6px;
    background-color: #282828;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.post-title {
    color: #ebdbb2;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
}

.post-arrow {
    color: #928374;
    font-size: 40px;
    font-weight: bold;
}

.post-article {
    width: 100%;
    max-width: 800px;
    text-align: left;
}

.post-body {
    text-align: left;
    line-height: 1.6;
    color: #ebdbb2;
}

.post-body p {
    margin-bottom: 20px;
    color: #ebdbb2;
}

.post-body a {
    color: #d65d0e;
    text-decoration: underline;
}

.post-body h2 {
    color: #a89984;
    font-size: 24px;
    margin-top: 60px;
    margin-bottom: 15px;
    text-align: left;
}

.post-body ul {
    margin: 20px 0;
    padding-left: 0;
    text-align: left;
}

.post-body li {
    margin-bottom: 10px;
    color: #ebdbb2;
}


/* Responsive */
@media (max-width: 768px) {
    .ascii-art{
        font-size: 12px;
        letter-spacing: normal; 
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .post-card {
        gap: 15px;
    }
    
    .post-cover {
        width: 130px;
        height: 130px;
        flex-shrink: 0;
    }
    
    .post-body h2 {
        font-size: 20px;
        margin-top: 50px;
        margin-bottom: 12px;
    }
    
    .post-article {
        padding: 0 10px;
    }
    
}

@media (max-width: 480px) {
    .intro p {
        margin-bottom: 15px;
    }
    
    .blog-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-cover {
        width: 130px;
        height: 130px;
    }
    
    .post-body h2 {
        font-size: 18px;
        margin-top: 45px;
        margin-bottom: 10px;
    }
    
    .post-body p {
        font-size: 16px;
        margin-bottom: 15px;
    }
}