/* ============================================
   GENERATED — Author Website
   Light Editorial Design v4.0
   ============================================ */

/* ----------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
    /* Light Palette */
    --white: #ffffff;
    --snow: #fafafa;
    --cloud: #f5f5f5;
    --mist: #ebebeb;
    --silver: #d4d4d4;
    --gray: #a3a3a3;
    --steel: #737373;
    --graphite: #525252;
    --charcoal: #404040;
    --ink: #262626;
    --black: #171717;
    
    /* Accent (soft desaturated blue — used sparingly) */
    --accent: #6F8FAF;
    --accent-light: #8BA3BF;
    --accent-pale: #B8C9DB;
    --accent-wash: rgba(111, 143, 175, 0.08);
    --accent-hover: rgba(111, 143, 175, 0.12);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;
    
    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 680px;
    
    /* Transitions */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration-fast: 200ms;
    --duration-base: 400ms;
    --duration-slow: 800ms;
}

/* ----------------------------------------
   RESET & BASE
   ---------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--graphite);
    background-color: var(--white);
}

::selection {
    background: var(--accent-pale);
    color: var(--ink);
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--graphite);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease);
}

a:hover {
    color: var(--accent);
}

em {
    font-style: italic;
}

/* ----------------------------------------
   LAYOUT
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding: var(--space-2xl) 0;
}

.section--compact {
    padding: var(--space-xl) 0;
}

.section--tint {
    background-color: var(--snow);
}

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-base) var(--ease);
}

.nav.scrolled {
    border-bottom-color: var(--mist);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

.nav-logo {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--steel);
    letter-spacing: 0.03em;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform var(--duration-fast) var(--ease);
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    background: var(--white);
}

/* CHANGE 1: Hero split layout — portrait left, text right */
.hero--split {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    text-align: left;
    padding: calc(var(--space-3xl) + 40px) var(--space-lg) var(--space-3xl);
}

.hero-portrait {
    flex-shrink: 0;
    max-width: 340px;
    width: 100%;
}

.hero-portrait-img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.hero-inner {
    max-width: 900px;
}

.hero-title {
    margin-bottom: var(--space-md);
    color: var(--ink);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--steel);
    margin-bottom: var(--space-lg);
}

.hero-subtitle--dark {
    color: var(--graphite);
}

.hero-author {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--silver);
}

.hero-scroll-hint span {
    font-family: var(--font-sans);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-dot {
    animation: scrollBounce 2s var(--ease) infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.9375rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease);
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--charcoal);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-wash);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--charcoal);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-wash);
}

.text-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--graphite);
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--silver);
    transition: all var(--duration-fast) var(--ease);
}

.text-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ----------------------------------------
   DIVIDERS
   ---------------------------------------- */
.divider {
    border: none;
    height: 1px;
    background: var(--mist);
    margin: var(--space-xl) 0;
}

.divider--accent {
    background: var(--accent-pale);
}

/* ----------------------------------------
   LABELS & ACCENTS
   ---------------------------------------- */
.label-accent {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.section-title--accented::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: var(--space-md);
}

.section-title--center {
    text-align: center;
}

.section-title--center.section-title--accented::before {
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------
   LEAD TEXT
   ---------------------------------------- */
.lead-text {
    font-family: var(--font-serif);
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}

.body-text {
    font-size: 1.125rem;
    color: var(--graphite);
    margin-bottom: var(--space-lg);
}

/* ----------------------------------------
   BOOK FEATURE
   ---------------------------------------- */
.book-feature {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.book-cover-wrap {
    position: relative;
}

.book-cover {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform var(--duration-slow) var(--ease);
}

.book-cover-wrap:hover .book-cover {
    transform: translateY(-6px);
}

.book-feature-text {
    max-width: 500px;
}

.section-title {
    margin-bottom: var(--space-lg);
}

.book-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--steel);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-meta span {
    position: relative;
}

.book-meta span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(var(--space-lg) / -2);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: var(--silver);
}

/* ----------------------------------------
   PULLQUOTE
   ---------------------------------------- */
.pullquote {
    padding: var(--space-lg) 0;
    border-left: 2px solid var(--accent-light);
    padding-left: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
}

.pullquote p {
    font-family: var(--font-serif);
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
}

/* ----------------------------------------
   NEWSLETTER
   ---------------------------------------- */
.newsletter {
    text-align: center;
}

.newsletter .section-title {
    margin-bottom: var(--space-sm);
}

.newsletter-desc {
    font-size: 1rem;
    color: var(--steel);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 420px;
    margin: 0 auto var(--space-md);
}

.newsletter-form input {
    flex: 1;
    padding: 0.9375rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--steel);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease);
}

.newsletter-form input::placeholder {
    color: var(--gray);
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-note {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gray);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--mist);
    background: var(--snow);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gray);
}

.footer-email {
    font-family: var(--font-sans);
    font-size: 0.75rem;
}

.footer-email a {
    color: var(--steel);
}

.footer-email a:hover {
    color: var(--accent);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--steel);
}

.footer-nav a:hover {
    color: var(--accent);
}

/* ----------------------------------------
   PAGE STYLES
   ---------------------------------------- */
.page-header {
    padding: calc(var(--space-3xl) + 60px) 0 var(--space-2xl);
    text-align: center;
    background: var(--white);
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--space-md);
}

.page-header .subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--steel);
}

/* Book Page */
.book-intro {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.book-intro-cover {
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.book-intro-text h2 {
    margin-bottom: var(--space-lg);
}

/* Testimonials */
.testimonials {
    margin-top: var(--space-xl);
}

.testimonial {
    padding: var(--space-lg);
    background: var(--white);
    border-left: 2px solid var(--accent-light);
    margin-bottom: var(--space-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.testimonial p {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.testimonial cite {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-style: normal;
    color: var(--graphite);
}

/* Purchase Links */
.purchase-section {
    text-align: center;
}

.purchase-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.purchase-link {
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--charcoal);
    letter-spacing: 0.04em;
    border: 1px solid var(--silver);
    background: var(--white);
    transition: all var(--duration-fast) var(--ease);
}

.purchase-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-wash);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.author-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    filter: saturate(0.6);
}

/* Availability line tighter spacing */
.availability-line {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--mist);
    font-size: 0.9375rem;
    color: var(--steel);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: var(--space-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--steel);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.9375rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--steel);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* ----------------------------------------
   CHATBOT (LIGHT THEME)
   ---------------------------------------- */
.chatbot-inline {
    background: var(--snow);
    border: 1px solid var(--mist);
    border-left: 3px solid var(--accent);
    padding: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
}

.chatbot-inline-header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.chatbot-inline-header h3 {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.chatbot-inline-header p {
    font-size: 0.9375rem;
    color: var(--steel);
    font-style: italic;
}

.chatbot-inline-messages {
    min-height: 180px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--mist);
}

.chat-message {
    max-width: 85%;
    margin-bottom: var(--space-md);
    animation: messageIn 0.3s var(--ease-out);
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message--bot {
    margin-right: auto;
}

.chat-message--user {
    margin-left: auto;
}

.chat-bubble {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.6;
}

.chat-message--bot .chat-bubble {
    background: var(--snow);
    border: 1px solid var(--mist);
    border-left: 2px solid var(--accent);
    color: var(--graphite);
}

.chat-message--user .chat-bubble {
    background: var(--accent-wash);
    border: 1px solid var(--accent-pale);
    color: var(--ink);
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble em {
    color: var(--accent);
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.chatbot-inline-input {
    display: flex;
    gap: var(--space-sm);
}

.chatbot-inline-input input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--silver);
    outline: none;
}

.chatbot-inline-input input:focus {
    border-color: var(--accent);
}

.chatbot-inline-input input::placeholder {
    color: var(--gray);
}

.chatbot-inline-input button {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}

.chatbot-inline-input button:hover {
    background: var(--accent);
    color: var(--white);
}

/* Speech-to-text mic button — black bg, white icon, prominent */
.speak-mic {
    padding: 0.875rem 1rem;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: var(--white);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speak-mic svg {
    stroke: var(--white);
}

.speak-mic:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

.speak-mic.listening {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

/* Nav "Speak / Ask" button — black bg, white text/icon */
.nav-speak {
    background: var(--ink) !important;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    transition: opacity var(--duration-fast) var(--ease);
}

.nav-speak:hover {
    opacity: 0.85;
    background: var(--ink) !important;
    color: var(--white) !important;
}

.nav-speak svg {
    stroke: var(--white);
}

/* ----------------------------------------
   SPEAK TO THE BOOK SECTION
   ---------------------------------------- */
.speak-section {
    background: var(--snow);
    border: 1px solid var(--mist);
    padding: var(--space-lg);
}

.speak-title {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.speak-instruction {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--steel);
    margin-bottom: var(--space-md);
}

.speak-messages {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
}

.speak-message {
    margin-bottom: var(--space-sm);
}

.speak-message--user {
    text-align: right;
}

.speak-message--bot {
    text-align: left;
}

.speak-bubble {
    display: inline-block;
    max-width: 85%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.speak-message--user .speak-bubble {
    background: var(--ink);
    color: var(--white);
}

.speak-message--bot .speak-bubble {
    background: var(--white);
    border: 1px solid var(--mist);
    color: var(--graphite);
}

.speak-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.speak-input-row {
    display: flex;
    gap: var(--space-sm);
}

.speak-input-row input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--silver);
    outline: none;
}

.speak-input-row input:focus {
    border-color: var(--ink);
}

.speak-input-row input::placeholder {
    color: var(--gray);
}

.speak-send {
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}

.speak-send:hover {
    background: var(--ink);
    color: var(--white);
}

.speak-options {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.speak-audio-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--steel);
}

.speak-audio-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--ink);
}

.speak-lang-note {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    color: var(--gray);
    letter-spacing: 0.02em;
    font-style: italic;
}

.toggle-label {
    user-select: none;
}

/* Typing indicator */
.typing-dots {
    display: inline-flex;
    gap: 3px;
}

.typing-dots span {
    animation: typingBounce 1.4s infinite;
    font-weight: bold;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

@media (max-width: 768px) {
    .speak-input-row {
        flex-direction: column;
    }
    
    .speak-input-row input {
        width: 100%;
    }
    
    .speak-mic,
    .speak-send {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */

/* IMAGE BREAKS — single images between sections */
.image-break {
    padding: var(--space-xl) 0;
    display: flex;
    justify-content: center;
}

.image-break-img {
    display: block;
    max-width: 420px;
    width: 85%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.9;
}

/* Structural image variant — more subdued */
.image-break--structure {
    padding: var(--space-2xl) 0;
}

.image-break-img--subdued {
    max-width: 380px;
    opacity: 0.7;
}
}

/* CHANGE 2: Speech-to-text mic button */
.chatbot-mic {
    padding: 0.875rem;
    background: var(--white);
    border: 1px solid var(--silver);
    color: var(--steel);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-mic:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chatbot-mic.listening {
    border-color: var(--accent);
    color: var(--accent);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
.fade-up {
    opacity: 1;
    transform: translateY(0);
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 968px) {
    .book-feature,
    .book-intro,
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .book-cover-wrap,
    .book-intro-cover {
        max-width: 240px;
        margin: 0 auto;
    }
    
    .author-photo {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 4rem;
        --space-3xl: 6rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--duration-base) var(--ease),
                    visibility var(--duration-base) var(--ease);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        font-size: 1.125rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 101;
    }
    
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: calc(var(--space-2xl) + 80px) var(--space-md) var(--space-2xl);
    }
    
    /* Hero split stacks on mobile */
    .hero--split {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xl);
        padding: calc(var(--space-2xl) + 60px) var(--space-md) var(--space-2xl);
    }
    
    .hero-portrait {
        max-width: 240px;
    }
    
    .hero-scroll-hint {
        display: none;
    }
    
    /* Image breaks smaller on mobile */
    .image-break-img {
        max-width: 280px;
    }
    
    .image-break-img--structure {
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .purchase-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .purchase-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .chatbot-inline-input {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ----------------------------------------
   REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .fade-up,
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    .scroll-dot {
        animation: none;
    }
}

/* ----------------------------------------
   FOCUS STATES
   ---------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ----------------------------------------
   UTILITIES
   ---------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ----------------------------------------
   WRITING PAGE
   ---------------------------------------- */
.writing-cta {
    text-align: center;
    margin: var(--space-xl) 0;
}

.writing-list {
    margin-top: var(--space-xl);
}

.writing-item {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--silver);
}

.writing-item:last-child {
    border-bottom: none;
}

.writing-item-title {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.writing-item-title a {
    color: var(--ink);
    text-decoration: none;
}

.writing-item-title a:hover {
    color: var(--accent);
}

.writing-item-desc {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ----------------------------------------
   FAQ PAGE
   ---------------------------------------- */
.faq-item {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--silver);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.faq-answer {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ----------------------------------------
   PRESS PAGE
   ---------------------------------------- */
.press-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

@media (max-width: 768px) {
    .press-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.press-info,
.press-book {
    padding: var(--space-lg);
    background: var(--snow);
    border-radius: 4px;
}

.press-materials {
    text-align: center;
    padding: var(--space-lg);
    background: var(--snow);
    border-radius: 4px;
}

/* ----------------------------------------
   OPENING QUESTION WITH ACCENT IMAGE
   ---------------------------------------- */
.opening-question {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.opening-question-text {
    flex: 1;
}

.opening-question-accent {
    flex-shrink: 0;
    width: 212px;
    height: 212px;
    opacity: 0.7;
    transition: opacity var(--duration-base) var(--ease);
}

.opening-question-accent:hover {
    opacity: 0.85;
}

.accent-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%) contrast(0.9);
}

@media (max-width: 768px) {
    .opening-question {
        flex-direction: column;
        text-align: center;
    }
    
    .opening-question-accent {
        width: 140px;
        height: 140px;
        order: -1;
        margin-bottom: var(--space-md);
    }
    
    .opening-question-text .text-link {
        justify-content: center;
    }
}
