/* ═══════════════════════════════════════════
   readme.wiki — article skin
   monochrome instrument language, matches the
   HALOFLUX homepage. Loaded after each page's
   inline styles so it only overrides.
   ═══════════════════════════════════════════ */
:root{
  --bg:#060607;
  --bg-elevated:#0a0a0c;
  --fg:#f1f0ed;
  --fg-muted:#8a8a86;
  --accent:#ffffff;
  --accent-dim:rgba(255,255,255,.14);
  --hot:#ffffff;
  --hot-dim:rgba(255,255,255,.10);
  --border:rgba(255,255,255,.10);
  --font-display:'Inter Tight','Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-ui:'Inter Tight','Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-mono:'JetBrains Mono','SFMono-Regular',Consolas,monospace;
}

body{background:var(--bg);color:var(--fg);}
::selection{background:#fff;color:#000;}
/* faint instrument glow, echoes the halo without animation */
body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse 1100px 640px at 86% -10%,rgba(255,255,255,.055),transparent 68%);}
.article-page{position:relative;z-index:1;}

/* nav */
nav{background:rgba(6,6,7,.82);border-bottom:1px solid rgba(255,255,255,.08);padding:1.4rem 3rem;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
.nav-logo{font-size:.72rem;font-weight:400;letter-spacing:.28em;color:#eceae6;}
.nav-logo span{color:#fff;}
.nav-links{gap:2.2rem;}
.nav-links a{font-size:.66rem;letter-spacing:.16em;color:rgba(255,255,255,.6);}
.nav-links a:hover{color:#fff;}
.nav-links a::after{background:#fff;height:1px;}
.nav-time{font-size:.62rem;letter-spacing:.12em;color:rgba(255,255,255,.34);}

/* page frame */
.article-page{max-width:780px;padding:9rem 2rem 7rem;}
.article-header{margin-bottom:2.75rem;padding-bottom:1.8rem;border-bottom:1px solid rgba(255,255,255,.10);}
.article-breadcrumb{font-family:var(--font-mono);font-size:.58rem;letter-spacing:.24em;color:rgba(255,255,255,.32);margin-bottom:1.6rem;}
.article-breadcrumb a{color:rgba(255,255,255,.42);}
.article-breadcrumb a:hover{color:#fff;}
.article-meta-row{gap:.9rem;margin-bottom:1.2rem;}
.article-date{font-family:var(--font-mono);font-size:.58rem;letter-spacing:.2em;color:rgba(255,255,255,.34);}
.article-tag{font-family:var(--font-mono);font-size:.55rem;letter-spacing:.18em;padding:0;border:0;border-radius:0;background:none;color:rgba(255,255,255,.55);}
.article-tag::before{content:'/ ';color:rgba(255,255,255,.26);}
.article-tag[style]{background:none !important;border:0 !important;color:rgba(255,255,255,.55) !important;}
.article-title{font-family:var(--font-display);font-size:clamp(1.9rem,4.2vw,3rem);font-weight:200;line-height:1.12;letter-spacing:-.035em;color:#f4f3f0;}
.article-subtitle{font-size:.95rem;font-weight:300;line-height:1.85;color:rgba(255,255,255,.5);max-width:46em;}

/* body copy */
.article-body{font-size:1rem;font-weight:300;line-height:1.95;color:rgba(255,255,255,.78);}
.article-body p{margin-bottom:1.35rem;}
.article-body h2{font-family:var(--font-display);font-size:1.5rem;font-weight:300;letter-spacing:-.02em;margin:3.2rem 0 1rem;color:#fff;}
.article-body h2::before{width:22px;height:1px;background:rgba(255,255,255,.55);margin-bottom:1rem;}
.article-body h3{font-family:var(--font-display);font-size:1.02rem;font-weight:400;margin:2rem 0 .6rem;color:#fff;}
.article-body strong{color:#fff;font-weight:500;}
.article-body a{color:#fff;border-bottom:1px solid rgba(255,255,255,.35);}
.article-body a:hover{border-color:#fff;}
.article-body blockquote{border-left:1px solid rgba(255,255,255,.32);font-style:normal;color:rgba(255,255,255,.55);padding:.4rem 0 .4rem 1.4rem;}
.article-body hr{border:0;border-top:1px solid rgba(255,255,255,.10);margin:2.5rem 0;}
.article-body ul,.article-body ol{margin:1rem 0 1.3rem 1.35rem;}
.article-body li{margin-bottom:.5rem;}
.article-body li::marker{color:rgba(255,255,255,.35);}

/* inline code */
.article-body code:not(pre code){
  font-family:var(--font-mono);font-size:.82em;padding:.12em .38em;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);
  border-radius:0;color:#e6e5e1;
}

/* code blocks — desaturated to match the mono language */
.code-block{border:1px solid rgba(255,255,255,.10);border-radius:0;background:#0a0a0c;}
.code-header{background:rgba(255,255,255,.02);border-bottom:1px solid rgba(255,255,255,.08);}
.code-lang{font-family:var(--font-mono);font-size:.55rem;letter-spacing:.2em;color:rgba(255,255,255,.34);}
.code-dots span{width:7px;height:7px;border-radius:50%;background:transparent !important;border:1px solid rgba(255,255,255,.22);}
.code-block pre{background:transparent;}
.code-block code{font-family:var(--font-mono);font-size:.82rem;line-height:1.75;color:#d8d7d3;}
.code-block .kw{color:#ffffff;font-weight:500;}
.code-block .str{color:#9c9c95;}
.code-block .com{color:#56564f;font-style:italic;}
.code-block .fn{color:#d6d5d0;}
.code-block .num{color:#b9b9b2;}
.code-block .var{color:#c9c8c2;}
.code-block .op{color:#7d7d77;}

/* tables */
.article-body table{border:1px solid rgba(255,255,255,.10);border-collapse:collapse;}
.article-body th{border-bottom:1px solid rgba(255,255,255,.14);font-family:var(--font-mono);font-size:.6rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.45);font-weight:400;background:rgba(255,255,255,.02);}
.article-body th,.article-body td{border-color:rgba(255,255,255,.08);padding:.65rem .8rem;}
.article-body td{color:rgba(255,255,255,.6);}
.article-body td:first-child{color:#fff;font-family:var(--font-mono);font-size:.8rem;}

/* toc / faq / footer */
.article-toc{border:1px solid rgba(255,255,255,.10);border-radius:0;background:rgba(255,255,255,.02);padding:1.3rem 1.5rem;}
.article-toc-title{font-family:var(--font-mono);font-size:.55rem;letter-spacing:.24em;color:rgba(255,255,255,.36);}
.article-toc-list a{color:rgba(255,255,255,.62);}
.article-toc-list a:hover{color:#fff;}
.article-faq-title{font-family:var(--font-display);font-size:1.4rem;font-weight:300;letter-spacing:-.02em;}
.article-footer{margin-top:4rem;padding-top:1.6rem;border-top:1px solid rgba(255,255,255,.10);}
.article-footer-left{font-family:var(--font-mono);font-size:.6rem;letter-spacing:.16em;color:rgba(255,255,255,.34);}
.article-footer a{color:rgba(255,255,255,.75);}
.article-footer a:hover{color:#fff;}

/* figures */
.article-body img{border:1px solid rgba(255,255,255,.10);}
.article-body figcaption{font-family:var(--font-mono);font-size:.6rem;letter-spacing:.12em;color:rgba(255,255,255,.32);}

@media (max-width:768px){
  nav{padding:1rem 1.25rem;}
  .nav-links{display:none;}
  .article-page{padding:6.5rem 1.25rem 4rem;}
  .article-title{font-size:clamp(1.7rem,7.6vw,2.2rem);}
  .article-body{font-size:.95rem;line-height:1.9;}
  .article-toc-list{columns:1;}
}
