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

:root {
  --paper-bg: #f3f0e9;
  --ink-dark: #111111;
  --ink-mid: #444444;
  --accent-red: #d62828;
  --accent-blue: #1d4ed8;
}

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper-bg);
  color: var(--ink-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Newspaper background + logo watermark */
.paper-texture {
  position: fixed;
  inset: 0;
  background:
    url("assets/logo-fud-daily.png") center center / 45% no-repeat,
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px,
      transparent 260px
    );
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}

/* Header */

.header {
  padding: 24px 16px 8px;
  border-bottom: 2px solid #000;
}

.headline-main {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0;
}

.site-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
}

.header h1 {
  display: none; /* replaced by logo image */
}

.subhead {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-top: 6px;
}

.badge-breaking {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 10px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* Layout */

.page {
  max-width: 1100px;
  margin: 18px auto 64px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2.1fr 1.1fr;
  gap: 24px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Articles */

.article {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 14px 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.lead-article h2 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 1.9rem;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.article h3 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--ink-mid);
}

.article p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 4px;
  color: var(--ink-mid);
}

.mini-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
}

.article.mini {
  font-size: 0.9rem;
}

/* Troll hero */

.hero-troll {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #000;
  padding: 16px;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.troll-face-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.troll-face {
  width: min(260px, 70vw);
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25));
  animation: shake 1.4s infinite ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, -1px) rotate(-1deg); }
  50% { transform: translate(2px, 1px) rotate(1deg); }
  75% { transform: translate(-1px, 2px) rotate(0.5deg); }
}

/* Speech bubble */

.bubble {
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #000;
  padding: 10px 14px;
  position: relative;
  font-weight: 700;
  font-size: 0.9rem;
}

.bubble::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 35%;
  border-width: 0 14px 16px;
  border-style: solid;
  border-color: transparent transparent #000 transparent;
}

.bubble::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 35.7%;
  border-width: 0 12px 14px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.bubble p {
  font-size: 0.85rem;
}

/* Right column */

.section-title {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  border-bottom: 2px solid #000;
  margin-bottom: 6px;
}

.headline-list {
  list-style: none;
  font-size: 0.88rem;
}

.headline-list li {
  padding: 4px 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
}

.headline-list .percent {
  float: right;
  font-weight: 700;
}

.text-red {
  color: var(--accent-red);
}

.text-blue {
  color: var(--accent-blue);
}

.box.dark-quote {
  background: #111;
  color: #f5f5f5;
}

.box.dark-quote p {
  color: #e5e5e5;
}

.box.dark-quote h3 {
  color: #fff;
}

/* FUD index */

.panic-index h2 {
  font-family: "Bebas Neue", system-ui, sans-serif;
  margin-bottom: 8px;
}

.gauge {
  margin-top: 4px;
}

.gauge-bar {
  height: 14px;
  border-radius: 999px;
  background: #ddd;
  overflow: hidden;
  border: 1px solid #000;
}

.gauge-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f97316, #ef4444, #7f1d1d);
  transition: width 0.8s ease-out;
}

.gauge-label {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.gauge-note {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-mid);
}

/* Bottom ticker */

.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: #fef2f2;
  border-top: 2px solid #000;
  font-size: 0.8rem;
  padding: 4px 0;
  overflow: hidden;
  z-index: 10;
}

.ticker-inner {
  white-space: nowrap;
  display: inline-block;
  animation: scroll 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 16px;
}

.ticker-symbol {
  font-weight: 700;
}

.ticker-change {
  color: #f87171;
}

.ticker-label {
  color: #facc15;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */

.footer {
  text-align: center;
  padding: 10px;
  font-size: 0.75rem;
  color: var(--ink-mid);
  margin-bottom: 24px;
}

.footer-cry {
  font-size: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dark);
  text-decoration: none;
  font-weight: 700;
}

.social-link:hover {
  color: var(--accent-blue);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link img {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.contract-address {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.ca-label {
  background: var(--accent-blue);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1px;
}

.copy-btn {
  background: #111;
  color: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--accent-blue);
}

/* Responsive */

@media (max-width: 800px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero-troll {
    margin-bottom: 10px;
  }

  .site-logo {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .lead-article h2 {
    font-size: 1.5rem;
  }

  .bubble {
    max-width: 260px;
  }
}
