/* Xeno Header: the shared logo-and-icons header, plus a dark base for the simple pages. */
@font-face{font-family:'Clepto';src:url('fonts/Clepto-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Oxanium';src:url('fonts/Oxanium-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

body.xeno-has-header{--jet:#00272B;--lime:#E0FF4F;--paper:#EAF2F2}

/* Header: logo and name on the left, social icons on the right, fixed to the top */
body.xeno-has-header .wp-block-post-content>.xeno-header{max-width:none!important;margin:0!important}
body.xeno-has-header .xeno-header{position:fixed;top:var(--xeno-top,var(--wp-admin--admin-bar--height,0px));left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:clamp(.7rem,1.8vmin,1.2rem) clamp(1rem,3vw,2.5rem);background:linear-gradient(180deg,rgba(0,39,43,.88) 0,rgba(0,39,43,0) 100%)}
body.xeno-has-header .xeno-header>*,
body.xeno-has-header .xeno-brand>*,
body.xeno-has-header .xeno-social>*{margin:0!important}
body.xeno-has-header .xeno-brand{display:flex;align-items:center;gap:.7rem;margin:0!important}
body.xeno-has-header .xeno-brand figure{margin:0!important;width:clamp(2.6rem,5.2vmin,3.8rem);flex:none}
body.xeno-has-header .xeno-brand img{display:block;width:100%;height:auto;filter:invert(1)}
body.xeno-has-header .xeno-brand p{margin:0;font-family:'Clepto',monospace;font-size:clamp(.95rem,2.3vmin,1.35rem);letter-spacing:.06em;line-height:1;text-transform:uppercase}
body.xeno-has-header .xeno-brand a{color:var(--paper);text-decoration:none}
body.xeno-has-header .xeno-brand a:hover{color:var(--lime)}
body.xeno-has-header .xeno-social{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:clamp(.6rem,1.6vw,1.2rem);margin:0!important}
body.xeno-has-header .xeno-header a:focus-visible{outline:2px solid var(--paper);outline-offset:4px}

/* The icons carry their own styling, so they look right even on pages where Spectra's page styles are not loaded */
body.xeno-has-header .xeno-header .uagb-icon-wrapper{margin:0;line-height:0}
body.xeno-has-header .xeno-header .uagb-svg-wrapper{display:inline-flex;padding:5px;line-height:0}
body.xeno-has-header .xeno-header .uagb-svg-wrapper svg{display:block;width:26px;height:26px;fill:var(--paper);transition:fill 200ms ease}
body.xeno-has-header .xeno-header .uagb-svg-wrapper:hover svg,
body.xeno-has-header .xeno-header .uagb-svg-wrapper:focus-within svg{fill:var(--lime)}

/* Light version (the NAMTAR page): the same header in black on white, in the page flow, replacing the theme header */
body.xeno-header-light .wp-site-blocks>header{display:none}
body.xeno-header-light .xeno-header{position:sticky;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.08)}
body.xeno-header-light .xeno-brand img{filter:none}
body.xeno-header-light .xeno-brand a{color:#000}
body.xeno-header-light .xeno-brand a:hover{color:var(--fuchsia)}
body.xeno-header-light .xeno-header .uagb-svg-wrapper svg{fill:#000}
body.xeno-header-light .xeno-header .uagb-svg-wrapper:hover svg,
body.xeno-header-light .xeno-header .uagb-svg-wrapper:focus-within svg{fill:var(--fuchsia)}
body.xeno-header-light .xeno-header a:focus-visible{outline-color:#000}

/* Looping clips that replaced animated GIFs on the NAMTAR page: same sizes and crop shapes as the old pictures */
.xeno-gifvideo{margin-left:0;margin-right:0}
.xeno-gifvideo video{display:block;width:100%;height:auto}
.xeno-gifvideo.is-style-rounded video{border-radius:9999px}
.xeno-gifvideo--ratio-1 video{aspect-ratio:1/1;object-fit:cover}
.xeno-gifvideo--ratio-3-4 video{aspect-ratio:3/4;object-fit:cover}
.xeno-gifvideo-link{position:relative;cursor:pointer}

/* The copyright line: small letters at the bottom of every page (fixed to the bottom of the one-screen Home page) */
body.xeno-has-header .xeno-copyright-bar{position:relative;z-index:3;padding:1.5rem clamp(1rem,4vw,4rem) 1.25rem;text-align:center}
body.xeno-has-header .xeno-copyright-bar p{margin:0;font-family:'Oxanium',sans-serif;font-size:.75rem;letter-spacing:.05em;line-height:1.5;color:var(--paper);opacity:.7;text-shadow:0 0 .6em rgba(0,0,0,.8)}
body.xeno-home .xeno-copyright-bar{background:rgba(0,39,43,.92)}

/* Phones: WordPress's admin bar scrolls away with the page there, so the header slides up to the top of
   the screen over the same distance. Tied to the scroll position in CSS, so it can never lag. */
@keyframes xeno-follow-bar{from{top:var(--wp-admin--admin-bar--height,46px)}to{top:0px}}
@media (max-width:600px){
@supports (animation-timeline:scroll()){
body.admin-bar.xeno-has-header .xeno-header{animation:xeno-follow-bar linear both;animation-timeline:scroll(root block);animation-range-start:0px;animation-range-end:var(--wp-admin--admin-bar--height,46px)}
}
}

/* Narrow screens: keep all the icons on one line next to the name */
@media (max-width:480px){
body.xeno-has-header .xeno-header{gap:.5rem}
body.xeno-has-header .xeno-brand{gap:.5rem}
body.xeno-has-header .xeno-brand p{font-size:.9rem;letter-spacing:.04em}
body.xeno-has-header .xeno-social{flex-wrap:nowrap;gap:.2rem}
body.xeno-has-header .xeno-social .uagb-svg-wrapper{padding:3px!important}
}

/* Dark base for the simple pages: one solid colour, a big Clepto title, no theme header or footer */
body.xeno-solid{background-color:#000;background-image:linear-gradient(180deg,var(--jet) 0,var(--jet) 80px,#000 65vh);background-repeat:no-repeat;background-attachment:fixed;background-size:100% 100vh;color:var(--paper);--wp--style--root--padding-right:0px;--wp--style--root--padding-left:0px}
body.xeno-solid .wp-site-blocks>header,
body.xeno-solid .wp-site-blocks>footer{display:none}
body.xeno-solid .wp-block-post-title{background:none!important;max-width:none;margin:0;padding:clamp(6rem,12vh,8rem) clamp(1rem,4vw,4rem) 0;font-family:'Clepto',monospace;font-weight:400;font-size:min(12vmin,8.5vw);line-height:.95;letter-spacing:.02em;text-align:left!important;text-transform:uppercase;color:var(--lime)}


/* Name and description, centered in the header */
body.xeno-has-header .xeno-id{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:.5rem;margin:0!important;text-align:center;white-space:nowrap;pointer-events:none}
body.xeno-has-header .xeno-id p{margin:0!important}
body.xeno-has-header .xeno-id-name{font-family:'Clepto',monospace;font-size:clamp(1.2rem,2.2vw,1.9rem);letter-spacing:.14em;line-height:1;text-transform:uppercase;color:var(--paper)}
body.xeno-has-header .xeno-id-tag{font-family:'Oxanium',sans-serif;font-size:clamp(.75rem,1.05vw,1rem);letter-spacing:.16em;line-height:1;white-space:pre;color:var(--paper);opacity:.72}
body.xeno-header-light .xeno-id-name,body.xeno-header-light .xeno-id-tag{color:#000}
@media (max-width:1100px){
body.xeno-has-header .xeno-header{flex-wrap:wrap;row-gap:.3rem}
body.xeno-has-header .xeno-id{position:static;transform:none;order:3;flex:0 0 100%;gap:.3rem;pointer-events:auto}
body.xeno-has-header .xeno-id-name{font-size:clamp(1.05rem,4.7vw,1.5rem);letter-spacing:.12em}
body.xeno-has-header .xeno-id-tag{font-size:clamp(.68rem,2.85vw,.9rem);letter-spacing:.1em}
body.xeno-has-header .wp-block-post-title{padding-top:clamp(8rem,22vw,9.5rem)!important}
body.xeno-home .xeno-links{padding-top:max(10.2rem,17vh)!important}
}


/* Hide the phone's big play button on background videos (they are decoration, not players) */
.xeno-video::-webkit-media-controls,.xeno-video::-webkit-media-controls-start-playback-button,.xeno-game video::-webkit-media-controls,.xeno-game video::-webkit-media-controls-start-playback-button,.xeno-mm-item video::-webkit-media-controls,.xeno-mm-item video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none;opacity:0;pointer-events:none}


/* Header fade: a soft dark, slightly blurred gradient behind the header so page text scrolling underneath fades out instead of colliding with the name and icons */
body.xeno-has-header:not(.xeno-header-light) .xeno-header{background:none}
body.xeno-has-header:not(.xeno-header-light) .xeno-header::before{content:'';position:absolute;left:0;right:0;top:0;height:calc(100% + 2.8rem);z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(0,22,25,.96) 0,rgba(0,32,36,.9) 55%,rgba(0,39,43,.55) 82%,rgba(0,39,43,0) 100%);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);-webkit-mask-image:linear-gradient(180deg,#000 0,#000 62%,transparent 100%);mask-image:linear-gradient(180deg,#000 0,#000 62%,transparent 100%)}
