/* ── Reset + base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    color: #2a2520;
    background: #fbf9f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8b3a3a; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #6e2929; }

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1f1b17;
    margin: 0 0 0.5em;
    letter-spacing: -0.005em;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h1.display { font-size: 4rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1.2em; }
.eyebrow {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #8b7355;
    font-weight: 500;
    margin: 0 0 0.6em;
}
.lede { font-size: 1.15rem; color: #4a4239; }
.byline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #5a4f43;
    margin-bottom: 1.4em;
}
.muted { color: #6b6258; }
em { font-style: italic; }

/* ── Layout ───────────────────────────────────────────────────────── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
.container.narrow {
    max-width: 720px;
}
section { padding: 80px 0; }
main > section:first-of-type { padding-top: 48px; }

/* ── Header / nav ─────────────────────────────────────────────────── */
.site-header {
    background: #fbf9f6;
    border-bottom: 1px solid #ece6dc;
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(6px);
    -webkit-backdrop-filter: saturate(180%) blur(6px);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.wordmark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f1b17;
    line-height: 1.1;
}
.wordmark:hover { color: #1f1b17; }
.wordmark .tagline {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8b7355;
    margin-top: 2px;
}
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.site-nav a {
    color: #4a4239;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover,
.site-nav a.active {
    color: #8b3a3a;
    border-bottom-color: #8b3a3a;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    padding: 80px 0 60px;
}
/* "Simple" hero — single centered card + Kindle embed + CTAs.
   Used while the site is still being authored. */
.hero-simple {
    max-width: 480px;
    text-align: center;
}
.hero-simple h1 {
    font-size: 2.6rem;
    margin-bottom: 6px;
}
.hero-simple .byline {
    margin-bottom: 28px;
    font-size: 1.2rem;
}
.hero-simple .kindle-embed {
    margin: 0 auto;
    max-width: 360px;
    background: #fff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 12px 32px -16px rgba(40, 30, 20, 0.25);
}
.hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: center;
}
.hero-cover img {
    width: 100%;
    /* Subtle drop-shadow that follows the cover's silhouette (transparent PNG). */
    filter: drop-shadow(0 22px 36px rgba(40, 30, 20, 0.28))
            drop-shadow(0 8px 14px rgba(40, 30, 20, 0.16));
}
@media (max-width: 760px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }
    .hero-cover { max-width: 240px; margin: 0 auto; }
    h1.display { font-size: 2.6rem; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
@media (max-width: 760px) { .cta-row { justify-content: center; } }
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: #8b3a3a;
    color: #fff;
    border-color: #8b3a3a;
}
.btn-primary:hover { background: #6e2929; border-color: #6e2929; color: #fff; }
.btn-ghost {
    background: transparent;
    color: #4a4239;
    border-color: #c8bea8;
}
.btn-ghost:hover { background: #ece6dc; color: #2a2520; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.link-arrow { font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }

/* ── Excerpt section (Kindle embed) ───────────────────────────────── */
.excerpt {
    background: #f3eee5;
    text-align: center;
}
.kindle-embed {
    margin: 32px auto 0;
    max-width: 360px;
    background: #fff;
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 12px 32px -16px rgba(40, 30, 20, 0.25);
}
.kindle-embed iframe { display: block; margin: 0 auto; }

/* ── About Leslie (homepage block + dedicated page) ─────────────── */
.about-leslie {
    background: #fbf9f6;
}
.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: center;
}
.about-photo img {
    border-radius: 4px;
    box-shadow: 0 20px 40px -20px rgba(40, 30, 20, 0.3);
}
@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-photo { max-width: 200px; margin: 0 auto; }
}
.about-full .portrait {
    max-width: 320px;
    margin: 0 auto 36px;
}
.about-full .portrait img {
    border-radius: 4px;
    box-shadow: 0 20px 40px -20px rgba(40, 30, 20, 0.3);
}

/* ── About-the-book + Themes + Speaking ──────────────────────────── */
.about-book {
    background: #fbf9f6;
    text-align: left;
}
.about-book .narrow { max-width: 720px; }
.about-book .lede { font-size: 1.2rem; }
.about-book-blurb {
    margin: 28px auto;
    max-width: 640px;
    padding: 18px 24px;
    border-left: 3px solid #c8bea8;
    background: #f6f1e7;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #4a4239;
}
.about-book-blurb p { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.6; }
.about-book-blurb cite {
    display: block;
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6e6557;
    letter-spacing: 0.01em;
}
.about-book-milo {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: center;
    margin: 40px 0;
    padding: 24px;
    background: #f6f1e7;
    border-radius: 4px;
    color: #4a4239;
}
.about-book-milo-photo img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 12px 24px -14px rgba(40, 30, 20, 0.35);
    display: block;
}
.about-book-milo-copy p { margin: 0 0 12px; font-size: 0.98rem; line-height: 1.6; }
.about-book-milo-copy p:last-child { margin-bottom: 0; }
.about-book-milo a { font-weight: 500; }
.about-book-backstory {
    background: #fbf9f6;
    padding-top: 0;
}
@media (max-width: 760px) {
    .about-book-milo {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-book-milo-photo { max-width: 220px; margin: 0 auto; }
}

.themes {
    background: #f3eee5;
}
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 32px;
}
.theme-card {
    background: #fbf9f6;
    border: 1px solid #ece6dc;
    padding: 28px 28px 22px;
    border-radius: 4px;
}
.theme-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: #8b3a3a;
}
.theme-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}
@media (max-width: 760px) {
    .theme-grid { grid-template-columns: 1fr; gap: 20px; }
}

.theme-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}
.theme-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ece6dc;
    line-height: 1.6;
}
.theme-list li:last-child { border-bottom: none; }
.theme-list strong {
    color: #8b3a3a;
    font-weight: 600;
}

.speaking {
    background: #fbf9f6;
}
.speaking .lede { margin-bottom: 1.5em; }
.appearance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.appearance-list li {
    background: #fff;
    border: 1px solid #ece6dc;
    border-radius: 4px;
    padding: 20px 24px;
}
.appearance-list strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    color: #1f1b17;
    margin-bottom: 4px;
}
.appearance-list span {
    color: #4a4239;
    font-size: 0.95rem;
}

.excerpt .center { text-align: center; margin-top: 24px; }

/* ── Podcast/contact teaser, page header ──────────────────────────── */
.podcast-teaser, .contact-teaser {
    text-align: center;
    background: #f3eee5;
}
.contact-teaser { background: #fbf9f6; }
.page-header {
    padding: 60px 0 32px;
    text-align: center;
}
.page-header h1 { margin-bottom: 0.4em; }

/* ── Forms ────────────────────────────────────────────────────────── */
.contact-form-section { padding-top: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 8px; }
.contact-form label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #4a4239;
    margin: 14px 0 2px;
}
.contact-form .req { color: #8b3a3a; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 1rem;
    color: #2a2520;
    background: #fff;
    border: 1.5px solid #d8cfbb;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8b3a3a;
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form button { margin-top: 24px; align-self: flex-start; }
.contact-form .hp { display: none; }

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.alert-success { background: #f0f6ee; border: 1px solid #c2d6b4; color: #3d5c2a; }
.alert-error   { background: #fbeeed; border: 1px solid #ecc7c2; color: #7b2d28; }

/* ── Podcast list ─────────────────────────────────────────────────── */
.podcast-list { padding-top: 16px; }
.episodes { list-style: none; padding: 0; margin: 0; }
.episode {
    background: #fff;
    border: 1px solid #ece6dc;
    border-radius: 4px;
    padding: 24px 28px;
    margin-bottom: 16px;
}
.episode h3 { margin: 0 0 6px; }
.episode .ep-num {
    color: #8b7355;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
}
.ep-meta { color: #8b7355; font-size: 0.85rem; margin: 0 0 12px; }
.episode audio { width: 100%; margin-bottom: 12px; }
.ep-description { color: #4a4239; font-size: 0.95rem; }
.ep-description p { margin: 0 0 0.8em; }
.rss-link { text-align: center; margin-top: 24px; }

/* ── Promo page ──────────────────────────────────────────────────── */
.promo h2 {
    margin-top: 2em;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece6dc;
}
.promo h2:first-of-type { margin-top: 0; }

.promo-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 32px;
    padding: 0;
    background: #f3eee5;
    border-radius: 4px;
    overflow: hidden;
}
.promo-toc a {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 16px;
    color: #4a4239;
    font-size: 0.9rem;
    font-weight: 500;
    border-right: 1px solid #ece6dc;
    transition: background 0.15s, color 0.15s;
}
.promo-toc a:last-child { border-right: none; }
.promo-toc a:hover { background: #ece6dc; color: #8b3a3a; }

.cover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 16px;
}
.cover-card {
    margin: 0;
    background: #fbf9f6;
    border: 1px solid #ece6dc;
    border-radius: 4px;
    padding: 32px 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cover-card img {
    max-width: 180px;
    margin: 0 auto 18px;
    filter: drop-shadow(0 14px 24px rgba(40, 30, 20, 0.22));
}
.cover-card figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #4a4239;
}
.cover-card figcaption strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: #1f1b17;
    font-weight: 600;
}
.cover-card figcaption span {
    font-size: 0.9rem;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .cover-grid { grid-template-columns: 1fr; gap: 20px; }
}
.promo-row-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}
.promo-hint {
    font-size: 0.85rem;
    color: #8b7355;
}

.promo-list { list-style: none; padding: 0; margin: 0; }
.promo-item {
    padding: 16px 0;
    border-bottom: 1px solid #ece6dc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.promo-item:last-child { border-bottom: none; }
.promo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.promo-name {
    font-weight: 500;
    color: #2a2520;
    font-size: 1rem;
}
.promo-item audio { width: 100%; max-width: none; }
.promo-item video { width: 100%; max-width: 560px; }

.promo-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.promo-photo {
    margin: 0;
    background: #fff;
    border: 1px solid #ece6dc;
    border-radius: 4px;
    overflow: hidden;
}
.promo-photo > a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3eee5;
}
.promo-photo > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.promo-photo > a:hover img { transform: scale(1.04); }
.promo-photo figcaption {
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #4a4239;
    text-align: center;
}
.promo-photo .photo-name {
    font-weight: 500;
    color: #2a2520;
    margin-bottom: 8px;
}
.promo-photo .photo-action {
    text-align: center;
}
.promo-photo .photo-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}
.promo-photo .specs {
    display: block;
    font-size: 0.75rem;
    color: #8b7355;
    margin: 2px 0 8px;
    line-height: 1.4;
}

/* Inline specs used by audio/video/cover too */
.specs {
    font-size: 0.78rem;
    color: #8b7355;
    line-height: 1.4;
}
.promo-name-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.cover-card .specs {
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Photo lightbox modal — uses native <dialog> */
.photo-modal {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    overflow: visible;
}
.photo-modal::backdrop {
    background: rgba(20, 14, 8, 0.85);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.photo-modal img {
    display: block;
    max-width: 95vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.photo-modal #photo-modal-caption {
    margin: 14px 0 0;
    color: #fbf9f6;
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
}
.photo-modal-close {
    position: absolute;
    top: -40px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
}
.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
@media (max-width: 600px) {
    .photo-modal-close { top: -36px; right: 0; }
}

.promo-divider {
    border: 0;
    border-top: 1px solid #ece6dc;
    margin: 60px 0 40px;
}

.promo-package {
    background: #f3eee5;
    border-radius: 4px;
    padding: 32px 36px;
}
.promo-package h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.package-manifest {
    list-style: disc;
    padding-left: 1.4em;
    margin: 1em 0 1.5em;
    color: #4a4239;
    columns: 2;
    column-gap: 32px;
}
.package-manifest li {
    margin: 0 0 6px;
    break-inside: avoid;
}
@media (max-width: 600px) {
    .package-manifest { columns: 1; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid #ece6dc;
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
    color: #6b6258;
    font-size: 0.9rem;
}
.site-footer p { margin: 0 0 8px; }
.footer-links a { color: #6b6258; }
.footer-links a:hover { color: #8b3a3a; }

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
    @page { margin: 1.5cm 1.6cm; }

    body {
        background: #fff !important;
        color: #1a1a1a !important;
        font-size: 11pt;
        line-height: 1.55;
    }

    /* Nav, footer, CTAs, embeds — not useful on paper */
    .site-header,
    .site-footer,
    .cta-row,
    .btn,
    .link-arrow,
    .kindle-embed,
    iframe,
    audio,
    video,
    dialog,
    .photo-modal,
    .photo-modal-close,
    .photo-actions,
    .photo-action {
        display: none !important;
    }

    /* Strip section backgrounds and decorative shadows */
    section,
    .about-book,
    .about-leslie,
    .about-book-backstory,
    .excerpt,
    .contact-teaser,
    .themes,
    .about-book-blurb,
    .about-book-milo,
    .cover-card,
    .promo-photo {
        background: transparent !important;
        box-shadow: none !important;
    }

    img {
        filter: none !important;
        box-shadow: none !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Page-break behaviour */
    section { page-break-inside: avoid; padding: 14pt 0 !important; }
    main > section:first-of-type { padding-top: 0 !important; }
    h1, h2, h3 { page-break-after: avoid; }
    blockquote, figure, .about-book-blurb, .about-book-milo,
    .promo-photo, .cover-card { page-break-inside: avoid; }

    /* Width constraints */
    .container,
    .container.narrow { max-width: 100% !important; padding: 0 !important; }

    /* Typography for print */
    h1.display { font-size: 26pt; }
    h1 { font-size: 22pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 13pt; }
    .eyebrow { font-size: 9pt; letter-spacing: 0.12em; }
    .lede { font-size: 12pt; }
    p { orphans: 3; widows: 3; }

    /* Show URLs after external links so paper readers can find them */
    a[href^="http"]:not([href*="lesliebennett.co"])::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
        word-break: break-all;
    }
    /* Don't print URLs for image-only anchors (photo grid) */
    a:has(> img):not(:has(> :not(img)))::after { content: none !important; }

    /* Force any 2-column grids into single column for predictable flow */
    .hero-grid,
    .about-grid,
    .about-book-milo {
        display: block !important;
    }
    .hero-cover,
    .about-photo,
    .about-book-milo-photo {
        max-width: 55%;
        margin: 0 auto 14pt;
    }

    /* Photo grid: smaller, denser */
    .promo-photos {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10pt !important;
    }
    .promo-photo figcaption { font-size: 9pt; }
}
