:root { color-scheme: dark; }
* { box-sizing: border-box; }

body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  background:#05040a;
  color:#e7f7ff;
  font-family:"Press Start 2P", system-ui, sans-serif;
  image-rendering: pixelated;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(#ffffff 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(#8bd3ff 1px, transparent 1px) 12px 18px / 64px 64px,
    radial-gradient(#bda7ff 1px, transparent 1px) 28px 6px / 88px 88px;
  opacity:0.18;
  pointer-events:none;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.05) 1px,
    rgba(0,0,0,0) 2px
  );
  background-size: 100% 3px;
  opacity:0.10;
  pointer-events:none;
  mix-blend-mode: overlay;
}

.wrap{ width:min(980px, 94vw); padding:22px; }

.window{
  border:4px solid #e7f7ff;
  background:rgba(5,4,10,0.75);
  padding:18px;
  position:relative;
}

.titlebar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border:4px solid #e7f7ff;
  margin-bottom:14px;
}

.dots{ display:flex; gap:6px; }
.dot{ width:12px; height:12px; border:2px solid #e7f7ff; }

.terminal{
  border:3px solid rgba(231,247,255,0.7);
  background:rgba(0,0,0,0.25);
  padding:14px;
}

.log{
  min-height: 320px;
  max-height: 56vh;
  overflow:auto;
  padding-right: 6px;
}

.line{
  font-size: 12px;
  line-height: 1.9;
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.line.dim{ opacity: .75; }
.line.acc{ color: #8bd3ff; }
.line.purp{ color: #bda7ff; }

.inputrow{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
  padding-top:10px;
  border-top: 3px solid rgba(231,247,255,0.18);
}
.prompt{ font-size:10px; opacity:.9; white-space:nowrap; }
.cmd{
  width:100%;
  border:3px solid #e7f7ff;
  background:rgba(5,4,10,0.65);
  color:#e7f7ff;
  padding:10px;
  font-family:"Press Start 2P", sans-serif;
  font-size:10px;
}
.cmd:focus{
  outline: 2px solid rgba(139,211,255,0.9);
  outline-offset: 2px;
}

.btn{
  margin-top:12px;
  width:100%;
  border:3px solid #8bd3ff;
  background:rgba(139,211,255,0.14);
  color:#8bd3ff;
  padding:12px;
  font-family:"Press Start 2P", sans-serif;
  font-size:10px;
  cursor:pointer;
}

.chip{
  border:3px solid rgba(139,211,255,0.85);
  background: rgba(139,211,255,0.12);
  color:#8bd3ff;
  font-family:"Press Start 2P", sans-serif;
  font-size:10px;
  padding:8px 10px;
  cursor:pointer;
}

.panel{
  border:3px solid #e7f7ff;
  padding:14px;
  background:rgba(0,0,0,0.25);
}

h2{ margin:0 0 12px; font-size:14px; color:#bda7ff; }
p{ font-size:12px; line-height:1.9; margin: 0 0 10px; }
.small{ font-size:9px; opacity:.8; }

.list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}
.list li{
  font-size:12px;
  line-height:1.9;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.list li span{
  width:22px;
  height:22px;
  border:2px solid #e7f7ff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  flex: 0 0 auto;
}

a{ color:#8bd3ff; text-decoration:none; }
a:hover{ text-decoration:underline; }

label{ font-size:10px; margin:10px 0 6px; display:block; }
input, textarea{
  width:100%;
  border:3px solid #e7f7ff;
  background:rgba(5,4,10,0.65);
  color:#e7f7ff;
  padding:10px;
  font-family:"Press Start 2P", sans-serif;
  font-size:10px;
}
textarea{ min-height:110px; }

.footer{
  margin-top:14px;
  font-size:9px;
  opacity:0.7;
  display:flex;
  justify-content:space-between;
}

.drawer{
  position:absolute;
  inset: 18px;
  border:4px solid #e7f7ff;
  background: rgba(5,4,10,0.92);
  padding: 14px;
}

.drawerbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border:3px solid rgba(231,247,255,0.6);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.drawerbody{
  max-height: calc(100% - 60px);
  overflow:auto;
  padding-right:6px;
}

.xbtn{
  border:3px solid #8bd3ff;
  background: rgba(139,211,255,0.12);
  color:#8bd3ff;
  font-family:"Press Start 2P", sans-serif;
  font-size:10px;
  padding:8px 10px;
  cursor:pointer;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.boot{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background: rgba(5,4,10,0.98);
  z-index: 9999;
  padding: 18px;
}

.bootbox{
  width: min(760px, 94vw);
  border: 4px solid #e7f7ff;
  padding: 16px;
  background: rgba(0,0,0,0.25);
}

.boottitle{
  font-size: 12px;
  margin-bottom: 12px;
  color: #bda7ff;
}

.bootlog{
  border: 3px solid rgba(231,247,255,0.5);
  background: rgba(0,0,0,0.25);
  padding: 12px;
  min-height: 160px;
  max-height: 40vh;
  overflow:auto;
  font-size: 10px;
  line-height: 1.9;
}

.bar{
  margin-top: 12px;
  height: 18px;
  border: 3px solid #e7f7ff;
  background: rgba(5,4,10,0.6);
}
.fill{
  height: 100%;
  width: 0%;
  background: rgba(139,211,255,0.25);
}

.bootmeta{
  margin-top: 10px;
  font-size: 10px;
  opacity: .85;
}

.bootskip{
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
}

.boot.hide{
  opacity:0;
  pointer-events:none;
  transition: opacity 250ms ease;
}

.post hr{
  border:0;
  border-top:3px solid rgba(231,247,255,0.18);
  margin:14px 0;
}

figure{ margin:14px 0; }
figure img{
  width:100%;
  height:auto;
  display:block;
  border:3px solid rgba(231,247,255,0.55);
  background: rgba(0,0,0,0.25);
}
figcaption{
  margin-top:8px;
  font-size:9px;
  opacity:.8;
  line-height:1.7;
}

pre{
  margin:14px 0;
  padding:12px;
  border:3px solid rgba(231,247,255,0.55);
  background: rgba(0,0,0,0.25);
  overflow:auto;
  font-size:10px;
  line-height:1.8;
}
code{ font-family: "Press Start 2P", system-ui, sans-serif; }

.post-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.post-meta {
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 16px;
}

.post-content h2,
.post-content h3 {
  font-size: 14px;
  margin: 18px 0 8px;
}

.post-content p {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.post-content ul {
  margin: 8px 0 14px 16px;
}

.post-content li {
  margin-bottom: 6px;
}

.post-nav {
  margin-top: 18px;
  font-size: 11px;
  opacity: 0.75;
}

.post-nav span {
  margin: 0 6px;
}

