:root {
    /* Fantasy Dark Theme Palette (Lighter Navy) */
    --bg-main: #141f33; /* Deep navy, lighter than midnight */
    --bg-alt: #1c2a42; /* Lighter navy for cards/sections */
    --bg-form: #253653; /* Input backgrounds */
    
    --color-heading: #EAE6E1; /* Soft parchment white for headings */
    --color-text: #B4BCC8; /* Muted silver-blue text */
    --color-text-muted: #828E9F;
    
    --color-gold: #C6A664; /* More muted, metallic gold instead of yellow */
    --color-gold-hover: #E2C98F; /* Lighter metallic for hover */
    
    --color-border: #324766; /* Subtle section dividers */
    --color-border-glow: rgba(198, 166, 100, 0.4); /* Gold glow for focus states */

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.4);
    --shadow-gold: 0 0 15px rgba(198, 166, 100, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, #20314d 0%, var(--bg-main) 60%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: 0.02em; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.85rem; }

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
    color: var(--color-gold-hover);
    text-shadow: 0 0 8px rgba(226, 201, 143, 0.4);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-navy { color: var(--color-heading); } /* Re-mapped for dark theme */
.text-gold { color: var(--color-gold); }
.bg-alt { background-color: var(--bg-alt); }
.section-padding { padding: 6rem 0; }
.content-wrapper { max-width: 900px; margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--bg-main);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    color: #141f33;
    box-shadow: 0 0 20px rgba(198, 166, 100, 0.4);
    transform: translateY(-2px);
    text-shadow: none;
}

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

.btn-outline:hover {
    background-color: rgba(198, 166, 100, 0.1);
    color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    box-shadow: inset 0 0 10px rgba(198, 166, 100, 0.2);
}

/* Forms (Robust & Uniform) */
.contact-form-container {
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: var(--bg-form);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-heading);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group textarea {
    min-height: 15rem; /* Large, generous text box */
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-border-glow);
    background-color: #1c2a40;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(10, 15, 24, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.25rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px; /* Increased logo size */
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.02);
}

.book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.book-cover-large {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0 auto;
    display: block;
}

.book-card-full:hover .book-cover {
    transform: scale(1.03);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--color-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 6px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-gold);
    text-shadow: var(--shadow-gold);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold);
    transition: width var(--transition-fast);
    box-shadow: var(--shadow-gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gold);
    cursor: pointer;
}

/* Page: Index (Home) */
.hero {
    text-align: center;
    padding: 8rem 0 7rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/navy_gold_clouds.png') center/cover;
    opacity: 0.4;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, var(--bg-main) 0%, transparent 50%, var(--bg-main) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Internal Page Hero Banners */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/navy_gold_clouds.png') center/cover;
    opacity: 0.4;
    z-index: 0;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, var(--bg-main) 0%, transparent 50%, var(--bg-main) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner .page-intro {
    max-width: 100%;
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    max-width: 900px; /* Epic scale */
    margin: 0 auto 3rem;
    border: 2px solid var(--color-gold); /* Matched to the 'Multiple Worlds' text */
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    display: block;
}

.hero p {
    font-size: 1.6rem;
    color: var(--color-heading);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-weight: 300;
}

.hero .hero-sub {
    font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-display);
}

/* Author Showcase */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.author-card {
    background: var(--bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    border-color: rgba(198, 166, 100, 0.3);
}

.author-card-img {
    /* UNIFORM IMAGES MAGIC */
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--color-border);
    filter: brightness(0.9) contrast(1.1); /* Subtle gritty fantasy graded look */
    transition: filter var(--transition-normal);
}

.author-card:hover .author-card-img {
    filter: brightness(1) contrast(1.1);
}

.author-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-card-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.author-card-genre {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.author-card-series {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.5;
}

.author-card-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Expanded Author Profiles (authors.html) */
.page-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.page-intro p {
    font-size: 1.25rem;
    color: var(--color-text);
}

.author-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid var(--color-border);
}

.author-profile:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.author-profile-img img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.author-profile-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.author-profile-content .genre {
    display: block;
    color: var(--color-gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 2rem;
}

.author-profile-content .bio {
    font-size: 1.15rem;
    color: var(--color-heading);
    margin-bottom: 2.5rem;
}

.series-list {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    margin-bottom: 2.5rem;
}

.series-list h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.series-list ul {
    list-style: none;
}

.series-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.series-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

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

.author-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Catalog Tables */
.catalog-section {
    margin-bottom: 5rem;
}

.catalog-section h3 {
    font-size: 2rem;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    color: var(--color-heading);
}

.catalog-series {
    margin-bottom: 4rem;
}

.catalog-series h4 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-alt);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.catalog-table th {
    background: var(--bg-form);
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--color-border);
}

.catalog-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.catalog-table tr:last-child td {
    border-bottom: none;
}

.catalog-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-short);
}

.status-available {
    background: rgba(46, 125, 50, 0.2);
    color: #81C784;
    border: 1px solid rgba(129, 199, 132, 0.3);
}

a.status-available:hover {
    background: rgba(46, 125, 50, 0.4);
    color: #A5D6A7;
    border-color: rgba(129, 199, 132, 0.6);
}

.status-coming {
    background: rgba(198, 166, 100, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(198, 166, 100, 0.3);
}

a.status-coming:hover {
    background: rgba(198, 166, 100, 0.3);
    color: #FFE082;
    border-color: rgba(198, 166, 100, 0.6);
}

.status-preorder {
    background: rgba(144, 202, 249, 0.2);
    color: #90CAF9;
    border: 1px solid rgba(144, 202, 249, 0.3);
}

a.status-preorder:hover {
    background: rgba(144, 202, 249, 0.4);
    color: #BBDEFB;
    border-color: rgba(144, 202, 249, 0.6);
}

/* Celestial Divider */
.celestial-divider {
    text-align: center;
    color: var(--color-gold);
    font-size: 1.5rem;
    padding: 3rem 0;
    letter-spacing: 0.5rem;
    opacity: 0.7;
    text-shadow: 0 0 15px rgba(198, 166, 100, 0.4);
    clear: both;
}

/* Stats Strip */
.stats-strip {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-gold);
    padding: 3.5rem 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.1em;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

/* Sister Company Section */
.sister-company {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-form) 100%);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sister-company::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.sister-company h3 {
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.sister-company h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.sister-company p {
    color: var(--color-heading);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .author-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-profile-img img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .author-profile-content {
        text-align: center;
    }
    
    .series-list {
        text-align: left;
    }
    
    .author-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(18, 26, 40, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero-logo {
        max-width: 90%;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .stats-strip {
        font-size: 1.4rem;
        padding: 2rem 0;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}
