/* Root Variables */
:root {
    --dark: #0f1419;
    --light: #f5f3f0;
    --accent: #8b5a6f;
    --gold: #d4a574;
    --gray: #7a7a7a;
    --border: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Georgia', 'Garamond', serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 65ch;
    color: #e8e6e3;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f0c89e;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--light);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--light);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    min-height: 100vh;
}

.hero-text h1 {
    color: var(--light);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-positioning {
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    font-family: 'Georgia', serif;
    margin-bottom: 3rem;
}

.hero-featured {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.featured-cover {
    display: block;
    width: 160px;
    margin-bottom: 1.5rem;
}

.featured-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured-label {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--accent);
    color: var(--light);
    border: 2px solid var(--accent);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--dark);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
}

.book-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.book-card:hover {
    border-color: var(--accent);
    background-color: rgba(139, 90, 111, 0.05);
}

.book-cover {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #2a1f2f 0%, #1a1420 100%);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.book-series {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.book-title {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.book-description {
    color: #c0bfbc;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.book-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.platform-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    color: #a0a0a0;
    border-radius: 2px;
}

.platform-badge.available {
    border-color: var(--gold);
    color: var(--gold);
}

.book-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.learn-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
}

.learn-more-btn:hover {
    background-color: var(--accent);
    color: var(--light);
}

/* Book Detail */
.book-detail {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
}

.book-detail .book-cover {
    display: block;
    height: auto;
    background: none;
    overflow: visible;
    margin-bottom: 0;
    position: sticky;
    top: 2rem;
}

.book-detail .book-cover img {
    display: block;
    max-height: none;
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.book-series-info {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.book-meta {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.book-blurb {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #e8e6e3;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background-color: rgba(212, 165, 116, 0.05);
    border: 1px solid var(--border);
}

.stars {
    font-size: 1.2rem;
    color: var(--gold);
}

.rating-text {
    font-size: 0.9rem;
    color: #c0bfbc;
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 4rem;
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

/* Email Section */
.email-section {
    background: linear-gradient(135deg, rgba(139, 90, 111, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    padding: 3rem;
    border: 1px solid var(--accent);
    margin-top: 4rem;
}

.email-section h3 {
    margin-top: 0;
    color: var(--light);
}

.email-section p {
    color: #c0bfbc;
    margin-bottom: 1.5rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.email-form input {
    padding: 0.9rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent);
    color: var(--light);
    font-size: 1rem;
}

.email-form input::placeholder {
    color: #7a7a7a;
}

.email-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
}

.email-form button {
    padding: 0.9rem;
    background-color: var(--accent);
    color: var(--light);
    border: 2px solid var(--accent);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.email-form button:hover {
    background-color: transparent;
    color: var(--accent);
}

.form-note {
    font-size: 0.85rem;
    color: #7a7a7a;
    margin-top: 1rem;
    text-align: center;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.about-image img {
    max-width: 100%;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Signup Section */
.signup-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 0;
}

.signup-box {
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, rgba(139, 90, 111, 0.1) 0%, rgba(212, 165, 116, 0.05) 100%);
    border: 1px solid var(--accent);
    padding: 3rem;
    border-radius: 2px;
}

.signup-box h1 {
    margin-top: 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.signup-content p {
    margin-bottom: 1.5rem;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gold);
    font-size: 0.95rem;
}

.footer-text {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .book-detail {
        grid-template-columns: 1fr;
    }
    
    .book-detail .book-cover {
        position: static;
        max-width: 300px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-detail {
        padding: 2rem 0;
    }
    
    .buy-buttons {
        flex-direction: column;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
    }
    
    .signup-box {
        padding: 2rem;
    }
    
    .signup-section {
        min-height: auto;
    }
}
