/*
Theme Name: JD Kaess Quantum
Author: JD Kaess
Description: Cinematic responsive Quantum Step author landing page.
Version: 1.5.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: jd-kaess-quantum
*/

:root {color-scheme:dark;--green:#66ff66;}
* {box-sizing:border-box;}
body {margin:0;padding:48px 24px 28px;min-height:100vh;color:#fff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:#07120b;}
body::before {content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.38)),url("assets/Background_L-optimized.webp") center/cover no-repeat;}
.container {width:min(1280px,100%);margin:auto;text-align:center;}
.profile-img {width:96px;height:96px;object-fit:cover;border-radius:50%;border:2px solid var(--green);margin-bottom:16px;}
h1 {font-size:clamp(2rem,4vw,3rem);margin:0 0 12px;text-shadow:0 2px 16px #000;}
.bio {max-width:520px;margin:0 auto 32px;line-height:1.6;color:#eef6ee;text-shadow:0 2px 8px #000;}
.link-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,480px) minmax(0,1fr);gap:28px;align-items:center;}
.links-container {grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:16px;}
.link-card {display:block;padding:20px 18px;border:1px solid rgba(102,255,102,.45);border-radius:14px;background:rgba(5,18,11,.88);color:#fff;text-decoration:none;font-size:1rem;font-weight:650;line-height:1.4;box-shadow:0 8px 28px #0005;transition:transform .2s,background .2s;}
.link-card.featured {background:var(--green);color:#08200d;border-color:var(--green);}
.link-card:hover {transform:translateY(-3px);background:#173822;}
.link-card.featured:hover {background:#91ff91;}
a:focus-visible {outline:3px solid #fff;outline-offset:5px;}
.book {display:block;width:100%;max-width:320px;height:auto;margin:auto;mix-blend-mode:screen;}
.book-front {grid-column:1;grid-row:1;}
.book-back {grid-column:3;grid-row:1;}
.social-icons {display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:36px;}
.social-icons a,.social-icons .pending {display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #66ff6660;border-radius:50%;background:#06130dde;color:#fff;}
.social-icons a:hover {color:var(--green);border-color:var(--green);}
.social-icons svg {width:23px;height:23px;fill:currentColor;}
.social-icons .pending {opacity:.45;}
@media(max-width:767px) {
 body {padding:32px 18px 24px;}
 body::before {background-image:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.38)),url("assets/Background_P-optimized.webp");}
 .link-layout {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 12px;max-width:520px;margin:auto;}
 .links-container {grid-column:1 / -1;grid-row:1;}
 .book-front {grid-column:1;grid-row:2;}
 .book-back {grid-column:2;grid-row:2;}
 .book {max-width:240px;}
 .social-icons {margin-top:28px;}
}
@media(prefers-reduced-motion:reduce) {.link-card {transition:none;}}

.cover-link {display:block;min-width:0;border-radius:12px;}
.cover-link .book {transition:transform .2s;}
.cover-link:hover .book {transform:scale(1.025);}
@media(prefers-reduced-motion:reduce) {.cover-link .book {transition:none;}}

.description {max-width:900px;margin:auto;background:rgba(4,16,9,.92);border:1px solid #66ff6655;border-radius:22px;padding:clamp(24px,5vw,48px);box-shadow:0 20px 70px #0008;}
.back-button {display:inline-block;margin-bottom:28px;background:transparent;color:#fff;border:1px solid #66ff6680;border-radius:10px;padding:12px 18px;font:inherit;text-decoration:none;}
.back-button:hover {background:#173822;}
.description h1 {font-family:Georgia,serif;font-size:clamp(2rem,5vw,3.2rem);color:#66ff66;}
.description h2 {font-family:Georgia,serif;font-size:clamp(1.3rem,3vw,1.8rem);font-weight:normal;margin:8px 0 12px;}
.description p {line-height:1.8;font-size:1.05rem;}
.description .eyebrow {color:#a8e8ac;font-size:.9rem;}
.description .hook {font-family:Georgia,serif;font-size:1.35rem;line-height:1.5;}
.description .link-card {text-align:center;margin-top:28px;}

.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)} .screen-reader-text:focus{clip:auto;width:auto;height:auto;position:fixed;top:8px;left:8px;z-index:10000;background:#fff;color:#000;padding:12px} .entry-content img{max-width:100%;height:auto;}
.tnp-subscription{max-width:520px;margin:24px auto;} .tnp-subscription input:not([type=checkbox]):not([type=radio]){border-radius:10px;} .tnp-subscription input[type=submit]{background:#66ff66;color:#08200d;font-weight:700;}

/* Quantum Chronicles blog */
.blog-home .tagline{max-width:560px;margin:0 auto 8px;color:#eef6ee;}
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,320px));gap:20px;margin:30px 0;justify-content:center;text-align:left;}
.post-card{border:1px solid rgba(102,255,102,.45);border-radius:14px;background:rgba(5,18,11,.88);overflow:hidden;box-shadow:0 8px 28px #0005;transition:transform .2s;}
.post-card:hover{transform:translateY(-3px);}
.post-card .post-thumb{width:100%;height:180px;object-fit:cover;display:block;}
.post-card-body{padding:18px;}
.post-meta{margin:0 0 8px;color:#9fb3a3;font-size:.82rem;letter-spacing:.06em;text-transform:uppercase;}
.post-card h2{margin:0 0 10px;font-size:1.25rem;text-shadow:none;}
.post-card h2 a{color:#fff;text-decoration:none;}
.post-card h2 a:hover{color:var(--green);}
.post-card-body p{color:#eef6ee;line-height:1.6;font-size:.95rem;}
.read-more{color:var(--green);font-weight:700;text-decoration:none;}
.read-more:hover{text-decoration:underline;}
.pagination{margin:30px 0;text-align:center;}
.pagination .page-numbers{color:var(--green);padding:8px 12px;text-decoration:none;}
.pagination .current{color:#fff;font-weight:700;}
.single-post{max-width:760px;margin:0 auto;text-align:left;}
.single-post h1{text-align:center;}
.single-post .post-meta{text-align:center;}
.post-featured{width:100%;height:auto;border-radius:14px;margin:20px 0;}
.single-post .entry-content p{line-height:1.8;color:#eef6ee;margin:0 0 1.2em;}
.single-post .entry-content h2,.single-post .entry-content h3{color:var(--green);}
.single-post .entry-content a{color:var(--green);}
.single-post .entry-content img{max-width:100%;height:auto;border-radius:10px;}
.post-nav{display:flex;justify-content:space-between;gap:16px;margin:36px 0;flex-wrap:wrap;}
.post-nav a{color:var(--green);text-decoration:none;font-weight:600;}
.author-card{border:1px solid rgba(102,255,102,.45);border-radius:14px;background:rgba(5,18,11,.88);padding:22px;margin:20px 0 10px;text-align:center;}
.author-card p{color:#eef6ee;margin:10px 0 18px;}
.author-card .link-card{display:inline-block;padding:12px 26px;}
