:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #888;
    --font-main: 'Lexend', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    height: 100vh;
    overflow-x: hidden;
}

/* Main Grid Layout - Single Column Text Focused */
.layout-grid {
    display: flex;
    flex-direction: column;
    width: 90vw;
    /* Limit line width for maximum readability */
    max-width: 800px;
    margin: 10vh auto;
    min-height: 80vh;
    gap: 4rem;
}

/* Header Area */
.site-title {
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

/* Share animation logic with post-header */
.site-header,
.post-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2vh;
    border-bottom: 1px solid #111;
    padding-bottom: 2rem;

    /* Animation Init */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1.5s ease, transform 1.5s ease-out;
}

.site-header.visible,
.post-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle {
    margin-top: 1rem;
    font-weight: 300;
    color: var(--accent-color);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
}

/* Posts Area */
.posts-section {
    padding-bottom: 10vh;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.post-item {
    border-left: 2px solid #222;
    padding-left: 2rem;

    /* Animation Init */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.post-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.date {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-item h2 {
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.post-item h2 a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.post-item h2 a:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #333;
    text-underline-offset: 6px;
}

.excerpt {
    font-weight: 300;
    color: #888;
    font-size: 1.1rem;
    max-width: 65ch;
    margin-top: 1rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .layout-grid {
        width: 85vw;
        margin: 5vh auto;
    }

    .site-title {
        font-size: 3rem;
    }

    .post-item {
        padding-left: 1.5rem;
        border-left: 1px solid #222;
    }
}

/* Post Content Styles */
.post-header {
    margin-bottom: 4rem;
}

.post-header .date {
    margin-bottom: 1rem;
}

.post-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

.author {
    color: var(--accent-color);
    font-weight: 300;
    font-size: 1.1rem;
}

.article-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ccc;
    font-weight: 300;

    /* Animation Init */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.article-content p {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-block;
    margin-top: 4rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: #fff;
    border-bottom: 1px solid #444;
}