/*
Theme Name: Space 2047
Theme URI: https://space2047.com/
Author: Space 2047
Description: Cinematic sci-fi comedy theme with centered neon logo, social links, full-width hero and accessible accordion hamburger navigation.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: space2047
*/
:root{--ink:#020d20;--navy:#031a37;--blue:#007dff;--cyan:#00dfff;--yellow:#ffe21b;--white:#f5f8ff;--muted:#c6d8f2;--max:1440px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--white);font-family:Arial,Helvetica,sans-serif;line-height:1.55}
a{color:inherit}img{max-width:100%;height:auto}button{font:inherit}
.site-shell{min-height:100vh;overflow:hidden}
.site-header{position:relative;z-index:100;width:100%;background:linear-gradient(90deg,#03152d,#05244a 50%,#03152d);border-bottom:2px solid #00aaff;box-shadow:0 0 22px rgba(0,177,255,.2)}
.header-inner{position:relative;width:100%;min-height:100px;padding:12px clamp(22px,3.4vw,58px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px}
.social-links{display:flex;align-items:center;gap:clamp(12px,2vw,25px);justify-self:start}
.social-links a{width:26px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#20dfff;text-decoration:none;font-size:25px;font-weight:900;line-height:1;filter:drop-shadow(0 0 7px rgba(0,216,255,.45));transition:.2s}
.social-links a:hover{color:var(--yellow);transform:translateY(-2px)}
.social-links svg{width:25px;height:25px;fill:currentColor}
.site-branding{display:flex;align-items:center;justify-content:center;text-decoration:none;min-width:0}
.site-branding img.custom-logo{display:block;max-width:min(390px,38vw);max-height:78px;width:auto;object-fit:contain}
.site-branding .wordmark{display:block;width:min(410px,42vw);height:auto;filter:drop-shadow(0 5px 5px rgba(0,0,0,.72)) drop-shadow(0 0 12px rgba(0,153,255,.38))}
.menu-toggle{justify-self:end;width:56px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;color:var(--yellow);cursor:pointer}
.menu-toggle span{width:39px;height:4px;background:var(--yellow);display:block;box-shadow:0 0 8px rgba(255,226,27,.35);transition:transform .2s,opacity .2s}
.menu-toggle[aria-expanded=true] span:first-child{transform:translateY(11px) rotate(45deg)}
.menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-11px) rotate(-45deg)}
.menu-overlay{position:absolute;top:calc(100% + 1px);right:clamp(18px,2vw,36px);width:min(360px,calc(100vw - 36px));padding:0;background:rgba(1,15,34,.98);border:1px solid var(--cyan);box-shadow:0 0 25px rgba(0,187,255,.25);display:none}
.menu-overlay.is-open{display:block}
.menu-overlay ul{list-style:none;margin:0;padding:0}
.menu-overlay li{position:relative;border-bottom:1px solid rgba(0,190,255,.3)}
.menu-overlay li:last-child{border-bottom:0}
.menu-overlay .menu-item-row{display:flex;align-items:center;min-height:49px}
.menu-overlay a{display:block;flex:1;padding:13px 16px;color:#f1f7ff;font-size:.91rem;font-weight:800;text-decoration:none;text-transform:uppercase;letter-spacing:.025em}
.menu-overlay a:hover,.menu-overlay a:focus{color:var(--yellow)}
.menu-overlay .current-menu-item>a{color:var(--yellow)}
.submenu-toggle{width:46px;height:46px;margin-right:5px;border:0;background:transparent;color:var(--cyan);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.submenu-toggle:before{content:"";width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .18s}
.submenu-toggle[aria-expanded=true]:before{transform:rotate(225deg) translate(-2px,-1px)}
.menu-overlay .sub-menu{display:none;padding:0 0 7px 18px;background:rgba(0,75,130,.18)}
.menu-overlay .sub-menu.submenu-open{display:block}
.menu-overlay .sub-menu a{font-size:.82rem;font-weight:600;text-transform:none;padding:9px 16px}
.site-main{width:100%}
.wrap{width:min(var(--max),calc(100% - 48px));margin-inline:auto}
.hero{position:relative;isolation:isolate;min-height:680px;display:flex;align-items:center;overflow:hidden;background:#031735 url("assets/space2047-hero-art.jpg") center 48%/cover no-repeat;border-bottom:2px solid #007dff}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,10,27,.86) 0%,rgba(0,17,43,.62) 27%,rgba(0,19,48,.16) 52%,rgba(0,13,34,.04) 100%)}
.hero-inner{width:100%;max-width:var(--max);margin:auto;padding:90px clamp(28px,5.5vw,90px);display:flex;align-items:center}
.hero-copy{max-width:570px}
.eyebrow{color:var(--yellow);font-size:.92rem;font-weight:900;letter-spacing:.28em;text-transform:uppercase}
.hero h1{margin:15px 0 12px;color:#fff;font-size:clamp(3.5rem,6vw,5.6rem);font-weight:1000;line-height:.93;letter-spacing:-.06em;text-shadow:0 4px 2px rgba(0,0,0,.95),0 8px 14px rgba(0,0,0,.85),0 0 18px rgba(0,153,255,.85);text-transform:uppercase}
.hero-copy p{max-width:540px;margin:0;color:#f1f6ff;font-size:1.16rem;font-weight:600;text-shadow:0 2px 8px #00132f}
.button-row{display:flex;flex-wrap:wrap;gap:18px;margin-top:28px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 27px;border:2px solid var(--yellow);border-radius:9px;background:var(--yellow);color:#06152b;font-weight:900;text-decoration:none;text-transform:uppercase;letter-spacing:.02em;transition:.2s}
.button:hover{transform:translateY(-2px);background:#fff37c;color:#06152b}
.button-outline{border-color:var(--cyan);background:rgba(0,17,40,.58);color:#aeeeff}
.button-outline:hover{background:rgba(0,193,255,.18);color:#fff}
.category-strip{background:linear-gradient(90deg,#02142c,#052b58,#02142c);border-bottom:1px solid rgba(0,175,255,.5)}
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);padding:28px 0}
.category-item{min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 12px;text-align:center;text-decoration:none;font-size:1rem;font-weight:800;border-right:1px solid #008fff}
.category-item:last-child{border-right:0}
.category-item .icon{font-size:2.35rem;line-height:1;color:var(--cyan);filter:drop-shadow(0 0 8px rgba(0,220,255,.45))}
.category-item:nth-child(1) .icon,.category-item:nth-child(4) .icon,.category-item:nth-child(5) .icon{color:var(--yellow)}
.category-item:hover{color:var(--yellow)}
.section{padding:76px 0;background:radial-gradient(ellipse at 50% 0,rgba(0,76,145,.25),transparent 60%),#03142c}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}
.section-heading h2{margin:0;color:var(--yellow);font-size:clamp(2rem,4vw,3.2rem);line-height:1;text-transform:uppercase}
.section-heading p{max-width:520px;margin:0;color:var(--muted)}
.book-feature{display:grid;grid-template-columns:minmax(240px,.65fr) minmax(0,1fr);gap:46px;align-items:center;padding:34px;border:1px solid rgba(0,190,255,.5);background:linear-gradient(120deg,rgba(0,76,145,.28),rgba(2,19,43,.9))}
.book-cover{width:min(100%,370px);margin-inline:auto;line-height:0;box-shadow:0 18px 45px rgba(0,0,0,.55),0 0 24px rgba(0,190,255,.18)}
.book-cover img{display:block;width:100%;height:auto}
.book-copy h2{margin:0 0 12px;font-size:clamp(2rem,4vw,3rem);line-height:1}
.book-copy h3{margin:0 0 14px;color:var(--yellow);font-size:.95rem;letter-spacing:.08em;text-transform:uppercase}
.book-copy p{color:#e0ecff}
.book-meta{padding:0;margin:18px 0;list-style:none;color:#dcecff;font-size:.9rem}
.book-meta li{margin:5px 0}
.content-section{padding:56px 0;background:#03142c}
.entry-content{color:#e5efff}.entry-content a{color:var(--yellow)}
.site-footer{padding:34px 24px;background:#010a18;border-top:1px solid rgba(0,190,255,.4);color:#b9cadd;text-align:center;font-size:.88rem}
.site-footer a{color:var(--yellow)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:800px){
 .header-inner{min-height:82px;padding:10px 18px;grid-template-columns:auto 1fr auto;gap:12px}
 .social-links{gap:8px}.social-links a{width:22px;font-size:20px}.social-links svg{width:21px;height:21px}
 .site-branding img.custom-logo{max-width:min(260px,42vw);max-height:58px}.site-branding .wordmark{width:min(280px,45vw)}
 .menu-toggle{width:44px;height:46px}.menu-toggle span{width:31px}
 .hero{min-height:650px;background-position:58% center}
 .hero:before{background:linear-gradient(90deg,rgba(0,10,27,.82),rgba(0,14,37,.42) 48%,rgba(0,13,34,.04) 100%)}
 .hero-inner{padding:75px 26px}
 .hero h1{font-size:clamp(2.7rem,7vw,4rem)}
 .hero-copy p{font-size:1rem}
 .hero-book{width:min(100%,190px)}
 .category-grid{grid-template-columns:repeat(5,1fr)}
 .category-item{font-size:.78rem;padding:7px 4px}
 .category-item .icon{font-size:1.8rem}
}
@media(max-width:560px){
 .header-inner{grid-template-columns:auto 1fr auto;min-height:74px;padding-inline:12px}
 .social-links{gap:5px}.social-links a{width:19px;font-size:17px}.social-links svg{width:18px;height:18px}
 .site-branding img.custom-logo{max-width:40vw;max-height:48px}.site-branding .wordmark{width:42vw}
 .menu-toggle{width:38px}.menu-toggle span{width:27px;height:3px}
 .hero{min-height:690px;background-position:58% center}
 .hero:before{background:linear-gradient(180deg,rgba(0,10,27,.78) 0%,rgba(0,12,32,.48) 48%,rgba(0,10,27,.08) 100%)}
 .hero-inner{align-content:center;padding:52px 24px}
 .hero h1{font-size:clamp(2.8rem,13vw,4rem)}
 .hero-copy p{font-size:1rem;max-width:440px}
 .button{min-height:46px;padding:10px 17px;font-size:.82rem}
 .category-grid{grid-template-columns:repeat(2,1fr);padding:14px 0}
 .category-item{min-height:78px;border-right:0;border-bottom:1px solid rgba(0,143,255,.35);font-size:.82rem}
 .category-item:last-child{grid-column:1/-1;border-bottom:0}
 .book-feature{grid-template-columns:1fr;padding:22px;gap:26px}
 .book-cover{width:min(76%,300px)}
 .section{padding:54px 0}
 .section-heading{display:block}.section-heading p{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}
