/* degenews — Drudge-style. Dense, cheap, fast. */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-dim: #4a4a4a;
  --rule: #c8c8c8;
  --link: #0b0bff;
  --link-visited: #551a8b;
  --red: #d0021b;
  --gold: #b5872a;
  --green: #0a7d28;
  --siren-bg: #fff2b8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 16px;
  line-height: 1.25;
}

a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration: none; background: #ffffa0; }

.masthead {
  text-align: center;
  padding: 8px 12px 4px;
  border-bottom: 2px solid var(--ink);
}

.wordmark {
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  font-size: clamp(44px, 10vw, 96px);
  letter-spacing: -2px;
  margin: 0;
  line-height: 1;
}

.strap {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--ink-dim);
  padding: 6px 0 8px;
  text-transform: uppercase;
}

.strap .sep { margin: 0 8px; color: var(--rule); }

.siren {
  background: var(--siren-bg);
  color: var(--red);
  text-align: center;
  font-weight: 900;
  font-size: clamp(18px, 3.5vw, 26px);
  padding: 10px 12px;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  animation: pulse 1.4s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.siren a { color: var(--red); text-decoration: none; }
.siren a:hover { background: transparent; text-decoration: underline; }

.siren-icon { display: inline-block; margin: 0 6px; }

@keyframes pulse {
  0%, 100% { background: var(--siren-bg); }
  50% { background: #ffe070; }
}

.banner {
  text-align: center;
  padding: 14px 12px 18px;
  border-bottom: 1px solid var(--rule);
}

.banner-link { text-decoration: none; color: var(--ink); }
.banner-link:hover { background: transparent; }

.banner-title {
  font-weight: 900;
  font-size: clamp(28px, 7vw, 68px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.banner-source {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 6px;
  text-transform: uppercase;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}

.column {
  padding: 12px 14px 18px;
  border-right: 1px solid var(--rule);
}
.column:last-child { border-right: none; }

.col-head {
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  text-align: center;
  margin: 0 0 10px;
  padding: 4px 0;
  font-size: 20px;
  letter-spacing: 2px;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  text-transform: uppercase;
}

.column--action .col-head { color: var(--red); border-color: var(--red); }
.column--pulls  .col-head { color: var(--gold); border-color: var(--gold); }
.column--chain  .col-head { color: var(--green); border-color: var(--green); }

.links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px dotted var(--rule);
  font-size: 17px;
  line-height: 1.3;
}

.link:last-child { border-bottom: none; }

.link--has-image {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: start;
}

.link-thumb {
  display: block;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #f4f4f4;
}

.link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-text { min-width: 0; }

.link a {
  font-weight: 700;
  color: var(--link);
}

.link .meta {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 2px;
  text-transform: uppercase;
}

.banner--has-image .banner-link {
  display: block;
}

.banner-image {
  display: block;
  max-width: 100%;
  max-height: 360px;
  width: auto;
  margin: 0 auto 12px;
  border: 1px solid var(--rule);
}

/* Story page */
.masthead--story, .masthead--topic { padding: 16px 12px 14px; }
.masthead--story .wordmark, .masthead--topic .wordmark { font-size: clamp(28px, 6vw, 44px); margin: 0; }
.wordmark-link { text-decoration: none; color: inherit; }
.wordmark-link:hover { background: transparent; }
.cat-link { color: var(--ink); text-decoration: none; font-weight: 700; padding: 0 4px; }
.cat-link--action:hover { color: var(--red); }
.cat-link--pulls:hover { color: var(--gold); }
.cat-link--chain:hover { color: var(--green); }

.story {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.story-meta-top {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.story-meta-top a { color: var(--ink-dim); text-decoration: none; }
.story-meta-top a:hover { color: var(--ink); }
.story-meta-top .back { font-weight: 700; color: var(--ink); }
.story-meta-top .sep { margin: 0 6px; color: var(--rule); }

.story-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.story-image-link { display: block; margin: 0 0 18px; }
.story-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.story-reason {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 22px;
  color: var(--ink);
}

.story-cta-row { margin: 24px 0 18px; }
.story-cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 12px 18px;
  text-transform: uppercase;
}
.story-cta:hover { background: var(--red); color: #fff; }

.story-original {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--ink-dim);
  border-top: 1px dotted var(--rule);
  padding-top: 14px;
  margin-top: 22px;
}

.related {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 28px;
  border-top: 3px double var(--ink);
  padding-top: 18px;
}
.related-head {
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 2px;
  margin: 0 0 12px;
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 6px 0; border-bottom: 1px dotted var(--rule); font-size: 15px; line-height: 1.3; }
.related-list a { font-weight: 700; color: var(--link); text-decoration: none; }
.related-list a:hover { background: var(--ink); color: #fff; }
.related-source {
  display: block;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Topic page */
.topic-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}
.topic-label { font-weight: 900; }
.topic-count { font-family: "Courier New", Courier, monospace; font-size: 11px; }
.links--topic .link { font-size: 17px; }

.chip {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  margin-right: 4px;
  vertical-align: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.chip--new { background: var(--red); color: #fff; }
.chip--breaking { background: #000; color: #fff; animation: blink 1s steps(2, start) infinite; }

@keyframes blink { to { visibility: hidden; } }

.link--breaking a { color: var(--red); }
.link--stale a { color: var(--ink-dim); font-weight: 400; }

.affiliates {
  padding: 14px 14px 4px;
  border-bottom: 1px solid var(--rule);
  background: #fafafa;
}

.aff-head {
  margin: 0 0 10px;
  font-family: "Times New Roman", serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 4px 0;
}

.aff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 14px;
}

.aff-item a {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: #fff;
}
.aff-item a:hover { border-color: var(--ink); background: #ffffa0; }

.aff-label {
  display: block;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink);
  text-transform: uppercase;
}

.aff-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.ad-slot {
  margin: 6px auto;
  max-width: 970px;
  min-height: 90px;
  background: #f5f5f5;
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: "Courier New", monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.ad-slot::before { content: "ad slot"; }
.ad-slot--banner { min-height: 90px; }
.ad-slot--mid { min-height: 250px; }
.ad-slot--footer { min-height: 90px; margin-bottom: 0; }

.footer {
  text-align: center;
  padding: 14px 12px 20px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.footer-row a { color: var(--ink); font-weight: 700; }
.footer-row .sep { margin: 0 8px; }
.footer-meta { margin-top: 6px; letter-spacing: 0.5px; }

@media (max-width: 780px) {
  .columns { grid-template-columns: 1fr; }
  .column { border-right: none; border-bottom: 1px solid var(--rule); }
  .column:last-child { border-bottom: none; }
  .wordmark { letter-spacing: -1px; }
  .link { font-size: 16px; }
}
