/* ============================================
   Purple Squirrel Media — Publisher Site
   Clean editorial, warm neutrals, purple accent
   ============================================ */

:root {
    --ink: #1a1a1a;
    --paper: #faf9f6;
    --cream: #f3f1ec;
    --muted: #6b6b6b;
    --purple: #5b2d8e;
    --purple-light: #f0e8f7;
    --purple-dark: #3d1d5e;
    --live: #2d8a4e;
    --pub: #b8860b;
    --draft: #888;
    --print: #2d5a27;
    --radius: 8px;
    --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ink);
}
.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
}

/* Hero */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 100px 32px 80px;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.hero-tag {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 640px;
}
.hero h1 em {
    font-style: italic;
    color: #c9a0ff;
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-n {
    display: block;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-l {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--purple);
    color: white;
}
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost {
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}
.btn-ghost:hover {
    border-color: white;
    color: white;
}

/* Platforms */
.platforms {
    background: var(--cream);
    padding: 24px 32px;
}
.platforms-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.platform {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.platform-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
    opacity: 0.3;
}

/* Sections */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 32px;
}
.section-header {
    margin-bottom: 48px;
}
.section-tag {
    display: inline-block;
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 8px;
}
.section h2 {
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.book-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}
.book-card:hover { transform: translateY(-4px); }
.book-cover {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
}
.badge.live { color: var(--live); }
.badge.pub { color: var(--pub); }
.badge.draft { color: var(--draft); }
.badge.print { color: var(--print); }
.book-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
}
.book-card .book-author {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Authors Grid */
.authors-section {
    background: var(--cream);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.authors-section .section-header,
.authors-section .authors-grid {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}
.authors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.author-card {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.06);
}
.author-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.author-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.author-focus {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 12px;
}
.author-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.author-link {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--purple);
}
.author-link:hover { text-decoration: underline; }

/* About Strip */
.about-strip {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.about-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 24px;
}
.about-text p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 16px;
}
.about-services h3 {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 16px;
}
.about-services ul {
    list-style: none;
}
.about-services li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.95rem;
    color: var(--muted);
}
.about-services li:first-child { border-top: 1px solid rgba(0,0,0,0.06); }

/* Contact Strip */
.contact-strip {
    text-align: center;
}
.contact-strip h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 12px;
}
.contact-lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}
.contact-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius);
    padding: 28px 36px;
    text-align: left;
    min-width: 240px;
}
.contact-card h3 {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 8px;
}
.contact-card a {
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    transition: border-color 0.2s;
}
.contact-card a:hover { border-color: var(--purple); }

/* Footer */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.6);
    padding: 48px 32px 24px;
    margin-top: 0;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}
.footer-sub { font-size: 0.8rem; margin-top: 2px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-copy {
    max-width: var(--max-w);
    margin: 16px auto 0;
    font-size: 0.75rem;
    opacity: 0.4;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .book-grid { grid-template-columns: repeat(3, 1fr); }
    .authors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding: 16px 32px;
        gap: 16px;
    }
    .nav-toggle { display: flex; }

    .hero { padding: 60px 24px 48px; }
    .hero h1 { font-size: 2.8rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }

    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .authors-grid { grid-template-columns: 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-cards { flex-direction: column; align-items: center; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .section { padding: 48px 24px; }
}

@media (max-width: 480px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero h1 { font-size: 2.2rem; }
}
