/* Steel and Spark Website */

/* ===== Variables ===== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-text: #e8e8e8;
    --color-text-muted: #888;
    --color-accent: #c4a35a;
    --color-accent-hover: #d4b36a;

    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --max-width: 800px;
    --spacing: 2rem;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== Base ===== */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(50, 40, 70, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 15%, rgba(140, 100, 50, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 110%, rgba(10, 5, 15, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 10% 80%, rgba(30, 20, 40, 0.5) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: -1;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: normal;
    color: var(--color-accent);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
}

em {
    font-style: italic;
}

/* ===== Hero Section ===== */
.hero {
    padding: 3rem 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 600px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
}

.cover {
    max-width: 280px;
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(196, 163, 90, 0.15);
}

.hero-text {
    flex: 1;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.author {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(196, 163, 90, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
    box-shadow: 0 0 30px rgba(196, 163, 90, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ===== Sections ===== */
section {
    padding: 2rem 0;
    border-top: 1px solid #222;
}

.hero {
    border-top: none;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-accent);
}

.genre {
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

.fans-of {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

/* ===== Description Section ===== */
.description {
    text-align: center;
    padding: 3rem 0;
}

.description > p:first-child {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-text);
}

/* ===== Saga Section ===== */
.saga {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    margin: 2rem 0;
    border: none;
}

.saga h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.saga-books {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.saga-book {
    text-align: center;
}

.saga-book .book-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.saga-book .book-number {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.saga-book .book-status {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.saga-book.current .book-title {
    font-size: 1.2rem;
}

.saga-book.upcoming .book-title {
    color: var(--color-text-muted);
}

.saga p.saga-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* ===== World Section ===== */
.world {
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: none;
}

/* ===== About ===== */
.about {
    background: var(--color-bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: none;
}

/* ===== Newsletter Section ===== */
.newsletter {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    margin: 2rem 0;
    border: none;
}

.newsletter h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.newsletter > p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.newsletter-coming-soon {
    font-style: italic;
    color: var(--color-accent);
}

/* ===== Footer ===== */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* ===== Sample Page Styles ===== */
.sample-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--spacing);
}

.back-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.back-link:hover {
    color: var(--color-accent);
}

.sample-page {
    max-width: 700px;
}

.sample-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #222;
}

.sample-header .subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.chapter-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
}

.chapter-nav a {
    font-size: 0.95rem;
}

/* ===== Chapter Styles ===== */
.chapter {
    padding: 3rem 0;
    border-bottom: 1px solid #222;
}

.chapter h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.chapter p {
    text-indent: 1.5em;
    margin-bottom: 0;
}

.chapter p:first-of-type,
.chapter .scene-break + p {
    text-indent: 0;
}

.chapter p + p {
    margin-top: 0;
}

.scene-break {
    text-align: center;
    text-indent: 0 !important;
    margin: 2rem 0 !important;
    color: var(--color-text-muted);
    letter-spacing: 0.5em;
}

/* ===== Sample CTA ===== */
.sample-cta {
    text-align: center;
    padding: 3rem 0;
}

.sample-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.sample-cta .cta-buttons {
    justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .chapter-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}
