/* style.css — dark permacomputing / monospace theme */
:root{
  --bg:#000;
  --fg:#fff;
  --muted:#bdbdbd;
  --accent:#9be;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:"Courier New", monospace;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.35;
  padding:24px;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

/* navigation */
nav{margin-bottom:18px}
nav a{
  color:var(--fg);
  text-decoration:underline;
  margin-right:14px;
  font-size:14px;
}

/* headings */
h1{margin:6px 0 12px 0; font-size:20px}
h2{margin-top:18px; font-size:16px}

/* body text */
p,li{color:var(--muted); font-size:14px}

/* project list */
.project-list{list-style:none; padding:0; margin:0 0 18px 0}
.project-list li{margin:10px 0}

/* gallery grid */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap:12px;
  margin:14px 0;
}
.card{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  padding:6px;
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  overflow:hidden;
}
.card img{width:100%; height:100%; object-fit:cover; display:block}

/* image modal / full screen */
#modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.92);
  z-index:9999;
  padding:20px;
}
#modal img, #modal video{
  max-width:100%;
  max-height:100%;
  box-shadow:0 0 0 1px rgba(255,255,255,0.04);
}
#modal .meta{
  color:var(--muted);
  margin-top:10px;
  font-size:13px;
  text-align:center;
}

/* ascii blocks */
pre.ascii{
  white-space:pre;
  font-family:"Courier New", monospace;
  font-size:11px;
  color:var(--fg);
  overflow:auto;
  border-top:1px solid rgba(255,255,255,0.03);
  padding-top:10px;
}

/* responsive */
@media (max-width:520px){
  body{padding:12px}
  nav a{display:inline-block;margin-right:10px;font-size:13px}
  .grid{gap:8px}
}
