/* nexus-mirrors.cc: dark tool-like theme. System fonts only, no external requests. */

:root {
  --bg: #141116;
  --panel: rgba(13, 10, 13, 0.55);
  --panel-deep: rgba(9, 7, 9, 0.42);
  --line: rgba(255, 80, 80, 0.24);
  --line-strong: rgba(255, 80, 80, 0.5);
  --line-soft: rgba(255, 80, 80, 0.12);
  --text: #c6c0ba;
  --dim: #847c77;
  --bright: #efe9e2;
  --accent: #ff5050;
  --accent-dim: rgba(255, 80, 80, 0.12);
  --ok: #8fd6a8;
}

* { box-sizing: border-box; }

html {
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 460px at 50% -6%, rgba(255, 80, 80, 0.07), transparent 65%),
    linear-gradient(178deg, #16131a 0%, #1c1114 36%, #170e11 70%, #110e10 100%);
  background-attachment: fixed;
  min-height: 100%;
}

/* faint horizontal lines, like an old monitor */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 3px
  );
}

body {
  margin: 0;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: #ff7b72; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(255, 80, 80, 0.32); color: var(--bright); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--bright);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- top bar ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--panel-deep);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bright);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand img {
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
}
.brand:hover { color: var(--accent); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.nav a {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); border-bottom-color: var(--line-strong); }

/* ---------- address block, top of every page ---------- */
.addresses {
  border-bottom: 1px solid var(--line);
  background: var(--panel-deep);
}
.addr-inner { padding-top: 13px; padding-bottom: 15px; }
.addr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.addr-title {
  color: var(--bright);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.addr-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: 9px;
}
.addr-hint { color: var(--dim); font-size: 12px; }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.addr-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--panel);
}
.addr-row code {
  flex: 1;
  margin: 0;
  padding: 9px 12px;
  color: var(--bright);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
  background: none;
  border: 0;
}
.copy {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 16px;
  cursor: pointer;
}
.copy:hover { background: var(--accent-dim); }
.copy.done { color: var(--bright); }

/* ---------- main ---------- */
main .wrap { padding-top: 30px; padding-bottom: 44px; }

h1 {
  margin: 0 0 18px;
  color: var(--bright);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}
h1::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  margin-right: 12px;
}
h1.big404 { font-size: 34px; color: var(--accent); }
h1.big404::before { display: none; }

h2 {
  margin: 34px 0 12px;
  color: var(--bright);
  font-size: 15px;
  font-weight: 700;
}
h2::before { content: "//"; color: var(--accent); margin-right: 9px; }

p { margin: 0 0 14px; }
strong { color: var(--bright); }

ol, ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 7px 0; }
li::marker { color: var(--accent); }

code {
  font-family: inherit;
  font-size: 0.92em;
  color: var(--bright);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 1px 5px;
  word-break: break-word;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 13px;
}
th {
  text-align: left;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-strong);
}
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
td code { background: none; border: 0; padding: 0; }
td.last6 { color: var(--accent); letter-spacing: 0.12em; white-space: nowrap; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--panel-deep);
  margin-top: 10px;
}
.site-foot .wrap { padding-top: 15px; padding-bottom: 22px; }
.site-foot p { margin: 0 0 6px; font-size: 12px; color: var(--dim); }
.site-foot p:last-child { margin-bottom: 0; }
.site-foot a { color: var(--dim); }
.site-foot a:hover { color: var(--accent); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .nav { gap: 2px 14px; }
  .addr-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .copy { padding: 0 12px; }
}
