/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #8c3c93;
    font-size: 16px;
    /* 
     * iOS Safari's `100vh` can be taller than the visible viewport when the
     * address/tab bars are shown, which forces a small scroll even on short pages.
     * Prefer modern viewport units when supported.
     */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header */
header {
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #ffef02;
    margin-bottom: 60px;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.site-description {
    font-size: 1.1rem;
    color: #888;
    font-weight: 400;
}

/* Main content */
main {
    flex: 1;
}

/* Article styles */
article {
    margin-bottom: 60px;
    padding-bottom: 40px;
}

article:last-child {
    border-bottom: none;
}

.entry-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.3;
}

.entry-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #888;
}

.entry-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 2em 0 1em;
    color: #ffffff;
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 1.5em 0 0.8em;
    color: #ffffff;
}

.read-more {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ffffff;
}

/* Description section */
.description-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
}

.description-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1.5em;
}

.description-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.description-section a:hover {
    color: #ffffff;
}

/* Projects section */
.projects-section {
    margin-bottom: 60px;
}

.projects-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #ffffff;
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-list li a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.project-list li a:hover {
    color: #ffffff;
}

.book-recommendations-section {
    margin-bottom: 60px;
}

.book-recommendations-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 45px;
    color: #ffffff;
}

.book-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 5px 0 10px 0;
    border-top: 1px solid #ffef02;
    color: #666;
    font-size: 0.9rem;
}

footer a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

footer a:hover {
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 20px 0 30px;
        margin-bottom: 40px;
    }

    .site-title {
        font-size: 2rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    article {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
}