:root{
  --bg: #0b0e14;
  --bg-soft:#111620;
  --text:#e6edf3;
  --muted:#9fb0c3;
  --accent:#7bdcff;
  --accent-2:#7affb9;
  --card:#0f1420;
  --border:#1b2332;
  --shadow: rgba(0,0,0,.4);
}
:root.light{
  --bg:#f7fafc;
  --bg-soft:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --accent:#2563eb;
  --accent-2:#10b981;
  --card:#ffffff;
  --border:#e2e8f0;
  --shadow: rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.container{max-width:1100px;margin:0 auto;padding:0 1rem}

.site-header{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(0deg, rgba(0,0,0,0) 0%, var(--bg) 30%);
  border-bottom:1px solid var(--border);
  backdrop-filter:saturate(180%) blur(8px);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0;gap:.5rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--text);font-weight:700;letter-spacing:.2px}
.logo{width:28px;height:28px}
.site-nav{display:flex;align-items:center;gap:1rem}
.site-nav a{color:var(--text);text-decoration:none;opacity:.9}
.site-nav a:hover{opacity:1}
.nav-toggle{display:none;background:none;border:1px solid var(--border);border-radius:.5rem;color:var(--text);padding:.4rem .6rem}
.theme-toggle{background:none;border:1px solid var(--border);border-radius:.5rem;color:var(--text);padding:.4rem .6rem}

@media (max-width: 760px){
  .nav-toggle{display:block}
  .site-nav{position:fixed;inset:56px 0 auto 0;background:var(--bg-soft);padding:1rem;display:none;flex-direction:column;border-bottom:1px solid var(--border)}
  .site-nav.open{display:flex}
}

.hero{
  background:
    radial-gradient(80% 100% at 20% 0%, rgba(123,220,255,.12), transparent 70%),
    radial-gradient(60% 100% at 80% 0%, rgba(122,255,185,.10), transparent 70%);
  border-bottom:1px solid var(--border);
}
.hero-inner{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:2rem;padding:4rem 0}
.hero-copy h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:.2rem 0 .6rem}
.hero .lead{color:var(--muted);max-width:50ch}
.cta{display:flex;gap:.75rem;margin-top:1rem;flex-wrap:wrap}
.btn{display:inline-block;padding:.7rem 1rem;border:1px solid var(--border);border-radius:.7rem;text-decoration:none;color:var(--text);background:var(--bg-soft);box-shadow:0 1px 2px var(--shadow);}
.btn.primary{background:linear-gradient(135deg,var(--accent), var(--accent-2));color:#001018;border-color:transparent;font-weight:700}
.btn.small{padding:.45rem .7rem;font-size:.9rem}

.hex-bg{
  width:100%;height:280px;border-radius:1rem;
  background-image: 
    linear-gradient(120deg, rgba(123,220,255,.35), rgba(122,255,185,.15)),
    repeating-linear-gradient(60deg, transparent, transparent 16px, rgba(255,255,255,.05) 16px, rgba(255,255,255,.05) 32px);
  border:1px solid var(--border);
  box-shadow: 0 12px 30px var(--shadow);
}

.section{padding:2.5rem 0}
.section-cards h2{margin-top:0}

.cards{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px,1fr));gap:1rem}
.cards.one{grid-template-columns:1fr}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:.9rem;
  padding:1rem;
  display:flex;flex-direction:column;gap:.5rem;
  box-shadow:0 6px 16px var(--shadow);
}
.card .meta{color:var(--muted);font-size:.9rem}
.card a{color:inherit;text-decoration:none}
.card .tags{display:flex;gap:.4rem;flex-wrap:wrap}
.tag,.pill{display:inline-block;border:1px solid var(--border);border-radius:999px;padding:.15rem .6rem;font-size:.85rem;color:var(--muted)}

.filters{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:1rem 0}
#search{flex:1;min-width:220px;padding:.6rem .8rem;border:1px solid var(--border);border-radius:.6rem;background:var(--bg-soft);color:var(--text)}
.tag-filters{display:flex;gap:.4rem;flex-wrap:wrap}

.guide-wrap{display:grid;grid-template-columns: 1fr 300px;gap:2rem}
.sidebar .list{display:flex;flex-direction:column;gap:.75rem}
.sidebar .list a{color:inherit;text-decoration:none;opacity:.9}
.sidebar .list a:hover{opacity:1}

@media (max-width: 980px){
  .guide-wrap{grid-template-columns:1fr}
}

.prose{line-height:1.75}
.prose h1,.prose h2,.prose h3{line-height:1.2}
.prose h2{margin-top:1.4rem}
.prose h3{margin-top:1rem}
.prose p{margin:.75rem 0}
.prose ul{margin:.5rem 0 .8rem 1.2rem}
.prose .callout{
  border-left:3px solid var(--accent);
  background:linear-gradient(0deg, rgba(123,220,255,.06), transparent 70%);
  padding:.75rem .9rem; border-radius:.5rem;}
.prose figure {margin: 1rem 0;}
.prose img {max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: .6rem; box-shadow: 0 6px 16px var(--shadow);}
.prose figcaption {color: var(--muted); font-size: .9rem; text-align: center; margin-top: .4rem;}

.site-footer{border-top:1px solid var(--border);margin-top:2.5rem}
.footer-inner{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 0}
.footer-inner .footer-links{display:flex;gap:1rem}
.eyebrow{color:var(--muted)}
.meta{color:var(--muted)}
.accent{background:linear-gradient(135deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.tags{display:flex;gap:.4rem;flex-wrap:wrap}
.narrow{max-width:800px}


