* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Lock body to screen height and hide main browser scrollbars */
body, html {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Stops the main browser window from scrolling */
    background: linear-gradient(180deg, #131313 0%, #0d0d0d 40%, #050505 100%);
    color: #e5e5e5;
    font-family: 'Crimson Pro', serif;
}

/* 1:2 PANEL DIVISION - Fit exactly within viewport */
.landing-canvas {
    width: 100vw;
    height: 100vh; /* Changed from min-height to fixed height */
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 2rem 4rem; /* Slightly reduced top/bottom padding so it doesn't crowd */
    gap: 4rem;
    box-sizing: border-box;
}

/* LEFT PANEL: Static Brand Anchor */
.brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 70vh;
    text-align: center;
    border-right: 1px solid #222222;
    padding-right: 3rem;
}

/* Merged Logo Sizing Rules (Handles both .brand-logo and .imprint-logo) */
.imprint-logo, .brand-logo {
    width: 20vw;
    max-width: 260px;
    min-width: 140px;
    height: auto;
    margin-bottom: 1.5rem;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.4;
    text-align: center;
    max-width: 320px;
}

.brand-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-nav a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.brand-nav a:hover, .brand-nav a.active {
    color: #ffffff;
}

/* RIGHT PANEL: Dynamic Content Zone */
.content-panel {
    width: 100%;
    max-width: 100%; /* Allows it to expand to fill the full grid column */
}

/* Views are hidden by default */
.view-section {
    display: none;
}

/* Base active state */
.view-section.active {
    display: flex;
}

/* Home view layout: horizontal cover + text block */
#view-home.active {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
}

/* Merged Fluid Cover Wrapper */
.cover-wrapper {
    width: 25vw;
    max-width: 380px;
    min-width: 200px;
    flex: 0 0 auto;
}

.master-cover {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    display: block;
}

.book-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 420px;
}

.book-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hook-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Call to Action Button */
.explore-btn, .action-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #ffffff;
    color: #0d0d0d;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #ffffff;
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.explore-btn:hover, .action-button:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* About & FAQ views layout: vertical stack */
.text-view.active {
    flex-direction: column;
    max-width: 650px;
    line-height: 1.7;
}

.text-view h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.text-view p {
    font-size: 1.15rem;
    color: #cccccc;
    margin-bottom: 1.2rem;
}

/* Spectrum 5-Volume Stack view: Vertical stack */
.spectrum-view.active,
.spectrum-view {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

/* SCROLLABLE CONTAINER FOR RIGHT PANEL (The Spectrum Page) */
/* Ensure the panel takes available vertical room without blowing out */
#right-panel {
    max-height: calc(100vh - 4rem); /* Constrains height to remaining space */
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Dark mode scrollbar */
#right-panel::-webkit-scrollbar {
    width: 6px;
}
#right-panel::-webkit-scrollbar-thumb {
    background-color: #222;
    border-radius: 3px;
}

.spectrum-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1.5rem;
}

.series-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.series-subtitle {
    font-style: italic;
    color: #888;
    font-size: 0.95rem;
}

/* Volume Card Layout */
.volume-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #141414;
}

/* Constrain the cover container */
.volume-cover {
    flex-shrink: 0;
    width: 180px;
}

/* Force high-res images to fluidly fit container */
.volume-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.volume-details {
    flex: 1;
    max-width: 800px; /* Optional: Keeps synopses from stretching into a single unreadable line across ultra-wide monitors */
}

.volume-number {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #666;
}

.volume-title {
    font-size: 1.5rem;
    margin: 0.2rem 0 1rem 0;
}

.volume-synopsis {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.buy-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
}

.buy-btn:hover {
    background: #ffffff;
    color: #0d0d0d;
    border-color: #ffffff;
}

/* Custom sleek scrollbar for #right-panel */
#right-panel::-webkit-scrollbar {
    width: 6px; /* Makes the bar much thinner */
}

#right-panel::-webkit-scrollbar-track {
    background: transparent; /* Blends the track directly into the background gradient */
}

#right-panel::-webkit-scrollbar-thumb {
    background-color: #2a2a2a; /* Subtle graphite thumb instead of bright white */
    border-radius: 3px;
}

#right-panel::-webkit-scrollbar-thumb:hover {
    background-color: #444444; /* Slight brighten on hover for tactile feedback */
}

/* Firefox standard support */
#right-panel {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}

/* Paragraph rhythm inside synopses */
.volume-synopsis p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #ccc;
    font-size: 0.95rem;
}

/* Standout Epigraph styling */
.volume-synopsis .synopsis-epigraph {
    font-style: italic;
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

/* Subtle closing summary weight */
.volume-synopsis .synopsis-closing {
    color: #aaaaaa;
    margin-top: 1.25rem;
}