/*
Theme Name: Mystery Boys Detective Headquarters
Theme URI: https://themysteryboys.com
Author: Mystery Boys
Description: Custom responsive detective-themed WordPress site with interactive, privacy-friendly missions and badges.
Version: 5.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mystery-boys-hq
*/
:root{--navy:#071a32;--navy2:#102d4b;--gold:#ffc64b;--paper:#fff1cc;--red:#b83135;--ink:#182438}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f5eddb;color:var(--ink);line-height:1.55}a{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ffad00;outline-offset:3px}.wrap{width:min(1140px,92%);margin:auto}.site-header{background:var(--navy);color:#fff;border-bottom:4px solid var(--gold);position:relative;z-index:3}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;flex-wrap:wrap}.brand{text-decoration:none;font-weight:1000;line-height:1.05;font-size:clamp(1.2rem,2.8vw,1.9rem);letter-spacing:.03em;color:var(--gold)}.brand span{display:block;color:#fff;font-size:.58em;letter-spacing:.17em;margin-top:5px}.nav{display:flex;gap:8px;flex-wrap:wrap}.nav a{font-weight:750;text-decoration:none;padding:9px 12px;border-radius:8px}.nav a:hover,.nav a:focus{background:#24466c}.hero{color:#fff;background:radial-gradient(circle at 80% 20%,#24567b 0,transparent 38%),linear-gradient(130deg,#07182b,#102c4b 70%,#172d43);padding:78px 0 85px;position:relative;overflow:hidden}.hero:after{content:'🔎';position:absolute;right:3%;bottom:-90px;font-size:320px;opacity:.07;transform:rotate(-20deg);pointer-events:none}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:35px;align-items:center}.eyebrow{text-transform:uppercase;color:var(--gold);font-weight:900;letter-spacing:.19em;font-size:.85rem}.hero h1{font-size:clamp(2.6rem,6vw,5.4rem);line-height:1.04;margin:13px 0 20px;max-width:750px}.hero p{font-size:1.15rem;max-width:590px;color:#e2ebf6}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:27px}.btn{display:inline-block;background:var(--gold);color:#152139;padding:13px 21px;border-radius:10px;border:0;font-weight:900;text-decoration:none;cursor:pointer;font:inherit;font-weight:850}.btn:hover{filter:brightness(1.06);transform:translateY(-1px)}.btn-outline{background:transparent;color:#fff;border:2px solid var(--gold)}.hero-card{background:#f8e6b8;color:#243048;padding:28px;transform:rotate(2deg);border:9px solid #d7b77b;border-radius:4px;box-shadow:14px 15px 0 #0005;text-align:center}.hero-card .stamp{display:inline-block;color:#9b2527;border:4px solid #9b2527;padding:6px 13px;font-size:.8rem;font-weight:1000;letter-spacing:.15em;transform:rotate(-7deg)}.hero-card h2{font-size:2rem;line-height:1.1}.hero-card .faces{font-size:5rem;letter-spacing:.1em}.section{padding:68px 0}.section h2{font-size:clamp(1.9rem,3.5vw,2.8rem);margin:0 0 9px}.lead{color:#526074;margin:0 0 30px;max-width:720px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border:1px solid #e3d6b8;border-radius:16px;padding:25px;box-shadow:0 8px 20px #1b2a3c0c}.card .symbol{font-size:2.7rem}.card h3{margin:10px 0;font-size:1.35rem}.card p{color:#4d5b6b}.card a{font-weight:800;color:#8b232a}.dark-section{background:var(--navy2);color:white}.dark-section .lead{color:#d1dce8}.dark-section .card{color:var(--ink)}.book-cover{height:185px;border-radius:12px;background:linear-gradient(150deg,#8e1b26,#2d1b34);display:flex;align-items:center;justify-content:center;color:#fff;font-size:4rem;margin-bottom:16px}.book-cover.green{background:linear-gradient(150deg,#0e5d39,#172d37)}.book-cover.purple{background:linear-gradient(150deg,#6b416c,#292e58)}.mission{background:#fff;border:3px dashed #c8a762;border-radius:18px;padding:26px;max-width:800px}.mission h3{margin-top:0}.choices{display:grid;gap:11px;margin:22px 0}.choice{background:#f2f5f9;border:2px solid #c8d2df;color:#142b44;padding:14px;text-align:left;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}.choice:hover{border-color:#b58422;background:#fff9e9}.choice:disabled{opacity:.75;cursor:default}.feedback{min-height:30px;font-weight:800}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.badge-tile{text-align:center;border-radius:16px;background:#fff;padding:25px;border:1px solid #e3d6b8}.badge-icon{font-size:4rem;display:block;filter:grayscale(1);opacity:.55}.badge-tile.earned .badge-icon{filter:none;opacity:1}.badge-status{font-weight:800;color:#576476}.badge-tile.earned .badge-status{color:#146b40}.parents{background:#ffefc6}.footer{background:#07182b;color:#dce8f5;padding:35px 0}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer a{color:#ffdb81}.small{font-size:.9rem}.page-body{min-height:45vh}.page-body .wrap{padding:60px 0}.notice{background:#fff6df;border-left:5px solid #d09b2e;padding:14px 18px;border-radius:6px;margin:18px 0}.sr-only{position:absolute;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){.hero-grid{grid-template-columns:1fr}.hero{padding:55px 0}.cards,.badge-grid{grid-template-columns:1fr 1fr}.hero-card{max-width:480px}.nav a{padding:8px}}@media(max-width:560px){.cards,.badge-grid{grid-template-columns:1fr}.header-inner{align-items:flex-start}.nav{gap:2px}.nav a{font-size:.87rem}.section{padding:46px 0}.hero-card .faces{font-size:3.5rem}}

/* Version 2: illustrated adventure meets secret headquarters */
.hero-v2{min-height:590px;display:flex;align-items:center;padding:86px 0;isolation:isolate;background:#081c34}.hero-image{position:absolute;inset:0;background-position:center;background-size:cover;z-index:-1}.hero-v2:after{display:none}.hero-content{position:relative}.hero-v2 h1{max-width:630px;font-size:clamp(3rem,6.2vw,5.6rem);text-shadow:0 3px 12px #0019}.hero-v2 h1 em{font-style:normal;color:var(--gold)}.hero-v2 p{max-width:510px;color:#fff;font-weight:600;text-shadow:0 2px 8px #001}.hero-note{margin-top:26px;font-weight:800;color:#ffe6a3}.intro-section{background:#fff0cf}.detective-pair{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.detective-panel{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 12px 28px #2b190a1a;display:grid;grid-template-columns:42% 1fr;min-height:245px}.detective-portrait{background-image:url('assets/book-chocolate.webp');background-repeat:no-repeat;background-size:auto 610px;background-color:#36214d}.detective-portrait.leon{background-position:33% 65%}.detective-portrait.toby{background-position:76% 70%}.detective-info{padding:25px;align-self:center}.detective-info h3{font-size:1.55rem;margin:8px 0}.detective-info p{color:#4b5568}.tag{color:#9d2b34;font-size:.72rem;letter-spacing:.14em;font-weight:1000}.books-v2{background:#0c2442;color:#fff}.books-v2 .lead{color:#dce7f5}.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.book-item{background:#fff;color:#19283c;padding:15px 15px 21px;border-radius:17px;box-shadow:0 12px 25px #0003}.book-item img{width:100%;height:370px;object-fit:contain;background:#10213a;border-radius:10px}.book-item h3{font-size:1.25rem;line-height:1.3;margin:15px 4px 7px}.book-item p{margin:0 4px;color:#536277}.book-footnote{margin-top:20px;color:#dce7f5}.hq-gateway{background-size:cover;background-position:center;min-height:480px;display:flex;align-items:center;color:white;padding:75px 0}.hq-gateway h2{font-size:clamp(2.4rem,5vw,4.4rem);line-height:1.08;max-width:590px;margin:13px 0}.hq-gateway p{max-width:440px;font-size:1.15rem;color:#fff;margin-bottom:26px}.mission-section{background:#f7edda}.mission{box-shadow:0 14px 30px #49321b16;border:3px dashed #c9a157}.case-label{font-size:.85rem;color:#9d2934;font-weight:1000;letter-spacing:.14em}.mission h3{font-size:1.6rem;margin:12px 0}.badges-v2{background:#0c2442;color:white}.badges-v2 .lead{color:#dce7f5}.badges-v2 .small{color:#dce7f5;margin-top:18px}.badge-tile{color:#19283c;border:3px solid #d9b568;box-shadow:0 7px 0 #06182c}.badge-tile .badge-icon{font-size:5rem}.badge-tile.earned{border-color:#ffcf48;background:#fff8df}.site-header{position:relative}.brand{font-size:clamp(1.05rem,2.5vw,1.65rem)}.nav a{font-size:.94rem}
@media(max-width:850px){.detective-pair{grid-template-columns:1fr}.book-grid{gap:14px}.book-item img{height:290px}}@media(max-width:600px){.hero-v2{min-height:540px;padding:55px 0}.hero-image{background-position:59% center}.hero-v2 h1{font-size:3rem}.book-grid{grid-template-columns:1fr}.book-item img{height:410px}.detective-panel{grid-template-columns:38% 1fr}.detective-portrait{background-size:auto 480px}.detective-info{padding:16px}.hq-gateway{min-height:410px;background-position:65% center}}

/* Version 3: centered editorial layout and responsive alignment */
:root{--content-max:1200px}
.wrap{width:calc(100% - 64px);max-width:var(--content-max);margin-inline:auto}
.site-header .header-inner{min-height:86px;flex-wrap:nowrap;gap:28px}
.site-header .nav{justify-content:flex-end;align-items:center;gap:4px}
.site-header .brand{flex:0 0 auto}
.section{padding-block:76px}
.section>.wrap>.eyebrow,.section>.wrap>h2,.section>.wrap>.lead{text-wrap:pretty}
.hero-v2{min-height:620px;padding:92px 0}
.hero-v2 .hero-image{background-position:center 44%;background-size:cover}
.hero-v2 .hero-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:420px}
.hero-v2 h1{font-size:clamp(3rem,4.9vw,4.65rem);line-height:1.09;letter-spacing:-.035em;max-width:560px;margin:18px 0 16px;text-wrap:balance}
.hero-v2 p{max-width:490px;font-size:1.1rem;line-height:1.7}
.hero-v2 .actions{margin-top:18px}
.hero-note{font-size:.92rem}
.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:24px}
.book-item{display:flex;flex-direction:column;min-width:0;padding:18px 18px 24px}
.book-item img{height:390px;display:block;object-fit:contain;object-position:center;background:#0e2340;padding:10px}
.book-item h3{min-height:2.6em;margin:18px 4px 8px;line-height:1.3;text-wrap:balance}
.book-item p{margin-top:auto}
.hq-gateway{min-height:520px;padding-block:85px;background-position:center 48%}
.hq-gateway>.wrap{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.hq-gateway h2{font-size:clamp(2.5rem,4.3vw,4rem);max-width:510px;letter-spacing:-.025em;text-wrap:balance}
.hq-gateway p{line-height:1.7;max-width:410px}
.detective-pair{gap:24px}
.detective-panel{min-width:0}
.mission{margin-inline:auto;width:100%;max-width:820px}
.mission-section>.wrap>.eyebrow,.mission-section>.wrap>h2,.mission-section>.wrap>.lead{text-align:center;margin-inline:auto}
.badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1020px){.site-header .header-inner{flex-wrap:wrap;justify-content:center}.site-header .nav{justify-content:center}.hero-v2 h1{max-width:510px}.detective-pair{grid-template-columns:1fr}.book-item img{height:325px}.book-grid{gap:16px}}
@media(max-width:760px){.wrap{width:calc(100% - 40px)}.section{padding-block:58px}.hero-v2{min-height:600px;padding-block:65px}.hero-v2 .hero-content{min-height:420px}.hero-v2 h1{font-size:clamp(2.65rem,8vw,3.8rem);max-width:480px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.book-item img{height:340px}.hq-gateway{min-height:470px}.badge-grid{gap:12px}}
@media(max-width:560px){.wrap{width:calc(100% - 32px)}.site-header .header-inner{align-items:center;padding:16px 0}.site-header .nav{gap:0}.site-header .nav a{font-size:.83rem;padding:8px}.hero-v2{min-height:570px;padding:48px 0}.hero-v2 .hero-content{min-height:460px}.hero-v2 h1{font-size:clamp(2.45rem,10vw,3.25rem);max-width:340px}.hero-v2 p{font-size:1rem;max-width:340px}.hero-v2 .actions{gap:10px}.hero-v2 .btn{padding:12px 14px;font-size:.91rem}.book-grid,.badge-grid{grid-template-columns:1fr}.book-item img{height:390px}.book-item h3{min-height:0}.detective-panel{grid-template-columns:36% 1fr}.hq-gateway{min-height:480px;background-position:61% center}.hq-gateway h2{font-size:2.6rem;max-width:340px}.mission{padding:20px}.section{padding-block:48px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn:hover{transform:none}}

/* Version 4: distinct imagery, readable split banners and consistent cover displays */
:root{--content-max:1160px}
html{scroll-padding-top:20px}
.wrap{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.site-header .header-inner{min-height:88px}
.hero-v4{background:radial-gradient(circle at 75% 15%,#214d78,transparent 46%),linear-gradient(140deg,#08172d,#0c2b4a);color:#fff;padding:74px 0 82px}
.hero-v4-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);align-items:center;gap:clamp(30px,5vw,72px)}
.hero-v4-copy h1{font-size:clamp(2.8rem,4.8vw,4.55rem);line-height:1.08;letter-spacing:-.045em;margin:16px 0 22px;max-width:610px;text-wrap:balance}
.hero-v4-copy h1 span{color:var(--gold)}
.hero-v4-copy>p{max-width:485px;font-size:1.09rem;line-height:1.7;color:#edf4ff}
.hero-v4-copy .actions{margin-top:26px}
.hero-v4-copy .hero-v4-note{font-size:.88rem;color:#ffe09a;font-weight:800;margin-top:20px}
.hero-v4-art{background:#f8e2a2;border:8px solid #ffcb63;box-shadow:0 22px 45px #0007;border-radius:20px;padding:18px;color:#102643;text-align:center;overflow:hidden}
.hero-v4-art-head{font-size:.95rem;letter-spacing:.12em;font-weight:1000;margin:2px 0 16px}
.hero-v4-faces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.hero-v4-faces figure{margin:0;border-radius:12px;overflow:hidden;background:#271c43;min-width:0}
.hero-v4-faces img{width:100%;aspect-ratio:4/4.75;object-fit:cover;display:block;object-position:center 18%}
.hero-v4-faces figcaption{background:#0b2542;color:#fff;font-weight:900;font-size:.85rem;letter-spacing:.14em;padding:9px}
.hero-v4-art-foot{font-weight:850;margin-top:14px;font-size:.95rem}
.section-heading{max-width:790px;margin:0 auto 34px;text-align:center}
.section-heading .lead{margin:0 auto}
.intro-section{background:#fff0cf}
.detective-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.detective-panel{display:grid;grid-template-columns:43% 57%;min-width:0;min-height:280px;border:1px solid #efd9ac;box-shadow:0 12px 24px #45301b12}
.detective-portrait-img{width:100%;height:100%;min-height:280px;object-fit:cover;object-position:center 17%;display:block}
.detective-info{padding:clamp(18px,2vw,30px)}
.detective-info h3{font-size:clamp(1.25rem,2vw,1.6rem)}
.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;align-items:stretch}
.book-item{padding:15px;min-width:0;display:flex;flex-direction:column;border-radius:16px}
.book-image-frame{width:100%;height:390px;display:flex;justify-content:center;align-items:center;background:#f6ebd8;border-radius:10px;padding:13px;overflow:hidden}
.book-item .book-image-frame img{display:block;width:auto;height:100%;max-width:100%;object-fit:contain;object-position:center;border-radius:3px;background:transparent;padding:0;filter:drop-shadow(0 7px 6px #15213730)}
.book-description{padding:16px 8px 4px;display:flex;flex-direction:column;flex:1}
.book-kicker{font-weight:900;color:#9a353b;font-size:.74rem;letter-spacing:.1em}
.book-item h3{margin:8px 0 10px;min-height:0;line-height:1.32;font-size:1.2rem}
.book-item p{margin:auto 0 0}
.hq-v4{background:#071a32;color:white;padding:70px 0}
.hq-v4-grid{display:grid;grid-template-columns:minmax(0,.79fr) minmax(0,1.21fr);align-items:center;gap:clamp(30px,5vw,70px)}
.hq-v4-copy h2{font-size:clamp(2.35rem,4.1vw,3.75rem);line-height:1.12;letter-spacing:-.035em;margin:15px 0 21px;text-wrap:balance}
.hq-v4-copy p{max-width:390px;line-height:1.7;color:#e8f0fc;font-size:1.1rem;margin-bottom:27px}
.hq-v4-image{border:5px solid #c69c55;border-radius:18px;overflow:hidden;position:relative;box-shadow:0 22px 38px #0008;min-width:0}
.hq-v4-image img{width:100%;height:390px;object-fit:cover;object-position:65% center;display:block}
.hq-v4-stamp{position:absolute;bottom:15px;right:15px;padding:8px 14px;background:#fff0c7;color:#8c222a;border:2px solid #9f3438;border-radius:3px;font-weight:1000;letter-spacing:.11em;transform:rotate(-3deg)}
.hq-v4-stamp span{display:block;font-size:.75rem}
.section h2{text-wrap:balance}
@media(max-width:900px){.hero-v4-grid,.hq-v4-grid{grid-template-columns:1fr}.hero-v4-copy,.hq-v4-copy{text-align:center}.hero-v4-copy h1,.hero-v4-copy>p,.hq-v4-copy p{margin-left:auto;margin-right:auto}.hero-v4-copy .actions{justify-content:center}.hero-v4-art{max-width:630px;width:100%;margin:auto}.hq-v4-image{max-width:720px;width:100%;margin:auto}.detective-pair{grid-template-columns:1fr}.book-grid{gap:14px}.book-image-frame{height:310px}}
@media(max-width:650px){.wrap{width:calc(100% - 32px)}.hero-v4{padding:54px 0 58px}.hero-v4-copy h1{font-size:clamp(2.55rem,10vw,3.65rem)}.hero-v4-art{padding:10px;border-width:5px}.hero-v4-faces{gap:8px}.hero-v4-art-head{font-size:.76rem}.hero-v4-art-foot{font-size:.83rem}.book-grid{grid-template-columns:1fr;max-width:420px;margin-inline:auto}.book-image-frame{height:430px}.detective-panel{grid-template-columns:39% 61%;min-height:245px}.detective-portrait-img{min-height:245px}.detective-info{padding:16px}.hq-v4{padding:52px 0}.hq-v4-image img{height:300px}.hq-v4-stamp{font-size:.75rem}.section-heading{margin-bottom:25px}}
@media(max-width:390px){.book-image-frame{height:365px}.hero-v4-copy .btn{width:100%;text-align:center}.detective-panel{grid-template-columns:36% 64%}.detective-info{padding:12px}.detective-info h3{font-size:1.15rem}}
