/* =========================================================
   LIA ASURA WEBSITE
   Main stylesheet
   ========================================================= */


/* ---------------------------------------------------------
   1. COLOURS
   --------------------------------------------------------- */

:root {
    --paper: #F3EDE1;
    --aonibi: #75858A;
    --matsuba: #758268;
    --fujinezu: #918A9A;
    --beni: #A3363D;
    --moonlight: #B8D9E0;

    --dark: #3D3945;
    --text: #773924;
    --white: #FAF8F2;
}


/* ---------------------------------------------------------
   2. BASIC RESET
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   3. GENERAL ELEMENTS
   --------------------------------------------------------- */

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* ---------------------------------------------------------
   4. SITE HEADER
   --------------------------------------------------------- */

.site-header {
    position: relative;
    width: 100%;
    background: var(--fujinezu);
}

.site-title {
    padding: 24px 40px 18px;
}

.site-title a {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.12em;
}


/*
   The demon parade will eventually be positioned
   inside this area.
*/

.demon-parade {
    position: relative;
    width: 100%;
    height: 90px;
    overflow: hidden;
}


/* ---------------------------------------------------------
   5. GLOBAL NAVIGATION
   --------------------------------------------------------- */

.global-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 0;

    background: var(--fujinezu);

    padding: 0 30px;
}

.global-nav a {
    display: block;

    padding: 13px 18px;

    color: var(--text);

    font-size: 0.9rem;
    letter-spacing: 0.03em;

    border-left: 1px solid rgba(37, 37, 37, 0.12);
}

.global-nav a:last-child {
    border-right: 1px solid rgba(37, 37, 37, 0.12);
}

.global-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.global-nav a.current {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.25);
}


/* ---------------------------------------------------------
   6. GENERAL PAGE CONTENT
   --------------------------------------------------------- */

.page-content {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 70px 40px 90px;
}

.page-header {
    margin-bottom: 55px;

    max-width: 750px;
}

.page-header h1 {
    margin-bottom: 12px;

    font-size: 2.7rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   7. BLOG
   --------------------------------------------------------- */

.blog-list {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.blog-entry {
    padding: 30px 0;

    border-top: 1px solid rgba(37, 37, 37, 0.25);
}

.blog-entry:last-child {
    border-bottom: 1px solid rgba(37, 37, 37, 0.25);
}

.blog-date {
    margin-bottom: 6px;

    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.65;
}

.blog-entry h2 {
    margin-bottom: 10px;

    font-size: 1.5rem;
}

.blog-entry p {
    max-width: 750px;
}

.read-more {
    display: inline-block;

    margin-top: 8px;

    font-weight: bold;

    border-bottom: 1px solid var(--text);
}

.read-more:hover {
    text-decoration: none;
    opacity: 0.65;
}

.travel-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.travel-photos a {
    display: block;
}

.travel-photos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 140px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .travel-photos {
        gap: 6px;
        margin: 20px 0;
    }

    .travel-photos img {
        max-width: 105px;
        max-height: 85px;
    }
}
/* ---------------------------------------------------------
   8. SERIES PAGES
   --------------------------------------------------------- */


/*
   The individual series classes set the colour
   used by each series.
*/

.series-divine-debris {
    --series-color: var(--fujinezu);
}

.series-bohemian {
    --series-color: var(--aonibi);
}

.series-novagen {
    --series-color: var(--matsuba);
}


/* Main series area */

.series-page {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 60px 40px 90px;
}


/* Series heading */

.series-header {
    padding: 45px 45px 40px;

    background: var(--series-color);
}

.series-label {
    margin-bottom: 10px;

    font-size: 0.75rem;
    font-weight: bold;

    letter-spacing: 0.15em;
}

.series-header h1 {
    margin-bottom: 12px;

    font-size: 3rem;
    line-height: 1.15;
}

.series-header p:last-child {
    margin-bottom: 0;

    max-width: 650px;

    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   9. SERIES LOCAL NAVIGATION
   --------------------------------------------------------- */

.series-nav {
    display: flex;
    flex-wrap: wrap;

    background: var(--series-color);

    border-top: 1px solid rgba(37, 37, 37, 0.15);
}

.series-nav a {
    padding: 11px 20px;

    border-right: 1px solid rgba(37, 37, 37, 0.15);

    font-size: 0.9rem;
}

.series-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.series-nav a.current {
    font-weight: bold;

    background: rgba(255, 255, 255, 0.28);
}


/* ---------------------------------------------------------
   10. BOOK LIST
   --------------------------------------------------------- */

.books {
    margin-top: 55px;
}


/*
   Each book is a horizontal block.

   Cover on the left.
   Information on the right.
*/

.book {
    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 45px;

    padding: 45px 0;

    border-top: 1px solid rgba(37, 37, 37, 0.25);
}

.book:last-child {
    border-bottom: 1px solid rgba(37, 37, 37, 0.25);
}


/* Book cover */

.book-cover {
    width: 220px;
}

.book-cover img {
    width: 100%;
    height: auto;
}


/* Book information */

.book-info {
    max-width: 700px;
}

.book-number {
    margin-bottom: 8px;

    color: var(--series-color);

    font-size: 0.75rem;
    font-weight: bold;

    letter-spacing: 0.15em;
}

.book-info h2 {
    margin-bottom: 15px;

    font-size: 1.8rem;
    line-height: 1.25;
}

.book-info p:not(.book-number) {
    margin-bottom: 25px;
}


/* Amazon / book link */

.book-link {
    display: inline-block;

    padding: 9px 16px;

    background: var(--series-color);

    font-size: 0.9rem;
    font-weight: bold;
}

.book-link:hover {
    text-decoration: none;

    opacity: 0.75;
}


/* ---------------------------------------------------------
   11. FOOTER
   --------------------------------------------------------- */

.site-footer {
    padding: 35px 40px;

    background: var(--fujinezu);

    font-size: 0.8rem;
}

.site-footer p {
    margin: 0;
}


/* ---------------------------------------------------------
   12. MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    body {
        font-size: 15px;
    }


    /* Header */

    .site-title {
        padding: 20px 20px 15px;
    }

    .site-title a {
        font-size: 1.2rem;
    }

    .demon-parade {
        height: 70px;
    }


    /* Global navigation */

    .global-nav {
        padding: 0;
    }

    .global-nav a {
        flex: 1 1 auto;

        padding: 10px 12px;

        text-align: center;

        font-size: 0.82rem;
    }


    /* General pages */

    .page-content {
        padding: 45px 20px 60px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .page-header h1 {
        font-size: 2.1rem;
    }


    /* Series pages */

    .series-page {
        padding: 35px 20px 60px;
    }

    .series-header {
        padding: 30px 25px;
    }

    .series-header h1 {
        font-size: 2.2rem;
    }


    /* Series navigation */

    .series-nav a {
        flex: 1 1 50%;

        text-align: center;

        padding: 10px 12px;
    }


    /* Books */

    .books {
        margin-top: 35px;
    }

    .book {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 35px 0;
    }

    .book-cover {
        width: 180px;
    }

    .book-info h2 {
        font-size: 1.5rem;
    }


    /* Footer */

    .site-footer {
        padding: 30px 20px;
    }
}


/* ---------------------------------------------------------
   13. VERY SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .global-nav a {
        flex-basis: 50%;
    }

    .book-cover {
        width: 150px;
    }

}
/* =========================================================
  15. HOMEPAGE NAVIGATION
   ========================================================= */

.home-content {
    width: 100%;
    padding: 25px 35px 75px;
    background: var(--dark);
}

.home-navigation {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    max-width: 1150px;
    margin: 0 auto;
}

.home-site-menu {
    display: flex;
    flex-direction: column;
    background: var(--fujinezu);
}

.home-site-menu a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(37, 37, 37, 0.15);
}

.home-site-menu a:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.home-series-menu {
    display: grid;
    grid-template-rows: 1.6fr 1fr 0.65fr;
    border-left: 3px solid #3D3945;
}

.home-series {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 35px;
}

.home-series-divine {
    background: var(--fujinezu);
}

.home-series-bohemian {
    background: var(--aonibi);
}

.home-series-novagen {
    background: var(--matsuba);
}

.home-series:hover {
    text-decoration: none;
    opacity: 0.85;
}

.home-series span {
    font-size: 1.8rem;
    font-weight: bold;
}

.home-series small {
    margin-top: 5px;
    font-size: 0.8rem;
}
/* =========================================================
 16.  HEADER / DEMON PARADE
   ========================================================= */

.site-header {
    width: 100%;
    background: var(--dark);
}

.demon-parade {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    height: 155px;
    padding: 5px 12px 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

.demon-parade img {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: clamp(75px, 8vw, 105px);
    max-width: none;
    object-fit: contain;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {
   .home-content {
        padding: 15px 20px 60px;
}
    .demon-parade {
        height: 85px;
        gap: 5px;
        padding: 5px 8px 0;
    }

    .demon-parade img {
        height: clamp(55px, 16vw, 72px);
    }
}


/* ---------------------------------------------------------
   Very small screens
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .demon-parade {
        height: 78px;
        gap: 4px;
    }

    .demon-parade img {
        height: 62px;
    }
}
