:root {
    --bg-color: #0c0b0b;
    --paper-color: #f1e9d2;
    /* Parchment cream */
    --gold: #D4AF37;
    --ink: #2B2B2B;
    --magic: #4Ecca3;
    --accent: #8B4513;
}

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

body {
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/dark-wood.png');
    font-family: 'Shippori Mincho', serif;
    color: var(--ink);
    line-height: 1.8;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/world.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: white;
}

.hero-content {
    z-index: 2;
    padding: 20px;
    border: 3px double var(--gold);
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
}

.title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3.5rem;
    line-height: 1.1;
    text-shadow: 0 0 15px var(--gold);
    margin-bottom: 10px;
    background: linear-gradient(to bottom, #FFD700, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: 'Yuji Syuku', serif;
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: #eee;
    margin-bottom: 20px;
}

.tagline {
    font-style: italic;
    font-family: 'Cinzel Decorative', cursive;
    color: var(--magic);
    margin: 20px 0;
    font-size: 1.1rem;
}

.btn-read {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold);
    color: #1a1a1a;
    font-family: 'Cinzel Decorative', cursive;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    transition: all 0.3s;
    border: 1px solid white;
}

.btn-read:hover {
    background: white;
    box-shadow: 0 0 20px var(--gold);
}

.magic-circle {
    width: 60px;
    height: 60px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    margin: 0 auto;
    animation: rotate 10s linear infinite;
    position: relative;
}

.magic-circle::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
}

/* PARCHMENT CONTAINER */
.parchment-container {
    max-width: 900px;
    width: 95%;
    margin: -50px auto 50px;
    /* Overlap hero */
    background-color: var(--paper-color);
    background-image: url('https://www.transparenttextures.com/patterns/aged-paper.png');
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: relative;
    z-index: 10;
    padding: 60px 50px;
    border-top: 10px solid #d4c5b0;
    border-bottom: 10px solid #d4c5b0;
}

/* SECTIONS */
.content-section {
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.5rem;
    color: var(--accent);
}

.divider {
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto;
}

/* Visuals */
.visual-block {
    text-align: center;
    margin-bottom: 50px;
}

.framed-image {
    width: 100%;
    max-width: 700px;
    border: 5px solid var(--ink);
    border-radius: 3px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    filter: sepia(20%);
}

.caption {
    font-family: 'Yuji Syuku', serif;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
}

/* Characters */
.char-block {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.char-card {
    text-align: center;
    width: 200px;
}

.char-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    /* Using portraits */
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.char-img:hover {
    transform: scale(1.1);
}

.char-card h3 {
    font-family: 'Cinzel Decorative', cursive;
    color: var(--accent);
}

/* Index */
.chapter-list {
    list-style: none;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.chapter-list li {
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 10px;
}

.chapter-list a {
    text-decoration: none;
    color: var(--ink);
    font-family: 'Yuji Syuku', serif;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.chapter-list a:hover {
    color: var(--accent);
}

.chapter-list span {
    font-family: 'Cinzel Decorative', cursive;
    font-weight: bold;
    margin-right: 20px;
    color: var(--gold);
}

.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Story Text */
.story-text p {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    text-align: justify;
}

.chapter-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px double var(--accent);
    padding-bottom: 20px;
}

.chapter-num {
    display: block;
    font-family: 'Cinzel Decorative', cursive;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.chapter-header h3 {
    font-family: 'Yuji Syuku', serif;
    font-size: 2rem;
}

.inline-art {
    display: block;
    max-width: 80%;
    margin: 40px auto;
    border: 3px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 50px 0;
}

.next-chapter-link {
    text-align: center;
    margin-top: 60px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #777;
    font-size: 0.8rem;
    background: #000;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .title {
        font-size: 2.2rem;
    }

    .parchment-container {
        padding: 30px 20px;
    }

    .char-block {
        gap: 20px;
    }

    .story-text p {
        font-size: 1rem;
    }
}