/* 24hourtrades.ai — edition styles
 * Mobile-first. Single column always. Max-width 720px on desktop, centered.
 * Single breakpoint at 720px. No tablet middle-tier.
 *
 * Palette: Bloomberg Terminal — near-black background, amber primary accent,
 * cyan ticker emphasis, warm-red invalidation, cool off-white body, muted gray
 * metadata.
 */

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: #0A0A0A;
}

body {
  background: #0A0A0A;
  color: #E8E8E8;
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px 20px 64px;
}

main, header, footer {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header / masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 28px;
  border-bottom: 1px solid #2A2A2A;
  margin-bottom: 32px;
}

.headshot {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #FFA500;
  flex-shrink: 0;
}

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

.wordmark {
  height: 28px;
  width: auto;
  display: block;
  letter-spacing: 0.05em;
}

.byline {
  color: #888888;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
}

/* ---------- Sections ---------- */

main section {
  margin-bottom: 48px;
}

main section:last-of-type {
  margin-bottom: 32px;
}

main h2 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #E8E8E8;
  margin: 0 0 8px;
  padding-bottom: 10px;
  position: relative;
  letter-spacing: 0.05em;
}

main h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #FFA500;
  position: absolute;
  bottom: 0;
  left: 0;
}

main p {
  margin: 0 0 16px;
}

main p:last-child {
  margin-bottom: 0;
}

/* ---------- Tape & Read body copy ---------- */

#tape p,
#read p {
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Flow & Radar cards ---------- */

.flow-card,
.radar-card {
  background: #141414;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.flow-card:last-of-type,
.radar-card:last-of-type {
  margin-bottom: 0;
}

.flow-head,
.radar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* Tickers — the most visible Bloomberg cue. Cyan, mono, bold. */
.ticker {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 22px;
  color: #00BFFF;
  letter-spacing: 0.5px;
}

/* Numeric data: contract = emphasized (amber), size = secondary (gray),
 * stock = muted (darker gray, contextual reference). */
.contract,
.size,
.stock {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 14px;
  margin-bottom: 4px;
}

.contract {
  color: #FFA500;
  font-weight: 700;
}

.size {
  color: #B0B0B0;
}

.stock {
  color: #888888;
  margin-bottom: 12px;
}

.flow-read p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

/* ---------- Radar cards ---------- */

.radar-thesis {
  margin-bottom: 12px;
}

.radar-thesis p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.radar-levels {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #2A2A2A;
}

.level {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 14px;
}

.level-label {
  color: #888888;
}

.level-value {
  font-weight: 700;
}

/* Watch level (first .level child) — cyan, matches the ticker. */
.radar-levels .level:first-child .level-value {
  color: #00BFFF;
}

/* Invalidation level (second .level child) — warm red, distinct from amber. */
.radar-levels .level:last-child .level-value {
  color: #FF6B6B;
}

/* ---------- Overlap badge: amber fill, near-black text for high contrast ---------- */

.badge {
  display: inline-block;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  background: #FFA500;
  color: #0A0A0A;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* ---------- Empty / muted states ---------- */

.empty-state {
  color: #888888;
  font-style: italic;
  margin: 0;
}

/* ---------- Footer / compliance ---------- */

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2A2A2A;
  text-align: center;
}

.compliance {
  color: #888888;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.footer-nav {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

.footer-nav a {
  color: #888888;
  text-decoration: none;
  border-bottom: 1px solid #2A2A2A;
}

.footer-nav a:hover {
  color: #FFA500;
  border-bottom-color: #FFA500;
}

/* ---------- Archive page ---------- */

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

.archive-row {
  border-bottom: 1px solid #2A2A2A;
}

.archive-row:last-child {
  border-bottom: none;
}

.archive-link {
  display: block;
  padding: 16px 0;
  text-decoration: none;
  color: #E8E8E8;
}

.archive-link:hover {
  color: #FFA500;
}

.archive-date {
  display: block;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.archive-link:hover .archive-date {
  color: #FFA500;
}

.archive-preview {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}

/* ---------- Desktop ---------- */

@media (min-width: 720px) {
  body {
    font-size: 19px;
    padding: 32px 24px 80px;
  }

  .masthead {
    padding: 24px 0 32px;
    gap: 24px;
  }

  .headshot {
    width: 120px;
    height: 120px;
  }

  .wordmark {
    height: 36px;
  }

  .byline {
    font-size: 14px;
  }

  main h2 {
    font-size: 28px;
  }

  main h2::after {
    width: 48px;
  }

  #tape p,
  #read p {
    font-size: 19px;
  }

  .flow-card,
  .radar-card {
    padding: 20px;
  }

  .ticker {
    font-size: 24px;
  }

  .contract,
  .size,
  .stock,
  .level {
    font-size: 15px;
  }

  .flow-read p,
  .radar-thesis p {
    font-size: 18px;
  }

  .archive-preview {
    font-size: 18px;
  }
}
