/* ==========================================================================
   Holotopia Website Styles - Scrolling Single Page Version
   ========================================================================== */

/* Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.67;
    color: #333;
    background: #ffffff;
}

main {
    background: #ffffff;
    padding-top: 80px;
}

.serif {
    font-family: Georgia, serif;
}

/* Header & Navigation - CRITICAL STICKY WHITE HEADER
   ========================================================================== */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

nav {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.logo-icon {
    width: 32px;
    height: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d94a2e;
}

.nav-item {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 12px 0;
    margin-top: 0;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 8px 24px;
    white-space: nowrap;
}

.dropdown a:hover {
    background: #f5f5f5;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* Main Content
   ========================================================================== */
section {
    min-height: 50vh;
    padding: 72px 0;
}

.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 36px;
}

/* Hero Section (Home Page)
   ========================================================================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.hero-text h1 {
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: normal;
    color: #d94a2e;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    line-height: 30px;
}

.hero-images {
    position: relative;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.book-image {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* Article Layout
   ========================================================================== */
.article-layout-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.article-content {
    grid-column: 1 / 7;
}

.article-sidebar {
    grid-column: 8 / 13;
}

/* Typography
   ========================================================================== */
h1 {
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: normal;
    color: #d94a2e;
    margin-bottom: 24px;
    line-height: 1.2;
}

h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: normal;
    color: #333;
    margin: 30px 0 18px;
    line-height: 1.3;
}

.intro {
    font-size: 18px;
    line-height: 30px;
    color: #d94a2e;
    font-weight: bold;
    margin-bottom: 24px;
}

p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 18px;
}

p img {
    width: 100%;
    height: auto;
    margin: 24px 0;
    display: block;
}

ul {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 18px;
    margin-left: 24px;
}

li {
    margin-bottom: 12px;
}

.highlight {
    color: #d94a2e;
    font-weight: bold;
    text-decoration: underline;
    font-family: Georgia, serif;
    transition: opacity 0.3s;
}

.highlight:hover {
    opacity: 0.7;
}

em {
    font-style: italic;
}

/* Images & Quotes
   ========================================================================== */
.sidebar-image {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.sidebar-image.circular {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.quote-box {
    color: #d94a2e;
    padding: 0;
    margin-top: 24px;
}

.quote-box blockquote {
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 18px 0;
    color: #d94a2e;
}

.quote-box p {
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 18px;
    color: #d94a2e;
}

.quote-box .quote-author {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-style: normal;
    color: #4d4d4d;
    font-weight: normal;
    margin-bottom: 0;
}

/* Book Page Layout
   ========================================================================== */
.book-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.book-intro {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.excerpt-list {
    list-style: none;
    margin-left: 0;
}

.excerpt-item {
    margin-bottom: 36px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.excerpt-item:hover {
    opacity: 0.7;
}

.excerpt-item h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    color: #d94a2e;
    margin-bottom: 6px;
    line-height: 1.3;
}

.excerpt-item .page-ref {
    font-size: 14px;
    color: #666;
}

.book-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-center img {
    max-width: 280px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

/* Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    padding: 36px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    padding: 48px;
    position: relative;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    color: #d94a2e;
}

/* Footer
   ========================================================================== */
footer {
    background: #e8e8e8;
    color: #666;
    padding: 36px 0;
}

.footer-content {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 36px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 18px;
    color: #666;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    line-height: 24px;
    color: #666;
    text-decoration: none;
}

.footer-section a:hover {
    color: #d94a2e;
}

.footer-bottom {
    font-size: 14px;
    color: #999;
    margin-top: 24px;
}

/* Mobile Styles
   ========================================================================== */
@media (max-width: 900px) {
    html {
        scroll-padding-top: 80px;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background: white;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 18px 36px;
    }
    
    .nav-item {
        cursor: pointer;
    }
    
    .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background: #f5f5f5;
        margin: 0;
        padding: 0;
    }
    
    .dropdown a {
        padding: 12px 36px 12px 54px;
    }
    
    .nav-item.mobile-open .dropdown {
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    /* Article Layout */
    .article-layout-inner {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .article-content {
        grid-column: 1;
        order: 3;
    }
    
    .article-content .intro {
        order: 1;
    }
    
    .article-sidebar {
        grid-column: 1;
        order: 2;
        margin-bottom: 36px;
    }
    
    /* Book Layout */
    .book-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    /* Modal */
    .modal-content {
        padding: 36px 24px;
    }
    
    /* Sections */
    section {
        padding: 36px 0;
    }
    
    .container {
        padding: 0 24px;
    }
}