/*
Theme Name: Funaye
Theme URI: https://example.com/funaye
Author: Funaye
Description: Spiral archive portfolio theme for Funaye.
Version: 1.0.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: funaye
*/

@font-face {
    font-family: 'PexelGrotesk';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(webfonts/PexelGrotesk.otf) format('opentype');
}
@font-face {
    font-family: 'PPNeueMontreal';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(webfonts/PPNeueMontreal-Variable.woff2) format('woff2');
}
* {
    margin: 0;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    outline: none !important;
    vertical-align: baseline;
    list-style: none;
}
html, body {
    font-family:"PPNeueMontreal","Google Sans", "Noto Sans SC", sans-serif;
    font-size:var(--textSzie);
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    color: var( --color);
    background: linear-gradient(to top, #aaa 0%,rgba(255,255,255,1) 100%);
    height: 100%;
    width:100%;
    -webkit-font-smoothing: antialiased;
}
body {
    margin: 0;
    overflow: hidden;
}
h1,h2{
    font-family: "PexelGrotesk", serif;
}
:root{
    --color: #000;
    --textSzie: clamp(12px, 1vw, 19px);
    --headerH:60px;
}
a{
    text-decoration: none;
    color: var(--color);
}
#header{
    position: fixed;
    height:var(--headerH);
    top:0;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    background-color: white;

}
.indicator{
    position: relative;
    width: 100%;
    height: 100%;
}
.indicator ul{
    display: flex;
    height: 100%;
}
.indicator ul li{
    flex: 1;
    overflow: visible;
    line-height: 0;
    height: 100%;
    opacity: .55;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
    position: relative;
}
.indicator ul li:before{
    position: absolute;
    content: '';
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: transparent 2px solid;
    top:0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}
.indicator ul li.is-active{
    opacity: 1;

}
.indicator ul li.is-active:before{
    border-color: red;
}

.indicator ul li button{
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.indicator-title{
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 120;
    display: block;
    width: max-content;
    max-width: 18rem;
    padding: .28rem .45rem;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .35);
    color: #000;
    font-size: .75rem;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
}
.indicator ul li button:hover .indicator-title,
.indicator ul li button:focus-visible .indicator-title{
    opacity: 1;
}
.indicator ul li img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.glossy-button {
    /* gold metallic navigation button */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #8b5a05;
    cursor: pointer;
    color: #fff;
    background-color: #000;
    font-family: sans-serif;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    width: var(--headerH);
}
.indi_point_track {
    position: absolute;
    z-index: 56;
    width: 100%;
    height: var(--headerH);
    pointer-events: none;
    top:0;
    left: 0;
}
#indi_point {
    position: absolute;
    left: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-1px);
    background: red;
}
.spiral_container {
    position: fixed;
    top: var(--headerH);
    left: 0;
    z-index: 20;
    width: 80vw;
    height: calc(100vh - var(--headerH));
    will-change: transform;
    transition: transform 300ms cubic-bezier(.18,.82,.2,1);
}
.spiral_container.is-jump-reset {
    transition: none;
}
.spiral_item {
    position: absolute;
    will-change: transform;
    transition: opacity 220ms ease;
 
    border: transparent 1px solid ;

}
.spiral_item:not(.active){
    opacity: .82;
    cursor: pointer;
}
.spiral_item:hover{
    border-color: #00fffc ;
}
.spiral_item.active{
    opacity: 1;
     border-color:transparent;
}
.spiral_item_wrap{
    position: relative;
    overflow: auto;
    width: 100%;
    height: 100%;
    padding:2rem 1rem;

}

.spiral_item_wrap img{
    max-width: 100%;
    height: auto;
}
.spiral_item .cover-img,
.spiral_item .cover-img img{
    display: block;
}
.spiral_item .cover-img[data-lazy-pending="true"]{
    min-height: 260px;
    background: rgba(255,255,255,.35);
}
.spiral_item_wrap h1{
    font-size: 3rem;

}
.article-expand-button {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(0, 0, 0, .65);
    background: rgba(255, 255, 255, .88);
    color: #000;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.spiral_item.active .article-expand-button,
.article-float .article-expand-button {
    display: flex;
}
.article-float {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 12000;
    display: none;
    width: 80vw;
    height: 100vh;
    overflow: auto;
    background: white;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .18);
}
body.article-open .article-float {
    display: block;
}
.article-float_inner {
    min-height: 100%;
}
.article-float .spiral_item_wrap {
    min-height: 100vh;
    width: 100%;
    height: auto;
}
.article-float .article-expand-button {
    display: none;
}
.article-float-close {
    position: fixed;
    top: .75rem;
    right: calc(20vw + .75rem);
    z-index: 12020;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(0, 0, 0, .65);
    background: rgba(255, 255, 255, .92);
    color: #000;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.spiral_item_wrap figure{
    display: block;
    padding: 1rem 0;
}
.item_content{
    line-height: 1.5;
}
.item_content p{
    padding-bottom: 1rem;
}

#logo{
    position: fixed;
    z-index: 200;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
#logo.is-logo-compact{
    right: 2vw;
    width: 30vw;
    height: 12vw;
    backdrop-filter: none;
    pointer-events: none;
    z-index: 9999;
}
model-viewer {
    height: 100vw;
    width: 100vw;
    display: block;
    margin-top: -25vw;
}
#logo.is-logo-compact model-viewer {
    height: 30vw;
    width: 30vw;
    margin-top: -11vw;
}
.other-menu{
    position: fixed;
    top: calc(var(--headerH) + (100vh - var(--headerH)) / 2);
    right: 0;
    z-index: 160;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    border: 1px solid rgba(0, 0, 0, .45);
    border-right: 0;
    background: rgba(255, 255, 255, .88);
    color: #000;
    font-family: "PexelGrotesk", serif;
    font-size: clamp(14px, 1.2vw, 22px);
    line-height: 1;
    padding: .6rem .18rem;
    cursor: pointer;
}
.about-panel{
    position: fixed;
    top: var(--headerH);
    right: 0;
    z-index: 159;
    width: 50vw;
    height: calc(100vh - var(--headerH));
    overflow: auto;
    background: rgba(255, 255, 255, .94);
    border-left: 2px solid rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform 520ms cubic-bezier(.18,.82,.2,1);
}
body.about-open .about-panel{
    transform: translateX(0);
}
.about-panel_inner{
    min-height: 100%;
    padding: 2rem 2rem 20vw 2rem;
}
.about-panel h2{
    font-size: clamp(2rem, 5vw, 5.5rem);
    line-height: .95;
    margin-bottom: 2rem;
}
.about-panel p{
    max-width: 34rem;
    font-size: clamp(1rem, 1.45vw, 1.6rem);
    line-height: 1.35;
    margin-bottom: 1.2rem;
}
.simple-template {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: calc(var(--headerH) + 2rem) 1rem 4rem 1rem;
}
.simple-entry {
    max-width: 72rem;
}
.simple-entry h1 {
    font-size: clamp(2.6rem, 8vw, 7rem);
    line-height: .95;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    :root {
        --headerH: 58px;
        --textSzie: 15px;
    }
    html,
    body {
        min-height: 100%;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }
    body {
        padding-top: var(--headerH);
    }
    #header {
        height: var(--headerH);
    }
    .indicator {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    .indicator ul {
        width: max-content;
        min-width: 100%;
    }
    .indicator ul li {
        flex: 0 0 76px;
    }
    .indicator-title {
        display: none;
    }
    .glossy-button {
        flex: 0 0 var(--headerH);
        width: var(--headerH);
    }
    .spiral_container {
        position: static;
        z-index: 1;
        width: 100%;
        height: auto;
        transform: none !important;
        transition: none;
        will-change: auto;
    }
    .spiral_item {
        position: relative;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        opacity: 1 !important;
        transform: none !important;
        transform-origin: center !important;
        border-bottom: 1px solid rgba(0, 0, 0, .25);
        will-change: auto;
    }
    .spiral_item_wrap {
        min-height: 100vh;
        height: auto;
        padding: 1.2rem .9rem 4rem .9rem;
        overflow: visible;
    }
    .spiral_item_wrap h1 {
        font-size: clamp(2.1rem, 13vw, 4.4rem);
        line-height: .98;
        margin-bottom: 1rem;
        word-break: break-word;
    }
    .spiral_item_wrap figure {
        padding: .5rem 0 1rem 0;
    }
    .item_content {
        font-size: 1rem;
        line-height: 1.42;
    }
    .article-expand-button {
        display: flex;
        position: sticky;
        top: calc(var(--headerH) + .75rem);
        margin-left: auto;
    }
    .article-float {
        width: 100vw;
        height: 100vh;
    }
    .article-float-close {
        right: .75rem;
    }
    .about-panel {
        top: var(--headerH);
        width: 85vw;
        height: calc(100vh - var(--headerH));
        z-index: 11000;
    }
    .other-menu {
        z-index: 11010;
    }
    #logo {
        z-index: 20000;
        width: 100vw;
        height: 100vh;
        right: 0;
        bottom: 0;
        backdrop-filter: blur(20px);
        cursor: pointer;
    }
    #logo.is-logo-compact {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 38vh;
        transform: translateY(50%);
        backdrop-filter: none;
        pointer-events: auto;
        z-index: 9000;
    }
    model-viewer {
        width: 100vw;
        height: 100vw;
        margin-top: -18vw;
    }
    #logo.is-logo-compact model-viewer {
        width: 100vw;
        height: 100vw;
        margin-top: -18vw;
    }
    .mobile-load-sentinel {
        width: 100%;
        height: 1px;
    }
}
