/* ==========================================================================
   Marco Geuze - Personal Website Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --serif: 'Lora', Georgia, serif;
    --sans: 'Outfit', -apple-system, sans-serif;
    --black: #1c1917;
    --text: #44403c;
    --light: #78716c;
    --lighter: #a8a29e;
    --border: #e7e5e4;
    --stone: #f5f5f4;
    --warm: #faf5f0;
    --accent: #b45309;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--sans);
    background: white;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    font-size: 14px;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover { color: var(--black); }

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
}

.nav-cta:hover { background: #92400e !important; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
}

.btn-primary { background: var(--black); color: white; }
.btn-primary:hover { background: var(--accent); }

.btn-secondary {
    background: white;
    color: var(--black);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Hero Sections
   -------------------------------------------------------------------------- */
.hero {
    padding: 100px 32px;
    background: var(--warm);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-text h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-text p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-image { position: relative; }

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.2);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-badge img {
    height: 36px;
    width: auto;
}

/* Hero - centered variant */
.hero.hero-centered {
    text-align: center;
}

.hero.hero-centered .hero-inner {
    display: block;
    max-width: 800px;
}

.hero.hero-centered h1 {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero.hero-centered h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero.hero-centered p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero - with sidebar image (about page) */
.hero.hero-sidebar .hero-inner {
    max-width: 800px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.hero.hero-sidebar .hero-image img {
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
}

.hero.hero-sidebar .hero-text h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.hero .tagline {
    font-size: 18px;
    color: var(--text);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   Story Section (Homepage)
   -------------------------------------------------------------------------- */
.story-section {
    padding: 100px 32px;
}

.story-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background: var(--stone);
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
}

.story-card .year {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 12px;
}

.story-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.story-card p {
    font-size: 15px;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Work Section (Homepage)
   -------------------------------------------------------------------------- */
.work-section {
    padding: 100px 32px;
    background: var(--stone);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.work-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.work-card:hover { border-color: var(--accent); }

.work-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.work-card p {
    font-size: 14px;
    color: var(--light);
}

.work-card .arrow {
    font-size: 20px;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Book Section
   -------------------------------------------------------------------------- */
.book-section {
    padding: 100px 32px;
    background: var(--warm);
}

.book-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: center;
}

.book-cover img { width: 100%; }

.book-info h2 {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.book-info > p {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 32px;
    line-height: 1.7;
}

.rating {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 500;
}

.editions {
    font-size: 14px;
    color: var(--light);
    margin-top: 16px;
}

.editions a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.editions a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.testimonial {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
}

.testimonial img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial .text {
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 6px;
}

.testimonial .author {
    font-size: 12px;
    color: var(--light);
}

.testimonial .author strong { color: var(--black); }

/* Testimonials - large variant (book page) */
.testimonials-section {
    padding: 100px 32px;
}

.testimonials-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonials-grid .testimonial {
    background: var(--stone);
    padding: 32px;
    border-radius: 16px;
    display: block;
}

.testimonial-content {
    font-family: var(--serif);
    font-size: 17px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--light);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 100px 32px;
    text-align: center;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-inner h2 {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 16px;
}

.contact-inner > p {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.contact-links a {
    font-size: 14px;
    color: var(--light);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--stone);
    border-radius: 8px;
}

.contact-links a:hover { background: var(--border); }

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    padding: 100px 32px;
    text-align: center;
    background: var(--warm);
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 24px;
}

.cta-inner p {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 32px;
}

.cta-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.cta-links a {
    font-size: 14px;
    color: var(--light);
    text-decoration: none;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
}

.cta-links a:hover { background: var(--border); }

/* --------------------------------------------------------------------------
   Content Sections (About, Essays)
   -------------------------------------------------------------------------- */
.content-section {
    padding: 80px 32px;
}

.content-inner {
    max-width: 680px;
    margin: 0 auto;
}

.content-inner h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
    margin-top: 48px;
}

.content-inner h2:first-child { margin-top: 0; }

.content-inner p {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.8;
}

.content-inner p.lead {
    font-size: 20px;
    color: var(--black);
    line-height: 1.7;
}

.content-inner blockquote {
    font-family: var(--serif);
    font-size: 20px;
    font-style: italic;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
}

.content-inner a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-inner a:hover { color: var(--black); }

/* --------------------------------------------------------------------------
   Credentials Box (About page)
   -------------------------------------------------------------------------- */
.credentials {
    background: var(--stone);
    padding: 32px;
    border-radius: 16px;
    margin: 48px 0;
}

.credentials h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 20px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.credential-item .icon {
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.credential-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.credential-item span {
    font-size: 13px;
    color: var(--light);
}

/* --------------------------------------------------------------------------
   Newsletter Box
   -------------------------------------------------------------------------- */
.newsletter-box {
    background: var(--warm);
    padding: 40px;
    border-radius: 16px;
    margin: 48px 0;
    text-align: center;
}

.newsletter-box h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 12px;
}

.newsletter-box p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--sans);
    background: white;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Variant for stone background */
.newsletter-box.newsletter-stone {
    background: var(--stone);
}

/* --------------------------------------------------------------------------
   Essays List
   -------------------------------------------------------------------------- */
.essays-section {
    padding: 80px 32px;
}

.essays-inner {
    max-width: 800px;
    margin: 0 auto;
}

.essays-list {
    list-style: none;
}

.essay-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.essay-item:first-child { padding-top: 0; }
.essay-item:last-child { border-bottom: none; }

.essay-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.essay-item a:hover h2 { color: var(--accent); }

.essay-meta {
    font-size: 13px;
    color: var(--light);
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
}

.essay-item h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.essay-item p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

/* Coming soon state */
.coming-soon {
    text-align: center;
    padding: 80px 32px;
}

.coming-soon h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--light);
}

.coming-soon p {
    font-size: 17px;
    color: var(--lighter);
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Article (Essay detail page)
   -------------------------------------------------------------------------- */
.article-header {
    padding: 80px 32px 48px;
    background: var(--warm);
}

.article-header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.back-link {
    font-size: 14px;
    color: var(--light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
}

.back-link:hover { color: var(--accent); }

.article-meta {
    font-size: 14px;
    color: var(--light);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.article-header h1 {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-header .lead {
    font-size: 20px;
    color: var(--text);
    line-height: 1.7;
}

.article-content {
    padding: 64px 32px 80px;
}

.article-inner {
    max-width: 680px;
    margin: 0 auto;
}

.article-inner h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-inner h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-inner p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.8;
}

.article-inner blockquote {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 28px;
    margin: 40px 0;
    line-height: 1.6;
}

.article-inner ul,
.article-inner ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.article-inner li {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-inner a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-inner a:hover { color: var(--black); }

.article-inner code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
    background: var(--stone);
    padding: 2px 6px;
    border-radius: 4px;
}

.article-inner pre {
    background: var(--black);
    color: #e7e5e4;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.article-inner pre code {
    background: none;
    padding: 0;
    font-size: 14px;
}

.article-inner img {
    max-width: 100%;
    border-radius: 8px;
    margin: 32px 0;
}

.article-inner hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* Author box */
.author-box {
    background: var(--stone);
    padding: 32px;
    border-radius: 16px;
    margin-top: 64px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.author-box-text h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-box-text p {
    font-size: 14px;
    color: var(--light);
    margin-bottom: 0;
}

.author-box-text a { font-size: 14px; }

/* --------------------------------------------------------------------------
   Topics Grid (Speaking page)
   -------------------------------------------------------------------------- */
.topics-section {
    padding: 100px 32px;
}

.topics-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.topic-card {
    background: var(--stone);
    padding: 32px;
    border-radius: 16px;
}

.topic-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.topic-card p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
}

.topic-card ul {
    list-style: none;
    font-size: 14px;
    color: var(--light);
}

.topic-card ul li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.topic-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Formats Grid (Speaking page)
   -------------------------------------------------------------------------- */
.formats-section {
    padding: 100px 32px;
    background: var(--stone);
}

.formats-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.format-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.format-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.format-card .duration {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.format-card p {
    font-size: 15px;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Events List (Speaking page)
   -------------------------------------------------------------------------- */
.events-section {
    padding: 100px 32px;
}

.events-inner {
    max-width: 800px;
    margin: 0 auto;
}

.events-list {
    list-style: none;
}

.events-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-list li:last-child { border-bottom: none; }

.event-info h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-info span {
    font-size: 14px;
    color: var(--light);
}

.event-year {
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   About Section (Book page)
   -------------------------------------------------------------------------- */
.about-section {
    padding: 100px 32px;
    background: var(--stone);
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.about-inner h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 32px;
    text-align: center;
}

.about-inner p {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature {
    background: white;
    padding: 24px;
    border-radius: 12px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--light);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   FAQ Section (Hidden for SEO)
   -------------------------------------------------------------------------- */
.faq-section {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Exit Intent Popup
   -------------------------------------------------------------------------- */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 25, 23, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    background: white;
    border-radius: 16px;
    padding: 48px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.exit-popup-overlay.active .exit-popup {
    transform: translateY(0) scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--stone);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--light);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-close:hover {
    background: var(--border);
    color: var(--black);
}

.exit-popup h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--black);
}

.exit-popup > p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.exit-popup iframe {
    margin-bottom: 16px;
}

.exit-popup-dismiss {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--lighter);
    cursor: pointer;
    padding: 8px 0;
    font-family: var(--sans);
    transition: color 0.2s;
    display: block;
    margin: 0 auto;
}

.exit-popup-dismiss:hover {
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    padding: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--lighter);
    border-top: 1px solid var(--border);
}

footer a { color: inherit; }

/* --------------------------------------------------------------------------
   Mobile Menu
   -------------------------------------------------------------------------- */
.menu-toggle,
.menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--black);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.menu-overlay.open { display: block; }

/* --------------------------------------------------------------------------
   Responsive - Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero.hero-sidebar .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero.hero-sidebar .hero-image {
        max-width: 180px;
        margin: 0 auto;
    }

    .story-cards { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }

    .book-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-cover {
        max-width: 250px;
        margin: 0 auto;
    }

    .testimonials { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: 1fr; }
    .formats-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }

    .hero-badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .btn-group { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Responsive - Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .menu-toggle,
    .menu-close { display: block; }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }

    nav.open { right: 0; }

    nav a {
        display: block !important;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

    nav a.nav-cta {
        margin-top: 16px;
        text-align: center;
    }

    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: var(--black);
    }

    .header-inner { padding: 12px 20px; }

    .hero,
    .story-section,
    .work-section,
    .book-section,
    .contact-section,
    .topics-section,
    .formats-section,
    .events-section,
    .cta-section,
    .testimonials-section,
    .about-section {
        padding: 60px 20px;
    }

    .content-section,
    .essays-section {
        padding: 60px 20px;
    }

    .article-header,
    .article-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-text h1 { font-size: 32px; }
    .article-header h1 { font-size: 32px; }

    .contact-links,
    .cta-links { flex-direction: column; align-items: center; }

    .newsletter-form { flex-direction: column; }
    .newsletter-box { padding: 32px 24px; }

    .events-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .article-inner p { font-size: 17px; }
    .article-inner blockquote {
        font-size: 19px;
        padding-left: 20px;
    }

    .essay-item h2 { font-size: 22px; }

    /* Exit popup on mobile - hidden since exit intent doesn't work well */
    .exit-popup {
        padding: 32px 24px;
        max-width: 360px;
    }

    .exit-popup h3 {
        font-size: 24px;
    }
}
