:root {
  --paper: #f4f1ea;
  --paper-2: #ece7db;
  --ink: #1a1714;
  --ink-soft: #4a443c;
  --rule: #c9c0ad;
  --accent: #8a1c1c;
  --accent-2: #1d4e4e;
  --warn-bg: #2a2320;
  --warn-fg: #f4e9c9;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
}

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

/* Hide bindings until Spektrum strips data-cloak after first bind. */
[data-cloak] { display: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem 5rem; }
a { color: var(--accent); }

/* --- Masthead --- */
.masthead { text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.masthead h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0.2rem 0; }
.masthead .kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.7rem; color: var(--ink-soft); }
.masthead .dek { font-style: italic; color: var(--ink-soft); margin: 0.35rem 0 0; }

/* --- Disclaimer banner --- */
.banner {
  background: var(--warn-bg); color: var(--warn-fg); font-family: var(--mono);
  font-size: 0.78rem; line-height: 1.5; padding: 0.75rem 1rem; border-radius: 2px; margin-bottom: 1.5rem;
}
.banner strong { color: #fff; }

/* --- Cards / sections --- */
.card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 2px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.card h2 {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem;
  color: var(--accent-2); margin: 0 0 0.75rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem;
}
.field { margin-bottom: 0.85rem; }
.field label { display: block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 0.3rem; }
.field input, .field select { width: 100%; font-family: var(--mono); font-size: 0.9rem; padding: 0.55rem 0.6rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); }
.field .hint { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-soft); margin-top: 0.3rem; }
.rationale { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin: 0.5rem 0 0; min-height: 1.2em; }

button.primary {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 700;
  background: var(--ink); color: var(--paper); border: none; border-radius: 2px; padding: 0.7rem 1.2rem; cursor: pointer;
}
button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary:not(:disabled):hover { background: var(--accent); }

/* --- Status / errors --- */
.status { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); margin: 0.75rem 0; min-height: 1.1em; }
.status.error { color: var(--accent); }
.status.spinner::after { content: " ▍"; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- The article --- */
.article { border-top: 3px double var(--ink); padding-top: 1.25rem; margin-bottom: 1.25rem; }
.article .label { display: inline-block; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; padding: 0.2rem 0.5rem; border-radius: 2px; margin-bottom: 0.75rem; }
/* Tabloid kicker overline above the headline. */
.article .kicker-overline { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; color: var(--accent); margin: 0.5rem 0 0.1rem; }
.article h2.headline { font-size: clamp(2rem, 6.5vw, 3.1rem); font-weight: 800; line-height: 1.04; margin: 0.2rem 0; letter-spacing: -0.02em; }
.tabloid h2.headline { text-transform: uppercase; }
.article .subhead { font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin: 0.4rem 0 1.2rem; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.article .body p { margin: 0 0 1rem; }
.article .body::after { content: ""; display: block; clear: both; }

/* The enforced tabloid arc — each beat labeled. */
.report-section { margin: 0 0 1.4rem; }
.report-section .section-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem;
  color: var(--accent-2); margin: 0 0 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px dotted var(--rule);
}
/* Drop cap on the very first paragraph of the opening section — classic front-page flourish. */
.report-section:first-of-type .section-paras p:first-child::first-letter {
  float: left; font-weight: 800; font-size: 3.1rem; line-height: 0.8; padding: 0.1rem 0.5rem 0 0; color: var(--accent);
}
/* Layer exists only to give the pull-quote loop its own parent; it must not
   affect layout, so floats inside still reference the .body column. */
.quotes-layer, .paras-layer, .sections-layer, .section-paras { display: contents; }

/* Manufactured authority quotes — real words, ominous framing. Floated so
   they sit alongside the running text like a newspaper pull-quote. */
.pull {
  float: right;
  width: min(48%, 320px);
  margin: 0.3rem 0 1rem 1.4rem;
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--ink);
}
.pull cite { display: block; margin-top: 0.3rem; font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); }
.pull .spin { display: block; margin-top: 0.5rem; font-style: normal; font-family: var(--mono); font-size: 0.72rem; line-height: 1.5; color: var(--accent); }
/* Mobile: the side panel drops out of the float and spans the full column. */
@media (max-width: 560px) {
  .pull {
    float: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0.5rem 0 1.2rem;
  }
}

/* The "it never ended" closer — the report's final passage. */
.article .closer {
  clear: both;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
}

/* --- Exhibits / claims / reveal --- */
.exhibit { font-family: var(--mono); font-size: 0.82rem; }
.exhibit ul { list-style: none; padding: 0; margin: 0; }
.exhibit li { padding: 0.45rem 0; border-bottom: 1px dotted var(--rule); }
.exhibit li:last-child { border-bottom: none; }
.exhibit .src { display: block; color: var(--accent-2); font-size: 0.72rem; margin-top: 0.2rem; }

.claim { padding: 0.5rem 0; border-bottom: 1px dotted var(--rule); }
.claim .based { font-family: var(--mono); font-size: 0.68rem; color: var(--accent-2); display: block; margin-top: 0.2rem; }

.reveal { background: #efe8d6; border-left: 4px solid var(--accent-2); }
.reveal .summary { font-style: italic; margin-bottom: 0.8rem; }
.move { padding: 0.55rem 0; border-bottom: 1px dotted var(--rule); }
.move:last-child { border-bottom: none; }
.move .name { font-weight: 600; }
.move .fallacy { font-family: var(--mono); font-size: 0.74rem; color: var(--accent); display: block; margin-top: 0.2rem; }

.match-note { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.match-note .cat { color: var(--accent-2); font-weight: 700; }
.badge { display: inline-block; background: var(--accent-2); color: #fff; font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.1rem 0.4rem; border-radius: 2px; margin-left: 0.4rem; vertical-align: middle; }
.card.choice { border-left: 4px solid var(--accent-2); }

footer { text-align: center; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-soft); margin-top: 2rem; }
