body {
    background: #181818;
    color: #eaeaea;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.site-header {
    background: #111;
    border-bottom: 4px solid #b97a7a;
    padding: 0.5rem 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.site-title {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
}
nav a {
    color: #eaeaea;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: #b97a7a;
}

.hero {
    text-align: left;
    max-width: 900px;
    margin: 3rem auto 2rem auto;
    padding: 0 2rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.hero-subtext {
    font-size: 1.2rem;
    color: #b97a7a;
    margin-bottom: 0;
}

.featured-book {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 1.2rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1.5px solid #b97a7a;
    gap: 2rem;
}
.book-info {
    flex: 1 1 300px;
    min-width: 260px;
}
.book-info h2 {
    color: #b97a7a;
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}
.book-info h3 {
    font-size: 2rem;
    margin: 0.2rem 0 0.5rem 0;
    font-weight: 700;
}
.author {
    font-size: 1.1rem;
    color: #eaeaea;
    margin-bottom: 1rem;
}
.description {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.portfolio-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: none;
    border: 1.5px solid #b97a7a;
    color: #b97a7a;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.portfolio-link:hover {
    background: #b97a7a;
    color: #181818;
}
.book-image {
    flex: 1 1 220px;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.book-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    object-fit: cover;
}

.book-gallery {
    max-width: 1100px;
    margin: 3rem auto 0 auto;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 1.2rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    border: 1.5px solid #b97a7a;
}
.gallery-title {
    color: #b97a7a;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 700;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.gallery-card {
    background: #222;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1.5px solid #333;
}
.gallery-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(185,122,122,0.13);
    border-color: #b97a7a;
}
.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1.5px solid #b97a7a;
}
.gallery-info {
    padding: 1.2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gallery-info h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.3rem 0;
    color: #fff;
    font-weight: 700;
}
.gallery-info .author {
    font-size: 1rem;
    color: #b97a7a;
    margin-bottom: 0.7rem;
}
.gallery-info .description {
    font-size: 0.98rem;
    color: #ccc;
    flex: 1;
}

.about-section {
    background: #222;
    border-radius: 1.2rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 2.5rem 2rem;
    border: 1.5px solid #b97a7a;
}
.about-section h2 {
    color: #b97a7a;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-align: left;
}
.about-section p {
    color: #eaeaea;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}
@media (max-width: 700px) {
    .about-section {
        padding: 1.2rem 0.7rem;
    }
}

@media (max-width: 800px) {
    .featured-book {
        flex-direction: column;
        padding: 1.2rem;
    }
    .hero {
        text-align: center;
    }
}

@media (max-width: 700px) {
    .book-gallery {
        padding: 1rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .gallery-card img {
        height: 180px;
    }
} 

.learn-more-btn {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.45rem 1.2rem;
    background: none;
    border: 1.5px solid #b97a7a;
    color: #b97a7a;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    cursor: pointer;
}
.learn-more-btn:hover {
    background: #b97a7a;
    color: #181818;
} 

.book-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 1.2rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.18);
    max-width: 900px;
    margin: 3rem auto 2rem auto;
    padding: 2.5rem 2rem;
    border: 1.5px solid #b97a7a;
    gap: 2.5rem;
}
.book-detail-image {
    flex: 1 1 320px;
    min-width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.book-detail-image img {
    width: 100%;
    max-width: 340px;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    object-fit: cover;
}
.book-detail-info {
    flex: 2 1 340px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.book-detail-info h1 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.book-detail-info .author {
    font-size: 1.15rem;
    color: #b97a7a;
    margin-bottom: 1.2rem;
}
.book-detail-info .description {
    font-size: 1.08rem;
    color: #eaeaea;
    margin-bottom: 2rem;
    line-height: 1.7;
}
@media (max-width: 800px) {
    .book-detail {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1.5rem;
    }
    .book-detail-image img {
        max-width: 100%;
        height: auto;
    }
} 

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}
.toggle-btn {
    background: #181818;
    color: #b97a7a;
    border: 1.5px solid #b97a7a;
    border-radius: 2rem;
    padding: 0.35rem 1.1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
}
.toggle-btn:hover, .toggle-btn:focus {
    background: #b97a7a;
    color: #181818;
    border-color: #fff;
}

/* Light theme overrides */
body.light-theme {
    background: #f7f7f7;
    color: #181818;
}
body.light-theme .site-header {
    background: #fff;
    border-bottom: 4px solid #b97a7a;
}
body.light-theme .site-title,
body.light-theme nav a {
    color: #181818;
}
body.light-theme nav a:hover {
    color: #b97a7a;
}
body.light-theme .featured-book,
body.light-theme .about-section,
body.light-theme .book-gallery,
body.light-theme .gallery-card,
body.light-theme .book-detail {
    background: #fff;
    color: #181818;
    border-color: #b97a7a;
}
body.light-theme .portfolio-link,
body.light-theme .learn-more-btn {
    background: none;
    color: #b97a7a;
    border: 1.5px solid #b97a7a;
}
body.light-theme .portfolio-link:hover,
body.light-theme .learn-more-btn:hover {
    background: #b97a7a;
    color: #fff;
}
body.light-theme .gallery-title,
body.light-theme .about-section h2,
body.light-theme .book-info h2 {
    color: #b97a7a;
}
body.light-theme .gallery-info h3,
body.light-theme .book-detail-info h1 {
    color: #181818;
}
body.light-theme .gallery-info .author,
body.light-theme .book-detail-info .author {
    color: #b97a7a;
}
body.light-theme .gallery-info .description,
body.light-theme .book-detail-info .description,
body.light-theme .about-section p {
    color: #444;
}
body.light-theme .toggle-btn {
    background: #fff;
    color: #b97a7a;
    border: 1.5px solid #b97a7a;
}
body.light-theme .toggle-btn:hover, body.light-theme .toggle-btn:focus {
    background: #b97a7a;
    color: #fff;
    border-color: #181818;
} 