@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

:root {
    --gold: #c8a951;
    --gold-light: #e8d48b;
    --gold-dark: #96792e;
    --ember: #d4462a;
    --ember-glow: #f47a20;
    --dark: #0a0a0a;
    --dark-green: #0d1a0d;
    --forest: #1a2e1a;
    --forest-mid: #2a3f25;
    --parchment: #e8dcc8;
    --parchment-dark: #c4b69c;
    --text-light: #ebe4d6;
    --text-dim: #b0a795;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, box-shadow 0.4s;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(6px);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 169, 81, 0.1);
}

.nav-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(200, 169, 81, 0.2);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212, 70, 42, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 46, 26, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(200, 169, 81, 0.03) 0%, transparent 70%),
        linear-gradient(180deg, var(--dark) 0%, var(--dark-green) 40%, var(--dark) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-up 8s infinite;
}

@keyframes float-up {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-tagline {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s 0.6s forwards;
}

.hero-title .line1 {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    color: var(--parchment);
    text-shadow: 0 0 60px rgba(200, 169, 81, 0.15);
}

.hero-title .line2 {
    display: block;
    font-size: clamp(3rem, 9vw, 7rem);
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-glow) 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(212, 70, 42, 0.3));
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text-dim);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s 1.2s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s 1.8s forwards;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-dark), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--dark);
    box-shadow: 0 4px 30px rgba(200, 169, 81, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(200, 169, 81, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

.btn-outline:hover {
    background: rgba(200, 169, 81, 0.08);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-ember {
    background: linear-gradient(135deg, var(--ember), var(--ember-glow));
    color: #fff;
    box-shadow: 0 4px 30px rgba(212, 70, 42, 0.25);
}

.btn-ember:hover {
    box-shadow: 0 8px 40px rgba(212, 70, 42, 0.45);
    transform: translateY(-2px);
}

/* ── Sections ── */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--parchment);
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 1.5rem auto;
}

/* ── Praise / Quotes ── */
.praise-section {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(13, 26, 13, 0.3) 50%, var(--dark) 100%);
}

.praise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.praise-card {
    background: rgba(26, 46, 26, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.08);
    padding: 2.5rem;
    text-align: center;
    transition: border-color 0.4s, transform 0.4s;
}

.praise-card:hover {
    border-color: rgba(200, 169, 81, 0.2);
    transform: translateY(-4px);
}

.praise-stars {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

.praise-text {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.praise-author {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

/* ── Synopsis ── */
.synopsis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.synopsis-text p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.synopsis-text p:first-child::first-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: var(--gold);
}

.synopsis-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-frame {
    position: relative;
    width: 280px;
    height: 420px;
    background: linear-gradient(145deg, #1a1008, #2a1a0a, #1a1008);
    border: 2px solid var(--gold-dark);
    box-shadow:
        0 0 60px rgba(200, 169, 81, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        8px 8px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.book-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(200, 169, 81, 0.15);
}

.book-frame::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -8px;
    width: 8px;
    height: 100%;
    background: linear-gradient(to right, #1a1008, #0d0804);
    border-right: 1px solid rgba(200, 169, 81, 0.1);
}

.book-ornament {
    font-size: 1.5rem;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
}

.book-frame-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(200, 169, 81, 0.2);
}

.book-frame-author {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.book-spine {
    position: absolute;
    bottom: -1px;
    right: -8px;
    width: 8px;
    height: 20px;
    background: linear-gradient(to right, #0d0804, #060302);
}

/* ── Features / Themes ── */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.theme-card {
    padding: 2.5rem 2rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(200, 169, 81, 0.06);
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card:hover {
    border-color: rgba(200, 169, 81, 0.15);
    transform: translateY(-4px);
}

.theme-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.theme-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.theme-desc {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ── Excerpt Teaser ── */
.excerpt-teaser {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 70, 42, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--dark) 0%, rgba(13, 26, 13, 0.2) 50%, var(--dark) 100%);
}

.excerpt-block {
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 3rem;
    background: rgba(26, 46, 26, 0.08);
    border-left: 2px solid var(--gold-dark);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 2;
    color: var(--text-light);
}

.excerpt-block p {
    margin-bottom: 1rem;
}

.excerpt-block p:last-child {
    margin-bottom: 0;
}

.excerpt-actions {
    text-align: center;
}

/* ── Newsletter ── */
.newsletter-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--dark) 0%, rgba(26, 46, 26, 0.15) 50%, var(--dark) 100%);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    background: rgba(26, 46, 26, 0.2);
    border: 1px solid rgba(200, 169, 81, 0.15);
    color: var(--text-light);
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--gold);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-dim);
}

/* ── Footer ── */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(200, 169, 81, 0.06);
}

.footer-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(200, 169, 81, 0.2);
    border-radius: 50%;
    color: var(--gold-dark);
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(200, 169, 81, 0.08);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* ── Excerpt Page ── */
.excerpt-page {
    min-height: 100vh;
    padding-top: 5rem;
}

.excerpt-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.excerpt-header .section-title {
    margin-bottom: 0.5rem;
}

.excerpt-chapter-info {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.excerpt-reader {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.excerpt-reader-content {
    background: rgba(26, 46, 26, 0.05);
    border: 1px solid rgba(200, 169, 81, 0.06);
    padding: 3rem 3rem;
}

.excerpt-reader-content h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    margin-bottom: 0.5rem;
}

.excerpt-reader-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
}

.excerpt-reader-content .chapter-divider {
    text-align: center;
    color: var(--gold-dark);
    margin: 2rem 0;
    letter-spacing: 0.5em;
    font-size: 0.8rem;
}

.excerpt-reader-content p {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    text-align: justify;
    hyphens: auto;
}

.excerpt-reader-content p:first-of-type::first-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    color: var(--gold);
}

.excerpt-end {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.excerpt-end p {
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ── Fade-in Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .synopsis-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .synopsis-visual {
        order: -1;
    }

    .book-frame {
        width: 220px;
        height: 330px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(200, 169, 81, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .praise-grid {
        grid-template-columns: 1fr;
    }

    .excerpt-block {
        padding: 2rem;
    }

    .excerpt-reader-content {
        padding: 2rem 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        letter-spacing: 0.2em;
        font-size: 0.8rem;
    }

    .section-label {
        letter-spacing: 0.25em;
    }

    .btn {
        padding: 0.85rem 2rem;
        font-size: 0.8rem;
    }

    .book-frame {
        width: 180px;
        height: 270px;
        padding: 1.5rem;
    }

    .book-frame-title {
        font-size: 1.1rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }
}
