/* Ann Fendler — annfendler.com */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #fcfcfa;
    color: #333;
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

a { color: #555; }
a:hover { color: #000; }

img { max-width: 100%; height: auto; display: block; }

.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: #333; color: #fff;
    padding: 0.3rem 0.8rem; z-index: 9999;
    text-decoration: none; font-size: 0.85rem;
}
.skip-link:focus { top: 0; }


/* --- Header --- */

.site-header {
    border-bottom: 1px solid #e5e3de;
    background: #fcfcfa;
    position: sticky; top: 0; z-index: 100;
}

.header-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex; align-items: baseline; gap: 0.25rem;
}
.logo-ann {
    font-size: 1.1rem;
    color: #333;
}
.logo-fendler {
    font-size: 1.1rem;
    color: #333;
}

.main-nav ul { list-style: none; display: flex; gap: 0.1rem; }
.main-nav a {
    display: block;
    padding: 0.2rem 0.6rem;
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
}
.main-nav a:hover { color: #333; }
.main-nav a.active { color: #333; font-weight: 600; }

.mobile-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 24px; height: 18px; position: relative;
}
.mobile-toggle span {
    display: block; position: absolute; left: 0;
    width: 100%; height: 1.5px; background: #555;
    transition: all 0.2s;
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }
.mobile-toggle.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-overlay {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.25);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.mobile-overlay.is-visible { opacity: 1; pointer-events: auto; }


/* --- Page content --- */

.hero {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2.5rem;
}
.hero-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    display: block;
    margin-bottom: 0.6rem;
}
.hero h1 {
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.4;
    color: #222;
    margin-bottom: 0.8rem;
}
.hero h1 em { font-style: italic; }
.hero-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.hero-cta-group { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn-primary { background: #333; color: #fff; }
.btn-primary:hover { background: #555; color: #fff; }
.btn-outline { background: none; color: #666; border: 1px solid #ccc; }
.btn-outline:hover { border-color: #999; color: #333; }


/* --- Sections --- */

.section { max-width: 740px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.section-alt { background: #f5f4f0; max-width: none; }
.section-alt > .container { max-width: 740px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.container { max-width: 740px; margin: 0 auto; }

.section-header { margin-bottom: 1.2rem; }
.section-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: #999; display: block; margin-bottom: 0.2rem;
}
.section-title {
    font-size: 1.4rem; font-weight: normal; color: #222;
    margin-bottom: 0.3rem;
}
.section-subtitle {
    font-size: 0.95rem; color: #777; line-height: 1.7;
}


/* --- Book list --- */

.book-grid { }

.book-item {
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid #e5e3de;
    text-decoration: none;
    color: inherit;
}
.book-item:first-child { border-top: 1px solid #e5e3de; }
.book-item:hover h3 { color: #000; }
.book-item h3 {
    font-size: 1.15rem; font-weight: normal; color: #222;
    margin-bottom: 0.1rem;
}
.book-item .book-subtitle {
    font-size: 0.85rem; color: #999; display: block; margin-bottom: 0.4rem;
}
.book-item p { font-size: 0.95rem; color: #666; line-height: 1.65; }
.book-item .book-meta {
    margin-top: 0.4rem; font-size: 0.8rem; color: #aaa;
}
.book-item .book-meta span + span::before { content: ' · '; }


/* --- Page hero (subpages) --- */

.page-hero {
    max-width: 740px; margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
}
.page-hero h1 {
    font-size: 1.6rem; font-weight: normal; color: #222;
    line-height: 1.35; margin-bottom: 0.4rem;
}
.page-hero h1 em { font-style: italic; }
.page-hero .page-intro { font-size: 1rem; color: #777; }


/* --- Prose --- */

.prose {
    max-width: 740px; margin: 0 auto;
    font-size: 1rem; line-height: 1.8; color: #555;
}
.prose h2 {
    font-size: 1.25rem; font-weight: normal; color: #222;
    margin: 2rem 0 0.5rem;
}
.prose h3 { font-size: 1.05rem; font-weight: 600; color: #333; margin: 1.2rem 0 0.4rem; }
.prose p { margin: 0 0 0.9rem; }
.prose strong { color: #333; font-weight: 600; }
.prose em { font-style: italic; color: #444; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0.4rem 0 1rem; }
.prose li { margin: 0.25rem 0; }
.prose a { color: #555; }
.prose a:hover { color: #000; }

.callout {
    border-left: 2px solid #ccc;
    padding: 0.8rem 1rem;
    margin: 1.2rem 0;
    background: #f5f4f0;
}
.callout p { margin: 0; font-size: 0.85rem; color: #666; }

.info-card {
    border: 1px solid #e5e3de;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}
.info-card h3 {
    font-size: 0.95rem; font-weight: normal; color: #222;
    margin-bottom: 0.3rem;
}
.info-card p { color: #666; font-size: 0.85rem; line-height: 1.7; margin: 0; }


/* --- Volume list (Compact) --- */

.volume-grid { max-width: 740px; margin: 0 auto; }
.volume-item {
    display: flex; gap: 0.8rem; align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e5e3de;
}
.volume-item:first-child { border-top: 1px solid #e5e3de; }
.volume-num {
    flex-shrink: 0; width: 1.5rem;
    font-size: 0.85rem; color: #aaa; text-align: right;
}
.volume-text h4 { font-size: 1rem; font-weight: 600; color: #333; margin-bottom: 0.05rem; }
.volume-text p { font-size: 0.88rem; color: #999; line-height: 1.5; margin: 0; }


/* --- Parts list (Complete) --- */

.parts-list { max-width: 740px; margin: 0 auto; }
.part-item {
    display: flex; gap: 0.8rem; align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e3de;
}
.part-item:first-child { border-top: 1px solid #e5e3de; }
.part-num {
    flex-shrink: 0; width: 1.5rem;
    font-size: 0.88rem; color: #aaa; text-align: right;
}
.part-info h4 { font-size: 1rem; font-weight: 600; color: #333; margin-bottom: 0.05rem; }
.part-info p { font-size: 0.85rem; color: #999; margin: 0; }


/* --- Chapter list (ARFID) --- */

.chapter-grid { max-width: 740px; margin: 0 auto; }
.chapter-item {
    display: flex; gap: 0.8rem; align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e3de;
}
.chapter-item:first-child { border-top: 1px solid #e5e3de; }
.chapter-num {
    flex-shrink: 0; width: 1.2rem;
    font-size: 0.85rem; color: #aaa; text-align: right;
}
.chapter-text h4 { font-size: 0.95rem; font-weight: 600; color: #333; margin-bottom: 0.05rem; }
.chapter-text p { font-size: 0.85rem; color: #999; line-height: 1.5; margin: 0; }


/* --- Stats --- */

.stats-row { display: flex; gap: 2.5rem; justify-content: center; padding: 1rem 0; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.4rem; color: #333; }
.stat-label { font-size: 0.68rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-top: 0.15rem; }


/* --- Feature list --- */

.feature-list {
    list-style: none; padding: 0;
    max-width: 680px; margin: 0 auto;
}
.feature-list li {
    padding: 0.4rem 0 0.4rem 0.9rem;
    border-bottom: 1px solid #e5e3de;
    font-size: 0.95rem; color: #666;
    position: relative;
}
.feature-list li:first-child { border-top: 1px solid #e5e3de; }
.feature-list li::before {
    content: '–'; position: absolute; left: 0; color: #bbb;
}


/* --- Footer --- */

.site-footer {
    border-top: 1px solid #e5e3de;
    padding: 2rem 1.5rem 1.2rem;
    font-size: 0.88rem;
    color: #999;
}

.footer-container { max-width: 740px; margin: 0 auto; }
.footer-grid { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-brand { flex: 1; min-width: 200px; }

.footer-logo {
    display: inline-flex; align-items: baseline; gap: 0.2rem;
    text-decoration: none; margin-bottom: 0.3rem;
}
.footer-logo .logo-ann { font-size: 0.95rem; color: #555; }
.footer-logo .logo-fendler { font-size: 0.95rem; color: #555; }

.footer-tagline { font-size: 0.85rem; color: #aaa; }
.footer-email { margin-top: 0.3rem; }
.footer-email a { color: #888; font-size: 0.85rem; }

.footer-col { min-width: 120px; }
.footer-col h4 {
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: #bbb; margin-bottom: 0.4rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.25rem; }
.footer-col a { color: #999; font-size: 0.85rem; text-decoration: none; }
.footer-col a:hover { color: #555; }

.footer-bottom { border-top: 1px solid #e5e3de; padding-top: 1rem; }
.footer-disclaimer { font-size: 0.7rem; color: #bbb; line-height: 1.55; margin-bottom: 0.3rem; }
.footer-legal { font-size: 0.78rem; color: #ccc; }
.footer-legal a { color: #bbb; }


.contact-form { max-width: 480px; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.9rem; color: #666; margin-bottom: 0.2rem; }
.form-field input,
.form-field textarea {
    width: 100%; padding: 0.5rem 0.6rem;
    font-family: inherit; font-size: 1rem;
    border: 1px solid #ddd; background: #fff; color: #333;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: #999; }
.form-field textarea { resize: vertical; }


/* --- Responsive --- */


@media (max-width: 600px) {
    .mobile-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -220px;
        width: 200px; height: 100vh;
        background: #fcfcfa; border-left: 1px solid #e5e3de;
        padding: 3.5rem 1rem 2rem;
        transition: right 0.25s; z-index: 100;
    }
    .main-nav.is-open { right: 0; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { font-size: 0.9rem; padding: 0.5rem 0; }
    .footer-grid { flex-direction: column; gap: 1.2rem; }
    .stats-row { gap: 1.5rem; }
    .hero-cta-group { flex-direction: column; }
    .btn { display: block; text-align: center; }
}
