        /* ============================================================
                   ROOT & RESET
                   ============================================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --bg: #0a0c10;
            --surface: #12161e;
            --surface2: #1a202a;
            --surface3: #252e3d;
            --text: #eef2f8;
            --text2: #8896ab;
            --text3: #5a6a7f;
            --accent: #d4a373;
            --accent2: #b8895a;
            --gold: #f5c842;
            --green: #4caf84;
            --red: #e86969;
            --radius: 16px;
            --radius-sm: 10px;
            --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            --shadow-glow: 0 0 60px rgba(212, 163, 115, 0.08);
            --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --font-serif: 'Cormorant Garamond', serif;
            --font-sans: 'Inter', sans-serif;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: var(--font-sans);
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            padding: 0 20px;
            overflow-x: hidden;
        }
        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--surface);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--accent);
            border-radius: 10px;
        }
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 30px 0 60px;
        }
        /* ============================================================
                   TYPOGRAPHY
                   ============================================================ */
        h1,
        h2,
        h3,
        h4 {
            font-family: var(--font-serif);
            font-weight: 600;
            letter-spacing: -0.02em;
        }
        h1 {
            font-size: clamp(3rem, 8vw, 5.5rem);
            line-height: 1.05;
        }
        h2 {
            font-size: clamp(2rem, 4vw, 3.2rem);
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--accent);
            padding-left: 1.2rem;
        }
        h2.centered {
            border-left: none;
            text-align: center;
            padding-left: 0;
        }
        .accent {
            color: var(--accent);
        }
        .gold {
            color: var(--gold);
        }
        .text-muted {
            color: var(--text2);
            font-size: 0.92rem;
        }
        .text-small {
            font-size: 0.8rem;
            color: var(--text3);
        }
        /* ============================================================
                   HEADER / LIBRARY BRAND
                   ============================================================ */
        .library-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0 30px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            flex-wrap: wrap;
            gap: 16px;
        }
        .library-brand {
            font-family: var(--font-serif);
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: 2px;
        }
        .library-brand span {
            color: var(--accent);
        }
        .library-brand small {
            font-size: 0.6rem;
            font-family: var(--font-sans);
            font-weight: 400;
            color: var(--text2);
            letter-spacing: 3px;
            display: block;
            margin-top: -4px;
        }
        .library-nav {
            display: flex;
            gap: 24px;
            align-items: center;
            flex-wrap: wrap;
        }
        .library-nav a {
            color: var(--text2);
            text-decoration: none;
            font-size: 0.85rem;
            transition: var(--transition);
            font-weight: 400;
        }
        .library-nav a:hover {
            color: var(--accent);
        }
        /* ============================================================
                   3D BOOK COVER
                   ============================================================ */
        .book-3d-wrapper {
            perspective: 1200px;
            width: 100%;
            max-width: 360px;
            margin: 0 auto;
            cursor: pointer;
        }
        .book-3d {
            position: relative;
            width: 100%;
            aspect-ratio: 2/3;
            transform-style: preserve-3d;
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            border-radius: 12px;
        }
        .book-3d:hover {
            transform: rotateY(-8deg) rotateX(4deg) scale(1.02);
        }
        .book-3d .cover-front {
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, #2c1f16, #140e0a);
            border-radius: 12px;
            box-shadow: var(--shadow), inset 0 0 0 1px rgba(212, 163, 115, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px;
            text-align: center;
            backface-visibility: hidden;
            border: 1px solid rgba(212, 163, 115, 0.08);
            transition: box-shadow 0.4s ease;
        }
        .book-3d:hover .cover-front {
            box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 163, 115, 0.25);
        }
        .book-3d .cover-front .title {
            font-family: var(--font-serif);
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            font-weight: 700;
            color: var(--accent);
            line-height: 1.1;
        }
        .book-3d .cover-front .sub {
            font-size: 0.9rem;
            color: var(--text2);
            margin-top: 8px;
            letter-spacing: 4px;
            text-transform: uppercase;
        }
        .book-3d .cover-front .author {
            margin-top: 20px;
            font-size: 1rem;
            color: var(--text3);
            letter-spacing: 2px;
        }
        .book-3d .cover-front .badge {
            margin-top: 16px;
            background: rgba(212, 163, 115, 0.12);
            padding: 4px 16px;
            border-radius: 60px;
            font-size: 0.7rem;
            color: var(--accent);
            letter-spacing: 2px;
            border: 1px solid rgba(212, 163, 115, 0.15);
        }
        /* spine shadow effect */
        .book-3d::after {
            content: '';
            position: absolute;
            left: -2px;
            top: 2%;
            width: 12px;
            height: 96%;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
            border-radius: 4px 0 0 4px;
            opacity: 0.4;
            transition: var(--transition);
        }
        .book-3d:hover::after {
            opacity: 0.7;
        }
        /* pages thickness illusion */
        .book-3d .pages-edge {
            position: absolute;
            right: -6px;
            top: 4%;
            width: 6px;
            height: 92%;
            background: linear-gradient(to right, #2a201a, #1a1410);
            border-radius: 0 4px 4px 0;
            opacity: 0.3;
            transition: var(--transition);
        }
        .book-3d:hover .pages-edge {
            right: -10px;
            opacity: 0.6;
            width: 10px;
        }

        /* ============================================================
                   HERO
                   ============================================================ */
        .hero {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 50px;
            align-items: center;
            min-height: 80vh;
            padding: 40px 0 20px;
        }
        .hero-content .subtitle {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 5px;
            color: var(--accent);
            margin-bottom: 8px;
        }
        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px 24px;
            margin: 20px 0 28px;
            font-size: 0.9rem;
            color: var(--text2);
        }
        .hero-meta i {
            margin-right: 8px;
            color: var(--accent);
            width: 18px;
        }
        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 32px;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            background: var(--surface2);
            color: var(--text);
            border: 1px solid transparent;
        }
        .btn-primary {
            background: var(--accent);
            color: #0a0c10;
            box-shadow: 0 8px 28px rgba(212, 163, 115, 0.25);
        }
        .btn-primary:hover {
            background: var(--accent2);
            transform: translateY(-3px);
            box-shadow: 0 14px 40px rgba(212, 163, 115, 0.35);
        }
        .btn-outline {
            border-color: rgba(255, 255, 255, 0.06);
        }
        .btn-outline:hover {
            border-color: var(--accent);
            background: var(--surface);
            transform: translateY(-2px);
        }
        .btn-gold {
            background: var(--gold);
            color: #0a0c10;
        }
        .btn-gold:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(245, 200, 66, 0.3);
        }
        /* ============================================================
                   READER JOURNEY — The relationship
                   ============================================================ */
        .journey-bar {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 20px 30px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin: 30px 0 50px;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }
        .journey-step {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text3);
            font-size: 0.85rem;
            transition: var(--transition);
            cursor: default;
        }
        .journey-step.active {
            color: var(--text);
        }
        .journey-step .dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--surface2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            border: 2px solid transparent;
            transition: var(--transition);
        }
        .journey-step.active .dot {
            border-color: var(--accent);
            background: rgba(212, 163, 115, 0.12);
            color: var(--accent);
        }
        .journey-step.done .dot {
            background: var(--green);
            color: #fff;
            border-color: var(--green);
        }
        .journey-progress-line {
            flex: 1;
            min-width: 60px;
            height: 2px;
            background: var(--surface2);
            position: relative;
        }
        .journey-progress-line .fill {
            height: 100%;
            background: var(--accent);
            width: 60%;
            border-radius: 4px;
            transition: width 1s ease;
        }

        /* ============================================================
                   STATS STRIP — Inside the Numbers
                   ============================================================ */
        .stats-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 12px;
            background: var(--surface);
            padding: 24px 30px;
            border-radius: var(--radius);
            margin: 20px 0 50px;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }
        .stat-item {
            text-align: center;
        }
        .stat-item .number {
            font-size: 1.5rem;
            font-weight: 700;
            font-family: var(--font-serif);
            color: var(--accent);
        }
        .stat-item .label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text3);
        }

        /* ============================================================
                   SECTIONS
                   ============================================================ */
        section {
            margin: 70px 0;
        }
        .card {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 32px 36px;
            border: 1px solid rgba(255, 255, 255, 0.04);
            transition: var(--transition);
        }
        .card:hover {
            border-color: rgba(212, 163, 115, 0.08);
        }
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        /* ============================================================
                   SYNOPSIS with hidden author notes
                   ============================================================ */
        .synopsis-wrapper {
            position: relative;
        }
        .synopsis-text {
            max-height: 140px;
            overflow: hidden;
            transition: max-height 0.6s ease;
            position: relative;
        }
        .synopsis-text.open {
            max-height: 1200px;
        }
        .synopsis-text::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(transparent, var(--surface));
        }
        .synopsis-text.open::after {
            display: none;
        }
        .read-more-btn {
            background: transparent;
            border: none;
            color: var(--accent);
            font-weight: 600;
            cursor: pointer;
            margin-top: 12px;
            font-size: 0.9rem;
        }
        /* Hidden author note trigger */
        .author-note-trigger {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(212, 163, 115, 0.08);
            padding: 4px 14px;
            border-radius: 60px;
            font-size: 0.75rem;
            color: var(--text2);
            cursor: pointer;
            border: 1px solid rgba(212, 163, 115, 0.08);
            transition: var(--transition);
            margin-top: 12px;
        }
        .author-note-trigger:hover {
            background: rgba(212, 163, 115, 0.15);
            color: var(--text);
        }
        .author-note-popup {
            display: none;
            background: var(--surface2);
            padding: 20px 24px;
            border-radius: var(--radius-sm);
            margin-top: 12px;
            border-left: 4px solid var(--accent);
            font-style: italic;
            color: var(--text2);
            font-size: 0.95rem;
        }
        .author-note-popup.show {
            display: block;
            animation: fadeUp 0.4s ease;
        }

        /* ============================================================
                   READING HEATMAP
                   ============================================================ */
        .heatmap-bar {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin: 10px 0;
        }
        .heatmap-bar .segment {
            flex: 1;
            min-width: 40px;
            height: 32px;
            border-radius: 6px;
            background: var(--surface2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            color: var(--text3);
            transition: var(--transition);
            cursor: pointer;
            position: relative;
            border: 1px solid transparent;
        }
        .heatmap-bar .segment:hover {
            border-color: var(--accent);
            transform: scale(1.05);
            z-index: 2;
        }
        .heatmap-bar .segment.hot {
            background: rgba(212, 163, 115, 0.4);
            color: var(--text);
        }
        .heatmap-bar .segment.hotter {
            background: rgba(212, 163, 115, 0.65);
            color: #fff;
        }
        .heatmap-bar .segment.hottest {
            background: var(--accent);
            color: #0a0c10;
        }
        .heatmap-bar .segment .emoji-tag {
            position: absolute;
            top: -20px;
            font-size: 0.7rem;
            opacity: 0;
            transition: var(--transition);
        }
        .heatmap-bar .segment:hover .emoji-tag {
            opacity: 1;
            top: -26px;
        }

        /* ============================================================
                   COMMUNITY HIGHLIGHTS
                   ============================================================ */
        .highlight-card {
            background: var(--surface2);
            border-radius: var(--radius-sm);
            padding: 20px 24px;
            border-left: 4px solid var(--gold);
        }
        .highlight-card .label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--gold);
            font-weight: 600;
        }

        /* ============================================================
                   TIMELINE
                   ============================================================ */
        .timeline {
            position: relative;
            padding-left: 30px;
            border-left: 2px solid var(--surface2);
        }
        .timeline-item {
            margin-bottom: 28px;
            position: relative;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -38px;
            top: 6px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: var(--surface2);
            border: 2px solid var(--surface);
            transition: var(--transition);
        }
        .timeline-item:hover::before {
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: 0 0 20px rgba(212, 163, 115, 0.3);
        }
        .timeline-item .year {
            font-size: 0.8rem;
            color: var(--accent);
            font-weight: 600;
        }
        .timeline-item .title {
            font-weight: 600;
            font-family: var(--font-serif);
            font-size: 1.1rem;
        }

        /* ============================================================
                   READING MAP (simulated with CSS pins)
                   ============================================================ */
        .map-container {
            background: var(--surface2);
            border-radius: var(--radius);
            padding: 30px;
            position: relative;
            min-height: 200px;
            background-image: radial-gradient(circle at 20% 40%, rgba(212, 163, 115, 0.03) 0%, transparent 60%);
            border: 1px solid rgba(255, 255, 255, 0.04);
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            align-items: center;
        }
        .map-pin {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.7rem;
            color: var(--text3);
            animation: float 3s ease-in-out infinite;
            transition: var(--transition);
            cursor: default;
        }
        .map-pin:hover {
            transform: scale(1.2);
            color: var(--accent);
        }
        .map-pin .pin-icon {
            font-size: 1.6rem;
        }
        .map-pin .count {
            font-size: 0.6rem;
            background: var(--surface);
            padding: 0 8px;
            border-radius: 10px;
            margin-top: 2px;
        }
        .map-pin:nth-child(2n) {
            animation-delay: 1s;
        }
        .map-pin:nth-child(3n) {
            animation-delay: 0.5s;
        }
        @keyframes float {
            0%,
            100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-6px);
            }
        }

        /* ============================================================
                   MILESTONE / CONFETTI (simulated)
                   ============================================================ */
        .milestone {
            background: var(--surface2);
            border-radius: var(--radius-sm);
            padding: 16px 24px;
            text-align: center;
            border: 1px solid rgba(212, 163, 115, 0.08);
            transition: var(--transition);
            cursor: default;
        }
        .milestone:hover {
            border-color: var(--accent);
            transform: scale(1.02);
        }
        .milestone .num {
            font-size: 1.8rem;
            font-family: var(--font-serif);
            color: var(--accent);
        }
        .milestone .desc {
            font-size: 0.8rem;
            color: var(--text2);
        }
        .milestone .confetti-emoji {
            font-size: 1.2rem;
            display: block;
            margin-top: 4px;
        }

        /* ============================================================
                   AI SEARCH
                   ============================================================ */
        .ai-search {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .ai-search input {
            flex: 1;
            padding: 14px 20px;
            border-radius: 60px;
            border: 1px solid var(--surface2);
            background: var(--bg);
            color: var(--text);
            font-size: 1rem;
            outline: none;
            transition: var(--transition);
            min-width: 200px;
        }
        .ai-search input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.08);
        }
        .ai-search .results {
            width: 100%;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            padding: 16px 20px;
            display: none;
            margin-top: 8px;
        }
        .ai-search .results.show {
            display: block;
        }
        .ai-search .results .result-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            cursor: pointer;
            transition: var(--transition);
        }
        .ai-search .results .result-item:hover {
            color: var(--accent);
            padding-left: 8px;
        }
        .ai-search .results .result-item:last-child {
            border: none;
        }

        /* ============================================================
                   READING CHALLENGES
                   ============================================================ */
        .challenge-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
        }
        .challenge-item {
            background: var(--surface2);
            padding: 16px;
            border-radius: var(--radius-sm);
            text-align: center;
            border: 1px solid transparent;
            transition: var(--transition);
            cursor: pointer;
        }
        .challenge-item:hover {
            border-color: var(--accent);
            transform: translateY(-4px);
        }
        .challenge-item .days {
            font-size: 2rem;
            font-family: var(--font-serif);
            color: var(--accent);
        }

        /* ============================================================
                   SHARE IMAGE GENERATOR (simulated)
                   ============================================================ */
        .share-card-preview {
            background: var(--surface2);
            border-radius: var(--radius-sm);
            padding: 24px;
            max-width: 360px;
            border: 1px solid rgba(212, 163, 115, 0.1);
            text-align: center;
        }
        .share-card-preview .stars {
            color: var(--gold);
            font-size: 1.4rem;
            letter-spacing: 4px;
        }

        /* ============================================================
                   RESPONSIVE
                   ============================================================ */
        @media (max-width: 900px) {
            .hero {
                grid-template-columns: 1fr;
                gap: 30px;
                text-align: center;
            }
            .hero-meta {
                justify-content: center;
            }
            .btn-group {
                justify-content: center;
            }
            .grid-2 {
                grid-template-columns: 1fr;
            }
            .library-header {
                flex-direction: column;
                text-align: center;
            }
            .journey-bar {
                flex-direction: column;
                align-items: stretch;
            }
            .journey-progress-line {
                height: 4px;
                min-width: 100%;
            }
        }
        @media (max-width: 480px) {
            body {
                padding: 0 12px;
            }
            .card {
                padding: 20px;
            }
            .stats-strip {
                grid-template-columns: repeat(2, 1fr);
                padding: 16px;
            }
        }

        /* ============================================================
                   ANIMATIONS
                   ============================================================ */
        @keyframes fadeUp {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .fade-up {
            animation: fadeUp 0.6s ease forwards;
        }
        .delay-1 {
            animation-delay: 0.1s;
        }
        .delay-2 {
            animation-delay: 0.2s;
        }
        .delay-3 {
            animation-delay: 0.3s;
        }

        /* ============================================================
                   THEME TOGGLE
                   ============================================================ */
        .theme-toggle {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: var(--surface);
            border: 1px solid var(--surface2);
            color: var(--text);
            padding: 14px 18px;
            border-radius: 60px;
            cursor: pointer;
            z-index: 999;
            font-size: 1.2rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        .theme-toggle:hover {
            border-color: var(--accent);
        }
        body.light {
            --bg: #f5f2ed;
            --surface: #ffffff;
            --surface2: #eae5de;
            --surface3: #ddd6cc;
            --text: #1a1612;
            --text2: #5a534a;
            --text3: #8a8278;
            --shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
        }
        body.light .synopsis-text::after {
            background: linear-gradient(transparent, #ffffff);
        }
        body.light .book-3d .cover-front {
            background: linear-gradient(145deg, #e8ddd0, #c4b5a2);
        }
        body.light .book-3d .cover-front .title {
            color: #2a1f16;
        }
        body.light .book-3d .cover-front .author {
            color: #5a4a3a;
        }
        body.light .book-3d .pages-edge {
            background: linear-gradient(to right, #c4b5a2, #b0a090);
        }
        body.light .map-container {
            background: var(--surface);
        }
