/* rsshose — the firehose, deduped.
   Voice: monospace (feed/terminal vernacular) for identity + metadata,
   system sans for reading. One accent: RSS orange, spent on the beacon,
   the pressure stat, and the compression gauges. */

:root {
  --paper: #fbfbf9;
  --ink: #191d24;
  --ink-soft: #5c6470;
  --rule: #e3e2dc;
  --orange: #e8630a;
  --orange-soft: #fbe9dc;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a;
    --ink: #e8e6e1;
    --ink-soft: #8a919c;
    --rule: #2a2e35;
    --orange: #f97a1f;
    --orange-soft: #33221a;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  /* the hose line: one orange bead across the top of everything */
  border-top: 4px solid var(--orange);
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* --- header --- */
header { padding: 2.5rem 0 1.75rem; border-bottom: 1px solid var(--rule); }

.mark {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.beacon { width: 1.15em; height: 1.15em; fill: var(--orange); align-self: center; }

.tagline {
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.pressure {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.1rem;
}
.pressure strong { color: var(--orange); font-weight: 700; }

/* --- river --- */
main { padding: 1rem 1.25rem 3rem; }

.story {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

/* compression gauge: the signature. Quiet for singletons, loud when the
   hose actually squeezed something. */
.gauge {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 2.6rem;
  text-align: center;
  align-self: flex-start;
  padding: 0.15rem 0;
  border-radius: 3px;
  color: var(--orange);
  background: transparent;
}
.story.merged .gauge { background: var(--orange-soft); }
.story:not(.merged) .gauge::before { content: "·"; color: var(--rule); }

.body { flex: 1; min-width: 0; }

h2 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
h2 a { color: var(--ink); text-decoration: none; }
h2 a:hover { color: var(--orange); }
h2 a:visited { color: var(--ink-soft); }

.lead {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
  display: flex;
  gap: 0.9rem;
}
.meta .source { color: var(--ink-soft); }
.meta .age::before { content: "↑ "; color: var(--orange); }

/* Source-lean chips (AllSides scale). Deliberate exception to the
   one-accent rule: left/right color convention IS the information.
   Unrated feeds render no chip at all. */
.bias {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  white-space: nowrap;
  align-self: center;
}
.bias.b1 { color: #2458c5; background: #e3ebfa; }
.bias.b2 { color: #4a72c4; background: #ecf1fa; }
.bias.b3 { color: #6b6478; background: #efedf2; }
.bias.b4 { color: #b5533c; background: #f9ece8; }
.bias.b5 { color: #bb3327; background: #f9e5e2; }
@media (prefers-color-scheme: dark) {
  .bias.b1 { color: #7ea6f0; background: #1b2740; }
  .bias.b2 { color: #8fa9dd; background: #1c2434; }
  .bias.b3 { color: #a49bb3; background: #262230; }
  .bias.b4 { color: #e0876f; background: #33211b; }
  .bias.b5 { color: #ec7466; background: #391d19; }
}

details { margin-top: 0.5rem; font-size: 0.85rem; }
summary {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--orange);
  cursor: pointer;
}
summary:hover { text-decoration: underline; }
details ul { list-style: none; margin: 0.5rem 0 0.25rem; }
details li { padding: 0.2rem 0; }
details li a { color: var(--ink); }
details li .source {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

.empty {
  font-family: var(--mono);
  color: var(--ink-soft);
  padding: 3rem 0;
  text-align: center;
}

/* --- footer --- */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 1.25rem 3rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
footer a { color: var(--orange); }

/* --- upload page / panels --- */
.panel {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.panel h2 { font-family: var(--mono); font-size: 1.15rem; margin-bottom: 0.75rem; }
.panel p { margin: 0.6rem 0; font-size: 0.95rem; }
.panel form { margin: 1.25rem 0; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.panel input[type=file] { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); }
.panel button {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.panel button:hover { filter: brightness(1.08); }
.fine { font-size: 0.8rem; color: var(--ink-soft); }
.error {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--orange);
  border-left: 3px solid var(--orange);
  padding-left: 0.75rem;
}
.keylinks { list-style: none; margin: 1rem 0; }
.keylinks li {
  font-family: var(--mono);
  font-size: 0.85rem;
  margin: 0.9rem 0;
  word-break: break-all;
}
.keylinks a { color: var(--orange); }
.marklink { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.45rem; }
.rsslink {
  font-family: var(--mono);
  color: var(--orange);
  margin-left: 0.6rem;
}

/* --- landing page --- */
.hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.mark.big { font-size: 2.6rem; }
.thesis {
  font-family: var(--mono);
  font-size: 1.5rem;
  margin-top: 0.75rem;
}
.thesis em { color: var(--orange); font-style: normal; }
.pitch {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}
/* events strip: the kinds of stories that flood a reader, gauge-style */
.events {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin-top: 1.4rem;
  max-width: 36rem;
}
.events li {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.8rem 0.3rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.events .squeeze {
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
.eventsub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

.cta { margin-top: 1.75rem; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.button {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  background: var(--orange);
  border-radius: 4px;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.demolink { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); }
.demolink:hover { color: var(--orange); }
.hero .pressure { margin-top: 1.75rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule);
}
.step h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--orange);
  text-transform: lowercase;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.proof { padding: 2.25rem 0 1rem; border-bottom: 1px solid var(--rule); }
.proof h2, .faq h2 {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.proofsub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.5rem; }

.faq { padding: 2.25rem 0; }
.faq dt {
  font-weight: 600;
  margin-top: 1.1rem;
  font-size: 0.95rem;
}
.faq dd { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.3rem; }
.faq dd em { color: var(--orange); font-style: normal; }

/* --- admin feed table --- */
.tablewrap { overflow-x: auto; margin: 1.5rem 0; }
.feedtable {
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.75rem;
  width: 100%;
}
.feedtable th, .feedtable td {
  text-align: left;
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.feedtable th { color: var(--orange); font-weight: 700; }
.feedcell { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
.feedtable tr.inactive td { opacity: 0.45; }
.feedtable tr.prunable td { color: var(--orange); }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .story { gap: 0.6rem; }
  .gauge { min-width: 2rem; }
  header { padding-top: 1.75rem; }
}
