/*
Theme Name: Cameron's World
Theme URI: https://itscameronsworld.com/
Author: Cameron's World
Description: A playful, child-first WordPress theme inspired by the Cameron's World YouTube banner.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: camerons-world
*/

:root {
  --night: #050b31;
  --deep: #08194f;
  --blue: #0b43a0;
  --cyan: #12e7ff;
  --aqua: #9ffaff;
  --pink: #f42bdf;
  --yellow: #ffd840;
  --lime: #7affcb;
  --white: #f7fbff;
  --ink: #10183d;
  --muted: #4b587a;
  --round: 1.45rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--night); color: var(--white); font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif; font-size: 17px; line-height: 1.58; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:absolute; top:-5rem; left:1rem; z-index:1000; padding:.7rem 1rem; background:#fff; color:var(--night); border-radius:.6rem; }
.skip-link:focus { top:1rem; }

/* The header is part of the night-sky canvas, not a separate corporate bar. */
.site-header { position:relative; z-index:10; margin-bottom:-1px; color:#fff; background:linear-gradient(90deg,#050b31 0%,#0a1748 55%,#080d34 100%); border-bottom:1px solid rgba(18,231,255,.28); }
.header-inner { width:min(1280px,calc(100% - 3rem)); min-height:86px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.brand { display:flex; align-items:center; flex:0 0 auto; text-decoration:none; }
.brand-image { width:min(205px,26vw); max-height:67px; object-fit:contain; }
.custom-logo { width:auto; max-width:200px; max-height:62px; object-fit:contain; }
.site-nav ul { display:flex; align-items:center; justify-content:flex-end; gap:clamp(.7rem,2vw,1.65rem); list-style:none; margin:0; padding:0; }
.site-nav a { display:inline-flex; align-items:center; min-height:42px; color:#e5f9ff; font-size:.88rem; font-weight:900; text-decoration:none; text-transform:uppercase; letter-spacing:.08em; }
.site-nav a:hover { color:var(--cyan); }
.site-nav .nav-youtube a { min-height:46px; padding:.55rem 1rem; border:2px solid var(--pink); border-radius:999px; background:linear-gradient(100deg,#f42bdf,#8b2fff); box-shadow:0 0 22px rgba(244,43,223,.35); color:#fff; }
.site-nav .nav-youtube a:hover { transform:translateY(-2px); color:#fff; }
.site-main { min-height:65vh; overflow:hidden; background:var(--night); }

.world-hero { position:relative; min-height:clamp(500px,50vw,750px); overflow:hidden; background:var(--night); isolation:isolate; }
.world-banner { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 48%; }
.hero-vignette { position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg,rgba(3,8,35,.96) 0%,rgba(3,8,35,.66) 22%,transparent 58%),linear-gradient(90deg,rgba(4,10,40,.18),transparent 38%,transparent 70%,rgba(4,10,40,.16)); }
.hero-caption { position:absolute; left:max(2rem,calc((100vw - 1180px)/2)); bottom:clamp(2rem,5vw,4.8rem); width:min(690px,calc(100% - 4rem)); text-shadow:0 3px 16px rgba(0,0,0,.5); }
.hero-sticker { display:inline-flex; align-items:center; gap:.45rem; margin:0 0 .6rem; padding:.28rem .8rem; border:1px solid rgba(18,231,255,.65); border-radius:999px; background:rgba(5,13,51,.76); color:var(--cyan); font-size:.78rem; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.hero-sticker span { color:var(--yellow); }
.hero-caption h1 { max-width:700px; margin:0; color:#fff; font-size:clamp(2.5rem,6.2vw,5.4rem); font-weight:1000; line-height:.98; letter-spacing:-.045em; text-wrap:balance; }
.hero-caption > p:not(.hero-sticker) { max-width:640px; margin:.85rem 0 1.25rem; color:#e8faff; font-size:clamp(1rem,1.7vw,1.24rem); font-weight:650; }
.hero-orbit { position:absolute; color:var(--yellow); font-size:2rem; text-shadow:0 0 15px currentColor; animation:twinkle 3.2s ease-in-out infinite; }
.orbit-left { top:17%; left:8%; }.orbit-right { top:22%; right:8%; color:var(--cyan); animation-delay:1s; }
@keyframes twinkle { 50% { transform:scale(.75) rotate(45deg); opacity:.58; } }
.button { display:inline-flex; min-height:49px; align-items:center; justify-content:center; gap:.55rem; padding:.72rem 1.2rem; border:0; border-radius:999px; font-weight:1000; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.button:hover { transform:translateY(-3px) rotate(-1deg); filter:brightness(1.08); box-shadow:0 8px 24px rgba(0,0,0,.25); }
.button-yellow { background:linear-gradient(110deg,#ffe45b,#ffb51e); color:#1b1a45; box-shadow:0 0 22px rgba(255,216,64,.28); }
.button-cyan { background:linear-gradient(110deg,#4af5ff,#00bde8); color:#07163d; }
.button-pink { background:linear-gradient(110deg,#ff54e7,#bc46ff); color:#fff; box-shadow:0 0 22px rgba(244,43,223,.3); }

.section-pad { padding:clamp(3.5rem,7vw,6.5rem) 1.4rem; }
.section-inner { width:min(1160px,100%); margin:auto; }
.adventure-section { position:relative; background:radial-gradient(ellipse at 50% -12%,rgba(23,68,156,.78),transparent 56%),linear-gradient(180deg,#070f3a,#08133f 64%,#070e37); }
.adventure-section::before { content:""; position:absolute; top:-17px; left:-3%; width:106%; height:35px; border-top:4px solid var(--cyan); border-radius:50%; box-shadow:0 -7px 20px rgba(18,231,255,.22); }
.section-heading { max-width:790px; margin:0 auto 2.25rem; text-align:center; }
.eyebrow { margin:0 0 .5rem; color:var(--cyan); font-size:.77rem; font-weight:1000; letter-spacing:.16em; text-transform:uppercase; }
.section-heading .eyebrow span { color:var(--yellow); }
.section-heading h2,.book-copy h2,.family-inner h2 { margin:.12rem 0 .55rem; color:#fff; font-size:clamp(2rem,4.2vw,3.35rem); font-weight:1000; line-height:1.04; letter-spacing:-.04em; text-wrap:balance; }
.section-heading > p:last-child { margin:0; color:#c7dcff; font-size:1.1rem; }
.adventure-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.1rem; }
.adventure-card { position:relative; min-height:235px; padding:1.35rem 1.25rem 1.3rem; overflow:hidden; border:2px solid rgba(255,255,255,.32); border-radius:1.25rem 1.25rem 2rem 1.25rem; color:var(--ink); box-shadow:0 14px 26px rgba(0,0,0,.24); transition:transform .2s ease,box-shadow .2s ease; }
.adventure-card:hover { transform:translateY(-7px) rotate(-1deg); box-shadow:0 22px 34px rgba(0,0,0,.3); }
.card-play { background:linear-gradient(145deg,#38edff,#12bde7); }
.card-create { background:linear-gradient(145deg,#ff81ee,#f241d6); }
.card-move { background:linear-gradient(145deg,#ffe46b,#ffbd34); }
.card-explore { background:linear-gradient(145deg,#6fffd0,#31d9a6); }
.card-icon { width:74px; height:74px; display:grid; place-items:center; border:3px solid rgba(255,255,255,.9); border-radius:25px 25px 27px 16px; background:rgba(255,255,255,.38); font-size:2.55rem; box-shadow:0 6px 14px rgba(4,28,75,.16); }
.card-number { position:absolute; top:1rem; right:1rem; color:rgba(16,24,61,.5); font-size:.8rem; font-weight:1000; letter-spacing:.1em; }
.adventure-card h3 { margin:.9rem 0 .08rem; color:#08133d; font-size:1.6rem; font-weight:1000; line-height:1; }
.adventure-card p { max-width:220px; margin:.32rem 0 0; color:#162148; font-size:.97rem; font-weight:700; line-height:1.35; }
.watch-banner { display:flex; align-items:center; gap:1.2rem; margin-top:2.4rem; padding:1.35rem 1.55rem; border:1px solid rgba(18,231,255,.55); border-radius:1.3rem; background:linear-gradient(100deg,rgba(5,19,67,.96),rgba(25,25,103,.89)); box-shadow:inset 0 0 30px rgba(18,231,255,.07),0 16px 35px rgba(0,0,0,.2); }
.play-badge { width:58px; height:58px; flex:0 0 auto; display:grid; place-items:center; padding-left:4px; border:3px solid var(--cyan); border-radius:50%; background:linear-gradient(140deg,#f62fe0,#712dff); color:#fff; font-size:1.35rem; box-shadow:0 0 19px rgba(18,231,255,.4); }
.watch-banner .eyebrow { margin-bottom:.16rem; }
.watch-banner h2 { margin:0; color:#fff; font-size:clamp(1.3rem,2.5vw,1.8rem); line-height:1.12; }
.watch-banner p:not(.eyebrow) { margin:.18rem 0 0; color:#cdefff; }
.watch-banner .button { margin-left:auto; flex:0 0 auto; }

.book-section { color:var(--ink); background:linear-gradient(125deg,#eafaff 0%,#c7f5ff 50%,#dbedff 100%); }
.book-layout { display:grid; grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr); align-items:center; gap:clamp(2rem,7vw,6rem); }
.book-scene { position:relative; min-height:390px; display:grid; place-items:center; overflow:hidden; border-radius:2.2rem 1.2rem 2rem 1.2rem; background:radial-gradient(circle at 35% 30%,#fff57d 0 4%,transparent 4.5%),radial-gradient(circle at 70% 72%,#01bce7,transparent 30%),linear-gradient(140deg,#00dcf2,#1354b8 68%,#121855); box-shadow:0 20px 40px rgba(5,31,83,.2); }
.book-scene::before,.book-scene::after { content:""; position:absolute; width:140%; height:110px; left:-20%; border:5px solid rgba(255,255,255,.4); border-color:rgba(255,255,255,.45) transparent transparent; border-radius:50%; transform:rotate(-11deg); }
.book-scene::before { top:4%; }.book-scene::after { bottom:-3%; transform:rotate(9deg); }
.book-cover { position:relative; z-index:1; width:auto; height:340px; max-width:72%; object-fit:cover; border:5px solid #fff; border-radius:.45rem .9rem .9rem .35rem; box-shadow:12px 15px 0 rgba(4,18,63,.42),0 16px 30px rgba(3,28,93,.3); transform:rotate(-3deg); }
.scene-sparkle { position:absolute; z-index:2; color:var(--yellow); font-size:2.1rem; text-shadow:0 0 15px #fff; }.sparkle-one { top:12%; right:15%; }.sparkle-two { bottom:15%; left:14%; color:#fff; }
.book-copy { max-width:650px; }
.book-copy .eyebrow { color:#07658e; }
.book-copy h2 { color:#081744; font-size:clamp(2.15rem,4.3vw,3.5rem); }
.book-copy > p:not(.eyebrow) { max-width:590px; color:#354266; font-size:1.08rem; }
.book-points { margin:1.15rem 0 1.5rem; padding:0; list-style:none; }
.book-points li { position:relative; margin:.43rem 0; padding-left:1.8rem; color:#182958; font-weight:800; }
.book-points li::before { content:"✦"; position:absolute; left:.1rem; color:#e825c9; }
.book-note { color:#3b4c78; font-size:.91rem; font-weight:800; }

.family-section { position:relative; overflow:hidden; background:radial-gradient(ellipse at 10% 50%,rgba(13,76,177,.45),transparent 45%),linear-gradient(115deg,#050b31,#111650); }
.family-inner { display:grid; grid-template-columns:minmax(190px,.48fr) minmax(0,1.25fr); align-items:center; gap:clamp(2rem,6vw,5.5rem); max-width:980px; }
.family-inner h2 { max-width:690px; }
.family-inner p:not(.eyebrow) { max-width:680px; color:#d6e9ff; font-size:1.08rem; }
.family-sticker { width:clamp(150px,18vw,210px); aspect-ratio:1; display:grid; place-items:center; border:4px solid #fff; border-radius:48% 52% 45% 55% / 54% 44% 56% 46%; background:linear-gradient(145deg,#ffe950,#ffb423); color:#07133e; text-align:center; box-shadow:8px 12px 0 var(--pink),0 0 32px rgba(255,216,64,.25); transform:rotate(-8deg); }
.family-sticker span { font-size:clamp(1.05rem,2vw,1.4rem); font-weight:1000; line-height:1.04; letter-spacing:-.04em; text-shadow:1px 2px rgba(255,255,255,.55); }
.text-link { display:inline-flex; align-items:center; gap:.45rem; color:var(--cyan); font-weight:1000; text-decoration-thickness:2px; }
.text-link:hover { color:#fff; }

.site-footer { position:relative; padding:2rem 1.4rem 1.6rem; border-top:1px solid rgba(18,231,255,.25); background:#030827; color:#d9e9ff; }
.footer-inner { width:min(1160px,100%); margin:auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; }
.footer-brand { display:inline-flex; align-items:center; text-decoration:none; }
.footer-logo { width:min(165px,38vw); max-height:66px; object-fit:contain; }
.footer-links { display:flex; flex-wrap:wrap; gap:1.25rem; }
.footer-links a { color:#d9e9ff; font-size:.86rem; font-weight:900; text-decoration:none; text-transform:uppercase; letter-spacing:.08em; }
.footer-links a:hover { color:var(--cyan); }
.footer-copy { flex-basis:100%; margin:0; color:#93a8ce; font-size:.79rem; }

.content-wrap { width:min(900px,calc(100% - 2.5rem)); margin:0 auto; padding:clamp(2.5rem,6vw,5rem) 0; color:#172449; }
.content-wrap h1 { color:#081744; font-size:clamp(2rem,5vw,3.5rem); line-height:1.1; }
.content-wrap a { color:#075d9f; }
.content-wrap .wp-block-group.alignfull { padding-left:max(1.25rem,calc((100% - 1100px)/2)); padding-right:max(1.25rem,calc((100% - 1100px)/2)); }

@media (max-width:850px) {
  .header-inner { width:calc(100% - 2rem); min-height:75px; }
  .brand-image { width:165px; }
  .site-nav ul { gap:.8rem; }
  .site-nav a { font-size:.75rem; }
  .adventure-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .adventure-card { min-height:205px; }
  .book-layout { gap:2.2rem; }
  .book-scene { min-height:350px; }
}
@media (max-width:600px) {
  body { font-size:16px; }
  .header-inner { align-items:flex-start; flex-direction:column; justify-content:center; gap:.45rem; padding:.65rem 0 .8rem; }
  .brand-image { width:153px; max-height:52px; }
  .site-nav { width:100%; overflow-x:auto; scrollbar-width:none; }
  .site-nav::-webkit-scrollbar { display:none; }
  .site-nav ul { width:max-content; gap:.85rem; }
  .site-nav a { min-height:34px; font-size:.69rem; }
  .site-nav .nav-youtube a { min-height:38px; padding:.42rem .72rem; }
  .world-hero { min-height:570px; }
  .world-banner { object-position:50% 50%; }
  .hero-vignette { background:linear-gradient(0deg,rgba(3,8,35,.97) 0%,rgba(3,8,35,.82) 33%,rgba(3,8,35,.12) 80%); }
  .hero-caption { left:1.15rem; bottom:2rem; width:calc(100% - 2.3rem); }
  .hero-caption h1 { font-size:clamp(2.4rem,12vw,3.8rem); }
  .hero-caption > p:not(.hero-sticker) { font-size:1rem; }
  .orbit-left { left:5%; top:18%; }.orbit-right { right:5%; top:24%; }
  .section-pad { padding:3.7rem 1.1rem; }
  .section-heading { margin-bottom:1.6rem; }
  .section-heading h2,.book-copy h2,.family-inner h2 { font-size:2.2rem; }
  .adventure-grid { gap:.75rem; }
  .adventure-card { min-height:192px; padding:1rem; }
  .card-icon { width:59px; height:59px; border-radius:20px; font-size:2rem; }
  .adventure-card h3 { font-size:1.35rem; }
  .adventure-card p { font-size:.85rem; }
  .watch-banner { align-items:flex-start; flex-wrap:wrap; gap:.75rem; padding:1.1rem; }
  .play-badge { width:48px; height:48px; font-size:1.1rem; }
  .watch-banner > div:nth-child(2) { flex:1 1 calc(100% - 65px); }
  .watch-banner .button { margin:0 0 0 3.6rem; }
  .book-layout { grid-template-columns:1fr; gap:2rem; }
  .book-scene { min-height:380px; }
  .book-cover { height:330px; max-width:76%; }
  .family-inner { grid-template-columns:1fr; justify-items:center; gap:2rem; text-align:center; }
  .family-inner > div:last-child { max-width:600px; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
  .footer-links { gap:.9rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; }
}
