:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --accent-color: #d4d4d8;
    --link-color: #fff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-unit: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Sections General */
section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 400px;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-height: 60vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: #444;
    margin-top: 0.5rem;
}

/* Intro */
.intro {
    text-align: center;
    background: #111;
}

.lead-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    font-style: italic;
}

/* Scrollytelling */
.scrollytelling {
    padding: 0;
}

.scrolly-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: center;
}

.scrolly-section .text-block {
    padding: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.scrolly-section .image-block {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.scrolly-section .image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.scrolly-section.visible .text-block {
    opacity: 1;
    transform: translateY(0);
}

.scrolly-section.visible .image-block img {
    opacity: 0.8;
    transform: scale(1);
}

.scrolly-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.scrolly-section p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 500px;
}

/* Alternating Layout */
.scrolly-section.right .text-block {
    order: 2;
}

.scrolly-section.right .image-block {
    order: 1;
}

/* About Author */
.about-author {
    background: #0a0a0a;
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.author-bio h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.author-bio p {
    margin-bottom: 1.5rem;
    color: #bbb;
}

.author-image img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.author-image img:hover {
    filter: grayscale(0%);
}

/* Final CTA */
.final-cta {
    text-align: center;
    background: #111;
    border-top: 1px solid #222;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.book-details {
    color: #888;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px solid #111;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .subtitle {
        margin: 0 auto;
    }

    .scrolly-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .scrolly-section .image-block {
        height: 50vh;
        order: 1 !important;
        /* Force image first on mobile */
    }

    .scrolly-section .text-block {
        order: 2 !important;
        padding: 6rem 1.5rem 3rem;
        /* Increased top padding */
    }

    .author-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials */
.testimonials {
    background: #0f0f0f;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #2a2a2a;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-weight: 600;
    color: #888;
}

/* Audiobook Signup */
.audiobook-signup {
    background: #0d0d0d;
    border-top: 1px solid #222;
    text-align: center;
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
}

.audiobook-signup h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.audiobook-signup p {
    color: #aaa;
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    border-radius: 2px;
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: #666;
}