/* nexusreal.ink — dark, tool-like, gray-red. System fonts only. */

:root {
  --bg: #141013;
  --bg-2: #191317;
  --panel: rgba(27, 20, 25, 0.72);
  --panel-2: rgba(35, 26, 32, 0.55);
  --inset: #0f0c0e;
  --text: #d6cccf;
  --text-dim: #9c8e94;
  --text-faint: #6e6268;
  --red: #ff5050;
  --red-soft: #ff7a7a;
  --red-dim: #a63a3a;
  --line: rgba(255, 80, 80, 0.20);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-faint: rgba(255, 255, 255, 0.04);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 460px at 50% -160px, rgba(255, 80, 80, 0.07), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Old-monitor scanlines, barely there. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.14) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.45;
}

/* Faint top grid line texture, like graph paper on dark glass. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 80, 80, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 80, 80, 0.022) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 40%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 40%, transparent 75%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--red-soft); text-decoration: none; }
a:hover { color: var(--red); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--red);
  color: #141013;
  padding: 8px 14px;
  font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 14, 17, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand img { width: 30px; height: 30px; display: block; }
.brand-name { font-weight: 650; font-size: 15px; letter-spacing: 0.01em; }
.brand:hover .brand-name { color: var(--red-soft); }

.topnav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a {
  color: var(--text-dim);
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.topnav a:hover {
  color: var(--text);
  border-color: var(--line-soft);
  background: var(--panel-2);
}
.topnav a.active { color: var(--red-soft); border-color: var(--line); }

/* ------------------------------------------------------- address block */

.addr-block {
  margin: 22px 0 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
  position: relative;
  overflow: hidden;
}
/* a single red hairline along the top edge */
.addr-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red) 82%, transparent);
  opacity: 0.55;
}

.addr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.addr-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.addr-title .shield { width: 15px; height: 15px; color: var(--red); flex: none; }

.addr-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  background: rgba(255, 80, 80, 0.06);
}

.addr-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.addr-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--line-faint);
}
.addr-row:first-of-type { border-top: none; }

.addr {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--inset);
  border: 1px solid var(--line-soft);
  padding: 9px 11px;
  word-break: break-all;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.addr-row:hover .addr { border-color: var(--line); color: #fff; }

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  padding: 0 13px;
  min-height: 40px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.2s ease;
}
.copy-btn .copy-ico { width: 14px; height: 14px; color: var(--text-dim); transition: color 0.16s ease; }
.copy-btn:hover {
  color: var(--red-soft);
  border-color: var(--line);
  background: rgba(255, 80, 80, 0.07);
}
.copy-btn:hover .copy-ico { color: var(--red-soft); }
.copy-btn:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.25);
}
.copy-btn.copied {
  color: #141013;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(255, 80, 80, 0.35);
}
.copy-btn.copied .copy-ico { color: #141013; }

/* ---------------------------------------------------------------- content */

.content { padding: 26px 0 40px; }

.article {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 26px 28px 30px;
}

.h1 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f0e9eb;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.h1::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 46px; height: 1px;
  background: var(--red);
}

.article p { margin: 0 0 15px; color: var(--text); }
.article p:last-child { margin-bottom: 0; }

.article h2 {
  margin: 26px 0 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--red-soft);
  display: flex;
  align-items: center;
  gap: 9px;
}
.article h2::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--red);
  flex: none;
}

.article ul, .article ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text);
}
.article li { margin: 0 0 8px; }
.article li:last-child { margin-bottom: 0; }
.article ul li::marker { color: var(--red-dim); }
.article ol li::marker { color: var(--red-dim); font-family: var(--mono); font-size: 0.9em; }

.article code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--red-soft);
  background: rgba(255, 80, 80, 0.07);
  border: 1px solid rgba(255, 80, 80, 0.14);
  padding: 1px 5px;
  word-break: break-word;
}

.article a {
  color: var(--red-soft);
  border-bottom: 1px solid rgba(255, 80, 80, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.article a:hover { color: var(--red); border-bottom-color: var(--red); }

.article strong { color: #efe7e9; font-weight: 650; }

.fingerprint {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--red-soft);
  background: var(--inset);
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 0 0 16px;
  word-break: break-word;
}

pre.pgp {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-dim);
  background: var(--inset);
  border: 1px solid var(--line-soft);
  padding: 14px;
  margin: 0 0 18px;
  overflow-x: auto;
  white-space: pre;
  word-break: normal;
}
pre.pgp:hover { border-color: var(--line); }

/* FAQ questions a bit tighter */
.article h2 + p { margin-top: 0; }

/* ---------------------------------------------------------------- footer */

.site-foot {
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
  background: rgba(16, 12, 15, 0.6);
  position: relative;
  z-index: 1;
}
.foot-inner { padding: 30px 20px 34px; }

.foot-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  margin-bottom: 24px;
}
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-col-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.foot-col a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.15s ease;
  width: fit-content;
}
.foot-col a:hover { color: var(--red-soft); }
.foot-col a.active { color: var(--red-soft); }
.foot-home { font-size: 13px; color: var(--text); }

.foot-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 640px;
  line-height: 1.6;
}
.foot-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 640px) {
  .head-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .brand { justify-content: center; }
  .topnav { justify-content: center; }
  .article { padding: 20px 18px 24px; }
  .h1 { font-size: 23px; }
  .addr-row { flex-direction: column; gap: 7px; }
  .copy-btn { justify-content: center; min-height: 38px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
