/* Vantage — dark wire-terminal.
   Palette: ink slate base, spectrum blue/steel/red reserved ONLY for lean data,
   gold reserved ONLY for blindspots. If a color means something, nothing else
   gets to wear it. */

:root {
  --bg: #0d1017;
  --panel: #151a23;
  --panel-2: #1b2130;
  --line: #262e3f;
  --text: #e8ecf3;
  --text-dim: #8b94a7;
  --left: #4c8dff;
  --center: #aab3c5;
  --right: #e5484d;
  --gold: #d4a72c;
  --radius: 10px;
  font-size: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Libre Franklin", system-ui, sans-serif;
  line-height: 1.55;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--line); padding: 2.2rem 1rem 1.4rem; }
.masthead-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { height: 52px; width: auto; }
.logo {
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo span { color: var(--text-dim); font-weight: 400; }
.tagline { color: var(--text-dim); margin-top: 0.3rem; font-weight: 600; }

/* ---------- wire status block ---------- */
.wire-status { display: flex; flex-direction: column; gap: 0.2rem; }
.wire-stat { display: flex; align-items: baseline; gap: 0.45rem; }
.wire-count { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.wire-count-label { text-transform: uppercase; }
.wire-tagline { font-size: 0.8rem; font-style: italic; }

/* ---------- feed ---------- */
.feed { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.loading { padding: 3rem 0; text-align: center; }

.story {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.story-head { padding: 1.1rem 1.2rem 0.9rem; }
.story-head h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.story-meta { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.55rem; flex-wrap: wrap; }

.badge-blindspot {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--gold);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- the spectrum bar (signature) ---------- */
.spectrum { display: flex; height: 8px; border-radius: 99px; overflow: hidden; min-width: 140px; flex: 1; max-width: 260px; background: var(--panel-2); }
.spectrum .l { background: var(--left); }
.spectrum .c { background: var(--center); }
.spectrum .r { background: var(--right); }
.spectrum-label { white-space: nowrap; }

/* ---------- tabs ---------- */
.tabs { display: flex; border-top: 1px solid var(--line); }
.tab {
  flex: 1;
  background: none;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--text-dim);
  font: 600 0.8rem "Libre Franklin", sans-serif;
  letter-spacing: 0.03em;
  padding: 0.6rem 0;
  cursor: pointer;
}
.tab:last-child { border-right: none; }
.tab:hover { color: var(--text); background: var(--panel-2); }
.tab:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.tab.active { color: var(--text); background: var(--panel-2); box-shadow: inset 0 2px 0 currentColor; }
.tab.active[data-pane="left"] { color: var(--left); }
.tab.active[data-pane="center"] { color: var(--center); }
.tab.active[data-pane="right"] { color: var(--right); }

.pane { display: none; padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.pane.active { display: block; }
.pane p { color: var(--text); }

/* ---------- article chips ---------- */
.article-list { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.article-list a { color: var(--text); text-decoration: none; font-size: 0.88rem; display: flex; gap: 0.55rem; align-items: baseline; }
.article-list a:hover { text-decoration: underline; }
.chip {
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.chip.l { color: var(--left); border-color: var(--left); }
.chip.c { color: var(--center); border-color: var(--center); }
.chip.r { color: var(--right); border-color: var(--right); }

/* ---------- copy-for-claude button ---------- */
.copy-claude {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
}
.copy-claude:hover { color: var(--text); border-color: var(--text-dim); }
.copy-claude:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

.colophon { max-width: 860px; margin: 0 auto; padding: 0 1rem 3rem; }

/* ---------- wire brief ---------- */
.brief {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 0.6rem;
  margin-bottom: 1.25rem;
}
.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.brief-title { color: var(--text); font-weight: 700; letter-spacing: 0.14em; }
.brief-section {
  border-top: 1px solid var(--line);
  padding: 0.55rem 0 0.6rem;
}
.brief-label { display: block; margin-bottom: 0.25rem; }
.brief-list { list-style: none; display: grid; gap: 0.3rem; font-size: 0.92rem; max-width: 70ch; }
.brief-list.gold li { color: var(--gold); }

@media (min-width: 700px) {
  .brief-section { display: flex; gap: 1rem; align-items: baseline; }
  .brief-label { flex-shrink: 0; width: 10rem; margin-bottom: 0; }
}

/* ---------- responsive newspaper grid ---------- */
/* keep lines readable no matter how wide the card gets */
.story-head h2, .pane p, .article-list { max-width: 70ch; }
.story.lead .story-head h2 { font-size: 1.5rem; }

/* 700-1100px: two equal columns, lead spans both */
@media (min-width: 700px) {
  .masthead-inner {
    max-width: 1100px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .colophon { max-width: 1100px; }
  .wire-status { align-items: flex-end; text-align: right; }
  .wire-count { font-size: 2rem; }
  .feed {
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .story, .brief { margin-bottom: 0; }
  .story.lead, .brief { grid-column: 1 / -1; }
}

/* >1100px: 12-column newspaper grid */
@media (min-width: 1100px) {
  .masthead-inner, .colophon { max-width: 1700px; }
  .feed {
    max-width: 1700px;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
  }
  .story { grid-column: span 4; }
  .story.wide { grid-column: span 6; }
  .story.lead { grid-column: span 8; }
  .story.lead .pane[data-pane="facts"] > p {
    columns: 2;
    column-gap: 2.5rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .story { animation: rise 0.25s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
}

@media (max-width: 560px) {
  .tabs { flex-wrap: wrap; }
  .tab { flex-basis: 50%; border-bottom: 1px solid var(--line); }
}
