:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --ink: #18130d;
  --ink-soft: #6a6253;
  --rule: #cdc4b2;
  --rule-strong: #b3a98f;
  --living: #356a45;
  --deceased: #9b2220;
  --unknown: #8a6d2f;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle printed-paper grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bulletin { display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; }

/* Pinned at the very top */
.kicker {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  text-align: center;
  width: max-content;
  max-width: 90vw;
}

/* Hidden until "More" is pressed; kept in the DOM for the cross-check */
.sources,
.colophon { display: none; }
.bulletin.revealed .sources,
.bulletin.revealed .colophon { display: block; }

/* Kicker */
.kicker {
  text-align: center;
  margin: 0 0 6px;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

/* Verdict */
.verdict { text-align: center; padding: 0; }

.answer {
  font-size: min(42vw, 78vh);
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--ink);
}
.verdict--loading .answer { color: var(--rule-strong); animation: blink 1.1s steps(2, jump-none) infinite; }
.verdict--alive .answer { color: var(--living); }
.verdict--dead .answer { color: var(--deceased); }
.verdict--unknown .answer { color: var(--unknown); }

/* Big, prominent toggle under the verdict */
.more-btn {
  font-family: inherit;
  margin-top: 18px;
  padding: 14px 40px;
  font-size: 1.05rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.more-btn:hover { background: transparent; color: var(--ink); }

/* News (always visible, between the verdict and the More button) */
.news {
  width: 100%;
  max-width: 560px;
  margin: 44px auto 8px;
}
.bulletin.revealed .sources,
.bulletin.revealed .colophon {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.bulletin.revealed .sources { margin-top: 36px; }
.bulletin.revealed .colophon { margin-top: 30px; }

.news-items { list-style: none; margin: 0; padding: 0; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: .98rem;
  line-height: 1.4;
}
.news-item:last-child { border-bottom: 0; }

/* Extra headlines stay hidden until "More" is pressed */
.news-item--extra { display: none; }
.bulletin.revealed .news-item--extra { display: flex; }
.news-fav {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 3px;
  background: var(--paper-2);
  object-fit: contain;
}
.news-body { min-width: 0; }
.news-item a { color: var(--ink); text-decoration: none; font-weight: 700; }
.news-item a:hover { color: var(--ink-soft); }
.news-meta {
  display: block;
  margin-top: 3px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.news-empty { color: var(--ink-soft); font-style: italic; font-size: .92rem; padding: 6px 0; }

@keyframes blink { 50% { opacity: .35; } }

.standfirst {
  font-size: 1.18rem;
  line-height: 1.5;
  margin: 22px auto 0;
  max-width: 38ch;
  color: var(--ink);
}
.standfirst strong { font-weight: 700; }

.meta {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin: 12px 0 0;
  font-style: italic;
}

/* Rules */
.rule { border: 0; margin: 30px 0; }
.rule--double {
  height: 4px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
}
.rule--thin { border-top: 1px solid var(--rule); margin: 28px 0; }

/* Sources */
.sources-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.label {
  margin: 0;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}

.refresh {
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 5px 13px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.refresh:hover { background: var(--ink); color: var(--paper); }
.refresh:disabled { opacity: .45; cursor: default; }

/* Discreet, near-invisible re-check tucked in the corner */
.refresh--ghost {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 6px 8px;
  opacity: .12;
  transition: opacity .2s ease;
}
.refresh--ghost:hover { opacity: .9; background: transparent; color: var(--ink); }
.refresh--ghost:disabled { opacity: .06; }

/* Citations */
.citations {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cite;
}
.citation {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: .98rem;
  line-height: 1.45;
}
.citation:last-child { border-bottom: 0; }

.citation .num {
  counter-increment: cite;
  flex: 0 0 auto;
  width: 1.5em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.citation .num::before { content: counter(cite) "."; }

.citation .body { flex: 1 1 auto; min-width: 0; }
.citation .src-name { font-weight: 700; }
.citation .src-name a { color: inherit; text-decoration: none; }
.citation .src-name a:hover { color: var(--ink-soft); }
.citation .src-detail { color: var(--ink-soft); }
.citation .src-detail::before { content: " — "; color: var(--ink-soft); }

.verdict-tag {
  flex: 0 0 auto;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.verdict-tag--alive { color: var(--living); }
.verdict-tag--dead { color: var(--deceased); }
.verdict-tag--unknown { color: var(--unknown); }
.verdict-tag--loading { color: var(--rule-strong); }

/* Colophon */
.colophon { margin-top: auto; }
.howto {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 18px;
}
.howto-lead { font-style: normal; font-weight: 700; color: var(--ink); }

.dateline {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.fineprint {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--rule-strong);
  margin: 0;
  max-width: 52ch;
}

@media (max-width: 480px) {
  .wrap { padding: 40px 20px 56px; }
  .citation { flex-wrap: wrap; }
  .verdict-tag { width: 100%; order: 3; padding-left: calc(1.5em + 12px); }
}
