/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #addae4;
    background-image: url('i/noise.svg');
    background-repeat: repeat;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 40px 0 20px;
    margin-bottom: 40px;
}

.site-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: #000;
}

.tagline {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

/* Navigation */
nav {
    display: flex;
    gap: 20px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #000;
}

nav a.active {
    color: #000;
    font-weight: 500;
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
}

.content {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #444;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #444;
}

p {
    margin-bottom: 20px;
    color: #444;
}

/* Writing Specific Styles */
.writing-piece {
    margin-top: 30px;
}

.excerpt-intro {
    font-style: italic;
    color: #666;
    margin-top: 25px;
}

blockquote {
    border-left: 3px solid #ddd;
    padding-left: 25px;
    margin: 25px 0;
    color: #555;
    font-style: italic;
}

blockquote p {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 25px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    nav {
        gap: 15px;
    }
    
    blockquote {
        padding-left: 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 0 15px;
    }
    
    .site-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .content {
        padding: 20px;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
}

/* Book Cover Image */
.book-cover {

    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.book-cover:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox .close:hover,
.lightbox .close:focus {
    color: #bbb;
}

@media (max-width: 600px) {
    /* .book-cover {
        max-width: 250px;
    } */
}
