:root{
  /* ---- atmospheric viewer palette (UNCHANGED, 2026-11-04 re-theme) ----
     Deliberately kept dark/atmospheric per the joshuaaah.com color bible's own
     allowance for a photography-style dark "frame" around generated artwork.
     Still used by: every habitat page's .dome-wrap/.far-bg/.hud/.chat-panel/
     .auth-bar/.reveal/.depth-debug, plus the Dream Ledger/Gallery image-card
     frames (.today/.concept-card/.lightbox, styled inline on those pages).
     None of these are touched by this re-theme — only the surrounding site
     chrome (header/nav/footer/document-page cards) below switches to the
     light jx-* tokens. */
  --bg:#0b1410; --bg2:#0a1c17; --card:#122a24; --card2:#0f2420; --line:#2a5248;
  --amber:#e8b964; --leaf:#6fae5c; --leaf-dark:#3c7a40; --ink:#e9f3ee; --mute:#9fb8ac;
  --r:14px;

  /* ---- joshuaaah.com color bible — canonical tokens (2026-11-04) ----
     Copied verbatim from X:\WebSites\www.joshuaaah.com\styles.css /
     memory/feedback_joshuaaah_color_bible.md. Drives site CHROME only
     (header, nav, footer, document-page cards/badges) — see note above. */
  --jx-bg:             #FFFFFF;
  --jx-surface:        #F7F6FA;
  --jx-surface-alt:    #ECEAF1;
  --jx-primary:        #3B1F6B;
  --jx-primary-hover:  #5A3394;
  --jx-accent:         #0D9488;
  --jx-accent-hover:   #14B8A6;
  --jx-accent-text:    #0F766E;
  --jx-text:           #121117;
  --jx-text-secondary: #6B6974;
  --jx-border:          #D8D5E0;
  --jx-success:        #16A34A;
  --jx-spotlight:       #F97316;
  --jx-spotlight-hover: #FB923C;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* No @import/webfont <link> here on purpose: this server's CSP is
     style-src 'self' 'unsafe-inline' only (see server.mjs), so a remote
     fonts.googleapis.com stylesheet would be blocked and log a CSP
     console error. System-font fallbacks (Segoe UI / -apple-system)
     read close enough to Inter/Space Grotesk without one. */
  --font-sans: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI', Roboto, Arial, system-ui, -apple-system, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--jx-bg);color:var(--jx-text);font-family:var(--font-sans);min-height:100%}
h1,h2,h3{font-family:var(--font-display)}
a{color:var(--jx-accent-text)}
.wrap{max-width:920px;margin:0 auto;padding:0 16px 64px}
/* ---- Canonical header geometry (2026-11-01 cross-page consistency fix) ----
   This is now the ONE place header.site/nav.main/.brand geometry is defined. Every
   Living Art page -- habitat, document (home/gallery/about/dream-ledger), and
   standalone (pixelbuilder) -- links this stylesheet and gets this exact rule, with
   no per-page override anywhere, so the nav link row sits at the identical pixel
   position on every page when switching between exhibits. Values match what
   Terrarium/Vivarium/Biodome's own inline overrides used to duplicate (now removed);
   width/box-sizing/flex/align-self make this work correctly both as a normal block
   child of a document page AND as a flex child of a 100vh flex-column habitat-page
   body. Do not re-add a page-specific header.site/nav.main override -- that's the
   drift this fix removes. */
/* ---- site chrome: header/nav/footer (2026-11-04 re-theme) ----
   Solid deep-purple bar, white nav text — same treatment on EVERY page
   including habitat pages, since header.site/footer.site are opaque and
   sit at z-index:2, above the dark .far-bg atmospheric layer (which is
   position:fixed and extends behind them) -- this cannot affect the
   atmospheric viewer's own legibility. h1.page-title/p.lede are NOT
   opaque-backed, so their color here applies to document pages (white
   body bg); each habitat page's own inline <style> block re-pins them
   back to light/cream text so they stay legible over the dark exhibit
   scene -- see e.g. terrarium/index.html's ".habitat-page h1.page-title". */
header.site{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 16px;width:100%;max-width:1500px;margin:0 auto;box-sizing:border-box;
  background:var(--jx-primary);position:sticky;top:0;z-index:50;
  border-bottom:none;flex:0 0 auto;align-self:stretch}
.brand{display:flex;align-items:baseline;gap:10px;text-decoration:none;color:#fff}
.brand .mark{font-size:1.4rem}
.brand .name{font-weight:700;font-size:1.15rem;letter-spacing:.02em;color:#fff;font-family:var(--font-display)}
.brand .tagline{font-size:.72rem;color:rgba(255,255,255,0.75);font-weight:400;letter-spacing:.03em}
nav.main{display:flex;gap:4px;flex-wrap:wrap}
nav.main a{text-decoration:none;color:rgba(255,255,255,0.85);font-size:.76rem;letter-spacing:.02em;
  padding:5px 10px;border-radius:var(--radius-sm);transition:background .15s,color .15s}
nav.main a:hover,nav.main a.active{color:#fff;background:var(--jx-primary-hover)}
h1.page-title{font-size:1.7rem;margin:28px 0 6px;color:var(--jx-text);font-family:var(--font-display)}
p.lede{color:var(--jx-text-secondary);font-size:.95rem;line-height:1.55;max-width:640px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:28px 0}
.card{background:linear-gradient(165deg,var(--jx-surface-alt),#ffffff);border:1px solid var(--jx-border);border-radius:var(--radius-lg);padding:20px;text-decoration:none;color:var(--jx-text);display:flex;flex-direction:column;gap:8px;transition:border-color .15s,transform .15s,box-shadow .15s}
.card:hover{border-color:var(--jx-accent);transform:translateY(-3px);box-shadow:0 10px 24px rgba(59,31,107,0.12)}
.card .icon{font-size:1.6rem}
.card h2{margin:0;font-size:1.05rem;color:var(--jx-text);font-family:var(--font-display)}
.card p{margin:0;font-size:.82rem;color:var(--jx-text-secondary);line-height:1.5}
.card .go{margin-top:auto;font-size:.76rem;color:var(--jx-accent-text);letter-spacing:.03em}
.note{background:var(--jx-surface);border:1px solid var(--jx-border);border-radius:var(--radius-lg);padding:16px 18px;margin:30px 0;font-size:.84rem;color:var(--jx-text-secondary);line-height:1.6}
.note b{color:var(--jx-text)}
/* Home-page "v1 prototype" note badge only -- a distinct class from
   .stage-pill (kept below, unchanged dark/amber) so this light treatment
   never bleeds onto the habitat pages' own in-viewer HUD stage indicator,
   which reuses .stage-pill as an overlay on the dark exhibit scene. */
.jx-pill{display:inline-flex;align-items:center;gap:.4rem;padding:3px 10px 3px 8px;border-radius:999px;
  border:1px solid rgba(13,148,136,0.32);background:rgba(13,148,136,0.10);color:var(--jx-accent-text);
  font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;font-weight:700;margin-right:8px}
.jx-pill::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--jx-accent)}
.stage-pill{display:inline-block;padding:2px 9px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--amber);font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;margin-right:8px}
footer.site{max-width:1500px;width:100%;margin:40px auto 0;padding:14px 16px;box-sizing:border-box;
  background:var(--jx-primary);color:rgba(255,255,255,0.8);font-size:.78rem;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
footer.site a{color:rgba(255,255,255,0.8);text-decoration:none}
footer.site a:hover{color:#fff;text-decoration:underline}
section.policy h2{font-size:1.05rem;color:var(--jx-text);margin:26px 0 8px;font-family:var(--font-display)}
section.policy p{color:var(--jx-text-secondary);font-size:.88rem;line-height:1.65}
