/* serverjack project page — scoped to /serverjack/, not shared with the rest
   of the portfolio site. Palette and mono font stack copied from bin/serverjack's
   own TOKENS block (see ../SOURCE.txt for the commit). Always dark: this is the
   app's own terminal palette, not meant to follow the visitor's system theme. */

:root{
  --bg-primary:#080f0e; --bg-secondary:#111815; --surface:#1a2420; --surface-alt:#232e28;
  --border:#2f3f36; --border-soft:#1f2a25;
  --text-primary:#e6f7e9; --text-secondary:#9fb3a8; --text-muted:#93a79d;
  --accent:#39ff88; --accent-dim:#1ed06a; --on-accent:#04140c;
  --radius-xs:4px; --radius-sm:8px; --radius-md:12px; --radius-lg:16px;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --font-ui:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --focus-ring:0 0 0 3px rgb(57 255 136 / .24);
}

*{box-sizing:border-box}
html{color-scheme:dark}
body{
  margin:0;
  background:var(--bg-primary);
  color:var(--text-primary);
  font:400 16px/1.55 var(--font-ui);
  -webkit-text-size-adjust:100%;
}
img{max-width:100%;display:block}
a{color:var(--accent)}
a:hover,a:focus-visible{color:var(--accent-dim)}
:focus-visible{outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-xs)}

.page{
  max-width:720px;
  margin:0 auto;
  padding:40px 20px 56px;
}

/* ---- hero ---- */
.hero{margin-bottom:40px}
.wordmark{
  display:flex;align-items:center;gap:10px;
  color:var(--accent);
  font:600 20px/1 var(--font-mono);
  letter-spacing:-.01em;
  margin-bottom:20px;
}
.wordmark .glyph{flex:none}
h1{
  font:600 clamp(28px,7vw,44px)/1.2 var(--font-mono);
  letter-spacing:-.01em;
  margin:0 0 14px;
  color:var(--text-primary);
}
.subline{
  font-size:clamp(16px,3.6vw,19px);
  line-height:1.55;
  color:var(--text-secondary);
  margin:0;
  max-width:46ch;
}

/* ---- demo + screenshots ---- */
.demo{margin-bottom:40px}
.demo-gif{
  width:min(300px,80vw);
  height:auto;
  margin:0 auto 20px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
}
.shots{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.shots figure{
  margin:0;
  overflow:hidden;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  background:var(--surface);
}
.shots img{
  display:block;
  width:100%;
  height:200px;
  object-fit:cover;
  object-position:top;
}
.shots figcaption{
  margin-top:6px;
  font-size:12px;
  color:var(--text-muted);
  text-align:center;
}
@media (min-width:600px){
  .shots img{height:260px}
}
@media (max-width:460px){
  .shots{grid-template-columns:1fr 1fr}
  .shots figure:first-child{grid-column:1 / -1}
  .shots figure:first-child img{height:180px;object-position:center}
  .shots img{height:220px}
}

/* ---- install ---- */
.install{margin-bottom:40px}
.cmd{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  background:var(--bg-secondary);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px 16px;
}
.cmd code{
  flex:1 1 auto;
  min-width:0;
  font:14px/1.5 var(--font-mono);
  color:var(--accent);
  white-space:pre-wrap;
  word-break:break-all;
  user-select:all;
}
.cmd button{
  flex:none;
  font:600 13px/1 var(--font-mono);
  color:var(--on-accent);
  background:var(--accent);
  border:0;
  border-radius:var(--radius-sm);
  padding:9px 14px;
  cursor:pointer;
}
.cmd button:hover{background:var(--accent-dim)}
.note{
  font-size:14px;
  line-height:1.6;
  color:var(--text-secondary);
  margin:14px 0 0;
}
.alt{
  margin-top:14px;
  border:1px solid var(--border-soft);
  border-radius:var(--radius-md);
  padding:10px 16px;
}
.alt summary{
  cursor:pointer;
  font-size:14px;
  color:var(--text-secondary);
  padding:4px 0;
}
.alt summary:hover{color:var(--text-primary)}
.alt pre{
  margin:10px 0 6px;
  overflow-x:auto;
  font:13px/1.6 var(--font-mono);
  color:var(--text-primary);
  background:var(--bg-secondary);
  border-radius:var(--radius-sm);
  padding:10px 12px;
}

/* ---- tasks / requirements / finish / proof ---- */
.tasks,.requirements,.finish,.proof{margin-bottom:40px}
h2{
  font:600 15px/1.3 var(--font-mono);
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin:0 0 16px;
}
.tasks ul,.proof ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.tasks li,.proof li{
  border-left:2px solid var(--border);
  padding-left:14px;
  font-size:15px;
  line-height:1.6;
  color:var(--text-secondary);
}
.tasks li strong{
  display:block;
  color:var(--text-primary);
  font-size:16px;
  margin-bottom:2px;
}
.proof li{border-left-color:var(--accent-dim)}
.requirements p{
  font-size:14px;
  line-height:1.6;
  color:var(--text-secondary);
  margin:0 0 12px;
}
.requirements p:last-child{margin-bottom:0}
.finish p{
  font-size:15px;
  line-height:1.6;
  color:var(--text-secondary);
  margin:0 0 10px;
}
.finish p:last-child{margin-bottom:0}

/* inline code mentioned in prose (install notes, requirements, tasks/proof list items) */
p code,li code{
  font:13px/1.4 var(--font-mono);
  color:var(--text-primary);
  background:var(--bg-secondary);
  padding:1px 5px;
  border-radius:var(--radius-xs);
}

/* ---- footer links ---- */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  padding-top:24px;
  border-top:1px solid var(--border-soft);
  font-size:14px;
}
.links a{text-decoration:none}
.links a:hover{text-decoration:underline}

/* A copy button under a multi-line block sits below it, full width on phones. */
.cmd.multi{display:block}
.cmd.multi pre{margin:0 0 8px}
.cmd.multi .copy-btn{width:100%}
@media (min-width:600px){.cmd.multi .copy-btn{width:auto}}
