:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #1a1a1a;
    --accent-color: #d4af37; /* Gold */
    --border-color: rgba(212, 175, 55, 0.2);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

h1, h2, .author-sigil, .series-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--accent-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.author-sigil {
    font-size: 2rem;
    border: 2px solid var(--accent-color);
    padding: 0.5rem 0.8rem;
    line-height: 1;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.8), var(--bg-color)), url(https://placehold.co/1920x1080/000/333?text=Fantasy+Landscape) no-repeat center center;
    background-size: cover;
}

.hero h1 {
    font-size: 4rem;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
}

section {
    padding: 5rem 0;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.featured-tome {
    background-color: var(--primary-color);
}

.book-cover img {
    max-width: 350px;
    height: 525px;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.series-title {
    font-size: 1rem;
    letter-spacing: 1px;
}

.featured-tome .series-title {
    display: none;
}

.book-info h2 {
    font-size: 3rem;
    margin-top: 0.5rem;
}

.cta-rune {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 25px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--border-color);
}

.cta-rune:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.author-profile .content-wrapper {
    flex-direction: row-reverse;
}

.author-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--border-color);
}

.author-bio h2 {
    font-size: 2.5rem;
}

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--primary-color);
}

footer .copyright {
    font-size: 0.8rem;
    color: #777;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .author-profile .content-wrapper {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 3rem;
    }
}