/* Torzon Tor — RFC / man-page research document.
   Bone paper #efe6d0, olive ink. Mono labels + serif body.
   Not a field manual. Not a leaflet. Not a gazette. Not a navy brochure. */
:root {
  --bone: #efe6d0;
  --desk: #5c5648;
  --ink: #2c3220;
  --olive: #4f5c32;
  --olive-deep: #35402a;
  --rule: #cbbfa8;
  --muted: #5e5848;
  --font-lab: "IBM Plex Mono", "Consolas", "Courier New", monospace;
  --font-body: "IBM Plex Serif", "Georgia", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16.5px; }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.58;
}
img { max-width: 100%; height: auto; }
a { color: var(--olive-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-lab);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 1.2em 0 0.4em;
  color: var(--olive-deep);
}
h1 {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  text-transform: none;
}
h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 0.2em;
  margin-top: 1.5em;
}
h3 {
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
}
p { margin: 0 0 0.75em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.22em; }
dl { margin: 0 0 1em; }
dt {
  font-family: var(--font-lab);
  font-size: 0.82rem;
  color: var(--olive-deep);
  margin-top: 0.55em;
}
dd { margin: 0.15em 0 0.4em 1.1em; }
strong { font-weight: 600; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--olive-deep); color: var(--bone); padding: 0.4em 0.8em;
  font-family: var(--font-lab);
}
.skip-link:focus { left: 0; z-index: 40; }

.man-run {
  font-family: var(--font-lab);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 1.1rem 0.35rem;
  color: var(--bone);
  background: var(--olive-deep);
  max-width: 58rem;
  margin: 0 auto;
}
.banner {
  background: var(--bone);
  border-bottom: 2px solid var(--olive-deep);
  padding: 0.35rem 1.1rem 0;
  max-width: 58rem;
  margin: 0 auto;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-lab);
}
.wordmark:hover { color: var(--olive-deep); }
.mark { width: 22px; height: 22px; display: block; }
.brand-name { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.06em; }
.brand-sec { font-size: 0.85rem; color: var(--olive); }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--olive-deep);
  border: 1px solid var(--olive);
  padding: 0.22rem 0.55rem;
  font-family: var(--font-lab);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.primary a {
  font-family: var(--font-lab);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-deep);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
}
.primary a:hover { background: #e4dcc6; }
.primary a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--olive-deep);
  color: var(--ink);
}

.frame {
  max-width: 58rem;
  margin: 0 auto;
  background: var(--bone);
  border-left: 1px solid #8a816c;
  border-right: 1px solid #8a816c;
  border-bottom: 1px solid #8a816c;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
}
.related {
  border-right: 1px solid var(--rule);
  padding: 1rem 0.85rem 1.4rem;
  font-size: 0.88rem;
}
.related h2 {
  font-size: 0.68rem;
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
}
.related ol { list-style: none; padding: 0; margin: 0 0 1rem; }
.related li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  border-top: 1px dotted var(--rule);
  padding: 0.28rem 0;
  font-family: var(--font-lab);
  font-size: 0.75rem;
}
.related .sec-n { color: var(--muted); }
.related .note {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.55rem;
}
.related .note strong {
  display: block;
  font-family: var(--font-lab);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.2rem;
}

main { padding: 0.85rem 1.2rem 2rem; min-width: 0; }
.doc-run {
  font-family: var(--font-lab);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 0.3rem;
  margin-bottom: 0.7rem;
}
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.7rem; }
.crumbs a { color: var(--olive-deep); }
.notice-box {
  font-family: var(--font-lab);
  font-size: 0.82rem;
  border: 1px solid var(--olive);
  padding: 0.5rem 0.65rem;
  margin: 0 0 0.9rem;
}
.plate, .exhibit {
  margin: 0 0 1rem;
  border: 1px solid var(--olive);
  background: #e4dcc6;
  padding: 0;
}
.plate img, .exhibit img { display: block; width: 100%; }
.plate figcaption, .exhibit figcaption {
  font-family: var(--font-lab);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.4rem 0.55rem 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
th, td {
  border: 1px solid var(--rule);
  padding: 0.35rem 0.45rem;
  text-align: left;
  vertical-align: top;
}
th {
  font-family: var(--font-lab);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e4dcc6;
}
.onion-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.onion-list li {
  border: 1px solid var(--rule);
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.4rem;
  background: #e8dfc8;
}
.onion-list .kicker {
  display: block;
  font-family: var(--font-lab);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 0.12rem;
}
code.onion {
  font-family: var(--font-lab);
  font-size: 0.75rem;
  word-break: break-all;
}
.doc-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.doc-list li {
  font-family: var(--font-lab);
  font-size: 0.82rem;
  border-top: 1px dotted var(--rule);
  padding: 0.35rem 0;
  display: flex;
  justify-content: space-between;
}
footer[role="contentinfo"] {
  max-width: 58rem;
  margin: 0 auto 2rem;
  background: var(--olive-deep);
  color: var(--bone);
  padding: 1rem 1.15rem 1.2rem;
  font-size: 0.88rem;
}
footer a { color: var(--bone); }
footer .imprint-hed {
  font-family: var(--font-lab);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #c9c3a8;
}
.imprint {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
}
.logo-foot { display: block; width: 200px; height: auto; background: #000; }
footer p { margin: 0 0 0.4rem; color: #d9d2ba; }
.foot-links { margin-top: 0.65rem; border-top: 1px solid #5a6640; padding-top: 0.55rem; }

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .related { border-right: 0; border-bottom: 1px solid var(--rule); }
  .imprint { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .primary { display: none; }
  .banner.is-open .primary { display: flex; flex-direction: column; }
}
@media (min-width: 900px) {
  article p, article dd { max-width: 40rem; }
}

.onion-copy {
  cursor: pointer;
}
.onion-copy:hover {
  outline: 1px dashed currentColor;
  outline-offset: 2px;
}
.onion-copy.is-copied {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
.onion-copy.is-copied::after {
  content: " copied";
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 0.4em;
}
