/* CENSUS BLACK // global stylesheet
   Neocities-ready static CSS. No external dependencies. */
:root {
  --bg: #060607;
  --panel: #101113;
  --panel-2: #17191c;
  --text: #d8d5ca;
  --muted: #8e8a80;
  --dim: #56534d;
  --line: #2b2b2b;
  --red: #b64a3c;
  --amber: #c8a15a;
  --bone: #d8d0bb;
  --green: #5d8d68;
  --blue: #6d90b8;
  --violet: #8b789d;
  --gold: #c2a861;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 980px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: var(--body);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(182,74,60,.08), transparent 28rem),
    linear-gradient(180deg, #060607 0%, #0a0a0b 45%, #050505 100%);
  color: var(--text);
}

a { color: #d7b86c; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.site-wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 4rem; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(6,6,7,.96);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.header-inner { max-width: var(--max); margin: 0 auto; padding: .8rem 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; }
.brand { font-family: var(--mono); letter-spacing: .12em; color: var(--bone); font-weight: 700; }
.brand span { color: var(--red); }
.nav { display: flex; flex-wrap: wrap; gap: .75rem; font-family: var(--mono); font-size: .82rem; text-transform: uppercase; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

.hero { padding: 4.5rem 0 2.5rem; }
.kicker { font-family: var(--mono); color: var(--red); letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; }
h1, h2, h3 { line-height: 1.15; color: var(--bone); }
h1 { font-size: clamp(2.4rem, 7vw, 5.6rem); margin: .35rem 0 .5rem; letter-spacing: .06em; font-family: var(--mono); }
h2 { font-size: 1.7rem; margin-top: 2.5rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
h3 { font-size: 1.08rem; margin-top: 2rem; color: #e0d7c2; }
.lede { font-size: 1.18rem; color: #e3dfd2; max-width: 760px; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.button {
  display: inline-block;
  border: 1px solid var(--red);
  padding: .75rem 1rem;
  font-family: var(--mono);
  color: var(--bone);
  background: rgba(182,74,60,.08);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}
.button.secondary { border-color: var(--dim); background: rgba(255,255,255,.03); color: var(--muted); }
.button:hover { text-decoration: none; background: rgba(182,74,60,.18); }

.notice, .panel, .file-card, .packet-head, .warning {
  border: 1px solid var(--line);
  background: rgba(16,17,19,.92);
  padding: 1rem;
}
.notice { border-left: 4px solid var(--red); font-family: var(--mono); font-size: .9rem; color: #cfc9ba; }
.warning { border-left: 4px solid var(--amber); }
.panel { margin: 1.25rem 0; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .5rem; margin: 1rem 0; }
.meta-item { border: 1px solid var(--line); padding: .65rem; background: #0b0c0d; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.meta-item strong { display: block; color: var(--bone); font-size: .82rem; text-transform: uppercase; }

.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .85rem; margin-top: 1.25rem; }
.file-card { min-height: 170px; position: relative; }
.file-card h3 { margin-top: 0; font-family: var(--mono); font-size: 1rem; }
.file-card p { color: #c5c0b2; font-size: .95rem; }
.file-card .tag { display: inline-block; font-family: var(--mono); font-size: .7rem; color: var(--muted); border: 1px solid var(--line); padding: .15rem .35rem; margin-right: .25rem; }
.file-card.drop { border-left: 3px solid var(--red); }
.file-card.interlude { border-left: 3px solid var(--blue); }
.file-card.appendix { border-left: 3px solid var(--gold); }

.reading-list { counter-reset: read; list-style: none; padding-left: 0; }
.reading-list li { counter-increment: read; margin: .45rem 0; padding: .65rem .75rem; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.reading-list li:before { content: counter(read, decimal-leading-zero) " // "; color: var(--red); font-family: var(--mono); }

.packet-head { margin: 2rem 0 1rem; }
.packet-title { font-family: var(--mono); font-size: clamp(1.8rem, 5vw, 3.3rem); letter-spacing: .08em; margin: .25rem 0; }
.packet-status { font-family: var(--mono); color: var(--muted); white-space: pre-wrap; }
.packet-body { margin-top: 1.5rem; }
.packet-body .doc { margin: 2rem 0; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.packet-body .doc-title { font-family: var(--mono); color: var(--amber); letter-spacing: .05em; }
.packet-body pre, .codebox { white-space: pre-wrap; word-wrap: break-word; background: #08090a; border: 1px solid var(--line); padding: 1rem; color: #cfc6b4; font-family: var(--mono); overflow-x: auto; }

.redacted { background: #0a0a0a; color: #0a0a0a; border: 1px solid #222; padding: 0 .2em; }
.redacted:hover, .redacted:focus { color: var(--red); }
.small { font-size: .9rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; font-family: var(--mono); }

.mode-toggle { margin: 1rem 0; }
.clean-mode .packet-status, .clean-mode .glitch, .clean-mode .optional-corruption { display: none; }
.clean-mode body, body.clean-mode { background: #0b0b0c; }

.entity-maw { --entity: #9d3f35; }
.entity-prodigy { --entity: #b7c8df; }
.entity-reliquary { --entity: #cdbb8d; }
.entity-sleeper { --entity: #7d90bc; }
.entity-hive { --entity: #d6a0a9; }
.entity-signal { --entity: #87aaa3; }
.entity-witness { --entity: #b7b7b7; }
.entity-churn { --entity: #7d8d64; }
.entity-gardener { --entity: #5f9b72; }
.entity-saint { --entity: #d7c582; }
.entity-pale { --entity: #d8d8d8; }
.entity-underscript { --entity: #d2a85a; }
.entity-crown { --entity: #c7b16e; }
.packet-head[class*="entity-"] { border-left: 4px solid var(--entity); }

@media (max-width: 720px) {
  .site-wrap { padding-inline: .9rem; }
  .header-inner { padding-inline: .9rem; }
  h1 { font-size: 2.6rem; }
  .nav { font-size: .76rem; }
}
