:root {
            --bg-dark: #0a1118;
            --bg-light: #f8f9fa;
            --primary-accent: #f2c94c;
            --primary-accent-hover: #d4af37;
            --text-dark: #212529;
            --text-light: #f8f9fa;
            --font-serif: 'Merriweather', serif;
            --font-sans: 'Open Sans', sans-serif;
            --shadow-book: 0 20px 40px rgba(0,0,0,0.4);
            --shadow-card: 0 4px 12px rgba(0,0,0,0.1);
            --header-h: 70px;
        }

        /* ── Reset ── */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: var(--font-sans);
            color: var(--text-dark);
            background: var(--bg-light);
            line-height: 1.6;
            scroll-behavior: smooth;
            padding-top: var(--header-h);
        }
        h1, h2, h3, h4 {
            font-family: var(--font-serif);
            color: var(--bg-dark);
            margin-bottom: 1rem;
            line-height: 1.2;
            text-wrap: balance;
        }
        p { margin-bottom: 1.2rem; }
        a { text-decoration: none; color: inherit; }
        img { max-width: 100%; height: auto; display: block; }

        /* ── Skip link ── */
        .skip-link {
            position: absolute; top: -100%; left: 0;
            background: var(--primary-accent); color: var(--bg-dark);
            padding: 0.5rem 1rem; font-weight: 700; z-index: 9999;
        }
        .skip-link:focus { top: 0; }

        /* ── Focus ── */
        :focus-visible { outline: 2px solid var(--primary-accent); outline-offset: 3px; border-radius: 2px; }

        /* ── Layout ── */
        .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .section-padding { padding: 5rem 0; }
        .text-center { text-align: center; }
        [id] { scroll-margin-top: var(--header-h); }

        /* ── Buttons ── */
        .btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            font-weight: 700;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
            text-align: center;
            border: none;
            font-size: 1rem;
            touch-action: manipulation;
            font-family: var(--font-sans);
        }
        .btn-primary { background: var(--primary-accent); color: var(--bg-dark); }
        .btn-primary:hover { background: var(--primary-accent-hover); transform: translateY(-2px); }
        .btn-secondary { background: transparent; color: var(--text-light); border: 2px solid var(--primary-accent); }
        .btn-secondary:hover { background: rgba(242,201,76,0.1); }
        .btn-dark-outline { background: transparent; color: var(--bg-dark); border: 2px solid var(--bg-dark); }
        .btn-dark-outline:hover { background: rgba(10,17,24,0.08); }

        /* ── Header ── */
        header {
            position: fixed; top: 0; left: 0; width: 100%;
            background: var(--bg-dark); color: var(--text-light);
            z-index: 1000; height: var(--header-h);
            display: flex; align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
        .author-wordmark { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; color: var(--primary-accent); }
        .nav-right { display: flex; align-items: center; gap: 20px; }
        .nav-links { display: flex; gap: 20px; }
        .nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-light); transition: color 0.3s ease; }
        .nav-links a:hover { color: var(--primary-accent); }

        /* Hamburger */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            touch-action: manipulation;
        }
        .hamburger span {
            display: block; width: 24px; height: 2px;
            background: var(--text-light);
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
        .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* Mobile nav drawer */
        .mobile-nav {
            display: none;
            position: fixed;
            top: var(--header-h); left: 0; right: 0;
            background: var(--bg-dark);
            padding: 1.5rem 20px 2rem;
            z-index: 999;
            border-top: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        }
        .mobile-nav.open { display: block; }
        .mobile-nav a {
            display: block;
            color: var(--text-light);
            font-size: 1rem;
            font-weight: 600;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            transition: color 0.2s ease;
        }
        .mobile-nav a:hover { color: var(--primary-accent); }
        .mobile-nav .btn { display: block; text-align: center; margin-top: 1.5rem; }

        /* ── Hero ── */
        .hero { background: var(--bg-dark); color: var(--text-light); padding: 4rem 0 6rem; overflow: hidden; }
        .hero h1 { color: var(--text-light); font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
        .hero h2 { color: var(--primary-accent); font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 300; font-style: italic; margin-bottom: 1.5rem; }
        .hero .hook { font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: 0.9; margin-bottom: 2.5rem; }
        .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
        .hero-cta { display: flex; gap: 15px; flex-wrap: wrap; }

        .book-mockup {
            border-radius: 2px 6px 6px 2px;
            box-shadow: var(--shadow-book);
            transition: transform 0.3s ease;
            max-width: 100%;
            border-left: 4px solid rgba(255,255,255,0.3);
            transform-origin: left center;
        }
        .book-mockup:hover { transform: scale(1.02) rotateY(-5deg); }
        .hero-cover-wrapper { perspective: 1000px; display: flex; justify-content: center; }
        .hero-cover-wrapper img { width: 100%; max-width: 400px; }

        /* ── Content sections ── */
        .content-section { background: var(--bg-light); }
        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
        .bullet-list { list-style: none; }
        .bullet-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; font-size: 1.05rem; }
        .bullet-list li::before { content: '✦'; color: var(--primary-accent-hover); position: absolute; left: 0; top: 2px; font-size: 1.2rem; }
        .story-block { background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: var(--shadow-card); border-top: 4px solid var(--bg-dark); }

        .inside-section { background: #fff; }
        .chapter-list { column-count: 2; column-gap: 2rem; }
        .chapter-list p { font-weight: 600; margin-bottom: 0.8rem; border-bottom: 1px solid #eee; padding-bottom: 0.3rem; }

        /* ── Testimony ── */
        .testimony { background: var(--bg-dark); color: var(--text-light); text-align: center; border-radius: 12px; padding: 4rem 2rem; margin: 4rem 0; }
        .testimony blockquote { font-family: var(--font-serif); font-size: clamp(1.1rem, 3vw, 1.5rem); font-style: italic; margin-bottom: 1.5rem; color: var(--primary-accent); }

        /* ── Reviews ── */
        .reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
        .review-card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow-card); }
        .review-card p { font-style: italic; }
        .review-author { font-weight: 700; margin-top: 1rem; display: block; font-size: 0.9rem; }

        /* ── Buy ── */
        .buy-section { background: #e9ecef; }
        .buy-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 3rem; flex-wrap: wrap; }
        .thumbnail-small { width: 60px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); border-radius: 2px; }
        .retailer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
        .retailer-card { background: #fff; padding: 1.5rem; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-card); transition: transform 0.2s ease; gap: 1rem; }
        .retailer-card:hover { transform: translateY(-3px); }
        .retailer-info { display: flex; align-items: center; gap: 15px; min-width: 0; }
        .retailer-info img { width: 45px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); flex-shrink: 0; }
        .retailer-name { font-weight: 700; font-size: 1.1rem; }
        .retailer-format { font-size: 0.8rem; color: #6c757d; }

        /* ── Bonus / Email ── */
        .bonus-section { background: var(--bg-dark); color: var(--text-light); border-radius: 12px; padding: 3rem; display: flex; align-items: center; gap: 2rem; margin-bottom: 4rem; }
        .bonus-content { flex: 1; min-width: 0; }
        .bonus-content h2 { color: var(--primary-accent); }
        .email-label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
        .form-group { display: flex; gap: 10px; margin-top: 1.5rem; }
        .form-group input[type="email"] { flex: 1; min-width: 0; padding: 0.8rem; border: none; border-radius: 4px; font-size: 1rem; font-family: var(--font-sans); }
        .privacy-note { font-size: 0.75rem; opacity: 0.7; margin-top: 0.5rem; }

        /* ── About / Contact ── */
        .about-contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
        .author-bio h2 { border-bottom: 3px solid var(--primary-accent); display: inline-block; padding-bottom: 0.5rem; }

        /* ── Footer ── */
        footer { background: #05080c; color: rgba(255,255,255,0.6); padding: 2rem 0; text-align: center; font-size: 0.85rem; }
        footer a { color: var(--primary-accent); margin: 0 8px; }
        .footer-modal-btn {
            background: none; border: none; cursor: pointer;
            color: var(--primary-accent); font-size: 0.85rem;
            font-family: var(--font-sans); margin: 0 8px;
            text-decoration: none; touch-action: manipulation;
        }
        .footer-modal-btn:hover { text-decoration: underline; }

        /* ── Modal ── */
        .modal-overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.6);
            z-index: 2000;
            align-items: flex-end;
            justify-content: center;
            padding: 0;
        }
        .modal-overlay.open { display: flex; }

        .modal {
            background: #fff;
            width: 100%;
            max-width: 720px;
            max-height: 90vh;
            border-radius: 16px 16px 0 0;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 2rem 1.5rem 3rem;
            position: relative;
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

        .modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; gap: 1rem; }
        .modal h2 { font-size: 1.5rem; margin-bottom: 0; }
        .modal-close {
            background: #f0f0f0; border: none; border-radius: 50%;
            width: 36px; height: 36px; cursor: pointer;
            font-size: 1.2rem; line-height: 1;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; touch-action: manipulation;
            color: var(--text-dark);
        }
        .modal-close:hover { background: #e0e0e0; }
        .modal-date { font-size: 0.8rem; color: #6c757d; margin-bottom: 2rem; }
        .modal h3 { font-family: var(--font-serif); font-size: 1rem; margin: 2rem 0 0.5rem; color: var(--bg-dark); }
        .modal p { font-size: 0.95rem; margin-bottom: 0.9rem; }
        .modal ul { margin: 0.5rem 0 1rem 1.5rem; }
        .modal ul li { font-size: 0.95rem; margin-bottom: 0.4rem; }
        .modal a { color: var(--bg-dark); text-decoration: underline; }

        /* Desktop: centered modal */
        @media (min-width: 600px) {
            .modal-overlay { align-items: center; padding: 20px; }
            .modal { border-radius: 12px; max-height: 85vh; }
        }

        /* ── Mobile Responsiveness ── */
        @media (max-width: 768px) {
            .nav-links { display: none; }
            .nav-right .btn { display: none; }
            .hamburger { display: flex; }

            .hero { padding: 2.5rem 0 4rem; text-align: center; }
            .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
            .hero-content-top { order: 1; }
            .hero-cover-wrapper { order: 2; }
            .hero-cta { order: 3; justify-content: center; }

            .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
            .chapter-list { column-count: 1; }
            .about-contact-grid { grid-template-columns: 1fr; gap: 2rem; }

            .bonus-section { flex-direction: column; text-align: center; padding: 2rem; }
            .form-group { flex-direction: column; }

            .retailer-card { flex-direction: column; text-align: center; }
            .retailer-info { flex-direction: column; }

            .section-padding { padding: 3rem 0; }
            .testimony { padding: 2.5rem 1.5rem; margin: 2rem 0; }

            .contact-box .btn { width: 100%; }
        }

        @media (max-width: 400px) {
            .author-wordmark { font-size: 0.95rem; }
            .hero h1 { font-size: 1.8rem; }
        }

        /* ── Reduced motion ── */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
            .book-mockup:hover { transform: none; }
        }
    
/* Maintenance additions: layout stays aligned with the original design. */
html { scroll-behavior: smooth; }
.hero-copy { display: flex; flex-direction: column; gap: 1rem; }
.reviews-grid { margin-top: 3rem; }
.bonus-wrapper { margin-top: -3rem; position: relative; z-index: 10; }
.bonus-cover { max-width: 120px; }
.contact-box .btn { width: 100%; }
.contact-intro { font-size: .9rem; margin-bottom: 1.5rem; }
.footer-links { margin-top: 10px; }
.form-status { margin-top: 1rem; font-weight: bold; color: var(--primary-accent); }
.hamburger { min-width: 44px; min-height: 44px; align-items: center; }
.modal-close { min-width: 44px; min-height: 44px; }
/* Native dialog provides keyboard focus containment and inert background. */
dialog.modal-overlay { border: 0; margin: auto; color: var(--text-dark); background: transparent; width: 100%; max-width: 760px; max-height: 100dvh; position: fixed; }
dialog.modal-overlay[open] { display: flex; }
dialog.modal-overlay::backdrop { background: rgba(0,0,0,.6); }
dialog .modal { width: 100%; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 599px) { dialog.modal-overlay { margin: auto auto 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Navigation remains available if JavaScript is disabled. */
@media (max-width: 768px) {
  html:not(.js) .nav-links { display: flex; gap: 10px; }
  html:not(.js) .hamburger { display: none; }
}
