:root {
    --bg-color: #f4f1ea; 
    --text-color: #2c2c2c; 
    --accent-color: #7a7a7a; 
    --highlight-color: #f97316; 
}

* { 
    box-sizing: border-box; 
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', serif;
    background-color: var(--bg-color); 
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* --- THE STICKY NAV MENU --- */
#global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(244, 241, 234, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
    
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 1.25rem 5vw; 
    
    transform: translateY(-100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#global-nav.visible {
    transform: translateY(0);
}

.nav-brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none; 
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.6; 
}

.nav-links {
    display: flex;
    gap: 1.5rem; 
}

.nav-link {
    color: var(--accent-color); 
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link.active-link {
    color: var(--text-color); 
    font-weight: 600;
    border-bottom: 1px solid var(--text-color);
}

/* --- THE TIMELINE DOTS --- */
.title-timeline, .nav-timeline {
    display: flex;
    gap: 3px; 
    align-items: center;
    justify-content: center;
}

.title-timeline {
    margin-top: 0.85rem; 
}

.nav-timeline {
    position: absolute; 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; 
    transition: opacity 0.4s ease;
}

.nav-timeline.visible {
    opacity: 1;
}

/* Base Dot Styling */
.timeline-dot {
    width: 2px; 
    height: 2px; 
    border-radius: 50%;
    transition: all 0.3s ease;
}

.title-timeline .timeline-dot { background: rgba(255, 255, 255, 0.2); }
.title-timeline .timeline-dot.book-dot { background: rgba(255, 255, 255, 0.95); }

.nav-timeline .timeline-dot { background: rgba(0, 0, 0, 0.1); }
.nav-timeline .timeline-dot.book-dot { background: rgba(0, 0, 0, 0.4); }

.timeline-dot.active-dot {
    background: var(--highlight-color) !important;
    transform: scale(2.5); 
}

/* --- THE TITLE CARD --- */
#landing-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    background-color: var(--bg-color);
    position: relative;
}

#landing-page h1 {
    font-size: 3rem;
    letter-spacing: 4px;
    font-weight: 400;
    text-transform: uppercase;
    max-width: 900px;
    margin-bottom: 1.5rem;
}

#landing-page p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.scroll-arrow {
    font-family: 'Inter', sans-serif !important; 
    font-weight: 300;
    font-style: normal; 
    font-size: 1.5rem;
    color: var(--text-color);
    animation: bounce 2s infinite;
    display: inline-block; 
    transform: scaleX(1.3); 
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scaleX(1.3); }
    40% { transform: translateY(-15px) scaleX(1.3); }
    60% { transform: translateY(-7px) scaleX(1.3); }
}

/* --- THE BOOK SECTION STRUCTURE --- */
.book-section {
    position: relative;
    width: 100%;
    z-index: 1;
}

.sticky-backdrop {
    position: -webkit-sticky; 
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden; 
    z-index: 1;
    background-color: var(--bg-color); 
}

.bg-media {
    position: absolute;
    top: -5vh; 
    left: -5vw;
    width: 110vw;
    height: 110vh; 
    object-fit: cover; 
    background-size: cover; 
    background-position: center;
    will-change: opacity, filter;
}

.book-title-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.book-title-text {
    font-size: 2rem; 
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff; 
    text-align: center;
    will-change: transform, opacity;
}

/* --- THE CLEAN TEXT LIST --- */
.content-scroll {
    position: relative;
    z-index: 3; 
    padding: 100vh 0 50vh 0; 
    display: flex;
    flex-direction: column;
}

.entry-block {
    width: 35%; 
    min-width: 320px;
    margin: 0 0 12vh 15vw; 
    will-change: transform, opacity;
    transform-origin: center left; 
}

/* --- TYPOGRAPHY --- */
.entry-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem; 
    letter-spacing: 1px;
    color: #111111; 
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.entry-content {
    font-size: 0.95rem; 
    line-height: 1.7;
}

/* --- FOOTER & BACK TO TOP --- */
#site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 10vh 0;
    display: flex;
    justify-content: center;
    background-color: var(--bg-color);
}

#back-to-top {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.65rem; /* Shrunk down to match nav links */
    padding: 1rem 2rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}