/* Binary Rogue — Drudge-style dark terminal */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  background: #000;
  color: #ccc;
  line-height: 1.5;
  font-size: 18px;
}

a { color: #ccc; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: relative;
  text-align: center;
  padding: 28px 0 14px;
  padding-left: 220px;
  padding-right: 220px;
  border-bottom: 1px solid #333;
}

.header-logo {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 18vw, 200px);
  height: clamp(120px, 18vw, 200px);
  border-radius: 8px;
  object-fit: cover;
}

.logo {
  font-family: 'Pirata One', cursive;
  font-size: clamp(2.8rem, 10vw, 6.5rem);
  font-weight: 400;
  color: #1e90ff;
  letter-spacing: 0.04em;
  line-height: 1;
}

.tagline {
  font-family: 'Rajdhani', sans-serif;
  color: #e6b800;
  font-size: clamp(1.2rem, 3vw, 2.1rem);
  letter-spacing: 0.15em;
  margin-top: 8px;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.clock {
  color: #555;
  font-size: 1.05rem;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* Ticker bar */
.ticker-bar {
  padding: 12px 16px;
  border-bottom: 1px solid #222;
}

.ticker-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 6px 0;
  flex-wrap: wrap;
}

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 1.15rem;
}

.sym { color: #fff; font-weight: 400; font-size: 1.2rem; }
.tick-name { color: #666; font-size: 0.9rem; }
.tick-price { color: #ccc; }
.up { color: #2ecc40; font-weight: 700; }
.dn { color: #ff3333; font-weight: 700; }

/* Main story */
.main-story {
  text-align: center;
  padding: 28px 24px;
}

.main-story a {
  font-size: clamp(1.4rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: #ff3333;
  line-height: 1.25;
  text-transform: uppercase;
}

.main-story a:hover {
  color: #ffd633;
  text-decoration: underline;
}

/* Flash / Breaking */
.flash-section {
  text-align: center;
  padding: 12px 20px;
  background: #080808;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.7;
}

.flash-section a {
  color: #fff;
  text-transform: uppercase;
}

.flash-section a:hover {
  color: #ddd;
  text-decoration: underline;
}

.flash-siren {
  color: #e08030;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid #333;
  margin: 0;
}

/* 3-Column layout */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #333;
}

.col {
  padding: 10px 16px;
  border-right: 1px solid #222;
  min-width: 0;
}

.col:last-child {
  border-right: none;
}

.col-head {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 0 10px;
  border-bottom: 1px solid #333;
  margin-bottom: 8px;
}

.col-head-tech { color: #b380ff; }
.col-head-crypto { color: #e6b800; }
.col-head-markets { color: #2ecc40; }

/* Headlines */
.hl {
  padding: 8px 0;
  border-bottom: 1px solid #151515;
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

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

.hl a {
  color: #bbb;
}

.hl a:hover {
  color: #fff;
  text-decoration: underline;
}

.tickers {
  color: #555;
  font-size: 1.05rem;
}

.empty {
  text-align: center;
  color: #444;
  padding: 24px 0;
  font-size: 1.15rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 14px 0;
  color: #444;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
  .site-header {
    padding-left: 160px;
    padding-right: 160px;
  }

  .header-logo {
    width: 120px;
    height: 120px;
  }
  .columns {
    grid-template-columns: 1fr 1fr;
  }

  .col:nth-child(2) {
    border-right: none;
  }

  .col:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid #222;
  }

  .ticker-row { gap: 18px; }
}

/* Responsive — Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-header {
    padding: 20px 16px 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-logo {
    position: static;
    transform: none;
    display: block;
    margin: 0 auto 10px;
    width: 80px;
    height: 80px;
  }

  .main-story { padding: 20px 12px; }

  .flash-section { padding: 10px 12px; }

  .columns {
    grid-template-columns: 1fr;
  }

  .col {
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 8px 12px;
  }

  .col:last-child {
    border-bottom: none;
    border-top: none;
    grid-column: auto;
  }

  .col-head { font-size: 1.1rem; }

  .hl { font-size: 1.05rem; }

  .ticker-row {
    gap: 12px;
  }

  .tick { font-size: 1rem; gap: 4px; }
  .sym { font-size: 1.05rem; }
  .tick-name { display: none; }
  .tick-price { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
