:root {
  --bg: #030806;
  --raise: #07140c;
  --fg: #d5ffe2;
  --phosphor: #7dff9a;
  --dim: #9ee8b6;
  --faint: #4f9a68;
  --line: #1c4a2e;
  --hot: #f3fff6;
  --ink: #031208;
  --display: "VT323", "Share Tech Mono", ui-monospace, monospace;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --measure: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--mono);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.45;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 31;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  object-position: center;
  border-bottom: 2px solid var(--phosphor);
  background: #14081f;
}

.wrap {
  width: min(var(--measure), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
}

.statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--phosphor);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.brand {
  color: var(--hot);
  text-shadow: 0 0 10px rgba(125, 255, 154, 0.45);
}

.caret {
  display: inline-block;
  margin-left: 1px;
  animation: blink 1.05s steps(1) infinite;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.live i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
  animation: blink 1.4s steps(2) infinite;
}

.panel {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(7, 20, 12, 0.92);
}

.panel-h,
.help summary {
  font-family: var(--display);
  letter-spacing: 0.07em;
}

.panel-h {
  padding: 0.15rem 0.7rem;
  background: var(--phosphor);
  color: var(--ink);
  font-size: 1.3rem;
}

.panel-b {
  padding: 0.85rem 0.95rem 1rem;
}

.panel-b p {
  margin: 0;
  color: var(--fg);
}

.panel-b p + p {
  margin-top: 0.75rem;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.8rem 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.55rem;
  align-items: baseline;
}

.facts span {
  color: var(--phosphor);
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.facts code {
  color: var(--hot);
  font-family: var(--mono);
  word-break: break-all;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--phosphor);
  background: #020604;
}

.search span {
  color: var(--phosphor);
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--hot);
  caret-color: var(--phosphor);
}

.search input::placeholder {
  color: var(--faint);
}

.search button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--phosphor);
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.search button:hover,
.search button:focus-visible {
  background: var(--phosphor);
  color: var(--ink);
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.post {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(125, 255, 154, 0.05), transparent 42%);
}

.mark {
  width: 4.75rem;
  height: 4.75rem;
  align-self: start;
  object-fit: cover;
  object-position: center 36%;
  border: 1px solid var(--phosphor);
  background: #fff;
  box-shadow: 3px 3px 0 #000;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  color: var(--dim);
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.chan {
  color: var(--phosphor);
}

.title {
  margin: 0.2rem 0 0.45rem;
  color: var(--hot);
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.12;
  text-shadow: 0 0 14px rgba(125, 255, 154, 0.28);
}

.post h3 {
  margin: 1rem 0 0.3rem;
  color: var(--phosphor);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.post p {
  margin: 0.5rem 0;
}

.post ul {
  margin: 0.35rem 0 0.55rem;
  padding-left: 1.15rem;
}

.post li {
  margin: 0.25rem 0;
}

.post li::marker {
  color: var(--phosphor);
}

.empty {
  padding: 1.4rem 0.8rem;
  border: 1px dashed var(--line);
  color: var(--dim);
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-align: center;
}

.help {
  margin-top: 1.25rem;
  border: 1px dashed var(--faint);
}

.help summary {
  padding: 0.5rem 0.75rem;
  color: var(--phosphor);
  font-size: 1.3rem;
  cursor: pointer;
  list-style: none;
}

.help summary::-webkit-details-marker {
  display: none;
}

.help summary::before {
  content: "> ";
}

.help[open] summary::before {
  content: "v ";
}

.help-b {
  padding: 0 0.9rem 0.95rem;
  color: var(--dim);
}

.help-b p {
  margin: 0 0 0.7rem;
}

.help-b pre {
  margin: 0;
  overflow: auto;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: #020604;
  color: var(--phosphor);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
}

.foot {
  margin-top: 1.1rem;
  color: var(--faint);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--measure), calc(100% - 1rem));
  }

  .post {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .statusbar {
    font-size: 1.15rem;
  }

  .search {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret,
  .live i {
    animation: none;
  }
}
