/* ══════════════════════════════════════════════════════════════════════════════════════════
   BUILDER BOTS — THE SHELL
   The nav, the ground and the footer that make a page part of this site instead of a document
   that happens to be black. Lifted from index.html so there is ONE definition of the chrome:
   before this file the blog carried its own palette subset, its own type scale and no nav at
   all, and it read as a different property.

   Any new page: link this, paste the <nav> and <div class="foot"> blocks, add
   <canvas id="fieldCanvas"> and /js/codestream.js. That is the whole shell.
   ══════════════════════════════════════════════════════════════════════════════════════════ */

:root{
  /* Builder Bots palette — black · neon green · royal blue (no orange) */
  --bg:#000; --panel:#08080a; --panel2:#0d0d10;
  --royal:#2b4dff; --royal-hi:#5069ff; --royal-lo:#1a2fb8;
  --neon:#39ff14; --neon-hi:#6dff4a;
  /* legacy var names kept, remapped onto the scheme so all usages recolor (as index.html) */
  --orange:#2b4dff; --orange-hi:#5069ff;
  --blue:#2b4dff; --blue-hi:#5069ff; --cyan:#b14bff;
  --purple:#b14bff; --purple-hi:#c974ff;
  --gold:#c99bff;
  --green:#39ff14; --green-hi:#6dff4a;
  --t1:#ececef; --t2:#7a7a84; --t3:#3d3d46; --edge:#17171b;
  --mono:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,monospace;
  --sans:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,'Segoe UI',Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{background:var(--bg);color:var(--t1);font-family:var(--sans);
  font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
.mono{font-family:var(--mono)}

/* ── THE GROUND ─────────────────────────────────────────────────────────────────────────── */
#fieldCanvas{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;
  opacity:.9;filter:blur(2.6px)}
.shell{max-width:1120px;margin:0 auto;padding:24px 32px 80px;position:relative;z-index:1}
@media(max-width:620px){.shell{padding:20px 20px 64px}}

/* ── NAV ────────────────────────────────────────────────────────────────────────────────── */
.nav{display:flex;justify-content:space-between;align-items:center;
  padding:20px 32px;max-width:1120px;margin:0 auto;position:relative;z-index:20}
.nav-brand{display:flex;align-items:center;gap:11px;font-size:12px;letter-spacing:4px;
  text-transform:uppercase;color:var(--orange)}
.nav-mark{height:30px;width:auto;display:block}
.nav-wordmark{height:15px;width:auto;display:block}
/* ONE ROW, ALWAYS — the spacing yields before the links do. */
.nav-links{display:flex;align-items:center;gap:15px;flex-wrap:nowrap;min-width:0}
.nav-links a{font-size:10.5px;letter-spacing:1.6px;text-transform:uppercase;color:var(--t2);
  white-space:nowrap;transition:color .15s}
.nav-links a:hover{color:var(--orange)}
.nav-links a.cta{color:var(--orange)}
/* The page you are already on says so, instead of looking like every other link. */
.nav-links a[aria-current="page"]{color:var(--green)}

.navgrp{position:relative;display:flex;align-items:center}
.navgrp-t{font:inherit;font-family:var(--sans);font-size:10.5px;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--t2);background:none;border:0;padding:0;cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;transition:color .15s}
.navgrp-t svg{width:8px;height:5px;opacity:.7;transition:transform .18s,opacity .15s}
.navgrp:hover .navgrp-t,.navgrp:focus-within .navgrp-t{color:var(--green)}
.navgrp:hover .navgrp-t svg,.navgrp:focus-within .navgrp-t svg{transform:rotate(180deg);opacity:1}
/* Panel sits BELOW with the gap bridged by padding-top, so the pointer crosses no dead space. */
.navgrp-p{position:absolute;top:100%;left:-14px;padding-top:12px;min-width:186px;
  opacity:0;visibility:hidden;transform:translateY(-4px);
  transition:opacity .16s,transform .16s,visibility .16s}
.navgrp:hover .navgrp-p,.navgrp:focus-within .navgrp-p{opacity:1;visibility:visible;transform:none}
.navgrp-p a{display:block;padding:10px 14px;font-size:10.5px;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--t2);background:var(--panel);
  border-left:1px solid var(--edge);border-right:1px solid var(--edge);
  border-bottom:1px solid var(--edge)}
.navgrp-p a:first-child{border-top:1px solid var(--edge)}
.navgrp-p a:hover{color:var(--green);background:#0d0d10}
/* Keep the focus ring — removing it strands keyboard users — but in the brand's green. */
.navgrp-t:focus-visible,.nav-links a:focus-visible,a:focus-visible{outline:2px solid var(--green);
  outline-offset:3px;border-radius:1px}
@media(max-width:900px){.navgrp{display:none}}
/* Below 820 the nav keeps only the two CTAs and the X mark — index.html's own rule. Without it
   seven nowrap links push the page to a 583px scrollWidth on a 390px phone, which is a sideways
   scrollbar on every page that uses this shell. */
@media(max-width:820px){
  .nav{padding:16px}
  .nav-links a:not(.cta):not(.nav-social){display:none}
}
.nav-social svg{width:15px;height:15px;fill:currentColor;display:block}
.nav-sep{width:1px;height:15px;background:var(--edge)}

/* ── SECTION VOCABULARY (index.html's own) ──────────────────────────────────────────────── */
.eyebrow-row{font-size:10px;letter-spacing:3px;text-transform:uppercase;color:var(--green);
  margin:64px 0 6px}
.sec-title{font-size:clamp(26px,4vw,40px);font-weight:400;letter-spacing:1px;line-height:1.05;
  margin-bottom:12px}
.sec-lead{color:var(--t2);font-size:14px;max-width:620px;margin-bottom:8px}
.sec-lead b{color:var(--t1)}

.btn{display:inline-block;font-family:inherit;font-size:11px;letter-spacing:3px;
  text-transform:uppercase;padding:13px 20px;border:1px solid var(--orange);background:var(--bg);
  color:var(--orange);cursor:pointer;transition:background .12s,color .12s,box-shadow .12s}
.btn:hover{background:var(--orange);color:var(--bg)}
.btn.go{border-color:var(--green);color:var(--green)}
.btn.go:hover{background:var(--green);color:#06140a;box-shadow:0 0 26px rgba(57,255,20,.3)}
.btn.ghost{border-color:var(--edge);color:var(--t2)}
.btn.ghost:hover{border-color:var(--orange);color:var(--orange);background:transparent}

/* ── FOOTER ─────────────────────────────────────────────────────────────────────────────── */
/* align-self is load-bearing: .foot flips to column on mobile, which makes WIDTH the cross
   axis, and the default stretch flattened this mark on phones. */
.foot-mark{height:42px;width:auto;max-width:100%;display:block;opacity:.9;
  align-self:flex-start;object-fit:contain}
.foot{margin-top:64px;padding-top:22px;border-top:1px solid var(--edge);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:11px;
  color:var(--t3);letter-spacing:.5px}
.foot .live{color:var(--green)}
.foot .art-by b{color:var(--orange)}
/* "xEarn, DAO LLC" is the REGISTERED entity name — the comma is part of it. Do not tidy it. */
.foot .built-by{color:var(--t2)}
.foot .built-by b{color:var(--orange);font-weight:600}
.foot .built-by a{color:var(--t1);border-bottom:1px solid var(--edge)}
.foot .built-by a:hover{color:var(--orange);border-bottom-color:var(--orange)}
