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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: #f5f3f0;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f3f0;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #ddd;
    padding: 2rem 2rem 1rem 2rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.1em;
}

main {
    margin-bottom: 3rem;
}

.loading {
    color: #666;
    font-style: italic;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.post {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 0;
}

.post-title {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.post-content {
    font-size: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.image-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    background: none;
    overflow: hidden;
    aspect-ratio: 65 / 24; /* Your image ratio */
}

.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    border: none;
    background: none;
}

.post-image.loaded {
    opacity: 1;
}

.image-container .image-skeleton.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}
