:root {
    --bg-canvas: #fafaf9;
    --surface-card: #ffffff;
    --surface-elevated: #f3f4f6;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-main: #b45309;
    --accent-light: #d97706;
    --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #92400e 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--bg-canvas);
    background-image: radial-gradient(rgba(180, 83, 9, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* --- EDITORIAL TYPOGRAPHY --- */
.headline-font {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.addon-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-main);
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    background-color: rgba(180, 83, 9, 0.05);
}

.core-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    background-color: rgba(241, 245, 249, 0.9);
}

.client-provision-note {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    background-color: rgba(180, 83, 9, 0.08);
    border-left: 3px solid var(--accent-main);
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 8rem 0 6rem 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.9) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.hero-row {
    align-items: center !important;
}

.hero-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* --- Book Cover & Float Animation --- */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.book-cover-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.book-cover-img {
    width: auto;
    max-width: 240px;
    max-height: 380px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
    display: block;
    will-change: transform;
    animation: floatAnimation 4s ease-in-out infinite;
}

/* --- Mobile Stacked & Side-by-Side Adjustments --- */
@media (max-width: 991.98px) {
    /* Hero Mobile Stacked Layout */
    .hero-row {
        flex-wrap: wrap !important;
    }

    .hero-text-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    .hero-image-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .book-cover-img {
        max-width: 180px !important;
        max-height: 280px !important;
    }

    .hero-section h1 {
        font-size: 2.25rem !important;
    }

    .hero-section h2 {
        font-size: 1rem !important;
    }

    .hero-section p {
        font-size: 0.95rem !important;
    }

    .retailer-btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.85rem !important;
        gap: 8px !important;
    }

    /* Author Profile Mobile Side-by-Side (Image/Socials Left, Text Right) */
    .author-row {
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }

    .author-image-col {
        flex: 0 0 40% !important;
        width: 40% !important;
    }

    .author-text-col {
        flex: 0 0 60% !important;
        width: 60% !important;
        text-align: left !important;
    }

    .bracket-frame-wrapper {
        width: 100% !important;
        max-width: 125px !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

    .bracket {
        width: 16px !important;
        height: 16px !important;
    }

    .bracket.tl {
        top: -5px !important;
        left: -5px !important;
    }

    .bracket.tr {
        top: -5px !important;
        right: -5px !important;
    }

    .bracket.bl {
        bottom: -5px !important;
        left: -5px !important;
    }

    .bracket.br {
        bottom: -5px !important;
        right: -5px !important;
    }

    .author-social {
        font-size: 1.15rem !important;
        margin: 0 7px !important;
    }

    .author-text-col h3 {
        font-size: 1.35rem !important;
    }

    .author-text-col h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    .author-text-col p {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
    }
}

/* --- Scroll Indicator & Arrows --- */
.scroll-indicator-absolute {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-indicator-absolute:hover,
.section-scroll-link:hover {
    opacity: 1;
}

.section-scroll-link {
    text-decoration: none;
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    color: var(--accent-main);
    font-size: 2rem;
    display: block;
}

/* --- Retailer Buttons --- */
.retailer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1e293b;
    color: #ffffff;
    border: 2px solid #1e293b;
    border-radius: 50rem;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.retailer-btn:hover {
    background-color: var(--accent-main);
    color: #ffffff;
    border-color: var(--accent-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.2);
}

/* --- Content & Synopsis --- */
.content-section {
    padding: 5rem 0;
    background-color: rgba(250, 250, 249, 0.95);
}

.dropcap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    color: var(--accent-main);
    font-weight: 700;
}

/* --- Author Profile Card & Bio Frame Hover Animation --- */
.author-section {
    background-color: rgba(241, 245, 249, 0.95);
    padding: 5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.bracket-frame-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    cursor: pointer;
}

.editorial-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.bracket-frame-wrapper:hover .editorial-author-img {
    transform: scale(1.02);
}

.bracket {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: var(--accent-main);
    border-style: solid;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bracket.tl {
    top: -8px;
    left: -8px;
    border-width: 3px 0 0 3px;
}

.bracket.tr {
    top: -8px;
    right: -8px;
    border-width: 3px 3px 0 0;
}

.bracket.bl {
    bottom: -8px;
    left: -8px;
    border-width: 0 0 3px 3px;
}

.bracket.br {
    bottom: -8px;
    right: -8px;
    border-width: 0 3px 3px 0;
}

/* Bracket Corner Expansion on Hover */
.bracket-frame-wrapper:hover .bracket.tl {
    top: -14px;
    left: -14px;
    border-color: var(--accent-light);
}

.bracket-frame-wrapper:hover .bracket.tr {
    top: -14px;
    right: -14px;
    border-color: var(--accent-light);
}

.bracket-frame-wrapper:hover .bracket.bl {
    bottom: -14px;
    left: -14px;
    border-color: var(--accent-light);
}

.bracket-frame-wrapper:hover .bracket.br {
    bottom: -14px;
    right: -14px;
    border-color: var(--accent-light);
}

.author-social {
    color: var(--accent-main);
    font-size: 1.4rem;
    margin: 0 12px;
    transition: color 0.2s ease;
}

.author-social:hover {
    color: #1e293b;
}

/* --- Add-on Block Utility Styles --- */
.addon-section {
    padding: 5rem 0;
    border-bottom: 1px solid #e2e8f0;
    background-color: rgba(250, 250, 249, 0.95);
}

.backlist-cover {
    aspect-ratio: 6 / 9;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.backlist-cover:hover {
    transform: translateY(-4px);
}

/* --- Lead Router Input Styling --- */
.lead-router-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.lead-router-input:focus {
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(180, 83, 9, 0.15);
}

.lead-router-input option {
    background: #ffffff;
    color: var(--text-main);
}

.lead-router-input::placeholder {
    color: var(--text-muted);
}

/* --- EPK Press Kit Light Cards --- */
.epk-box {
    background: var(--surface-card);
    border: 1px solid #e2e8f0;
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.epk-headshot-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    display: block;
}

.audio-player-sim {
    background: #1e293b;
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #334155;
}

/* --- Toast Notification System --- */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #1e293b;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    pointer-events: none;
}

#toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}