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

body{
    background:#12100d;
    color:#f4f0e8;
    font-family:Georgia, serif;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 60px;
    border-bottom:1px solid #3a332b;
}

.brand{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo-mark img{
    width:42px;
    height:42px;
    display:block;
}

h1{
    font-size:2rem;
    font-weight:normal;
    letter-spacing:3px;
    white-space:nowrap;
}

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

nav a{
    color:#f4f0e8;
    text-decoration:none;
    letter-spacing:1px;
    font-size:0.9rem;
}

.menu-toggle{
    display:none;
    background:none;
    border:1px solid #b9955b;
    color:#f4f0e8;
    font-size:1.5rem;
    padding:8px 12px;
}

main{
    padding:20px 60px 80px;
}

.hero{
    min-height:78vh;
    display:flex;
    align-items:center;
    padding:90px 60px;
    margin:60px 0 0 0;
    background:
        linear-gradient(to right, rgba(10,8,6,.96), rgba(10,8,6,.65), rgba(10,8,6,.15)),
        url("../Images/hero.jpeg");
    background-size:cover;
    background-position:center;
    border-top:1px solid #2d261e;
    border-bottom:1px solid #2d261e;
}

.hero-text{
    max-width:650px;
}

.hero h2{
    font-size:4rem;
    line-height:1.05;
    margin-bottom:25px;
}

.hero p{
    font-size:1.4rem;
    margin-bottom:35px;
    color:#d2c8b8;
}

.button{
    display:inline-block;
    padding:14px 24px;
    border:1px solid #b9955b;
    color:#f4f0e8;
    text-decoration:none;
    letter-spacing:1px;
    text-transform:uppercase;
    font-size:0.85rem;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:25px;
    padding:60px 0;
}

.card{
    min-height:280px;
    border:1px solid #3a332b;
    padding:30px;
    background-size:cover;
    background-position:center;
    position:relative;
    overflow:hidden;
    transition:transform .35s ease, border-color .35s ease;
}

.card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(10,8,6,.98), rgba(10,8,6,.7), rgba(10,8,6,.25));
}

.card h3,
.card p{
    position:relative;
    z-index:1;
}

.card h3{
    font-size:1.8rem;
    margin-bottom:15px;
    color:#d8b875;
}

.card p{
    font-size:1.2rem;
    color:#f4f0e8;
}

.card:hover{
    transform:translateY(-8px);
    border-color:#b9955b;
}

.library-card{
    background-image:url("../Images/library.jpg");
}

.workshop-card{
    background-image:url("../Images/workshop.jpg");
}

.journey-card{
    background-image:url("../Images/journey.jpg");
}

.fireside-card{
    background-image:url("../Images/fireside.jpg");
}

footer{
    padding:50px 60px;
    border-top:1px solid #3a332b;
    background:#0d0b09;
}

.footer-brand h2{
    font-size:2rem;
    font-weight:normal;
    letter-spacing:3px;
    margin-bottom:10px;
}

.footer-brand p{
    max-width:500px;
    color:#d2c8b8;
    margin-bottom:30px;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:30px;
}

.footer-links a{
    color:#d8b875;
    text-decoration:none;
}

.footer-links a:hover{
    color:#f4f0e8;
}

.copyright{
    font-size:0.9rem;
    color:#8f8373;
}

@media (max-width:900px){

    header{
        flex-wrap:wrap;
        padding:20px 25px;
    }

    .menu-toggle{
        display:block;
    }

    nav{
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
        margin-top:20px;
        max-height:0;
        overflow:hidden;
        opacity:0;
        transition:all .35s ease;
    }

    nav.open{
        max-height:500px;
        opacity:1;
    }

    h1{
        font-size:1.6rem;
    }

    main{
        padding:20px 20px 60px;
    }

    .hero{
        margin:30px 0 0 0;
        padding:60px 30px;
    }

    .hero h2{
        font-size:3rem;
    }

    .cards{
        grid-template-columns:1fr;
        padding:30px 0;
    }

    footer{
        padding:40px 25px;
    }
}
.page-intro{
    padding:80px 0 40px;
    text-align:center;
}

.page-intro h2{
    font-size:4rem;
    color:#d8b875;
    margin-bottom:20px;
}

.page-intro p{
    color:#d2c8b8;
}

.book-list{
    display:flex;
    flex-direction:column;
    gap:40px;
    padding:40px 0;
}

.book-entry{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:35px;
    padding:35px;
    border:1px solid #3a332b;
    background:#17130f;
}

.book-cover-placeholder{
    min-height:320px;
    border:1px solid #b9955b;
    background:#241c14;
}

.series-label{
    color:#b9955b;
    font-size:0.9rem;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:10px;
}

.book-info h3{
    font-size:2.5rem;
    color:#f4f0e8;
    margin-bottom:15px;
}

.book-info p{
    margin-bottom:25px;
}

@media (max-width:900px){
    .book-entry{
        grid-template-columns:1fr;
    }

    .page-intro h2{
        font-size:3rem;
    }
}
.library-hero{
    text-align:center;
    padding:80px 20px 40px;
}

.library-hero h2{
    font-size:4rem;
    color:#d8b875;
    margin-bottom:15px;
}

.library-hero p{
    font-size:1.3rem;
    color:#d2c8b8;
    letter-spacing:2px;
}

.bookshelf{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:25px;
    padding:40px 0 80px;
    border-top:1px solid #3a332b;
    border-bottom:1px solid #3a332b;
}

.book{
    text-align:center;
    transition:transform .35s ease;
}

.book img{
    width:100%;
    max-width:180px;
    border:1px solid #3a332b;
    box-shadow:0 20px 40px rgba(0,0,0,.45);
}

.book h3{
    color:#d8b875;
    font-size:1.1rem;
    margin-top:18px;
}

.book p{
    font-size:.9rem;
    color:#8f8373;
}

.book:hover{
    transform:translateY(-10px);
}

@media (max-width:900px){
    .bookshelf{
        grid-template-columns:repeat(2, 1fr);
        gap:30px;
    }

    .library-hero h2{
        font-size:3rem;
    }
}
/* ===========================
   BOOK PAGE
=========================== */

.book-page{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:60px;
    padding:80px 0 60px;
    align-items:start;
}

.book-cover img{
    width:100%;
    border:1px solid #3a332b;
    box-shadow:0 25px 50px rgba(0,0,0,.45);
    transition:transform .35s ease;
}

.book-cover img:hover{
    transform:scale(1.03);
}

.book-details h2{
    font-size:4rem;
    color:#d8b875;
    margin-bottom:10px;
}

.book-details h3{
    font-size:1.4rem;
    color:#b9955b;
    font-weight:normal;
    margin-bottom:30px;
    letter-spacing:1px;
}

.book-details p{
    font-size:1.2rem;
    line-height:1.8;
    margin-bottom:35px;
    color:#d2c8b8;
}

.content-section{
    margin:60px 0;
    padding:40px;
    border-left:4px solid var(--accent, #b9955b);
    background:#17130f;
}

.content-section h2{
    font-size:2rem;
    color:var(--accent, #d8b875);
    margin-bottom:20px;
}

.content-section p{
    line-height:1.8;
    color:#d2c8b8;
}

.content-section strong{
    color:#f4f0e8;
}

@media (max-width:900px){

    .book-page{
        grid-template-columns:1fr;
        gap:40px;
    }

    .book-cover{
        max-width:320px;
        margin:auto;
    }

    .book-details h2{
    font-size:4rem;
    color:var(--accent, #d8b875);
    margin-bottom:10px;
}

    .book-details h3{
        text-align:center;
    }
}
/* ======================================
   BOOK COLOUR THEMES
====================================== */

.ashes-theme{
    --accent:#3f6d47;
}
/* ===========================
   PHASE ONE: PREMIUM MOTION
=========================== */

body{
    animation:pageFadeIn .8s ease forwards;
}

@keyframes pageFadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

.button{
    transition:all .35s ease;
}

.button:hover{
    color:#12100d;
    background:#d8b875;
    box-shadow:0 0 25px rgba(216,184,117,.35);
}

nav a{
    position:relative;
    transition:color .3s ease;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:1px;
    background:#d8b875;
    transition:width .3s ease;
}

nav a:hover{
    color:#d8b875;
}

nav a:hover::after{
    width:100%;
}

.hero{
    animation:heroBreath 18s ease-in-out infinite alternate;
}

@keyframes heroBreath{
    from{
        background-size:100%;
    }
    to{
        background-size:106%;
    }
}

.card,
.book-cover img,
.book img{
    transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.card:hover,
.book:hover,
.book-cover img:hover{
    transform:translateY(-8px);
}

.book img:hover,
.book-cover img:hover{
    box-shadow:0 25px 60px rgba(0,0,0,.65), 0 0 30px rgba(216,184,117,.25);
}

.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .8s ease, transform .8s ease;
}

.reveal.visible{
    opacity:1;
    transform:translateY(0);
}
@media (max-width:900px){
    .hero{
        animation:none;
        background-size:cover;
        background-position:center;
    }
}
.book{
    text-decoration:none;
    color:inherit;
    position:relative;
}

.book::after{
    content:"Enter the Story";
    display:inline-block;
    margin-top:12px;
    color:#d8b875;
    font-size:0.85rem;
    letter-spacing:1px;
    text-transform:uppercase;
    opacity:0;
    transform:translateY(8px);
    transition:all .35s ease;
}

.book:hover::after{
    opacity:1;
    transform:translateY(0);
}

.book:hover img{
    border-color:#d8b875;
}
/* ===========================
   PAGE EXIT TRANSITION
=========================== */

body.page-exit{
    opacity:0;
    transition:opacity .35s ease;
}
.story-label{
    color:var(--accent, #d8b875);
    text-transform:uppercase;
    letter-spacing:3px;
    font-size:.85rem;
    margin-bottom:15px;
}

.ashes-theme .book-cover img{
    box-shadow:
        0 25px 50px rgba(0,0,0,.55),
        0 0 35px rgba(63,109,71,.35);
}
.book-navigation{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.book-navigation div{
    text-align:right;
}

.book-navigation p{
    color:var(--accent, #d8b875);
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.8rem;
    margin-bottom:10px;
}

@media (max-width:900px){
    .book-navigation{
        flex-direction:column;
        align-items:stretch;
    }

    .book-navigation div{
        text-align:left;
    }
}
/* ===========================
   BOOK PAGE IMPROVEMENTS
=========================== */

.book-page{
    display:grid;
    grid-template-columns:350px 1fr;
    gap:60px;
    align-items:center;
    max-width:1200px;
    margin:80px auto;
    padding:0 40px;
}

.book-cover img{
    width:100%;
    display:block;
    border-radius:8px;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
    transition:transform .35s ease;
}

.book-cover img:hover{
    transform:scale(1.03);
}

.story-label{
    color:#b9955b;
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:.85rem;
    margin-bottom:15px;
}

.book-details h2{
    margin-bottom:10px;
}

.book-details h3{
    color:#cdb58a;
    font-weight:normal;
    margin-bottom:30px;
}

.content-section{
    max-width:1200px;
    margin:60px auto;
    padding:40px;
    background:#18140f;
    border-left:4px solid var(--accent);
}

.book-navigation{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

@media (max-width:900px){

    .book-page{
        grid-template-columns:1fr;
        text-align:center;
        gap:40px;
        padding:0 20px;
    }

    .book-cover{
        max-width:320px;
        margin:auto;
    }

    .book-navigation{
        flex-direction:column;
    }
}
:root{
    --accent:#b9955b;
}.ashes-theme{
    --accent:#4e7d55;
}

.wrath-theme{
    --accent:#9f6b1d;
}

.realms-theme{
    --accent:#2f5f9e;
}

.shadow-theme{
    --accent:#6b4ca5;
}

.deytonna-theme{
    --accent:#8d2f43;
}

.fate-theme{
    --accent:#c6a349;
}
/* ===========================
   STORY TRANSITION SCREEN
=========================== */

.story-transition{
    position:fixed;
    inset:0;
    background:#0d0b09;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    z-index:9999;
    opacity:0;
    pointer-events:none;
    transition:opacity .35s ease;
}

.story-transition.active{
    opacity:1;
}

.story-transition img{
    width:90px;
    height:90px;
    margin-bottom:25px;
    filter:drop-shadow(0 0 25px rgba(216,184,117,.45));
}

.story-transition p{
    color:#d8b875;
    text-transform:uppercase;
    letter-spacing:4px;
    font-size:.85rem;
}
/* ===========================
   STORY TRANSITION POLISH
=========================== */

.story-transition{
    transform:translateY(-35px);
}

.story-transition.active img{
    animation:runeGlow .55s ease forwards;
}

.story-transition.active p{
    animation:storyTextFade .55s ease .15s forwards;
}

.story-transition p{
    opacity:0;
}

@keyframes runeGlow{
    from{
        opacity:0;
        transform:scale(.85);
        filter:drop-shadow(0 0 0 rgba(216,184,117,0));
    }

    to{
        opacity:1;
        transform:scale(1);
        filter:drop-shadow(0 0 30px rgba(216,184,117,.65));
    }
}

@keyframes storyTextFade{
    from{
        opacity:0;
        transform:translateY(8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* ======================================
   WOODEN BOOKSHELF
====================================== */

.bookshelf{
    position:relative;
    padding:50px 20px 90px;
}

/* Wooden shelf */

.bookshelf::after{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:25px;

    height:18px;

    border-radius:4px;

    background:linear-gradient(
        to bottom,
        #8c6239,
        #6e4929,
        #4a2f18
    );

    box-shadow:
        0 6px 14px rgba(0,0,0,.45),
        inset 0 2px 2px rgba(255,255,255,.08);

}

/* Shadow under every book */

.book{

    position:relative;

}

.book::before{

    content:"";

    position:absolute;

    left:50%;
    bottom:34px;

    width:70%;

    height:16px;

    transform:translateX(-50%);

    border-radius:50%;

    background:rgba(0,0,0,.35);

    filter:blur(10px);

    transition:all .35s ease;

}

/* Pull the book off the shelf */

.book:hover{

    transform:translateY(-14px);

}

.book:hover::before{

    opacity:.55;

    transform:translateX(-50%) scale(1.2);

}s ease,
        border-color .35s ease;
} 
/* Stronger book opening effect */

.bookshelf .book:hover img{
    transform:
        perspective(900px)
        rotateY(-8deg)
        translateY(-8px)
        scale(1.03) !important;

    transform-origin:left center;

    box-shadow:
        0 30px 70px rgba(0,0,0,.75),
        0 0 35px rgba(216,184,117,.35);
}
/* ======================================
   WARM LIBRARY LIGHT
====================================== */

.bookshelf{

    background:
        radial-gradient(
            ellipse at top,
            rgba(216,184,117,.10),
            rgba(0,0,0,0) 65%
        );

}
.series-intro,
.reading-order,
.library-closing{
    max-width:900px;
    margin:70px auto;
    text-align:center;
}

.series-intro h2,
.reading-order h2{
    font-size:2.8rem;
    color:#d8b875;
    margin-bottom:25px;
}

.series-intro p{
    line-height:1.8;
    margin-bottom:20px;
}

.reading-order ol{
    list-style:none;
    counter-reset:book-counter;
}

.reading-order li{
    counter-increment:book-counter;
    margin:18px 0;
    color:#d2c8b8;
    letter-spacing:1px;
}

.reading-order li::before{
    content:"Book " counter(book-counter) " — ";
    color:#d8b875;
}

.library-closing p{
    color:#d8b875;
    font-size:1.4rem;
    font-style:italic;
}
/* ===========================
   THANK YOU PAGE
=========================== */

.thank-you-page{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:60px;
    max-width:1200px;
    margin:80px auto;
    padding:0 40px;
    align-items:start;
}

.thank-you-portrait img{
    width:100%;
    border-radius:8px;
    border:1px solid #3a332b;
    box-shadow:0 25px 60px rgba(0,0,0,.55);
}

.thank-you-letter{
    background:#17130f;
    border-left:4px solid #d8b875;
    padding:45px;
}

.thank-you-letter h2{
    font-size:3rem;
    color:#d8b875;
    margin-bottom:30px;
}

.thank-you-letter p{
    line-height:1.9;
    margin-bottom:22px;
    color:#d2c8b8;
}

.signature{
    color:#f4f0e8 !important;
    font-style:italic;
    margin-top:35px;
}

.signature-name{
    color:#d8b875 !important;
    font-size:1.4rem;
}

.thank-you-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-top:35px;
}

@media (max-width:900px){
    .thank-you-page{
        grid-template-columns:1fr;
        padding:0 20px;
    }

    .thank-you-portrait{
        max-width:280px;
        margin:auto;
    }

    .thank-you-letter{
        padding:30px;
    }

    .thank-you-letter h2{
        font-size:2.3rem;
    }
}
.thank-you-portrait{
    position:sticky;
    top:120px;
}

.thank-you-portrait img{
    object-fit:cover;
    aspect-ratio:3 / 4;
}

@media (max-width:900px){
    .thank-you-portrait{
        position:static;
    }
}
/* ===========================
   WORKSHOP PAGE
=========================== */

.workshop-hero{
    min-height:55vh;
    display:flex;
    align-items:center;
    padding:80px 60px;
    background:
        linear-gradient(to right, rgba(10,8,6,.96), rgba(10,8,6,.65)),
        url("../Images/workshop-desk.jpg");
    background-size:cover;
    background-position:center;
    border-top:1px solid #2d261e;
    border-bottom:1px solid #2d261e;
}

.workshop-hero div{
    max-width:700px;
}

.workshop-hero h2{
    font-size:4rem;
    color:#d8b875;
    margin-bottom:25px;
}

.workshop-hero p{
    line-height:1.8;
}

.workshop-section,
.workshop-storm{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    max-width:1200px;
    margin:80px auto;
    padding:0 40px;
    align-items:center;
}

.workshop-section.reverse img{
    order:2;
}

.workshop-section img,
.workshop-storm img{
    width:100%;
    border-radius:8px;
    border:1px solid #3a332b;
    box-shadow:0 25px 60px rgba(0,0,0,.5);
}

.workshop-section h2,
.workshop-storm h2,
.current-bench h2{
    color:#d8b875;
    font-size:2.5rem;
    margin-bottom:20px;
}

.workshop-section p,
.workshop-storm p{
    line-height:1.8;
    margin-bottom:18px;
}

.workshop-storm{
    background:#17130f;
    border-left:4px solid #d8b875;
    padding:40px;
}

.current-bench{
    max-width:900px;
    margin:80px auto;
    padding:45px;
    background:#17130f;
    border:1px solid #3a332b;
    text-align:center;
}

.current-bench ul{
    list-style:none;
    margin-top:25px;
}

.current-bench li{
    color:#d2c8b8;
    margin:15px 0;
    font-size:1.1rem;
}

.current-bench li::before{
    content:"✦ ";
    color:#d8b875;
}

@media (max-width:900px){
    .workshop-hero{
        padding:60px 30px;
    }

    .workshop-hero h2{
        font-size:3rem;
    }

    .workshop-section,
    .workshop-storm{
        grid-template-columns:1fr;
        padding:0 20px;
    }

    .workshop-section.reverse img{
        order:0;
    }
}
.card{
    text-decoration:none;
    color:inherit;
}