/* ═══════════════════════════════════════════════════════
   FoxIsland Press — Shared Stylesheet
   style.css
   ═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── THEME: BLUE (default) ─── */
:root {
    --navy: #1B2A4A;
    --navy-deep: #0F1A2E;
    --gold: #C4985A;
    --gold-bright: #FFD782;
    --cream: #F5F0E8;
    --cream-warm: #FAF8F4;
    --text-dark: #2A2A2A;
    --text-muted: #6B6B6B;
    --green: #4A7A5A;
    --newsletter-bg: #2F5C42;
}

/* ─── THEME: GREEN ─── */
[data-theme="green"] {
    --navy: #1E3A2A;
    --navy-deep: #0F2418;
    --gold: #B8934A;
    --gold-bright: #E8CC7A;
    --cream: #EDF2EC;
    --cream-warm: #F4F7F3;
    --green: #3A6B4A;
    --newsletter-bg: #2A5438;
}

/* ─── THEME: RED ─── */
[data-theme="red"] {
    --navy: #3A1B2A;
    --navy-deep: #24101A;
    --gold: #C4855A;
    --gold-bright: #E8B07A;
    --cream: #F2EDEB;
    --cream-warm: #F8F4F2;
    --green: #6B4A4A;
    --newsletter-bg: #5C3842;
}



/* ─── THEME: HIGH CONTRAST ─── */
[data-theme="contrast"] {
    --navy: #000000;
    --navy-deep: #000000;
    --gold: #FFD700;
    --gold-bright: #FFFF00;
    --cream: #FFFFFF;
    --cream-warm: #FFFFFF;
    --text-dark: #000000;
    --text-muted: #222222;
    --green: #000000;
    --newsletter-bg: #000000;
}
[data-theme="contrast"] nav { border-bottom: 3px solid #FFD700; }
[data-theme="contrast"] .book-card,
[data-theme="contrast"] .news-item { border: 2px solid #000; }
[data-theme="contrast"] .hero h1,
[data-theme="contrast"] .hero-tagline,
[data-theme="contrast"] .hero-subtitle,
[data-theme="contrast"] .hero-series,
[data-theme="contrast"] .hero-label { color: #FFFFFF; }
[data-theme="contrast"] .nav-links a { color: #FFFFFF; }
[data-theme="contrast"] .nav-links a:hover,
[data-theme="contrast"] .nav-links a.active { color: #FFFF00; }
[data-theme="contrast"] footer { border-top: 3px solid #FFD700; }
[data-theme="contrast"] footer a { color: #FFD700; }
[data-theme="contrast"] a { text-decoration-thickness: 2px; }
[data-theme="contrast"] .book-link { color: #000000; border-bottom-color: #FFD700; }
[data-theme="contrast"] .hero-rule { background: #FFD700; height: 3px; }
[data-theme="contrast"] .category-divider { background: linear-gradient(to right, #FFD700, transparent); }


/* ─── BASE TYPOGRAPHY ─── */
body {
    font-family: 'Lora', Georgia, serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.75;
    font-size: 17px;
}


/* ─── NAVIGATION ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--navy-deep);
    padding: 12px 0;
    border-bottom: 2px solid var(--gold);
}
.nav-inner {
    max-width: 960px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-bright); font-size: 20px; font-weight: 700;
    text-decoration: none;
}
.nav-links a {
    color: rgba(255,255,255,0.9); text-decoration: none;
    font-family: 'Lora', serif; font-size: 14px;
    margin-left: 24px; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-bright); }
.nav-divider { color: rgba(255,255,255,0.2); margin-left: 24px; }


/* ─── HERO ─── */
.hero {
    background: var(--navy);
    padding: 130px 24px 70px;
    text-align: center;
    position: relative;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-label {
    font-family: 'Lora', serif; font-size: 14px;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 16px;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    color: #FFFFFF; font-size: 48px; font-weight: 700;
    line-height: 1.1; margin-bottom: 16px;
}
.hero-subtitle {
    font-family: 'Cormorant Garamond', serif; font-size: 20px;
    color: rgba(255,255,255,0.85); margin-bottom: 24px;
}
.hero-rule { width: 60px; height: 2px; background: var(--gold); margin: 20px auto; }
.hero-tagline {
    color: rgba(255,255,255,0.85); font-size: 16px;
    max-width: 560px; margin: 0 auto;
}
.hero-series {
    font-family: 'Lora', serif; font-size: 12px;
    color: rgba(255,255,255,0.5); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 14px;
}
.hero-series a {
    color: var(--gold); text-decoration: none;
    border-bottom: 1px solid rgba(196,152,90,0.4);
    padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.hero-series a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.hero-cover {
    display: block; width: 220px; height: auto;
    margin: 0 auto 32px; border-radius: 4px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.4);
}
.status-badge {
    display: inline-block; background: var(--gold); color: white;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; padding: 6px 18px; border-radius: 3px; margin-top: 16px;
}


/* ─── SECTIONS ─── */
section { padding: 60px 24px; }
.section-inner { max-width: 680px; margin: 0 auto; }
.section-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy); font-size: 30px; font-weight: 700;
    margin-bottom: 22px; line-height: 1.2;
}
section p { margin-bottom: 18px; }
.context { background: var(--cream-warm); }


/* ─── CATEGORY (homepage) ─── */
.category { padding: 60px 24px 40px; }
.category-inner { max-width: 900px; margin: 0 auto; }
.category-label {
    font-family: 'Lora', serif; font-size: 13px;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 8px;
}
.category-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy); font-size: 34px; font-weight: 700;
    margin-bottom: 32px;
}
.category-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 40px;
}


/* ─── BOOK CARDS ─── */
.book-card {
    display: flex; gap: 32px; background: white;
    border: 1px solid #E0D8CC; border-radius: 8px;
    padding: 32px; margin-bottom: 28px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.book-card:hover { box-shadow: 0 4px 20px rgba(27,42,74,0.1); border-color: var(--gold); }
.book-cover {
    min-width: 140px; width: 140px; height: 210px;
    border-radius: 4px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18); background: var(--navy);
}
.book-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-cover.is-series { min-width: 200px; width: 200px; height: 260px; background: transparent; box-shadow: none; }
.book-cover.is-series img { object-fit: contain; }
.book-cover-text {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-bright); font-size: 14px; font-weight: 700;
    text-align: center; padding: 12px; line-height: 1.3;
}
.book-info { flex: 1; }
.book-info h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy); font-size: 26px; font-weight: 700;
    margin-bottom: 4px; line-height: 1.2;
}
.book-info .book-subtitle { color: var(--gold); font-size: 14px; font-style: italic; margin-bottom: 4px; }
.book-info .book-author { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.book-info p { font-size: 15px; line-height: 1.65; color: var(--text-dark); margin-bottom: 16px; }
.book-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.book-meta span { margin-right: 16px; }
.book-link {
    display: inline-block; font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-weight: 700; color: var(--navy);
    text-decoration: none; border-bottom: 2px solid var(--gold);
    padding-bottom: 2px; transition: color 0.2s;
}
.book-link:hover { color: var(--gold); }
.book-status {
    display: inline-block; background: var(--gold); color: white;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; padding: 3px 10px; border-radius: 3px; margin-left: 12px;
}
a.book-status { text-decoration: none; transition: background 0.2s, color 0.2s; }
a.book-status:hover { background: var(--gold-bright); color: var(--navy); }
.about-book p.lead {
    font-size: 19px; line-height: 1.7; color: var(--navy);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; margin-bottom: 28px;
}


/* ─── BOOK SIGNUP ─── */
.book-signup { background: var(--cream-warm); padding: 50px 24px; }
.book-signup-inner {
    max-width: 580px; margin: 0 auto; text-align: center;
    background: white; border: 1px solid #E0D8CC; border-radius: 10px;
    padding: 36px 32px; box-shadow: 0 4px 20px rgba(27,42,74,0.06);
}
.book-signup-icon { font-size: 26px; margin-bottom: 10px; color: var(--gold); }
.book-signup h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy); font-size: 26px; font-weight: 700;
    margin-bottom: 10px; line-height: 1.25;
}
.book-signup p.book-signup-lead { color: var(--text-dark); font-size: 15px; margin-bottom: 22px; line-height: 1.6; }
.book-signup-form { margin: 20px auto; }
.book-signup-fineprint { color: var(--text-muted); font-size: 12px; margin-top: 14px; }


/* ─── CALLOUT / SERIES BAND ─── */
.callout { background: var(--green); padding: 40px 24px; text-align: center; }
.callout-inner { max-width: 700px; margin: 0 auto; }
.callout h2 { font-family: 'Cormorant Garamond', serif; color: #FFFFFF; font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.callout p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 20px; }
.callout-btn {
    display: inline-block; font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-weight: 700; color: var(--green);
    background: white; text-decoration: none;
    padding: 12px 36px; border-radius: 4px; transition: background 0.2s;
}
.callout-btn:hover { background: var(--gold-bright); }

.series-band { background: var(--green); padding: 50px 24px; text-align: center; }
.series-band-inner { max-width: 700px; margin: 0 auto; }
.series-band-label {
    font-family: 'Lora', serif; font-size: 12px;
    color: rgba(255,255,255,0.7); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 14px;
}
.series-band h2 {
    font-family: 'Cormorant Garamond', serif; color: #FFFFFF;
    font-size: 28px; font-weight: 700; margin-bottom: 14px; line-height: 1.2;
}
.series-band p { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 22px; line-height: 1.65; }
.series-band-btn {
    display: inline-block; font-family: 'Cormorant Garamond', serif;
    font-size: 16px; font-weight: 700; color: var(--green);
    background: white; text-decoration: none;
    padding: 12px 36px; border-radius: 4px; transition: background 0.2s;
}
.series-band-btn:hover { background: var(--gold-bright); }


/* ─── AUTHOR SECTION ─── */
.author-section { background: var(--navy); padding: 60px 24px; text-align: center; }
.author-section .section-inner { max-width: 600px; margin: 0 auto; }
.author-section h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-bright); font-size: 32px; font-weight: 700; margin-bottom: 20px;
}
.author-section p { color: #FFF5E0; font-size: 16px; line-height: 1.75; margin-bottom: 16px; }


/* ─── NEWSLETTER ─── */
.newsletter { background: var(--newsletter-bg); padding: 70px 24px; text-align: center; }
.newsletter-inner { max-width: 640px; margin: 0 auto; }
.newsletter-label {
    font-family: 'Lora', serif; font-size: 12px;
    color: var(--gold-bright); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 14px;
}
.newsletter h2 {
    font-family: 'Cormorant Garamond', serif; color: #FFFFFF;
    font-size: 34px; font-weight: 700; margin-bottom: 14px; line-height: 1.2;
}
.newsletter p.newsletter-lead { color: rgba(255,255,255,0.92); font-size: 17px; margin-bottom: 28px; line-height: 1.6; }
.newsletter-form-wrap { max-width: 460px; margin: 0 auto; }
.newsletter-fineprint { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 20px; }


/* ─── NEWS PAGE ─── */
.news-section { padding: 60px 24px; }
.news-inner { max-width: 780px; margin: 0 auto; }
.news-item {
    background: white; border: 1px solid #E0D8CC; border-radius: 8px;
    padding: 40px; margin-bottom: 40px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.news-item:hover { box-shadow: 0 4px 20px rgba(27,42,74,0.1); border-color: var(--gold); }
.news-date {
    font-family: 'Lora', serif; font-size: 13px;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 8px;
}
.news-headline {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy); font-size: 28px; font-weight: 700;
    line-height: 1.2; margin-bottom: 8px;
}
.news-subhead { color: var(--text-muted); font-size: 16px; font-style: italic; line-height: 1.5; margin-bottom: 20px; }
.news-rule { width: 50px; height: 2px; background: var(--gold); margin-bottom: 24px; }
.news-body { font-size: 16px; line-height: 1.8; color: var(--text-dark); }
.news-body p { margin-bottom: 18px; }
.news-body p:last-child { margin-bottom: 0; }
.news-book-link {
    display: flex; align-items: center; gap: 20px;
    background: var(--cream); border-radius: 6px; padding: 20px;
    margin: 28px 0; text-decoration: none; transition: background 0.2s;
}
.news-book-link:hover { background: #EDE7DC; }
.news-book-link img {
    width: 70px; height: 105px; border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); object-fit: cover; flex-shrink: 0;
}
.news-book-link-text { flex: 1; }
.news-book-link-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.2;
}
.news-book-link-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.news-book-link-cta {
    font-family: 'Cormorant Garamond', serif; font-size: 15px;
    font-weight: 700; color: var(--navy);
    border-bottom: 2px solid var(--gold); padding-bottom: 1px; white-space: nowrap;
}
.news-contact { margin-top: 28px; padding-top: 24px; border-top: 1px solid #E0D8CC; }
.news-contact p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.news-contact a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); }
.news-contact a:hover { color: var(--gold); }


/* ─── CRISIS LINE ─── */
.crisis {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6;
}


/* ─── FOOTER ─── */
footer {
    background: var(--navy-deep); color: rgba(255,255,255,0.75);
    padding: 40px 24px; text-align: center; font-size: 14px;
}
footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-bright); }
.footer-nav { margin-bottom: 16px; }
.footer-nav a { margin: 0 10px; }


/* ─── ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ─── THEME SWITCHER ─── */
.theme-switcher {
    position: fixed; bottom: 20px; right: 20px; z-index: 200;
    display: flex; align-items: center; gap: 0;
    background: var(--navy-deep); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px; padding: 6px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: opacity 0.3s;
}
.theme-switcher:hover { border-color: var(--gold); }
.theme-dot {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    margin: 0 3px;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { border-color: var(--gold-bright); }
.theme-dot[data-theme="blue"]  { background: #1B2A4A; }
.theme-dot[data-theme="green"] { background: #1E3A2A; }
.theme-dot[data-theme="red"]   { background: #3A1B2A; }
.theme-dot[data-theme="contrast"] { background: #000000; border: 2px solid #FFD700; }


/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .hero h1 { font-size: 34px; }
    .book-card { flex-direction: column; gap: 20px; align-items: center; text-align: center; }
    .book-cover { min-width: 120px; width: 120px; height: 170px; }
    .nav-links a { margin-left: 12px; font-size: 12px; }
    .news-item { padding: 28px 20px; }
    .news-headline { font-size: 24px; }
    .news-book-link { flex-direction: column; text-align: center; }
}
