/* Mentalnet GNU/Linux site — dark cyber-terminal theme with the matrix-rain
   canvas backdrop (see assets/matrix.js). Same man-page structure as before:
   the canvas sits behind a translucent panel, rain shows through the edges. */

:root {
  --bg: #1e5368;            /* page base — must match the canvas fade tint */
  --panel: rgba(6, 26, 34, 0.86);
  --panel-edge: rgba(110, 160, 181, 0.38);
  --ink: #d7ecf2;
  --dim: #9fc6d5;
  --link: #6fe3d4;
  --link-visited: #b9a7e8;
  --head: #a9d8e8;
  --accent: #6ea0b5;
  --warn: #ffb073;
  --term-bg: #050b0b;
  --term-ink: #35e0d6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Matrix rain + tower city canvas, behind everything */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.wrap {
  max-width: 46em;
  margin: 1.2em auto 2.5em;
  padding: 0.5em 1.4em 2.5em;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:active { color: var(--warn); }

code, kbd, samp {
  font-family: monospace;
  font-size: 0.95em;
}

/* ---------- Header / nav ---------- */
header { padding-top: 0.9em; }
.topline {
  color: var(--dim);
  font-family: monospace;
  font-size: 0.85em;
  text-align: center;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.45em;
}
nav.site {
  font-family: monospace;
  padding: 0.45em 0;
  border-bottom: 1px solid var(--accent);
  text-align: left;
}
nav.site .prompt { color: var(--dim); }
nav.site a { margin: 0 0.15em; }
nav.site a[aria-current="page"] {
  color: var(--warn);
  text-decoration: none;
  font-weight: bold;
}

/* ---------- Headings ---------- */
h1, h2, h3 {
  color: var(--head);
  line-height: 1.3;
  font-weight: bold;
}
h1 { font-size: 1.7em; margin: 1.2em 0 0.5em; }
h2 { font-size: 1.3em; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.05em; margin: 1.4em 0 0.4em; }

/* ---------- Terminal blocks ---------- */
pre {
  margin: 0.9em 0;
  white-space: pre-wrap;
  word-break: break-word;
}
pre.term {
  background: var(--term-bg);
  color: var(--term-ink);
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.9em 1.1em;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 18px rgba(53, 224, 214, 0.05);
  overflow-x: auto;
  white-space: pre;
}
pre.term a { color: #ffd23f; }
pre.term a:visited { color: #ffd23f; }

.cmd { font-family: monospace; color: #ffcf6f; }

/* ---------- Tables ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.9em 0;
  font-size: 0.7em;
}
th, td {
  border: 1px solid var(--panel-edge);
  padding: 0.3em 0.6em;
  text-align: left;
  vertical-align: top;
}
th {
  background: #164457;
  color: var(--head);
}

/* ---------- Images ---------- */
figure {
  margin: 1.2em 0;
  text-align: center;
}
figure img {
  max-width: 100%;
  border: 1px solid var(--accent);
  background: #000;
}
figcaption {
  color: var(--dim);
  font-size: 0.85em;
  margin-top: 0.35em;
}

/* ---------- Callouts ---------- */
.warn {
  border: 1px solid var(--warn);
  color: var(--warn);
  background: rgba(255, 176, 115, 0.06);
  padding: 0.6em 1em;
  margin: 1em 0;
}
.note {
  border-left: 4px solid var(--accent);
  padding: 0.2em 1em;
  margin: 1em 0;
  color: var(--dim);
}

/* ---------- Lists ---------- */
li { margin-bottom: 0.35em; }
dl dt { font-weight: bold; }
dl dd { margin-left: 2em; }

/* ---------- Footer ---------- */
hr.rule {
  border: none;
  border-top: 2px solid var(--accent);
  margin: 2.5em 0 1em;
}
footer {
  font-size: 0.88em;
  color: var(--dim);
  line-height: 1.7;
}
footer a { color: var(--link); }

::selection { background: #35e0d6; color: #050b0b; }
