/* ============================================================
   hoodedterminal.wiki — one shared stylesheet
   the hood remembers. this file compiles vibes into layout.
   palette: the hood speaks in green + neon. the streets of 4663
   are magenta, cyan, purple, gold. both things are true.
   ============================================================ */

:root {
  --bg:        #050507;  /* near-black, street dark */
  --panel:     #0A0D2E;  /* deep navy, like the reference shrine */
  --panel-2:   #0D103A;
  --green:     #00C805;  /* the hood's own voice */
  --green-dim: #00C80588;
  --neon:      #C7F900;  /* robin neon: highlights, blessings, glow */
  --neon-glow: 0 0 6px #C7F90066, 0 0 18px #C7F90022;
  --cyan:      #3FE8FF;  /* borders, links */
  --cyan-glow: 0 0 8px #3FE8FF55, 0 0 20px #3FE8FF22;
  --magenta:   #FF3DEC;  /* headers, dingbats */
  --purple:    #7A2BFF;
  --gold:      #FFC21A;  /* disclaimer, sub-headings */
  --warn-bg:   #F5B70A;
  --warn-text: #131309;
  --text:      #DCEFE0;  /* body text: soft phosphor white */
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg);
}

/* the starfield is css. the stars are dead pixels that made it out.
   it lives on a fixed layer so the sky holds still while you scroll —
   the streets move. the stars don't. */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 17px 33px,   #cfcfcf 50%, transparent 51%),
    radial-gradient(1px 1px at 143px 91px,  #8a8a8a 50%, transparent 51%),
    radial-gradient(2px 2px at 71px 187px,  #5a5a66 50%, transparent 51%),
    radial-gradient(1px 1px at 231px 61px,  #bdbdbd 50%, transparent 51%),
    radial-gradient(1px 1px at 187px 241px, #6f6f7a 50%, transparent 51%),
    radial-gradient(1px 1px at 51px 279px,  #3FE8FF44 50%, transparent 51%),
    radial-gradient(2px 2px at 311px 139px, #9a9aa8 50%, transparent 51%),
    radial-gradient(1px 1px at 271px 213px, #C7F90033 50%, transparent 51%);
  background-size: 260px 300px, 340px 260px, 420px 380px, 300px 340px,
                   380px 420px, 460px 320px, 520px 440px, 400px 360px;
}

::selection { background: var(--neon); color: var(--bg); }

a { color: var(--cyan); text-decoration: underline; }
a:hover { text-shadow: var(--cyan-glow); }

h1, h2, h3 {
  font-family: "VT323", "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}
h2 { font-size: 30px; margin: 4px 0 12px; color: #39FF3F; text-shadow: 0 0 8px #39FF3F55, 0 0 20px #39FF3F22; }
h3 { font-size: 22px; margin: 20px 0 8px; color: var(--gold); text-shadow: 0 0 8px #FFC21A44; }

/* ---------------- scanlines + flicker ---------------- */

.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 2px,
    rgba(0, 0, 0, 0.13) 2px, rgba(0, 0, 0, 0.13) 3px
  );
  animation: flicker 11s infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  91% { opacity: 1; } 92% { opacity: 0.8; } 93% { opacity: 1; }
  96% { opacity: 0.92; } 97% { opacity: 1; }
}

/* ---------------- the frame ---------------- */

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 22px auto;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 26px #3FE8FF44, inset 0 0 60px rgba(0, 0, 0, 0.5);
  background: rgba(5, 5, 10, 0.9);
  padding: 14px;
}

.banner {
  background: linear-gradient(90deg, #FF3DEC, #7A2BFF, #3FE8FF, #00C805, #C7F900, #FF3DEC);
  background-size: 300% 100%;
  animation: bannerflow 14s linear infinite;
  border: 1px solid var(--cyan);
  text-align: center;
  padding: 10px 8px;
  margin-bottom: 12px;
}
@keyframes bannerflow { to { background-position: 300% 0; } }
.banner h1 {
  margin: 0;
  color: var(--green);
  font-size: 46px;
  text-shadow: 0 0 2px #003802, 0 0 14px rgba(0, 40, 2, 0.6);
  animation: titleglow 3.2s ease-in-out infinite;
}
@keyframes titleglow {
  0%, 100% { text-shadow: 0 0 2px #003802, 0 0 12px rgba(0, 40, 2, 0.55); }
  50%      { text-shadow: 0 0 3px #002a01, 0 0 20px rgba(199, 249, 0, 0.45); }
}
.banner .spark { display: inline-block; animation: twinkle 2.1s ease-in-out infinite; }
.banner .spark.s2 { animation-delay: 1.05s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%      { opacity: 0.35; transform: scale(0.72) rotate(18deg); }
}

/* ---------------- disclaimer strip ---------------- */

.disclaimer {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.disclaimer button {
  margin-left: auto;
  background: none; border: 1px solid var(--warn-text);
  color: var(--warn-text);
  font-family: inherit; font-size: 14px; line-height: 1;
  padding: 2px 7px; cursor: pointer; flex-shrink: 0;
}
.disclaimer button:hover { background: var(--warn-text); color: var(--warn-bg); }

/* ---------------- two columns ---------------- */

.cols { display: flex; gap: 14px; align-items: flex-start; }

.sidebar { width: 30%; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }

.linkbox { border: 1px solid var(--cyan); background: var(--panel); box-shadow: 0 0 12px #3FE8FF22; }
.linkbox-head {
  background: linear-gradient(90deg, #FF3DEC, #7A2BFF);
  color: #fff;
  /* comic sans is permitted in exactly two places. these are the places. */
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  padding: 5px 8px;
}
.linkbox a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 10px;
  border-bottom: 1px dotted #3FE8FF33;
  font-size: 14px;
  color: var(--cyan);
}
.linkbox a:hover { color: var(--neon); text-shadow: var(--neon-glow); }
.linkbox a:last-child { border-bottom: none; }
.linkbox a .e { text-decoration: none; flex-shrink: 0; margin-left: 8px; line-height: 1; }

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

.panel {
  width: 70%;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px #3FE8FF22;
  padding: 20px 24px;
  min-height: 420px;
  background-image:
    radial-gradient(1px 1px at 43px 67px,  #ffffff22 50%, transparent 51%),
    radial-gradient(1px 1px at 157px 23px, #ffffff14 50%, transparent 51%),
    radial-gradient(1px 1px at 97px 143px, #3FE8FF1a 50%, transparent 51%),
    linear-gradient(160deg, var(--panel), var(--panel-2));
  background-size: 220px 180px, 260px 240px, 320px 200px, 100% 100%;
}

.panel p { margin: 0 0 13px; }
.panel pre {
  font-family: "Courier New", Courier, monospace;
  overflow-x: auto;
  margin: 0 0 14px;
  color: var(--green);
}

.founding {
  font-family: "VT323", monospace;
  font-size: 28px;
  color: var(--neon);
  text-shadow: var(--neon-glow);
  text-align: center;
  margin: 26px 0 10px;
}

.dim { color: #9fb8a8; }

/* ---------------- mascot ---------------- */

.intro-img {
  float: right;
  width: min(240px, 42%);
  margin: 4px 0 14px 18px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 14px #3FE8FF33;
  background: #05080a;
}

.homenav { list-style: none; margin: 0 0 18px; padding: 0; clear: both; }
.homenav > li { margin-bottom: 14px; }
.homenav > li > strong { color: var(--gold); text-shadow: 0 0 8px #FFC21A33; }
.homenav ul { list-style: none; margin: 6px 0 0; padding-left: 22px; }
.homenav ul li { margin-bottom: 6px; }
.homenav ul li::before { content: "> "; color: var(--magenta); }

.mascot-box {
  border: 1px solid var(--cyan);
  padding: 14px;
  margin: 14px 0;
  text-align: center;
  background: rgba(5, 8, 6, 0.6);
}
.mascot-img {
  max-width: min(340px, 100%);
  display: inline-block;
  filter: drop-shadow(0 0 14px #C7F90033);
}
.mascot {  /* still used for the little guy's ascii */
  display: inline-block;
  text-align: left;
  color: var(--neon);
  text-shadow: var(--neon-glow);
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  user-select: none;
}

.bootup { font-size: 18px; }
.bootup a { color: var(--neon); text-shadow: var(--neon-glow); }

.statusbox {
  border: 1px dashed var(--gold);
  padding: 12px 16px;
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
  margin-top: 4px;
  color: var(--green);
}

/* ---------------- residence / address box ---------------- */

.addr-box {
  border: 1px solid var(--green);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 40px rgba(0, 200, 5, 0.05);
  padding: 14px 16px;
  margin: 16px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
}
.addr-cmd { color: var(--green-dim); margin-bottom: 10px; }
.addr-cmd::before { content: ""; }
.addr-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.addr {
  color: var(--neon);
  text-shadow: var(--neon-glow);
  user-select: all;
  word-break: break-all;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.addr-copy {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 4px 10px;
  cursor: pointer;
}
.addr-copy:hover { color: var(--neon); border-color: var(--neon); text-shadow: var(--neon-glow); }

/* ---------------- shell ---------------- */

.term {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--green);
  padding: 14px;
  min-height: 380px;
  max-height: 62vh;
  overflow-y: auto;
  cursor: text;
  font-size: 14px;
  color: var(--green);
}
.term-out { white-space: pre-wrap; word-break: break-word; margin: 0; }
.term-out .cmd { color: var(--text); }
.term-out .cmd::before { content: "hood@4663:~$ "; color: var(--green-dim); }
.term-out .neon { color: var(--neon); text-shadow: var(--neon-glow); }
.term-form { display: flex; align-items: baseline; }
.term-form .ps1 { white-space: pre; color: var(--green); }
.term-form input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--neon);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  caret-color: var(--neon);
}

/* ---------------- page furniture ---------------- */

.exhibit { border: 1px solid var(--cyan); padding: 12px; margin: 14px 0; text-align: center; }
.exhibit .placeholder {
  border: 1px dashed #3FE8FF66;
  padding: 60px 10px;
  color: #7fc9d6;
  letter-spacing: 0.06em;
}
.exhibit img { max-width: 100%; display: block; margin: 0 auto; }
.exhibit .caption { font-size: 12.5px; color: #9fb8a8; margin: 10px 0 0; }

dl.glossary dt {
  color: var(--gold);
  text-shadow: 0 0 8px #FFC21A44;
  margin-top: 16px;
}
dl.glossary dt::before { content: "> "; color: var(--magenta); }
dl.glossary dd { margin: 2px 0 0 20px; }

table.redacted { border-collapse: collapse; width: 100%; margin: 12px 0; }
table.redacted td {
  border: 1px solid #3FE8FF33;
  padding: 6px 10px;
  color: #1a1a3a;
  font-size: 13px;
}
table.redacted td .frag { color: var(--green); }
.unredacted {
  color: var(--neon); text-shadow: var(--neon-glow);
  text-align: center; margin-top: 18px;
}

.feather-big {
  font-size: 90px;
  text-align: center;
  margin: 24px 0;
  filter: drop-shadow(0 0 14px #C7F90055);
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; border: 1px solid var(--cyan); padding: 10px; min-width: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #05080a;
}
.gallery .placeholder {
  border: 1px dashed #3FE8FF66;
  padding: 46px 8px;
  text-align: center;
  color: #7fc9d6;
}
.gallery figcaption { font-size: 12.5px; margin-top: 8px; color: #9fb8a8; }

.hoodware-page { text-align: center; padding-top: 40px; }
.hoodware-page .big { font-size: 19px; }
.hoodware-page button {
  background: var(--panel);
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  margin-top: 12px;
}
.hoodware-page button:hover { color: var(--neon); border-color: var(--neon); }

/* ---------------- marquee (deprecated, like the backrooms. we persist.) ---------------- */

.marquee {
  overflow: hidden;
  border-top: 1px dashed #FF3DEC55;
  border-bottom: 1px dashed #FF3DEC55;
  margin: 14px 0 10px;
  white-space: nowrap;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 26s linear infinite;
  color: var(--magenta);
  font-size: 13px;
}
@keyframes marquee { to { transform: translateX(-100%); } }

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

footer { text-align: center; padding: 6px 0 4px; }
footer .dings { color: var(--magenta); letter-spacing: 6px; text-shadow: 0 0 10px #FF3DEC44; }
footer .tiny { font-size: 11.5px; color: #8aa695; }

/* ---------------- the shadows archive (deep shelf — its own zone, no frame) ---------------- */

.enter-archive { text-align: center; margin-top: 16px; }
.enter-archive a {
  display: inline-block;
  border: 1px solid var(--neon);
  color: var(--neon);
  padding: 10px 24px;
  font-size: 16px;
}
.enter-archive a:hover {
  background: var(--neon);
  color: var(--bg);
  text-decoration: none;
  box-shadow: var(--neon-glow);
}

/* stardust cursor trail (spawned by trail.js) */
.stardust {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  border-radius: 50%;
  animation: dustfall 0.85s ease-out forwards;
}
@keyframes dustfall {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.25); }
}

.arch {
  position: relative; z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 18px 90px;
  text-align: center;
}
.arch-back { font-size: 13px; margin: 0 0 6px; }
.arch-back a { color: var(--gold); }

.arch-title {
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(44px, 9vw, 96px);
  color: var(--magenta);
  text-shadow: 0 0 10px #FF3DEC66, 0 0 42px #FF3DEC2e;
  margin: 14px 0 2px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.arch-tagline { font-weight: bold; font-size: 19px; margin: 4px 0 18px; }
.arch-desc { max-width: 760px; margin: 0 auto 14px; }
.arch-warning {
  font-weight: bold; letter-spacing: 0.03em;
  font-size: 13px; color: var(--gold);
  margin: 0 0 20px;
}
.arch-warning a { color: var(--gold); }

.arch-search {
  width: 100%; max-width: 760px;
  display: block; margin: 0 auto 12px;
  background: #08080d;
  border: 1px solid #666;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  padding: 12px 14px;
}
.arch-search:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 10px #C7F90044; }

.arch-eternal {
  display: block; width: 100%; max-width: 760px;
  margin: 0 auto 20px;
  background: none;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  text-decoration: underline;
  padding: 12px;
  cursor: pointer;
}
.arch-eternal:hover { box-shadow: 0 0 12px #C7F90044; }

.arch-chips { margin: 0 0 26px; }
.arch-chips button {
  background: var(--neon);
  color: #131309;
  border: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px; font-weight: bold;
  padding: 6px 12px; margin: 4px;
  cursor: pointer;
}
.arch-chips button.on { background: var(--magenta); color: #fff; }

.arch-list { max-width: 900px; margin: 0 auto; text-align: left; }
.arch-entry {
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid #2a2a33;
  font-size: 15px;
}
.arch-entry .glows { color: var(--cyan); white-space: nowrap; font-size: 13px; }
.arch-entry a { color: var(--neon); }
.arch-entry a:hover { text-shadow: var(--neon-glow); }
.arch-entry.sealed, .arch-entry.sealed .glows { color: #55555f; }
.arch-hidden { display: none; }

/* transcript pages */
.arch-scenario { font-family: "VT323", monospace; font-size: 26px; color: var(--gold); margin: 12px 0 2px; }
.arch-file {
  font-family: "VT323", "Courier New", monospace;
  font-size: clamp(30px, 5.4vw, 54px);
  color: var(--text);
  margin: 14px 0;
  line-height: 1.05;
  word-break: break-word;
}
.arch-note {
  border: 1px dashed #777;
  display: inline-block;
  padding: 10px 14px;
  color: #9fb8a8;
  font-size: 13px;
  margin-bottom: 22px;
}
.log-pre {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  border: 1px dashed #444;
  background: rgba(0, 0, 0, 0.4);
  padding: 22px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.log-pre .spk { color: var(--cyan); }

/* ---------------- mobile (~380px must work) ---------------- */

@media (max-width: 720px) {
  .container { margin: 8px; padding: 8px; }
  .banner h1 { font-size: 28px; }
  .cols { flex-direction: column; }
  .sidebar, .panel { width: 100%; }
  .panel { padding: 14px; min-height: 0; }
  .gallery { grid-template-columns: 1fr; }
  .mascot { font-size: 11px; }
}

/* ---------------- reduced motion: the tired-monitor stuff turns off ---------------- */

@media (prefers-reduced-motion: reduce) {
  .scanlines { animation: none; }
  .marquee span { animation: none; padding-left: 0; }
  .banner, .banner h1, .banner .spark { animation: none; }
  .stardust { display: none; }
  h1, h2, h3, .founding, .bootup a { text-shadow: none; }
}
