/* StoryReserve — Clean, Book-Publisher Aesthetic */

:root {
    --primary: #2D5A27;      /* Forest green */
    --secondary: #D4A843;    /* Gold */
    --brown: #5C3D2E;        /* Rich brown */
    --cream: #FFF8F0;         /* Warm cream */
    --light: #F5F0E8;         /* Light cream bg */
    --text: #3A2A1A;          /* Dark brown text */
    --muted: #8B7355;         /* Muted brown */
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

/* ─── HERO ─── */
.hero {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero .mission {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    background: var(--secondary);
    color: var(--brown);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
}

.cta:hover { background: #c49638; }

/* ─── CONTAINER ─── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ─── ABOUT ─── */
.about {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 4px solid var(--secondary);
}

.about h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1.2rem;
}

.about p {
    max-width: 700px;
    margin: 0 auto 1rem;
    font-size: 1.05rem;
    color: var(--muted);
}

/* ─── SECTION TITLE ─── */
.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 2.5rem;
}

/* ─── BOOK GRID ─── */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.book-cover {
    background: var(--light);
    padding: 1.5rem;
    text-align: center;
}

.book-cover img {
    width: 140px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.book-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.book-subtitle {
    font-style: italic;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-meta {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.book-desc {
    font-size: 0.9rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s;
    text-align: center;
}

.btn:hover { background: #234a1e; }

.btn.disabled {
    background: #aaa;
    cursor: default;
}

.btn.disabled:hover { background: #aaa; }

/* ─── FOOTER ─── */
footer {
    background: var(--brown);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .book-grid { grid-template-columns: 1fr; }
    .container { padding: 2rem 1rem; }
}

/* ─── SIGNUP FORM ─── */
.signup-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
}

.signup-form input {
    padding: 0.7rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
    min-width: 180px;
    outline: none;
    transition: border-color 0.2s;
}

.signup-form input:focus {
    border-color: var(--secondary);
}

.signup-form .cta {
    background: var(--secondary);
    color: var(--brown);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.signup-form .cta:hover {
    background: #c49638;
}

@media (max-width: 480px) {
    .signup-form {
        flex-direction: column;
    }
    .signup-form input {
        width: 100%;
    }
}

/* ─── AUDIO PREVIEW IN BOOK CARD ─── */
.audio-preview {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #f5f0e8;
    border-radius: 8px;
    border: 1px solid #e0d8cc;
}

.audio-label {
    display: block;
    font-size: 0.72rem;
    color: #8B7355;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.audio-preview audio {
    width: 100%;
    height: 32px;
    border-radius: 16px;
    outline: none;
}
