/*
Theme Name: Investing Futures
Theme URI: https://investingfutures.in
Author: Investing Futures
Description: Custom editorial theme for Investing Futures - modern institutional finance journalism design. Dark hero, live-style market ticker, serif/mono type system.
Version: 1.0.0
Text Domain: investing-futures
*/

:root {
  --ink:#0F1115; --ink-2:#1A1D24; --paper:#FAFAF8; --paper-2:#F2F2EE;
  --rule:#E2E2DC; --rule-dark:#2A2E37; --mute:#6B6F76; --mute-dark:#9AA0A8;
  --accent:#16A34A; --gold:#C9A65C;
  --up:#16A34A; --down:#B4453A;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button { font: inherit; }

.no-sb { scrollbar-width: none; }
.no-sb::-webkit-scrollbar { height: 0; width: 0; }

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

.tickerTrack { animation: marquee 46s linear infinite; }
.tickerBar:hover .tickerTrack { animation-play-state: paused; }

/* hover interactions ported from the design's scp* utility classes */
.if-link:hover { color: var(--accent); }
.if-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,17,21,.08); border-color: var(--rule-dark); }
.if-rail-card:hover { transform: translateY(-3px); }
.if-circle-btn:hover { border-color: var(--ink); }
.if-circle-btn-dark:hover { background: rgba(255,255,255,.06); border-color: var(--paper); }
.if-headline-link:hover { color: var(--accent); }
.if-input:focus { border-color: var(--ink) !important; }
.if-input-dark:focus { border-color: var(--paper) !important; }
.if-btn-primary:hover { background: var(--ink-2); }
.if-btn-invert:hover { background: var(--paper-2); }

/* utility: visually-hidden skip link */
.if-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; }

/* responsive niceties beyond the clamp()-based fluid type already inline */
@media (max-width: 640px) {
  .if-hide-mobile { display: none !important; }
}

.if-content h2 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(22px,2.2vw,30px); line-height: 1.2; letter-spacing: -0.025em; margin: 30px 0 0; }
.if-content h3 { font-family: Newsreader, Georgia, serif; font-weight: 400; font-size: clamp(20px,2vw,26px); line-height: 1.25; letter-spacing: -0.02em; margin: 24px 0 0; }
.if-content p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; color: #22252B; }
.if-content ul, .if-content ol { margin: 0 0 20px; padding-left: 22px; font-size: 18px; line-height: 1.75; color: #22252B; }
.if-content li { margin-bottom: 8px; }
.if-content a { color: var(--accent); border-bottom: 1px solid currentColor; }
.if-content blockquote { margin: 8px 0 24px; padding: 26px 0 26px 28px; border-left: 2px solid var(--gold); font-family: Newsreader, Georgia, serif; font-size: clamp(21px,2vw,28px); line-height: 1.35; letter-spacing: -0.02em; max-width: 34ch; }
.if-content img { border: 1px solid var(--rule); margin: 8px 0 24px; }
.if-content table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.if-content table th, .if-content table td { border-bottom: 1px solid var(--rule); padding: 10px 14px; text-align: left; }
