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

body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: #333;
    background: #fff;
    display: grid;
    grid-template-columns: 250px 1fr;
}

/* Navigation */
nav {
    padding: 2rem 1.5rem;
    height: 100vh;
    position: fixed;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

nav h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

nav h1 a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

nav h1 a:hover {
    opacity: 0.6;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

nav li {
    margin: 0;
    width: 100%;
}

nav a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 5px;
}

nav ul a:hover {
    color: #000;
    background: #f0f0f0;
}

nav ul a.active {
    color: #000;
    background: #e0e0e0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

/* Main Content */
main {
    grid-column: 2 / -1;
    padding: 3rem;
    max-width: 1400px;
}

    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .about-content {
        grid-template-columns: minmax(300px, 400px) 1fr; /* Adjust image column width */
        align-items: center; /* Vertically center image and text */
    }



    .book-layout {
        grid-template-columns: 1fr 2fr;
    }

    .about-content .image-section img {
        max-width: 100%; /* Ensure image doesn't overflow its column */
        height: auto;
    }
.image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.text-section {
    width: 70%;
    font-size: 0.9rem;
    line-height: 1.7;
}

.bio-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Book Page Styles */
.book-header {
    margin-bottom: 2rem;
}

.book-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: -0.4rem;
}

.book-header .subtitle,
.image-section .translation-tag {
    color: #666;
    font-style: italic;
    margin-bottom: 1.4rem;
}

.image-section .translation-tag {
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.book-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.4rem;
    align-items: center;
}

.book-links a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.book-links a:hover {
    color: #888;
}

.book-links span {
    white-space: nowrap;
}

.book-description {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.book-cover {
    margin-bottom: 2rem;
}

.translations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.translations img {
    width: 100%;
    height: auto;
    display: block;
}

.reviews {
    margin-top: 3rem;
}

.review {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid #f0f0f0;
}

.review p {
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.review .attribution {
    font-style: normal;
    color: #666;
    font-size: 0.8rem;
}

/* Writing Page Styles */
.writing-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: baseline;
}

.writing-layout .writing-section,
.writing-layout .interviews-section,
.writing-layout .more-section {
    display: contents;
}

.writing-section {
    margin-bottom: 3rem;
}

.writing-section h2,
.interviews-section h2,
.more-section h2 {
    font-size: 1rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: #555;
    grid-column: 1;
    text-align: right;
    padding-right: 2rem;
}

.writing-section ul,
.interviews-section ul,
.more-section ul {
    list-style: none;
    grid-column: 2;
    font-size: 0.9rem;
}

.writing-section a,
.interviews-section a,
.more-section a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.writing-section a:hover,
.interviews-section a:hover,
.more-section a:hover {
    color: #999;
}

.writing-section li {
    margin-bottom: 0.5rem;
}

.writing-section h2 {
    margin-bottom: 1rem;
}

/* Interviews Page Styles */
.interviews-section {
    margin-bottom: 3rem;
}

.interviews-section h2 {
    margin-bottom: 1rem;
}

.interviews-section ul {
    list-style: none;
}

.interviews-section li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* More Stuff Page Styles */
.more-section {
    margin-bottom: 3rem;
}

.more-section h2 {
    margin-bottom: 1rem;
}

.more-section ul {
    list-style: none;
}

.more-section li {
    margin-bottom: 0.5rem;
}

.more-section a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.more-section a:hover {
    color: #888;
}

/* Single Column Layout for Writing/Interviews/More */
.single-column {
    max-width: 900px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 868px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    nav {
        position: static;
        width: 100%;
        height: auto;
        padding: 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        margin-top: 1rem;
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    nav h1 {
        margin-bottom: 0;
    }

    nav h1 a {
        display: inline-block;
        max-width: 140px;
        line-height: 1.2;
    }

    main {
        grid-column: 1 / -1;
        padding: 1.5rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-section {
        width: 100%;
    }

    /* Book page mobile reordering */
    .book-layout {
        display: flex;
        flex-direction: column;
    }

    .book-layout .text-section {
        display: contents;
    }

    .book-layout .book-header {
        order: 1;
    }

    .book-layout .book-description {
        order: 2;
        margin-bottom: 2rem;
    }

    .book-layout .image-section {
        order: 3;
        margin-bottom: 2rem;
    }

    .book-layout .reviews {
        order: 4;
    }

    /* Make main book cover smaller on mobile */
    .book-cover {
        margin-bottom: 1.5rem;
    }

    .book-cover img {
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }

    .translation-tag {
        text-align: center;
        margin-bottom: 1rem;
    }

    /* Display all covers in a compact grid */
    .translations {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .writing-layout {
        display: block;
    }

    .writing-layout .writing-section,
    .writing-layout .interviews-section,
    .writing-layout .more-section {
        display: block;
    }

    .writing-layout .writing-section h2,
    .writing-layout .interviews-section h2,
    .writing-layout .more-section h2 {
        text-align: left;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-weight: 900;
        font-size: 1.5rem;
    }

    /* Keep translations as compact grid on small screens */
    .translations {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .book-cover img {
        max-width: 150px;
    }
}

/* Updates Page Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button {
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #555;
}

/* Success Lightbox Styles */
#success-lightbox .lightbox-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#success-lightbox h2 {
    margin-bottom: 1rem;
}

#success-lightbox .close-button {
    color: #333;
    top: 10px;
    right: 15px;
}