/* The John Searl Story — A Viewer's Companion
   Dark cinematic "investigative dossier" editorial theme.
   Content is always visible with CSS alone; nothing is gated on JS. */

:root{
  --bg:#0d0f12;
  --bg-alt:#15181d;
  --panel:#1a1e24;
  --panel-2:#20252c;
  --line:#2b313a;
  --text:#e8e6e1;
  --muted:#9aa0a8;
  --gold:#e0a340;
  --gold-lt:#f2c46b;
  --cyan:#4fb0c6;
  --cyan-dk:#2f7f92;
  --maxw:1180px;
  --measure:44rem;
  --radius:8px;
  --shadow:0 14px 40px rgba(0,0,0,.45);
  --font-body:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  --font-head:'Fraunces','Iowan Old Style',Georgia,'Times New Roman',serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font-body);font-size:17px;line-height:1.7;
  background-image:radial-gradient(1200px 600px at 80% -10%,rgba(224,163,64,.06),transparent 60%),
                   radial-gradient(900px 500px at 0% 0%,rgba(79,176,198,.05),transparent 55%);
  background-attachment:fixed;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold-lt);text-decoration:none}
a:hover{color:#fff;text-decoration:underline;text-underline-offset:2px}
.page{display:flex;flex-direction:column;min-height:100vh}

/* Safeguard: never let any reveal library trap content invisible */
[data-aos]{opacity:1 !important;transform:none !important}

.skip-link{position:absolute;left:-999px;top:0;background:var(--gold);color:#111;padding:.5rem 1rem;z-index:1000;border-radius:0 0 6px 0}
.skip-link:focus{left:0}

/* ---------- Header / nav ---------- */
.site-header{position:sticky;top:0;z-index:100;background:rgba(13,15,18,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav-wrap{max-width:var(--maxw);margin:0 auto;padding:.55rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--text);font-family:var(--font-head);font-weight:600;letter-spacing:.2px}
.brand:hover{text-decoration:none;color:#fff}
.brand-mark{width:26px;height:26px;border-radius:50%;flex:0 0 auto;border:2px solid var(--gold);position:relative;box-shadow:0 0 0 3px rgba(224,163,64,.12)}
.brand-mark::after{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--cyan)}
.brand-text{display:flex;flex-direction:column;line-height:1.05;font-size:1.02rem}
.brand-sub{font-family:var(--font-body);font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-weight:600}
.site-nav{margin-left:auto}
.site-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:.15rem;margin:0;padding:0}
.site-nav a{color:var(--muted);font-size:.83rem;font-weight:500;padding:.4rem .6rem;border-radius:6px;white-space:nowrap;letter-spacing:.01em}
.site-nav a:hover{color:#fff;background:var(--panel-2);text-decoration:none}
.site-nav a.active{color:var(--gold-lt);background:rgba(224,163,64,.10)}
.nav-toggle{display:none}
.nav-burger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;margin-left:auto}
.nav-burger span{width:24px;height:2px;background:var(--text);border-radius:2px;transition:.25s}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.92) contrast(1.02)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,15,18,.55) 0%,rgba(13,15,18,.72) 55%,rgba(13,15,18,.94) 100%)}
.hero-inner{position:relative;max-width:var(--maxw);margin:0 auto;padding:clamp(3.5rem,9vw,7rem) 1.25rem clamp(2.5rem,6vw,4rem)}
.hero .kicker{color:var(--gold);text-transform:uppercase;letter-spacing:.22em;font-size:.72rem;font-weight:700;margin:0 0 .9rem}
.hero h1{font-family:var(--font-head);font-weight:700;font-size:clamp(2.1rem,6vw,4rem);line-height:1.02;margin:0;max-width:16ch;text-wrap:balance}
.hero .standfirst{color:var(--muted);font-size:clamp(1.05rem,2.3vw,1.35rem);max-width:52ch;margin:1.1rem 0 0;line-height:1.5}

/* ---------- Main / prose ---------- */
.site-main{flex:1;width:100%}
.prose{max-width:var(--measure);margin:0 auto;padding:clamp(2rem,5vw,3.5rem) 1.25rem 4rem}
.prose-hero{padding-top:clamp(1.75rem,4vw,2.75rem)}
.prose h1{font-family:var(--font-head);font-weight:700;font-size:clamp(1.9rem,5vw,2.9rem);line-height:1.06;margin:.2rem 0 1rem;text-wrap:balance}
.prose h2{font-family:var(--font-head);font-weight:600;font-size:clamp(1.4rem,3.4vw,1.9rem);line-height:1.15;margin:2.4rem 0 .5rem;padding-top:1.1rem;border-top:1px solid var(--line);color:#fff}
.prose h3{font-family:var(--font-head);font-weight:600;font-size:1.2rem;margin:1.6rem 0 .4rem;color:var(--gold-lt)}
.prose p{margin:0 0 1.1rem}
.prose ul,.prose ol{margin:0 0 1.2rem;padding-left:1.3rem}
.prose li{margin:.35rem 0}
.prose strong{color:#fff}
.prose em{color:#f3efe6}
.prose > p:first-of-type{font-size:1.12rem;color:#eef0ec}

/* Callout notes — the neutrality/skepticism device */
.note{border-radius:var(--radius);padding:1.05rem 1.2rem 1.05rem 1.3rem;margin:1.6rem 0;background:var(--panel);border:1px solid var(--line);position:relative}
.note::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:var(--radius) 0 0 var(--radius)}
.note p{margin:0}
.note.skeptic{background:linear-gradient(180deg,rgba(79,176,198,.08),rgba(79,176,198,.03))}
.note.skeptic::before{background:var(--cyan)}
.note.skeptic strong{color:var(--cyan)}
.note.unofficial{background:linear-gradient(180deg,rgba(224,163,64,.09),rgba(224,163,64,.03))}
.note.unofficial::before{background:var(--gold)}
.note.unofficial strong{color:var(--gold-lt)}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.1rem;margin:1.5rem 0 2rem}
.gallery-grid figure{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.gallery-grid img{width:100%;aspect-ratio:3/2;object-fit:cover}
.gallery-grid figcaption{padding:.7rem .85rem .9rem;font-size:.85rem;color:var(--muted);line-height:1.5}

/* Glossary + resource lists */
dl.glossary{margin:1rem 0 1.5rem;border-top:1px solid var(--line)}
dl.glossary dt{font-family:var(--font-head);font-weight:600;color:var(--gold-lt);margin:1.1rem 0 .25rem;font-size:1.06rem}
dl.glossary dd{margin:0 0 .4rem;color:var(--text)}
ul.resource-list{list-style:none;padding:0;margin:.6rem 0 1.6rem}
ul.resource-list li{padding:.55rem 0;border-bottom:1px solid var(--line)}

/* ---------- Footer ---------- */
.site-footer{background:var(--bg-alt);border-top:1px solid var(--line);margin-top:auto}
.foot-inner{max-width:var(--maxw);margin:0 auto;padding:3rem 1.25rem 1.5rem;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem}
.foot-about{color:var(--muted);font-size:.9rem;line-height:1.6}
.foot-about .brand-mark{margin-bottom:.7rem}
.foot-col h3{font-family:var(--font-head);font-size:.95rem;color:#fff;margin:0 0 .7rem;letter-spacing:.02em}
.foot-col ul{list-style:none;padding:0;margin:0}
.foot-col li{margin:.35rem 0}
.foot-col a{color:var(--muted);font-size:.86rem}
.foot-col a:hover{color:var(--gold-lt);text-decoration:none}
.foot-bar{border-top:1px solid var(--line)}
.foot-bar p{max-width:var(--maxw);margin:0 auto;padding:1.1rem 1.25rem;font-size:.8rem;color:var(--muted)}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .foot-inner{grid-template-columns:1fr 1fr}
  .foot-about{grid-column:1 / -1}
}
@media (max-width:720px){
  .nav-burger{display:flex}
  .site-nav{margin-left:0;flex-basis:100%;max-height:0;overflow:hidden;transition:max-height .3s ease}
  .nav-toggle:checked ~ .site-nav{max-height:80vh}
  .site-nav ul{flex-direction:column;gap:.1rem;padding:.4rem 0 .6rem}
  .site-nav a{display:block;font-size:.95rem;padding:.6rem .5rem}
  .nav-toggle:checked ~ .nav-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle:checked ~ .nav-burger span:nth-child(2){opacity:0}
  .nav-toggle:checked ~ .nav-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}
@media (max-width:560px){
  .foot-inner{grid-template-columns:1fr}
  body{font-size:16px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
