
:root {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --surface-hover: #242424;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #d4a574;
    --accent-glow: rgba(212, 165, 116, 0.15);
    --radius: 8px;
    --font: system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 2rem;
    position: sticky; top: 0;
    background: var(--bg);
    z-index: 10;
}

nav {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.logo {
    font-size: 1.25rem; font-weight: 700; color: var(--accent);
    text-decoration: none; letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-muted); text-decoration: none;
    margin-left: 2rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

main { max-width: 1200px; margin: 3rem auto; padding: 0 2rem; }

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: -1px; }

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.book-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; transition: background 0.2s, transform 0.2s;
}
.book-card:hover { background: var(--surface-hover); transform: translateY(-2px); }

.book-cover {
    height: 200px; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; background: linear-gradient(135deg, var(--accent-glow), var(--surface));
    color: var(--accent);
}

.book-info { padding: 1rem; }
.book-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.book-info h3 a { color: var(--text); text-decoration: none; }
.book-info h3 a:hover { color: var(--accent); }
.book-info .author { color: var(--text-muted); font-size: 0.85rem; }
.badge {
    display: inline-block; background: var(--accent-glow); color: var(--accent);
    padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; margin-right: 0.5rem; margin-top: 0.5rem;
}
.chapters { color: var(--text-muted); font-size: 0.8rem; }

.book-detail h1 { margin-bottom: 0.5rem; }
.book-detail .meta { color: var(--text-muted); margin-bottom: 1rem; }
.synopsis { font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }

.preview { background: var(--surface); border-radius: var(--radius); padding: 2rem; margin: 2rem 0; }
.preview h2 { font-size: 1.2rem; color: var(--accent); margin-bottom: 1rem; }
.preview-content p { margin-bottom: 0.75rem; text-indent: 1.5em; }

.paywall {
    text-align: center; padding: 3rem 2rem;
    background: linear-gradient(to bottom, transparent, var(--accent-glow));
    border-radius: var(--radius);
}
.paywall p { font-size: 1.1rem; }
.paywall a { color: var(--accent); font-weight: 600; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--surface); border-radius: var(--radius); padding: 2rem;
}

.pricing-card h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent); }

.plan { margin-bottom: 1rem; }
.plan h4 { font-size: 0.9rem; color: var(--text-muted); }
.plan .price { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0; }
.plan.featured { background: var(--accent-glow); padding: 1rem; border-radius: var(--radius); }

.subtitle { color: var(--text-muted); font-size: 1.1rem; }

footer {
    text-align: center; padding: 2rem; color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4rem;
}
