/* ========================================
   THE QUILLORA
   Main Website Styles
======================================== */


/* ---------- BASIC RESET ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0a0f;
    color: #eee9f2;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.8;
}


/* ---------- HEADER ---------- */

.site-header {
    width: 100%;
    padding: 22px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(11, 10, 15, 0.95);
    border-bottom: 1px solid #30243b;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #c9a0e8;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #bcb3c5;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #d7b3f5;
}


/* ---------- HERO ---------- */

.hero {
    min-height: 75vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 80px 20px;

    background:
        radial-gradient(
            circle at center,
            #251832 0%,
            #110e16 45%,
            #0b0a0f 75%
        );
}

.hero-content {
    max-width: 800px;
}

.eyebrow {
    color: #a77bc7;
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero h1 {
    color: #e4c8f7;
    font-size: clamp(50px, 9vw, 95px);
    line-height: 1.05;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.tagline {
    color: #b9afc0;
    font-size: 21px;
    font-style: italic;
}


/* ---------- STORY SECTION ---------- */

.story-info {
    max-width: 850px;
    margin: 0 auto;
    padding: 90px 25px;
    text-align: center;
}

.section-label {
    color: #a77bc7;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.story-info h2 {
    color: #d9b8ef;
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.story-info p {
    color: #bdb5c3;
    font-size: 17px;
    margin-bottom: 25px;
}


/* ---------- STORY DETAILS ---------- */

.details {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 25px 90px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-box {
    padding: 28px 15px;

    text-align: center;

    background: #131018;
    border: 1px solid #352842;
    border-radius: 12px;

    transition: 0.3s;
}

.detail-box:hover {
    transform: translateY(-5px);
    border-color: #8d5cad;
}

.detail-box span {
    display: block;

    color: #8f8597;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.detail-box strong {
    color: #d4b0eb;
    font-size: 16px;
}


/* ---------- READING SECTION ---------- */

.reading {
    text-align: center;
    padding: 80px 20px 110px;

    background:
        linear-gradient(
            to bottom,
            #0b0a0f,
            #17101e
        );
}

.read-button {
    display: inline-block;

    padding: 15px 38px;

    color: #ffffff;
    background: #76509a;

    border: 1px solid #a77bc7;
    border-radius: 30px;

    text-decoration: none;

    font-size: 16px;
    letter-spacing: 1px;

    transition: 0.3s;
}

.read-button:hover {
    background: #9366b9;
    transform: translateY(-3px);
}


/* ---------- FOOTER ---------- */

footer {
    padding: 35px 20px;

    text-align: center;

    background: #08070b;

    border-top: 1px solid #2b2135;

    color: #766d7d;

    font-size: 13px;
}

footer p {
    margin: 5px;
}


/* ---------- TABLET ---------- */

@media (max-width: 800px) {

    .site-header {
        padding: 18px 5%;
    }

    .hero {
        min-height: 65vh;
    }

    .hero h1 {
        font-size: 58px;
    }

    .details {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}


/* ---------- PHONE ---------- */

@media (max-width: 500px) {

    .site-header {
        flex-direction: column;
        gap: 12px;
    }

    nav {
        gap: 18px;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .tagline {
        font-size: 17px;
    }

    .story-info {
        padding: 70px 20px;
    }

    .story-info h2 {
        font-size: 27px;
    }

    .story-info p {
        font-size: 16px;
    }

    .read-button {
        padding: 13px 30px;
    }
}   
/* ========================================
   CHAPTERS PAGE
======================================== */


/* ---------- CHAPTER HERO ---------- */

.chapters-hero {
    text-align: center;
    padding: 100px 20px 70px;

    background:
        radial-gradient(
            circle at center,
            #251832 0%,
            #110e16 45%,
            #0b0a0f 75%
        );
}

.chapters-hero h1 {
    color: #e4c8f7;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.chapters-hero > p:not(.eyebrow) {
    color: #b9afc0;
    font-size: 17px;
}

.chapter-count {
    display: inline-block;

    margin-top: 25px;
    padding: 8px 20px;

    border: 1px solid #6d4b82;
    border-radius: 25px;

    color: #c9a0e8;
    font-size: 13px;
    letter-spacing: 2px;
}


/* ---------- CHAPTER LIST ---------- */

.chapter-list {
    max-width: 850px;
    margin: 0 auto;
    padding: 80px 25px 100px;
}

.chapter-list > .section-label {
    text-align: center;
    margin-bottom: 35px;
}


/* ---------- INDIVIDUAL CHAPTER ---------- */

.chapter-card {
    display: flex;
    align-items: center;
    gap: 25px;

    width: 100%;

    padding: 20px 25px;
    margin-bottom: 12px;

    background: #121016;

    border: 1px solid #2f2438;
    border-radius: 10px;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.chapter-card:hover {
    transform: translateX(7px);

    background: #19121f;

    border-color: #8d5cad;
}


/* ---------- CHAPTER NUMBER ---------- */

.chapter-number {
    min-width: 42px;

    color: #80618f;

    font-size: 13px;
    letter-spacing: 2px;
}


/* ---------- CHAPTER TITLE ---------- */

.chapter-title {
    color: #d8c1e5;

    font-size: 18px;
}


/* ---------- MOBILE CHAPTERS ---------- */

@media (max-width: 500px) {

    .chapters-hero {
        padding: 75px 20px 55px;
    }

    .chapters-hero h1 {
        font-size: 48px;
    }

    .chapter-list {
        padding: 60px 18px 80px;
    }

    .chapter-card {
        padding: 17px 18px;
        gap: 15px;
    }

    .chapter-title {
        font-size: 16px;
    }

    .chapter-number {
        min-width: 35px;
        font-size: 12px;
    }
}
/* ========================================
   NOVEL READER
======================================== */


/* ---------- READING PROGRESS ---------- */

.reading-progress {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #1a1420;

    z-index: 200;
}

.progress-bar {
    width: 0%;
    height: 100%;

    background: #a77bc7;
}


/* ---------- READER ---------- */

.reader {
    max-width: 850px;

    margin: 0 auto;

    padding: 90px 25px 100px;
}


/* ---------- CHAPTER HEADER ---------- */

.chapter-header {
    text-align: center;

    padding: 40px 0 70px;
}

.chapter-label {
    color: #9570aa;

    font-size: 12px;

    letter-spacing: 5px;

    margin-bottom: 25px;
}

.chapter-number-reader {
    color: #80618f;

    font-size: 13px;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.chapter-header h1 {
    color: #e4c8f7;

    font-size: clamp(42px, 7vw, 70px);

    line-height: 1.1;

    margin-bottom: 18px;
}

.chapter-author {
    color: #8f8597;

    font-size: 14px;

    font-style: italic;
}


/* ---------- READER CONTROLS ---------- */

.reader-controls {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 10px;

    margin-bottom: 45px;

    padding-bottom: 15px;

    border-bottom: 1px solid #29202f;
}

.reader-controls span {
    color: #756c7d;

    font-size: 12px;

    letter-spacing: 1px;
}

.reader-controls button {
    width: 38px;
    height: 34px;

    border: 1px solid #4a3556;

    border-radius: 6px;

    background: #151019;

    color: #c9a0e8;

    font-family: Georgia, serif;

    cursor: pointer;

    transition: 0.25s;
}

.reader-controls button:hover {
    background: #251832;

    border-color: #8d5cad;
}


/* ---------- STORY TEXT ---------- */

.story-text {
    max-width: 720px;

    margin: 0 auto;

    color: #d4ccd9;

    font-family:
        "Cormorant Garamond",
        "Baskerville",
        "Palatino Linotype",
        "Book Antiqua",
        Georgia,
        serif;

    font-size: 19px;

    line-height: 2.05;

    letter-spacing: 0.15px;

    text-align: left;

    font-weight: 400;
}

.story-text p {
    margin-bottom: 32px;
}


/* ---------- FIRST LETTER ---------- */

.story-text p:first-child::first-letter {
    color: #c9a0e8;

    font-size: 48px;

    float: left;

    line-height: 0.8;

    padding-right: 8px;

    padding-top: 7px;
}


/* ---------- CHAPTER NAVIGATION ---------- */

.chapter-navigation {
    max-width: 720px;

    margin: 80px auto 0;

    padding-top: 30px;

    border-top: 1px solid #30243b;

    display: flex;

    justify-content: space-between;

    gap: 15px;
}

.chapter-nav-button {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 18px;

    border: 1px solid #392b45;

    border-radius: 8px;

    color: #c9a0e8;

    text-decoration: none;

    font-size: 14px;

    transition: 0.25s;
}

.chapter-nav-button:hover {
    background: #1a1221;

    border-color: #8d5cad;
}

.chapter-nav-button.next {
    margin-left: auto;
}


/* ---------- READER MOBILE ---------- */

@media (max-width: 500px) {

    .reader {
        padding: 65px 20px 80px;
    }

    .chapter-header {
        padding: 30px 0 55px;
    }

    .chapter-header h1 {
        font-size: 43px;
    }

    .story-text {
        font-size: 17px;

        line-height: 1.9;
    }

    .story-text p {
        margin-bottom: 26px;
    }

    .chapter-navigation {
        margin-top: 60px;
    }

    .chapter-nav-button {
        padding: 10px 13px;

        font-size: 13px;
    }

    .chapter-nav-button.next span {
        display: none;
    }

}
/* ---------- CHAPTER DATE ---------- */

.chapter-date {
    color: #766d7d;
    font-size: 13px;
    font-style: italic;
    margin-top: 6px;
}


/* ---------- MESSAGE ---------- */

.story-text .message {
    color: #cdb2df;
    font-style: italic;
    padding-left: 20px;
    border-left: 2px solid #604474;
}


.story-text .message-signature {
    color: #8f789b;
    font-size: 15px;
    text-align: right;
    margin-top: -15px;
}
/* ---------- POV BREAK ---------- */

.pov-break {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin: 75px 0 15px;

    color: #a77bc7;

    text-align: center;
}

.pov-break p {
    margin: 0;

    font-family: Georgia, serif;

    font-size: 14px;

    font-style: italic;

    letter-spacing: 2px;
}

.pov-break span {
    font-size: 13px;
    opacity: 0.7;
}

.pov-date {
    text-align: center;

    color: #766d7d;

    font-size: 12px !important;

    font-style: italic;

    margin-bottom: 45px !important;
}