@charset "utf-8";
/*
Theme Name: DreamNarnia 2026
Theme URI: https://narnia.dorgel.net
Author: Dorgel Chung
Author URI: https://www.dorgel.net
Description: 
Version: 2.0.0
Tags: 
Text Domain: DreamNarnia 2026
*/

/*----------------------------------------
  I / global
 II / layout
III / nav components
 IV / main
  V / home & single
 VI / header for pages
VII / responsive
----------------------------------------*/


/*----------------------------------------
I / global
----------------------------------------*/
:root {
    --inner-width: 960px;
    
    --color-dnred:    rgb(130, 0, 25);
    --color-dnred-lt: rgb(160, 0, 25);
    --color-dnred-bg: rgb(100, 20, 25);
        --color-dnred-bg-trans: rgba(100, 20, 25, .92);
    
    --color-cream: rgb(255, 240, 210);
    --color-beige: rgb(220, 185, 135);
        --color-beige-trans:     rgba(220, 185, 135, .4);
        --color-beige-trans-alt: rgba(220, 185, 135, .25);
    --color-gold:  rgb(150, 110, 60);
        --color-gold-trans: rgba(150, 110, 60, .6);
    --color-brown: rgb(110, 80, 50);
    --color-dark:  rgb(50, 33, 20);
}
html {
    font-size: 100px;
}
body {
    position: relative;
    display: flow-root;
    height: auto;
    margin: 0;
    background: #121111 url(img/bg-body.jpg) no-repeat 50% 50% / cover fixed;
    font: normal normal normal 14px/1.5 sans-serif;
    color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
}
body.nocontroll * { pointer-events: none; }
body.noscroll { overflow: hidden; }

*,
*::before, 
*::after {
    box-sizing: border-box;
    transition: color .2s linear, background-color .2s linear, 
                border-color .2s linear, opacity .2s linear;
}
::selection {
    background-color: var(--color-dnred-lt);
    color: #fff;
}
::placeholder { 
    color: var(--color-gold);
}

a {
    color: var(--color-gold);
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0; padding: 0;
    font-weight: 400;
}
ul {
    margin: 0; padding: 0;
    list-style: none;
}
p {
    word-break: normal;
    word-wrap: break-word;
}
.transition {
    transition: all .3s ease-in-out; 
}
@media (hover: hover) and (pointer: fine) {
    *:not(".transition"):hover,
    *:not(".transition"):hover::before,
    *:not(".transition"):hover::after {
        transition: color .1s linear, background-color .1s linear, 
                    border-color .1s linear, opacity .1s linear;
    }
    a:hover {
        color: var(--color-gold-trans);
        text-decoration: none;
    }
}


/*----------------------------------------
II / layout
----------------------------------------*/
/*---------- nav, header, footer, main ----------*/
nav {
    box-sizing: content-box;
    position: fixed;
    top: 0;
    z-index: 500;
    width: 100vw; height: 60px;
    border-bottom: 1px solid var(--color-gold-trans);
    transition: background .15s linear, height .15s linear;
}
nav.fix {
    background-color: var(--color-dnred-bg-trans);
    border: none;
    backdrop-filter: blur(10px);
}

header {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 400px;
    margin-top: 0;
    background-color: transparent;
    background-repeat: no-repeat; 
    background-position: 50% 50%; 
    background-size: auto 400px;
    transition: none;
}

footer {
    display: flex;
    width: 100vw;
    padding: 20px calc((100vw - var(--inner-width)) / 2);
    background-color: var(--color-dnred-bg);
    font-size: 12px; letter-spacing: .04em;
    line-height: 20px; color: var(--color-beige);
}
    footer div { 
        transform: scale(.9); 
        transform-origin: left center; 
    }
    footer div:first-child { flex: 1; }
    footer div:last-child  { flex: 2; }
    footer br.small { display: none; }
    footer a,
    footer a:hover {
        color: var(--color-beige); 
        text-decoration: underline;
    }

main {
    position: relative;
    width: calc(100vw - 40px);
    max-width: 960px;
    min-height: calc(100vh - 470px);
    margin: 340px auto 50px;
    padding: 30px 50px;
    background: url(img/bg-main-tp.png) no-repeat 50% 0 / contain,
                url(img/bg-main-bt.png) no-repeat 50% 100% / contain,
                url(img/bg-main-md.png) repeat-y 50% 50% / contain;
    background-color: var(--color-cream);
    border-radius: 0;
    letter-spacing: .04em;
}

/*---------- loading ----------*/
.loading {
    position: fixed;
    left: calc(50% - 80px); top: calc(50% - 80px);
    z-index: 600;
    display: none;
    width: 160px; height: 160px;
    background-color: var(--color-dnred);
    border-radius: 16px;
}
.loading span {
    position: relative; 
    left: 30px; top: 30px;
    display: block;
    width: 100px; height: 100px;
    background: url(img/icon-compass.png) no-repeat 50% 0 / auto 100px;
    animation: spin 2s infinite linear;
}
    @keyframes spin {
        0% { transform: rotate(0deg) translateZ(0); }
        100% { transform: rotate(359deg) translateZ(0); }
    }

/*---------- backtop button ----------*/
.backtop {
    position: fixed;
    right: calc((100vw - var(--inner-width)) / 2 - 20px); bottom: 16px;
    display: block;
    width: 48px; height: 48px;
    background: var(--color-gold) url(img/icon-arrow.png) no-repeat 50% 0 / auto 100%;
    border: 4px solid var(--color-gold); border-radius: 99px;
    cursor: pointer;
}
.backtop.hide {
    opacity: 0; pointer-events: none;
}
.backtop span {
    display: block;
    width: 100%; height: 100%;
    background: url(img/icon-arrow.png) no-repeat 100% 0 / auto 100%;
    opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
    .backtop:hover span { opacity: 1; }
}


/*----------------------------------------
III / nav components
----------------------------------------*/
/*---------- nav sitelogo ----------*/
.n-sitelogo {
    position: absolute;
    left: calc((100vw - var(--inner-width)) / 2 + 20px); top: 0;
    display: block;
    width: 200px; height: 60px;
    background: url(img/n-sitelogo.png) no-repeat 0 0 / 100% auto;
    font-size: 0;
}

/*---------- trigger button ----------*/
.n-trigger {
    position: absolute; 
    right: 10px; top: 10px;
    display: none;
    width: 40px; height: 40px;
    background: url(img/icon-compass.png) no-repeat 50% 0 / auto 100%;
    font-size: 0;
}
.n-mask { display: none; }

/*---------- nav menu ----------*/
.n-menu {
    position: absolute;
    right: calc((100vw - var(--inner-width)) / 2);
    width: 560px; height: 100%;
    font-size: 0;
}
.n-menu > li {
    position: relative;
    display: inline-block;
    width: 112px; height: 100%;
}
.n-menu > li + li::before {
    content: "";
    position: absolute; 
    left: 0; bottom: 15px;
    display: block;
    width: 1px; height: 30px;
    background-color: var(--color-gold-trans);
}
.n-menu > li::after {
    content: "";
    position: absolute; 
    left: 30px; bottom: 4px;
    display: block;
    width: 52px; height: 52px;
    background: url(img/icon-compass.png) no-repeat 0 0 / auto 52px;
    opacity: 0;
}
.n-menu > li > a {
    position: absolute; 
    bottom: 0;
    z-index: 1;
    display: block;
    width: 100%; height: 130px;
    background: url(img/n-menu.png) no-repeat 0 0 / auto 130px;
}
.n-menu > li > a span {
    display: block;
    height: 100%;
    background: url(img/n-menu.png) no-repeat 0 0 / auto 130px;
    opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
    .n-menu > li:hover > a span { opacity: 1; }
}
    .n-menu li#author  > a { background-position: 0 100%; }
    .n-menu li#book    > a { background-position: -112px 100%; }
    .n-menu li#movie   > a { background-position: -224px 100%; }
    .n-menu li#site    > a { background-position: -336px 100%; }
    .n-menu li#message > a { background-position: -448px 100%; }
    .n-menu li#author  > a span { background-position: -560px 100%; }
    .n-menu li#book    > a span { background-position: -672px 100%; }
    .n-menu li#movie   > a span { background-position: -784px 100%; }
    .n-menu li#site    > a span { background-position: -896px 100%; }
    .n-menu li#message > a span { background-position: -1008px 100%; }

    .page-author  .n-menu li#author::after,
    .page-book    .n-menu li#book::after,
    .page-movie   .n-menu li#movie::after,
    .page-site    .n-menu li#site::after,
    .page-message .n-menu li#message::after {
        opacity: .6;
    }
    .page-author  .n-menu li#author  a span,
    .page-book    .n-menu li#book    a span,
    .page-movie   .n-menu li#movie   a span,
    .page-site    .n-menu li#site    a span,
    .page-message .n-menu li#message a span {
        opacity: 1;
    }

/*---------- nav movie selector ----------*/
.n-movieselect {
    position: absolute;
    left: -30px; bottom: -255px;
    width: 172px;
    background-color: var(--color-dnred-bg);
    border-radius: 12px;
    opacity: 0; pointer-events: none;
}
.n-movieselect::before {
    content: "";
    position: absolute;
    left: 0; top: -5px;
    width: 100%; height: 5px;
}
.n-menu li#movie:hover .n-movieselect {
    opacity: 1; pointer-events: all;
}
.n-movieselect li {
    width: 100%; height: 50px;
}
.n-movieselect li + li {
    border-top: 1px solid var(--color-gold-trans);
}
.n-movieselect li a {
    display: block;
    width: 100%; height: 100%;
    opacity: 1;
    font-size: 16px; text-align: center; 
    line-height: 50px; color: var(--color-beige);
}
@media (hover: hover) and (pointer: fine) {
    .n-movieselect li a:hover { color: var(--color-cream); }
}


/*----------------------------------------
IV / main
----------------------------------------*/
/*---------- identify ----------*/
.m-identify { display: none; }

/*---------- tab ----------*/
.m-tab {
    position: sticky;
    top: 70px;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    justify-content: right;
    gap: 0 5px;
    height: 30px;
    margin: -60px -30px 60px 0;
    font-size: 0;
}
.m-tab li a {
    display: block;
    height: 30px;
    padding: 0 10px;
    background-color: var(--color-gold);
    border-radius: 0;
    font-size: .15rem;
    line-height: 30px; color: var(--color-beige);
}
.m-tab li.current a {
    background-color: var(--color-dnred);
}
@media (hover: hover) and (pointer: fine) {
    .m-tab li a:hover { color: var(--color-cream); }
    .m-tab li.current a:hover { color: var(--color-beige); }
}

/*---------- page 404 ----------*/
.page-404 main p {
    margin-top: 80px;
    font-size: .16rem;
}


/*----------------------------------------
V / home & single
----------------------------------------*/
/*---------- page-home ----------*/
.page-home nav {
    height: 260px;
    border-bottom: none;
}
.page-home nav .n-sitelogo {
    opacity: 0;
    pointer-events: none;
}
.page-home nav .n-menu > li + li::before { 
    height: 100px;
}
.page-home nav.fix .n-sitelogo {
    opacity: 1;
    pointer-events: all;
}
.page-home nav.fix .n-menu > li + li::before { 
    height: 30px;
}
.page-home header::before {
    content: "";
    display: block;
    width: 240px; height: 320px;
    margin-left: calc((100vw - var(--inner-width)) / 2 + 40px);
    background: url(img/n-sitelogo-flag.png) no-repeat 50% 100% / 100% auto;
}

/*---------- single ----------*/
.single nav .n-sitelogo {
    left: calc(50vw - 100px);
}
.single nav.fix {
    background-color: var(--color-dark);
}
.single nav .n-menu,
.single nav .n-trigger {
    display: none;
}
.single header {
    position: static;
    height: 300px;
    background: #211813 url(img/header-single.jpg) 50% 50% / auto 300px;
}
.single main {
    width: 760px; min-height: calc(100vh - 370px);
    margin-top: -60px;
}
.single .m-crumb {
    position: absolute;
    left: 0; top: -40px;
    height: 40px;
    font-size: .13rem;
    color: var(--color-beige); line-height: 40px;
}
.single .m-crumb a {
    color: var(--color-cream);
}


/*----------------------------------------
VI / header for pages
----------------------------------------*/
.page-home      header { background: transparent url(img/header-home.png) repeat-x 50% 0 / auto 100%; }
.page-author    header { background-color: #322826; background-image: url(img/header-author.jpg); }
.page-book      header { background-color: #5b4132; background-image: url(img/header-book.jpg); }
.page-site      header { background-color: #826a48; background-image: url(img/header-site.jpg); }
.page-message   header { background-color: #4c5a65; background-image: url(img/header-message.jpg); }
.page-404       header { background-color: #111111; background-image: url(img/header-404.jpg); }
.page-movie.lww header { background-color: #0e1c25; background-image: url(img/header-movie-lww.jpg); }
.page-movie.pc  header { background-color: #0f160f; background-image: url(img/header-movie-pc.jpg); }
.page-movie.vdt header { background-color: #002b46; background-image: url(img/header-movie-vdt.jpg); }
.page-movie.bbcseries header { background-color: #653821; background-image: url(img/header-movie-bbcseries.jpg); }
.page-movie.nfseries  header { background-color: #191629; background-image: url(img/header-movie-nfseries.jpg); }


/*----------------------------------------
VII / responsive
----------------------------------------*/
@media screen and (max-width: 1000px) {
    :root { --inner-width: calc(100vw - 40px); }
    .backtop { right: 10px; }
    .n-sitelogo { left: 20px; }
    .n-menu { right: 0; }
    .page-home header::before { margin-left: 30px; }
    
    @media screen and (max-width: 820px) and (min-width: 761px)  {
        .n-menu {
            transform: scale(.96);
            transform-origin: right center;
        }
        .page-home header::before { width: 200px; }
    }
}

@media screen and (max-width: 760px) {
    :root { --inner-width: 100vw; }
    html { font-size: 95px; }
    
    /*---------- layout ----------*/
    header,
    .page-home header {
        position: static;
        height: 50vw; margin-top: 50px;
        background-size: auto calc(50vw + 40px);
    }
    .page-home header::before { display: none; }
    footer {
        display: block;
        width: 100vw; padding: 10px 20px;
    }
    footer br.small { 
        display: inline-block; 
    }
    main {
        width: 100vw;
        min-height: calc(100vh - 190px - 50vw);
        margin: 0 auto;
        padding: 20px 20px;
        background: url(img/bg-main-tp.png) no-repeat 50% 0 / 1000px 60px,
                    url(img/bg-main-bt.png) no-repeat 50% 100% / 1000px 60px;
        background-color: var(--color-cream);
    }
    .backtop, .backtop.hide {
        position: absolute;
        right: 12px; bottom: 12px;
        opacity: 1; pointer-events: all;
    }
    
    /*---------- nav ----------*/
    nav, 
    .page-home nav {
        height: 60px;
        background-color: var(--color-dnred-bg);
        border: none;
    }
    nav .n-sitelogo,
    .page-home nav .n-sitelogo {
        left: 10px; 
        opacity: 1; pointer-events: all;
    }
    
    body:not(.page-home, .single, .error404) .n-sitelogo::before {
        content: "";
        position: absolute;
        left: 212px; top: 15px;
        display: block;
        width: 1px; height: 30px;
        background-color: var(--color-gold-trans);
    }
    body:not(.page-home, .single, .error404) .n-sitelogo::after {
        content: "";
        position: absolute;
        left: 200px; top: 0;
        display: block;
        width: 112px; height: 60px;
        background: url(img/n-menu.png) no-repeat 0 100% / auto 130px;
        transform: scale(.9);
        transform-origin: left center;
    }
        body.page-author  .n-sitelogo::after { background-position: 0 100%; }
        body.page-book    .n-sitelogo::after { background-position: -112px 100%; }
        body.page-movie   .n-sitelogo::after { background-position: -224px 100%; }
        body.page-site    .n-sitelogo::after { background-position: -336px 100%; }
        body.page-message .n-sitelogo::after { background-position: -448px 100%; }
    
    .n-trigger {
        display: block;
    }
    .n-mask {
        position: fixed;
        left: 0; top: 0;
        display: block;
        width: 100vw; height: 100vh;
        background-color: rgba(0, 0, 0, .85);
    }
    .n-mask.hide {
        opacity: 0; pointer-events: none;
    }
    
    .n-menu {
        left: 0; top: 0;
        width: 240px; height: 100vh;
        background-color: #121111;
        overflow: scroll;
        -webkit-overflow-scrolling: touch;
    }
    .n-menu.hide { left: -240px; }
    .n-menu > li {
        display: block;
        width: 240px; height: auto;
        border-bottom: 1px solid var(--color-gold-trans);
    }
    .n-menu > li + li::before,
    .n-menu > li > a span,
    .n-menu > li::after {
        display: none;
    }
    .n-menu > li > a {
        position: relative;
        bottom: auto;
        height: 50px;
        background: url(img/n-menu-alt.png) no-repeat 0 0 / 200px auto;
    }
        .n-menu li#author  > a { background-position: 0 0; }
        .n-menu li#book    > a { background-position: 0 -50px; }
        .n-menu li#movie   > a { background-position: 0 -100px; }
        .n-menu li#site    > a { background-position: 0 -150px; }
        .n-menu li#message > a { background-position: 0 -200px; }
    .n-movieselect {
        position: relative;
        left: 40px; top: 0;
        width: 200px;
        background-color: transparent;
        border-radius: 0;
        opacity: 1;
    }
    .n-movieselect::before {
        display: none;
    }
    .n-movieselect li {
        border-top: 1px solid var(--color-gold-trans);
    }
    .n-movieselect li a {
        text-align: left;
    }
    
    /*---------- tab ----------*/
    .m-tab {
        gap: 0 0;
        justify-content: center;
        top: 60px;
        width: 100vw;
        margin: -50px -20px 40px;
    }
    .m-tab li       { flex: 1; }
    .m-tab li.large { flex: 1.5; }
    .m-tab li + li { border-left: 1px solid var(--color-beige); }
    .m-tab li a { padding: 0; font-size: .14rem; text-align: center; }
    
    /*---------- single ----------*/
    .single nav {
        background-color: var(--color-dark);
    }
    .single header {
        display: none;
    }
    .single main {
        width: 100vw;
        min-height: calc(100vh - 200px);
        margin-top: 60px;
    }
}