/* Modern Horror Author Website Styles */

:root {
    /* "Blood & Bone" palette — dramatic near-black + bone, blood-red accent.
       Inspired by Crystal Lake / Stephen King / dark-elegant author sites.
       Warmer maroon-charcoal alternating sections keep the wavy dividers visible.
       All text/background pairs clear WCAG 4.5:1. */
    --primary-color: #e24a42;   /* blood-crimson — links, accents, eyebrows */
    --primary-dark: #b62b25;    /* deeper crimson — hovers */
    --secondary-color: #c2a14d; /* muted gold — reserved for "coming soon" status */
    --accent-color: #5a1616;    /* deep oxblood — quiet tertiary */

    --oxblood: #8a1f1f;         /* button base */
    --oxblood-light: #c0392f;   /* brighter crimson — button gradient + CTA pop */

    --bg-primary: #0e0d0f;      /* near-black, dramatic — not pure #000 */
    --bg-secondary: #1c1013;    /* dark maroon-charcoal — alternating sections */
    --bg-tertiary: #271a1d;     /* warm charcoal — cards */

    --text-primary: #ece7e0;    /* bone-white — prevents halation */
    --text-secondary: #b9b2a9;
    --text-muted: #8a8279;

    --border-color: #33272a;
    --border-light: #4a3a3e;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 5rem 0;
    --element-spacing: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Borders */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

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

/* Never let media force horizontal scrolling on mobile */
img, svg, video, iframe, table {
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Visible keyboard focus for accessibility (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 13, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(14, 13, 15, 0.98);
    border-bottom-color: var(--primary-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(122, 31, 31, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    /* min-height (not a fixed height) + top padding that clears the fixed
       banner+navbar. The old `height:100vh` centred the content ignoring the
       ~138px fixed header, so on shorter laptops the top of the title was
       hidden behind the nav and clipped by overflow:hidden. */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--ann-h) + 88px) 1.5rem 3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--bg-primary) 0%, 
        var(--bg-secondary) 50%, 
        var(--bg-primary) 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(122, 31, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47, 74, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(14, 13, 15, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-subtitle {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cover-forward hero (latest release featured beside the copy) */
.hero-content--featured {
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.hero-content--featured .hero-text {
    text-align: left;
}

.hero-content--featured .hero-description {
    margin-left: 0;
    margin-right: 0;
}

.hero-content--featured .hero-buttons {
    justify-content: flex-start;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.hero-featured-cover img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s ease;
}

.hero-featured-cover img:hover {
    transform: translateY(-6px);
}

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

    .hero-content--featured .hero-text,
    .hero-content--featured .hero-buttons {
        text-align: center;
        justify-content: center;
    }

    .hero-content--featured .hero-featured-cover {
        order: -1;
    }

    .hero-featured-cover img {
        max-width: 220px;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--text-muted);
    margin: 0.5rem auto;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--text-muted);
    border-right: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--oxblood-light), var(--oxblood));
    color: #f7f4ec;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #f7f4ec;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--oxblood);
    border-color: var(--oxblood);
    color: #f7f4ec;
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Button Loading State */
.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    opacity: 1;
}

.btn-loading {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Books Section */
.books-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.book-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid transparent;
}

.book-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.book-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(122, 31, 31, 0.2);
}

.book-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
    opacity: 1;
}

.book-link {
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.book-link:hover {
    background: white;
    color: var(--bg-primary);
}

.book-content {
    padding: 1.5rem;
}

.book-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.book-genre {
    background: rgba(122, 31, 31, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-status.available {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-status.coming-soon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.book-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.book-title a:hover {
    color: var(--primary-color);
}

.book-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.book-actions {
    margin-top: auto;
}

/* Coming Soon Book Styles */
.book-card.coming-soon {
    border: 2px dashed var(--border-light);
}

.coming-soon-image {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
    color: var(--text-muted);
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.coming-soon-content h4 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(122, 31, 31, 0.05) 0%,
        transparent 50%,
        rgba(47, 74, 58, 0.05) 100%
    );
    pointer-events: none;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.newsletter-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.newsletter-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.newsletter-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(122, 31, 31, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.newsletter-form-container {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(122, 31, 31, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: none;
    font-weight: 500;
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-style: italic;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(14, 13, 15, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        /* Auto height + top padding clears the fixed banner+navbar so the
           cover isn't cut off, and prevents the content from overflowing a
           fixed 80vh (which made "Scroll to explore" overlap the text). */
        height: auto;
        min-height: auto;
        padding: calc(var(--ann-h) + 88px) 1rem 3rem;
    }

    .hero-scroll { display: none; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-image {
        height: 250px;
    }
    
    .newsletter-form-container {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .book-content {
        padding: 1rem;
    }
    
    .newsletter-form-container {
        padding: 1rem;
    }
    
    .benefit {
        font-size: 0.9rem;
    }
    
    .benefit-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

/* Additional styles for book and about pages */

/* Page Hero Section */
.page-hero {
    padding: 9.5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(122, 31, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47, 74, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.page-header {
    text-align: center;
    /* Page titles must always be visible. They previously started at
       opacity:0 and depended on a scroll observer to reveal them, but not
       every page observed .page-header — leaving an empty gap where the
       title should be. Keep them visible by default. */
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Book Hero Section */
.book-hero {
    padding: 9.5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.book-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(122, 31, 31, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(47, 74, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.book-hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.book-hero-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-book-cover {
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.book-hero-info h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.book-author {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.book-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Book Details Section */
.book-details {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.book-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.book-synopsis-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.book-synopsis-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.book-synopsis-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.lead-paragraph {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.book-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Cards */
.purchase-card,
.book-info-card,
.similar-books-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.purchase-card h3,
.book-info-card h3,
.similar-books-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.format {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.similar-book {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.similar-book:last-child {
    margin-bottom: 0;
}

.similar-book a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.similar-book a:hover {
    text-decoration: underline;
}

.similar-book span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.similar-book.upcoming span:first-child {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.features-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(122, 31, 31, 0.2);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Content Warning */
.content-warning {
    margin-bottom: 4rem;
}

.warning-card {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.warning-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.warning-card p {
    color: var(--text-secondary);
    font-style: italic;
}

/* About Page Specific Styles */
.about-main {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.author-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.author-intro.animate {
    opacity: 1;
    transform: translateY(0);
}

.author-photo {
    width: 200px;
    height: 250px;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

.photo-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.photo-placeholder h3 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.author-intro-text h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.intro-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Bio Content */
.bio-content {
    margin-bottom: 4rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.bio-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.bio-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.bio-section h3,
.bio-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-member {
    margin-bottom: 2rem;
}

.team-member:last-child {
    margin-bottom: 0;
}

.dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.dog-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.dog-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: block;
}

.dog-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.fun-fact {
    background: rgba(47, 74, 58, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.fun-fact h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Works Section */
.works-section {
    margin-bottom: 4rem;
}

.works-section h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.works-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.work-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(122, 31, 31, 0.2);
}

.work-card.upcoming {
    border-color: var(--secondary-color);
}

.work-card.upcoming:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
}

.work-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.work-card h3 {
    margin-bottom: 1rem;
}

.work-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.work-card h3 a:hover {
    color: var(--primary-color);
}

.work-genre {
    background: rgba(122, 31, 31, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.work-genre.coming-soon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--secondary-color);
}

/* Philosophy Section */
.philosophy-section {
    margin-bottom: 4rem;
}

.quote-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.quote-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.quote-card blockquote {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.quote-card blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.quote-card cite {
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* Newsletter CTA for pages */
.about-newsletter-cta,
.book-newsletter-cta {
    text-align: center;
}

.newsletter-cta-section {
    background: rgba(122, 31, 31, 0.1);
    border: 1px solid rgba(122, 31, 31, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

/* Additional responsive styles */
@media (max-width: 1024px) {
    .book-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .book-details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .author-intro {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-hero,
    .book-hero {
        padding: 7rem 0 3rem;
    }
    
    .hero-book-cover {
        max-width: 250px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dog-grid {
        grid-template-columns: 1fr;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-card {
        padding: 2rem;
    }
    
    .quote-card blockquote p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .book-info-sidebar {
        gap: 1.5rem;
    }
    
    .purchase-card,
    .book-info-card,
    .similar-books-card {
        padding: 1rem;
    }
    
    .hero-book-cover {
        max-width: 200px;
    }
    
    .author-photo {
        width: 150px;
        height: 200px;
    }
}

/* Animation delays for staggered effects */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }

.work-card:nth-child(1) { transition-delay: 0.1s; }
.work-card:nth-child(2) { transition-delay: 0.2s; }
.work-card:nth-child(3) { transition-delay: 0.3s; }

.dog-card:nth-child(1) { transition-delay: 0.1s; }
.dog-card:nth-child(2) { transition-delay: 0.2s; }
.dog-card:nth-child(3) { transition-delay: 0.3s; }

/* GDPR Checkbox Styles - Add to your styles.css */
.gdpr-checkboxes {
    margin: 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.9rem;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    color: var(--text-secondary);
    flex: 1;
}

.checkbox-text em {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
    margin-top: 1rem;
    line-height: 1.5;
}

.newsletter-privacy p {
    margin-bottom: 0.75rem;
}

.newsletter-privacy a {
    color: var(--primary-color);
    text-decoration: none;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* ===== Blog / Field Notes ===== */
.blog-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

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

.post-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.post-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.post-pillar {
    display: inline-block;
    background: rgba(122, 31, 31, 0.25);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-card h2,
.post-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.post-card h2 a,
.post-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
}

/* Single post layout */
.post-article {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.post-body {
    max-width: 760px;
    margin: 0 auto;
}

.post-body p,
.post-body li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-body h2 {
    color: var(--text-primary);
    margin-top: 2.5rem;
    font-size: 1.6rem;
}

.post-body h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    font-size: 1.25rem;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.25rem 1.5rem;
}

.post-body blockquote {
    border-left: 3px solid var(--oxblood);
    padding-left: 1.25rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-body a {
    text-decoration: underline;
}

/* ===== Contact page ===== */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
}

.contact-card h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-card .contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card a {
    font-weight: 600;
    word-break: break-word;
}

/* Press / third-person bio block */
.press-bio {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--oxblood);
    border-radius: var(--border-radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.press-bio h3 {
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* ===== Wavy section dividers (artistic flow) ===== */
.wave-divider {
    line-height: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 64px;
}

.wave-divider--dark-to-teal { background: var(--bg-primary); }
.wave-divider--dark-to-teal svg path { fill: var(--bg-secondary); }

.wave-divider--teal-to-dark { background: var(--bg-secondary); }
.wave-divider--teal-to-dark svg path { fill: var(--bg-primary); }

@media (max-width: 768px) {
    .wave-divider svg { height: 38px; }
}

/* Atmospheric layers for dark sections (semi-transparent depth) */
.has-atmosphere { position: relative; }
.has-atmosphere > * { position: relative; z-index: 1; }

/* Base glow (always present — this is the fallback if no image is uploaded) */
.has-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 75% 15%, rgba(192, 57, 47, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(194, 161, 77, 0.07) 0%, transparent 45%);
}

/* Ghostly atmospheric photo bleeding through.
   Scoped to pages with the .show-apparition body class (homepage + The Last Hike)
   so the face isn't repeated on every dark section site-wide.
   Upload a dark, high-contrast image to /atmosphere.jpg (e.g. the fog face)
   and it appears at low opacity. Until then this layer is invisible. */
.show-apparition .has-atmosphere::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: url('/atmosphere.jpg') center center / cover no-repeat;
    /* Raised so the apparition is at least decipherable once the image is
       uploaded to /atmosphere.jpg, while staying atmospheric (not prominent). */
    opacity: 0.16;
    mix-blend-mode: screen;
}

/* A touch stronger on the hero-less content sections so the apparition reads */
.show-apparition .book-details.has-atmosphere::before,
.show-apparition .newsletter-section.has-atmosphere::before { opacity: 0.22; }

/* ===== Comments (Cusdis) ===== */
.comments-section {
    max-width: 860px;
    margin: 3.5rem auto 0;
    padding: 2.5rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.comments-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.comments-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* Give the embedded Cusdis thread real breathing room + readable base font */
#cusdis_thread {
    min-height: 240px;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
}

.comments-fallback {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.comments-fallback a { font-weight: 600; }

/* ===== Reviews / Praise ===== */
.praise-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review-quote {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--oxblood);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
}

.review-stars { color: #f5c451; letter-spacing: 2px; margin-bottom: 0.75rem; font-size: 1rem; }

.review-quote blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.7;
    border: none;
    padding: 0;
    background: none;
}

.review-cite { color: var(--text-muted); font-size: 0.85rem; }

/* On a book page the praise block sits inline; lighten its background */
.book-details .praise-section,
.book-synopsis-section .praise-section { background: transparent; padding: 0; margin-top: 2.5rem; }

/* ===== Promo banner (large, leaderboard-style) ===== */
:root { --ann-h: 4.25rem; }

.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--ann-h);
    z-index: 1100;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 50%, rgba(192, 57, 47, 0.35) 0%, transparent 55%),
        linear-gradient(90deg, #150708 0%, #45110f 50%, #150708 100%);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    font-family: var(--font-primary);
}

.ann-track { position: relative; width: 100%; height: 100%; }

.ann-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    text-align: center;
    opacity: 0;
    /* Hidden slides sit on top of the visible one; without this they would
       swallow clicks so the visible button never fires. Only the slide that
       is currently faded in re-enables pointer events (see @keyframes). */
    pointer-events: none;
    animation: annCycle 21s infinite;
}

.ann-msg:nth-child(1) { animation-delay: 0s; }
.ann-msg:nth-child(2) { animation-delay: 7s; }
.ann-msg:nth-child(3) { animation-delay: 14s; }

.ann-text {
    color: #f3eee5;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    max-width: 760px;
}

.ann-text strong { color: #ffffff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.ann-stars { color: #f5c451; letter-spacing: 2px; margin-right: 0.4rem; }

.ann-cta {
    flex-shrink: 0;
    background: var(--oxblood-light);
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.25s ease, transform 0.25s ease;
}

.ann-cta:hover { background: #e24a42; color: #ffffff; transform: translateY(-1px); }

@keyframes annCycle {
    0%, 1%    { opacity: 0; transform: translateY(10px); pointer-events: none; }
    4%, 30%   { opacity: 1; transform: translateY(0);     pointer-events: auto; }
    34%, 100% { opacity: 0; transform: translateY(-10px); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ann-msg { animation: none; }
    .ann-msg:nth-child(1) { opacity: 1; pointer-events: auto; }
    .ann-msg:nth-child(2),
    .ann-msg:nth-child(3) { display: none; }
}

/* Push the fixed navbar (and its mobile drawer) below the banner */
.navbar { top: var(--ann-h); }

@media (max-width: 768px) {
    :root { --ann-h: 5.25rem; }
    .ann-msg { flex-direction: column; gap: 0.5rem; padding: 0 1rem; }
    .ann-text { font-size: 0.85rem; line-height: 1.3; }
    .ann-cta { padding: 0.4rem 1.1rem; font-size: 0.82rem; }
}

/* ===== Footer social row ===== */
.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-social a:hover { color: var(--primary-color); }

/* ===== Coming-soon / The Last Hike ===== */
.coming-soon-banner {
    display: inline-block;
    background: var(--oxblood);
    color: #f1ece1;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.teaser-figure {
    margin: 0 0 2rem;
    text-align: center;
}

.teaser-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.teaser-figure figcaption {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.75rem;
}

/* Newsletter bonus-scene callout */
.newsletter-bonus {
    background: rgba(122, 31, 31, 0.18);
    border: 1px solid var(--oxblood);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.newsletter-bonus a { font-weight: 600; }

/* Keep the mobile drawer and hero spacing clear of the announcement banner */
@media (max-width: 768px) {
    .nav-menu {
        top: calc(var(--ann-h) + 70px);
        height: calc(100vh - var(--ann-h) - 70px);
    }
    .page-hero,
    .book-hero {
        padding-top: 10rem;
    }
}

/* ===== Social icons beside the author name (nav brand) ===== */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-social {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    line-height: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-social a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

@media (max-width: 600px) {
    .nav-brand { gap: 0.65rem; }
    .nav-social { gap: 0.5rem; }
    .nav-social svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
    .nav-social { display: none; }
}

/* ===== Content warnings — presented with the same weight as the book title ===== */
.content-warning {
    margin: 2.5rem 0;
}

.content-warning .warning-card {
    text-align: left;
    background: rgba(138, 31, 31, 0.12);
    border: 1px solid var(--oxblood);
}

.content-warning .warning-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.content-warning .warning-card p {
    font-style: normal;
    color: var(--text-secondary);
}

/* Compact inline content warning that sits directly under a book synopsis */
.book-synopsis-section .content-warning { margin: 2rem 0 0; }

/* ===== Buy buttons (paperback + ebook) ===== */
.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.purchase-card .btn + .btn {
    margin-top: 0.6rem;
}

.purchase-formats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
}

/* ===== Dog photo slots — show a tasteful placeholder until photos are added ===== */
.dog-photo-wrap {
    position: relative;
    min-height: 200px;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dog-photo-wrap::after {
    content: "🐾 Photo coming soon";
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dog-photo-wrap .dog-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
}

/* ===== TBA cover placeholder (Upcoming — Enhanced Edition) ===== */
.cover-tba {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

.cover-tba .cover-tba-icon { font-size: 2.5rem; opacity: 0.8; }
.cover-tba .cover-tba-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--secondary-color);
}
.cover-tba .cover-tba-sub { font-size: 0.85rem; }
/* ===== Follow-up fixes (2026-07-01) ===== */

/* Format badge on book pages — paperback / ebook indicator */
.book-format {
    background: rgba(194, 161, 77, 0.18);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* "Jump to the comments" link in the post header */
.post-jump { margin-top: 0.85rem; }
.post-jump a { font-weight: 600; font-size: 0.95rem; }

/* When jumping to comments, land clear of the fixed banner + navbar */
#comments,
.comments-section { scroll-margin-top: calc(var(--ann-h) + 90px); }

/* Keep the empty reserved space small so the comment box isn't pushed down */
#cusdis_thread { min-height: 140px; }
