/* ================================================================= major design variables ================================================================= */
:root {
    --bg-charcoal: #121214;
    --bg-black-deep: #08080a;
    --bg-charcoal-light: #1a1a1e;
    --text-ivory: #f4f4f0;
    --text-ivory-muted: #b0b0a8;
    --accent-bronze: #c5a880;
    --accent-bronze-hover: #d4bc98;
    --border-bronze: rgba(197, 168, 128, 0.25);
    
    --font-serif: 'Cinzel', 'Playfair Display', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
}

/* ================================================================= global styles ================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black-deep);
    color: var(--text-ivory);
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative;
}

/* Subtle Film Grain Texture Effect */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='[http://www.w3.org/2000/svg'%3E%3Cfilter](http://www.w3.org/2000/svg'%3E%3Cfilter) id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.serif-heading {
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.25em !important;
}

.tracking-wider {
    letter-spacing: 0.15em !important;
}

.bg-charcoal {
    background-color: var(--bg-charcoal);
}

.bg-black-deep {
    background-color: var(--bg-black-deep);
}

.bg-charcoal-light {
    background-color: var(--bg-charcoal-light);
}

.text-ivory {
    color: var(--text-ivory) !important;
}

.text-ivory-muted {
    color: var(--text-ivory-muted) !important;
}

.text-bronze {
    color: var(--accent-bronze) !important;
}

.border-bronze-subtle {
    border: 1px solid var(--border-bronze) !important;
}

.py-nav-space {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

/* ================================================================= buttons & forms ================================================================= */
.btn-bronze {
    background-color: var(--accent-bronze);
    color: var(--bg-black-deep);
    border: 1px solid var(--accent-bronze);
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    font-weight: 600;
}

.btn-bronze:hover {
    background-color: var(--accent-bronze-hover);
    border-color: var(--accent-bronze-hover);
    color: var(--bg-black-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.15);
}

.btn-outline-ivory {
    background-color: transparent;
    color: var(--text-ivory);
    border: 1px solid var(--text-ivory);
    transition: all 0.3s ease;
}

.btn-outline-ivory:hover {
    background-color: var(--text-ivory);
    color: var(--bg-black-deep);
    transform: translateY(-2px);
}

.btn-outline-bronze {
    background-color: transparent;
    color: var(--accent-bronze);
    border: 1px solid var(--accent-bronze);
    transition: all 0.3s ease;
}

.btn-outline-bronze:hover {
    background-color: var(--accent-bronze);
    color: var(--bg-black-deep);
}

.form-control:focus {
    background-color: var(--bg-charcoal-light);
    color: var(--text-ivory);
    border-color: var(--accent-bronze);
    box-shadow: 0 0 0 0.25rem rgba(197, 168, 128, 0.15);
}

/* ================================================================= navigation ================================================================= */
.cinematic-nav {
    background-color: rgba(8, 8, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
    transition: all 0.4s ease;
}

.cinematic-nav.scrolled {
    background-color: rgba(8, 8, 10, 0.95);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cinematic-nav .nav-link {
    color: var(--text-ivory-muted) !important;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.cinematic-nav .nav-link:hover,
.cinematic-nav .nav-link.active {
    color: var(--accent-bronze) !important;
}

.navbar-brand {
    color: var(--text-ivory) !important;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

/* ================================================================= hero section ================================================================= */
.hero-section {
    background: linear-gradient(to bottom, rgba(8, 8, 10, 0.5), rgba(8, 8, 10, 0.95)),
                url('[https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&q=80&w=1920](https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&q=80&w=1920)') no-repeat center center;
    background-size: cover;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(8, 8, 10, 0.8) 100%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: 0.08em;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.hero-author {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

/* ================================================================= novel & cover ================================================================= */
.book-cover-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.cover-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent-bronze), transparent);
    opacity: 0.15;
    filter: blur(25px);
    z-index: -1;
    border-radius: 1rem;
}

.book-cover {
    width: 100%;
    height: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s ease;
}

.book-cover:hover {
    transform: translateY(-8px);
}

/* ================================================================= cards & components ================================================================= */
.world-card, .review-card, .news-item {
    background-color: var(--bg-charcoal);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.world-card:hover, .review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.5) !important;
}

.grayscale {
    filter: grayscale(100%) contrast(110%);
    transition: filter 0.5s ease;
}

.grayscale:hover {
    filter: grayscale(0%) contrast(100%);
}

.author-img-wrapper {
    max-width: 380px;
}

.excerpt-box {
    background-color: var(--bg-charcoal);
    border-left: 3px solid var(--accent-bronze);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
}

.drop-cap::first-letter {
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.75rem;
    color: var(--accent-bronze);
    font-family: var(--font-serif);
}

/* ================================================================= animations ================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.animate-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

/* ================================================================= responsive tweaks ================================================================= */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-black-deep);
        padding: 1.5rem;
        border-radius: 0.5rem;
        border: 1px solid var(--border-bronze);
        margin-top: 1rem;
    }
}