/* Base typography */
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Karma", serif;
}

body {
    margin: 0;
    color: #111827;
    background-color: #ffffff;
}

/* Layout helper */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top navigation */
.nav {
    background-color: #16213e;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: #ffffff;
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px 0;
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 15px 0;
    transition: color 0.3s;
    font-size: 0.95em;
}

.nav-links a:hover {
    color: #2d7d8d;
}

/* Hero (home page) */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5em;
    margin: 10px 0;
    color: #ffffff;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #b0b0b0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background-color: #2d7d8d;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1d5a6b;
}

.btn-secondary {
    background-color: transparent;
    color: #2d7d8d;
    padding: 12px 30px;
    border: 2px solid #2d7d8d;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #2d7d8d;
    color: #ffffff;
}

/* New reader ribbon (home) */
.new-readers-bar {
    background-color: #0f172a;
    color: #e5e7eb;
    padding: 15px 20px;
}

.new-readers-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.new-readers-text {
    font-size: 0.95em;
}

/* New & Upcoming (home) */
.new-upcoming-section {
    background-color: #f8fafc;
    padding: 60px 0;
}

.new-upcoming-section h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 40px;
}

.two-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured (home) */
.featured-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.featured-section h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 40px;
}

.four-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Shared book slot styles */
.book-slot {
    text-align: center;
    padding: 20px;
}

.book-cover-placeholder {
    width: 200px;
    height: 300px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #2d7d8d, #16213e);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    line-height: 1.3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.book-slot h3 {
    color: #1a1a2e;
    margin: 10px 0;
    font-size: 1.1em;
}

.book-slot p {
    color: #666666;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Archive ribbon (home) */
.archive-ribbon {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 20px 0;
}

.ribbon-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

.ribbon-text {
    font-size: 1.1em;
    font-weight: 500;
    flex: 1;
}

/* Footer newsletter (home) */
.footer-newsletter {
    background: #111827;
    color: #ffffff;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-newsletter h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-newsletter p {
    margin-bottom: 30px;
    font-size: 1.05em;
    color: #d1d5db;
}

/* Newsletter form (shared) */
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
}

.newsletter-form button {
    padding: 12px 30px;
    background-color: #2d7d8d;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #1d5a6b;
}

.privacy-note {
    margin-top: 15px;
    font-size: 0.85em;
    color: #b0b0b0;
}

/* Books page – main title */
.books-page h1 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 2em;
}

.books-page p {
    font-size: 0.98em;
    color: #4b5563;
}

/* Section titles – dark strip style */
.section-title {
    padding: 10px 16px;
    margin: 40px 0 20px;
    font-size: 1.4em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f9fafb;
    border-radius: 4px;
}

/* Variations per section */
.section-title-series {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section-title-collections {
    background: linear-gradient(135deg, #0f172a 0%, #374151 100%);
}

.section-title-standalones {
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
}

.section-title-translations {
    background: linear-gradient(135deg, #0b1120 0%, #1d4ed8 100%);
}

/* Series blocks (books page) */
.series-block {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.series-block img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.series-block h3 {
    margin-top: 0;
}

.series-block p {
    margin-top: 4px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 0.97em;
}

.series-block h4 {
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 1em;
}

.series-block ul {
    padding-left: 18px;
    margin: 0;
    font-size: 0.95em;
}

/* Standalones grid */
.standalone-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin: 20px 0 40px;
}

.standalone-item img {
    width: 200px;
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.standalone-item h4 {
    margin: 8px 0 4px;
    font-size: 0.95em;
}

.standalone-item span {
    font-size: 0.8em;
    color: #6b7280;
}

/* Simple list (e.g., translations) */
.standalone-list {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0 40px;
    font-size: 0.95em;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .series-block {
        grid-template-columns: 1fr;
    }

    .series-block img {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

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

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .new-readers-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ribbon-inner {
        flex-direction: column;
        text-align: center;
    }

    .ribbon-text {
        margin-bottom: 10px;
    }
}
