:root {
  --bg: #0b0d10;
  --panel: #12161b;
  --panel-2: #171c23;
  --text: #ecf1f8;
  --muted: #a9b4c2;
  --accent: #f7931a;
  --accent-2: #ffb347;
  --line: #263140;
  --ok: #2ecc71;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background-color: #0b0d10; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b0d10;
  background-image: radial-gradient(1200px 800px at 80% -10%, #1b2230 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1100px, 92vw); margin: 0 auto; }

header.site-header {
  position: sticky; top: 0; backdrop-filter: blur(8px);
  background: color-mix(in oklab, #0b0d10 80%, transparent);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.market-bar {
  border-bottom: 1px solid #202a36;
  background: #0a0f15;
}
.market-bar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.market-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.market-item span {
  color: #93a3b8;
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.market-item strong { color: #eaf0f8; font-size: .84rem; font-weight: 700; }
.market-item em { font-style: normal; font-size: .72rem; font-weight: 700; margin-left: 2px; }
.tone-up { color: #2ecc71 !important; }
.tone-down { color: #ff6b6b !important; }
.tone-flat { color: #93a3b8 !important; }
.market-sep { color: #5d6d83; opacity: .8; font-size: .7rem; }
.market-updated { margin-left: auto; color: #93a3b8; font-size: .72rem; letter-spacing: .03em; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { font-weight: 800; letter-spacing: .2px; color: #fff; }
.brand span { color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; gap: 14px; }
.nav-links a { color: var(--text); opacity: .9; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.hero { padding: 64px 0 28px; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
h1 { font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.1; margin: 10px 0 14px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 72ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.trust-strip { margin-top: 14px; color: #c8d2de; font-size: .94rem; font-weight: 600; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.grid .card { height: 100%; }
.card h3 { margin-top: 0; }
.card ul { margin: 10px 0 0 18px; padding: 0; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line));
  color: #ffd39a; font-size: .78rem; font-weight: 700;
}

.section { padding: 24px 0; }
.section h2 { margin: 0 0 12px; }
.meta { color: var(--muted); font-size: .9rem; }

main { padding-bottom: 18px; }

.post-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.post-item { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #10151b; }
.post-item h4 { margin: 0 0 4px; }

.article-body { padding: 24px 26px; max-width: 860px; margin: 0 auto; }
.article-body p, .article-body li { overflow-wrap: anywhere; }
.article-body h2 { margin-top: 18px; }
.key-takeaways {
  margin: 8px 0 14px 0;
  padding: 0 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.related-rundowns { margin-top: 16px; }
.related-rundowns h2 { margin-bottom: 10px; text-align: center; }
.related-rundowns .post-list { margin: 0; padding: 0 8px; }
.source-chip {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #3a4b60;
  background: #132031;
  color: #d4e7ff;
  font-size: .82rem;
  line-height: 1.3;
  text-decoration: none;
}
.source-chip:hover { filter: brightness(1.08); text-decoration: none; }

.home-latest h2 { text-align: center; margin-bottom: 16px; }
.home-latest .post-list { max-width: 860px; margin: 0 auto; }
.home-latest .post-item { text-align: left; }

.cta {
  margin: 20px 0 30px; padding: 18px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line));
  background: color-mix(in oklab, var(--accent) 8%, var(--panel));
  border-radius: 14px;
}

.button {
  display: inline-block; margin-top: 8px;
  background: var(--accent); color: #1c1200; font-weight: 700;
  padding: 10px 14px; border-radius: 10px;
}
.button:hover { text-decoration: none; filter: brightness(1.06); }
.button-secondary {
  background: #1a2330;
  color: #dce7f5;
  border: 1px solid #314154;
}
.button-secondary:hover { background: #223041; }

.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.subscribe-form input {
  flex: 1 1 260px;
  background: #0f141a;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.subscribe-form button {
  background: var(--accent);
  color: #1c1200;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.embed-wrap iframe {
  width: 100%; min-height: 232px; border: 0; border-radius: 10px;
}

.podcast-preview .card p { margin: 10px 0; }
.podcast-preview .card ul { margin-top: 8px; }
.telegram-cta h2 { margin: 0 0 8px; }
.telegram-cta .meta { margin-bottom: 12px; }

footer { margin-top: 28px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 640px) {
  .nav { align-items: flex-start; gap: 8px; flex-direction: column; }
  /* logo override removed */
  .article-body { padding: 16px 14px; }
  .market-bar-inner { overflow-x: auto; scrollbar-width: thin; }
  .market-updated { margin-left: 8px; }
}
