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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.6;
}

nav a.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.site-title {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -1px;
    text-decoration: none;
    display: inline-block;
}

.site-title:hover {
    opacity: 0.8;
}

/* Book Page Styles */
.book-page {
    display: grid;
    grid-template-columns: 58% 42%;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    padding: 0;
    align-items: stretch;
    overflow: hidden;
}

.book-cover-section {
    background: radial-gradient(ellipse 500px 550px at center 55%, #8bc2ed 0%, #8bc2ed 30%, rgba(139, 194, 237, 0.9) 45%, rgba(139, 194, 237, 0.4) 60%, transparent 75%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 50px;
    order: 2;
}

/* Book Container - Simple with depth */
.book-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.book-wrapper {
    position: relative;
}

.book-cover-image {
    max-width: 100%;
    max-height: 550px;
    height: auto;
    width: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    object-fit: contain;
    display: block;
}

.book-info-section {
    background-color: #ffffff;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    order: 1;
    overflow: hidden;
    text-align: center;
}

.book-title {
    font-size: 46px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.book-author {
    font-size: 24px;
    font-weight: 400;
    color: #555555;
    margin-bottom: 26px;
}

.book-description {
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 24px;
    max-width: 800px;
}

.book-metadata {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 16px;
    color: #666666;
}

.metadata-item {
    font-weight: 400;
}

.metadata-separator {
    color: #999999;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #8bc2ed;
    color: #ffffff;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    align-self: center;
    box-shadow: 0 4px 12px rgba(139, 194, 237, 0.3);
}

.download-button:hover {
    background-color: #6DAAD6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 194, 237, 0.4);
}

.download-icon {
    width: 20px;
    height: 20px;
}

/* Gallery Page Styles */
.gallery-page {
    display: block;
    padding: 0px 60px 40px 60px;
    max-width: 1600px;
    margin: 0 auto;
    min-height: auto;
}

.gallery-title {
    font-size: 40px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 40px;
    margin-top: 0px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 100%;
}

.gallery-item {
    background-color: #000000;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Back Link */
.back-link {
    display: inline-block;
    font-size: 16px;
    color: #555;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000;
}

/* Days Grid (Hub Page) */
.days-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 100%;
    justify-items: center;
}

.day-block {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 220px;
    width: 100%;
}

.day-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.day-block-empty {
    border: none;
    box-shadow: none;
    background: transparent;
    pointer-events: none;
}

.day-block-date {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.day-block-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    padding: 2px;
    background-color: #f0f0f0;
}

.day-block-preview img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
}

.lightbox-image {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 72px;
    font-weight: 700;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 60px;
    padding: 20px 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    line-height: 1;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 50px;
}

.lightbox-next {
    right: 50px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    nav {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    .site-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .book-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .book-cover-section {
        padding: 60px 40px;
        order: 1;
    }
    
    .book-cover-image {
        max-height: 500px;
    }
    
    .book-info-section {
        padding: 50px 40px;
        order: 2;
    }
    
    .book-title {
        font-size: 40px;
    }
    
    .book-author {
        font-size: 22px;
    }
    
    .book-description {
        font-size: 16px;
    }
    
    .download-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .site-title {
        font-size: 32px;
    }
    
    header {
        padding: 30px 30px;
    }
    
    .book-cover-section {
        padding: 40px 30px;
        order: 1;
    }
    
    .book-info-section {
        padding: 40px 30px;
        order: 2;
    }
    
    .book-title {
        font-size: 32px;
    }
    
    .book-author {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .book-metadata {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .gallery-page {
        padding: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .days-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .gallery-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px 20px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .days-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Article Page Styles */
.article-page {
    display: grid;
    grid-template-columns: 80% 20%;
    min-height: calc(100vh - 140px);
    max-height: none;
    padding: 0;
    align-items: stretch;
}

.article-content-section {
    background-color: #ffffff;
    padding: 30px 35px 60px 35px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.2;
}

.article-subtitle {
    font-size: 20px;
    color: #666666;
    margin-bottom: 30px;
    font-weight: 400;
}

.article-byline {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.article-author-info {
    text-align: left;
}

.article-author {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 6px;
}

.article-credentials {
    font-size: 16px;
    color: #666666;
    font-style: italic;
}

.article-excerpt {
    max-width: 1000px;
    margin-bottom: 25px;
    width: 100%;
}

.article-excerpt p {
    font-size: 17px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 20px;
}

.article-excerpt p:last-child {
    margin-bottom: 0;
}

.article-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #8bc2ed;
    color: #ffffff;
    padding: 14px 40px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 194, 237, 0.3);
    flex-shrink: 0;
}

.article-download-button:hover {
    background-color: #6DAAD6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 194, 237, 0.4);
}

/* Article Sidebar */
.article-sidebar {
    background-color: #f8f9fa;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    overflow-y: auto;
}

.sidebar-book-cover {
    width: 100%;
    max-width: 180px;
}

.sidebar-book-cover img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.metadata-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.metadata-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.metadata-card p {
    font-size: 14px;
    color: #555555;
    margin-bottom: 8px;
    line-height: 1.5;
}

.metadata-card p:last-child {
    margin-bottom: 0;
}

.pull-quote {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf7 100%);
    padding: 20px;
    border-left: 4px solid #8bc2ed;
    border-radius: 6px;
    width: 100%;
}

.pull-quote p {
    font-size: 14px;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

/* Article Page Responsive */
@media (max-width: 1024px) {
    .article-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .article-content-section {
        padding: 50px 40px;
    }
    
    .article-sidebar {
        padding: 40px 30px;
    }
    
    .article-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .article-content-section {
        padding: 40px 30px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-excerpt p {
        font-size: 17px;
    }
    
    .article-download-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   POEMS PAGE
   =========================== */

.poems-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0px 40px 60px 40px;
    background-color: #ffffff;
}

.poems-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1600px;
}

.poem-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poem-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 16px 0;
}

.poems-page .pdf-page {
    width: 480px;
}

.works-page .pdf-page {
    width: 380px;
}

@media (max-width: 1600px) {
    .poems-page .pdf-page {
        width: 420px;
    }
    
    .works-page .pdf-page {
        width: 340px;
    }
}

@media (max-width: 1300px) {
    .poems-page .pdf-page {
        width: 360px;
    }
    
    .works-page .pdf-page {
        width: 300px;
    }
}

@media (max-width: 1100px) {
    .poems-container {
        flex-direction: column;
        align-items: center;
    }
    
    .poems-page .pdf-page {
        width: 500px;
    }
}

@media (max-width: 700px) {
    .poems-page .pdf-page {
        width: 90vw;
    }
    
    .poems-page {
        padding: 0px 20px 40px 20px;
    }
}

/* Autobiography Page Styles */
.autobiography-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 0px 40px 0px 40px;
    background-color: #ffffff;
}

.pdf-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.pdf-page {
    width: 560px;
    height: auto;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.pdf-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pdf-page-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1400px) {
    .pdf-page {
        width: 470px;
    }
}

@media (max-width: 1100px) {
    .pdf-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-page {
        width: 560px;
    }
}

@media (max-width: 700px) {
    .pdf-page {
        width: 90vw;
    }
    
    .autobiography-page {
        padding: 20px;
    }
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-page {
    display: flex;
    justify-content: center;
    padding: 30px 40px 60px 40px;
    min-height: calc(100vh - 80px);
}

.contact-container {
    max-width: 790px;
    width: 100%;
}

/* Header */
.contact-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 38px;
}

.contact-profile-image {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
}

.contact-header-text {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 13px;
}

.contact-name {
    font-size: 49px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    margin: 0 0 9px 0;
}

.contact-role {
    font-size: 21px;
    color: #555;
    margin: 0 0 5px 0;
    font-weight: 400;
}

.contact-location {
    font-size: 17px;
    color: #888;
    margin: 0;
    font-weight: 400;
}

/* Sections */

.contact-section {
    margin-bottom: 28px;
}

/* Contact rows */
.contact-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.contact-row-hero {
    border-bottom: 1px solid #ddd;
}

.contact-row-hero .contact-row-label {
    font-weight: 600;
    font-size: 18px;
}

.contact-row-hero .contact-row-value {
    font-size: 20px;
    font-weight: 500;
}

.contact-row-label {
    font-size: 16px;
    font-weight: 500;
    color: #888;
    min-width: 80px;
    letter-spacing: 0.3px;
}

.contact-row-value {
    font-size: 18px;
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-row-value:hover {
    color: #8bc2ed;
}

.contact-hint {
    font-size: 16px;
    color: #777;
    margin: 9px 0 0 0;
    line-height: 1.6;
}

/* Guidelines */
.contact-guidelines h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 14px 0;
}

.contact-guidelines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-guidelines li {
    font-size: 16px;
    color: #555;
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.contact-guidelines li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #bbb;
}

/* Bio section */
.contact-bio h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.contact-bio p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Footer note */
.contact-footer-note {
    font-size: 15px;
    color: #aaa;
    font-style: italic;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-page {
        padding: 0px 20px 40px 20px;
    }
    
    .contact-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }
    
    .contact-name {
        font-size: 33px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .contact-row-label {
        min-width: auto;
    }
}
