/* ==========================================================================
   Seeds of Tamuri - Main Stylesheet
   Author: Omar E. O.
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-amber: #e8b87d;
    --color-amber-dim: #c49a5f;
    --color-amber-glow: rgba(232, 184, 125, 0.15);
    --color-text: #f5f0eb;
    --color-text-dim: #9a958f;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', sans-serif;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--color-amber);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-amber);
}

/* ==========================================================================
   4. Background Effects
   ========================================================================== */

/* Video Background (Homepage) */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* Fallback poster/image */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: -1;
}


/* Grain Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   5. Layout Containers
   ========================================================================== */

/* Homepage Container - Content at bottom */
.container--home {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem 3rem;
}

/* Page Container - Scrollable content */
.container--page {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Legacy support - defaults to home layout */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem 3rem;
}

/* ==========================================================================
   6. Animations
   ========================================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   7. Homepage Content Section
   ========================================================================== */

.content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    animation: fadeUp 1s ease-out 0.5s both;
    position: relative;
    padding: 2.5rem 2rem;
}

.content::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -120px;
    right: -120px;
    bottom: -60px;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   8. Hero Section (Book Page)
   ========================================================================== */

.hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeUp 1s ease-out 0.3s both;
}

/* ==========================================================================
   9. Typography - Titles & Headings
   ========================================================================== */

.book-cover {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 3rem;
    border-radius: 4px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(232, 184, 125, 0.08);  /* subtle amber glow */
    animation: fadeUp 1s ease-out 0.4s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-4px);  /* lifts on hover */
    box-shadow: /* intensifies glow */
}


.book-title {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.series-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Hero series name - slightly larger */
.hero .series-name {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.genre-tags {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 0.5rem;
}

.coming-soon {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-amber);
    margin-bottom: 2rem;
}

/* Hero coming soon - dimmer */
.hero .coming-soon {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin-bottom: 0;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   10. Epigraph
   ========================================================================== */

.epigraph {
    margin-bottom: 2rem;
}

.epigraph-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.epigraph-source {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-amber-dim);
    letter-spacing: 0.05em;
}

/* Epigraph Block Style (Book Page) */
.epigraph--block {
    margin: 3rem 0;
    text-align: center;
    padding: 2rem;
    background: rgba(232, 184, 125, 0.03);
    border-left: 2px solid var(--color-amber-dim);
    animation: fadeUp 1s ease-out 0.9s both;
}

.epigraph--block .epigraph-text {
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   11. Divider
   ========================================================================== */

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-amber-dim), transparent);
    margin: 0 auto 2rem;
}

/* Divider with more spacing (Book Page) */
.divider--spaced {
    margin: 0 auto 3rem;
}

/* ==========================================================================
   12. Blurb Section (Book Page)
   ========================================================================== */

.blurb-section {
    margin-bottom: 3rem;
    animation: fadeUp 1s ease-out 0.5s both;
}

.blurb {
    text-align: left;
}

.blurb p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.blurb p:last-child {
    margin-bottom: 0;
}

.blurb .highlight {
    color: var(--color-amber);
    font-weight: 400;
}

/* ==========================================================================
   13. Comp Titles
   ========================================================================== */

.comp-titles {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-text-dim);
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(232, 184, 125, 0.15);
    border-bottom: 1px solid rgba(232, 184, 125, 0.15);
}

.comp-titles em {
    color: var(--color-amber-dim);
    font-style: italic;
}

/* ==========================================================================
   14. Themes Grid (Book Page)
   ========================================================================== */

.themes-section {
    margin: 3rem 0;
    animation: fadeUp 1s ease-out 0.7s both;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.theme-item {
    text-align: center;
    padding: 1.25rem 0.875rem;
    background: rgba(232, 184, 125, 0.03);
    border: 1px solid rgba(232, 184, 125, 0.1);
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.theme-item:hover {
    border-color: rgba(232, 184, 125, 0.25);
    background: rgba(232, 184, 125, 0.05);
}

.theme-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-amber);
    margin-bottom: 0.5rem;
}

.theme-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* ==========================================================================
   15. Signup Section
   ========================================================================== */

.signup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.signup-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dim);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.signup-note {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin-top: 0.5rem;
}

/* ==========================================================================
   16. CTA Section (Book Page)
   ========================================================================== */

.cta-section {
    margin: 4rem 0 2rem;
    text-align: center;
    animation: fadeUp 1s ease-out 1.1s both;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.cta-subheading {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
}

.cta-section .signup-note {
    margin-top: 1rem;
}

/* ==========================================================================
   17. Author Section (Book Page)
   ========================================================================== */

.author-section {
    margin: 4rem 0 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(232, 184, 125, 0.15);
    text-align: center;
    animation: fadeUp 1s ease-out 1.3s both;
}

.author-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.author-bio {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-dim);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.author-section .author-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-amber);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

/* Homepage Footer */
.footer {
    margin-top: 2.5rem;
    text-align: center;
}

.footer .author-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.footer .series-name {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Page Footer */
.footer--page {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 184, 125, 0.1);
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.footer-link {
    color: var(--color-amber-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-amber);
}

/* ==========================================================================
   19. MailerLite Form Overrides
   ========================================================================== */

.ml-embedded {
    width: 100%;
}

.ml-form-embedWrapper {
    background: transparent !important;
    border: none !important;
}

.ml-form-embedBody {
    padding: 0 !important;
    background: transparent !important;
}

.ml-form-embedBody .ml-form-embedContent {
    margin: 0 !important;
    padding: 0 !important;
}

.ml-form-formContent {
    padding: 0 !important;
}

.ml-form-fieldRow {
    margin-bottom: 0.75rem !important;
}

.ml-form-fieldRow input[type="email"] {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--color-text) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(232, 184, 125, 0.25) !important;
    border-radius: 4px !important;
    padding: 0.875rem 1rem !important;
    height: auto !important;
}

.ml-form-fieldRow input[type="email"]::placeholder {
    color: var(--color-text-dim) !important;
}

.ml-form-fieldRow input[type="email"]:focus {
    border-color: var(--color-amber) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: none !important;
}

.ml-form-embedSubmit button {
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--color-bg) !important;
    background: var(--color-amber) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0.875rem 1rem !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    height: auto !important;
    width: 100% !important;
}

.ml-form-embedSubmit button:hover {
    background: var(--color-text) !important;
    transform: translateY(-2px) !important;
}

.ml-form-successBody {
    background: rgba(232, 184, 125, 0.1) !important;
    border: 1px solid rgba(232, 184, 125, 0.3) !important;
    border-radius: 4px !important;
    padding: 1.25rem !important;
}

.ml-form-successBody .ml-form-successContent {
    color: var(--color-amber) !important;
    font-family: var(--font-display) !important;
}

/* ==========================================================================
   20. Responsive - Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .container--page {
        padding: 6rem 1.25rem 3rem;
    }

    .book-title {
        font-size: 2.5rem;
    }

    .blurb p {
        font-size: 0.95rem;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .epigraph-text {
        font-size: 1.15rem;
    }

    .cta-heading {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   21. Responsive - Mobile (max-width: 600px)
   ========================================================================== */

@media (max-width: 600px) {
    .container,
    .container--home {
        padding: 1.5rem 1.25rem 2rem;
    }

    .epigraph-text {
        font-size: 1.15rem;
    }

    .book-title {
        font-size: 2.4rem;
    }

    .footer .author-name {
        font-size: 1.1rem;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   22. Responsive - Small Mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.95rem;
    }

    .book-title {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.3rem;
    }
}
