/* Reset & Variables */
:root {
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --nav-text-color: #4a4a4a;
    --border-color: #e0e0e0;
    --font-heading: 'Georgia', 'Times New Roman', Times, serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --max-width: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Regular weight for literary feel */
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
    padding-top: var(--spacing-lg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(5px);
    padding: var(--spacing-sm) 0;
    z-index: 100;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    /* Override container max-width for full width nav */
    max-width: 100%;
    padding: 0 var(--spacing-lg);
    /* Align with content padding */
}

.brand {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.4rem;
    /* Bigger title */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--nav-text-color);
}

.nav-links a.active {
    color: var(--text-color);
}

/* Split Layout */
main.split-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 66% - 33% split */
    height: calc(100vh - 80px);
    /* exact viewport height minus nav */
    overflow: hidden;
    /* Prevent main scroll if possible */
}

/* Left Panel */
.left-panel {
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.hero-content {
    max-width: 80%;
    /* Allow it to take up more space */
    padding-right: var(--spacing-md);
}

.hero-content h1 {
    font-size: 4.5rem;
    /* Dominate the page */
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

/* Right Panel */
.right-panel {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    /* Reduced padding to help fit content */
    height: 100%;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 300px;
    max-width: 90%;
    max-height: 100%;
    /* Ensure it fits */
}

/* Book Cover */
.book-cover {
    width: 100%;
    height: auto;
    max-height: 45vh;
    /* Cap height to ensure buttons fit on screen */
    object-fit: contain;
    /* Don't distort */
    display: block;
    margin-bottom: var(--spacing-sm);
    border-radius: 0;
    mix-blend-mode: multiply;
    /* Remove white bg from jpg */
}

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    /* Tighter gap to save space */
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    /* Slightly reduced padding */
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: 1px solid #1a1a1a;
    transition: all 0.2s ease;
}

/* Specific Shadow Button Style */
.shadow-btn {
    background-color: #ffffff;
    color: var(--text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.shadow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 1023px) {
    main.split-layout {
        grid-template-columns: 1fr;
        height: auto;
        /* Let it scroll on mobile */
        overflow: auto;
    }

    .left-panel,
    .right-panel {
        padding: var(--spacing-md);
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Reset for mobile */
    }

    .right-panel {
        padding: var(--spacing-lg) 0;
    }

    .sidebar-content {
        width: 100%;
        max-width: 100%;
        /* Use full available width, but elements inside will control size */
        align-items: center;
        /* Center everything */
    }

    .book-cover {
        height: 30vh;
        width: auto;
        max-width: 100%;
        margin: 0 auto var(--spacing-md) auto;
    }

    .action-buttons {
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-sm);
        max-width: 400px;
        width: 100%;
        margin: 0 auto var(--spacing-md) auto;
        padding: 0 var(--spacing-sm);
    }

    .btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}