/* =========================================================
   FinanceWire — Design tokens
   Palette: ink navy panels, ticker gold accent, market green/red
   Type: Source Serif 4 (editorial display) + Inter (body) + JetBrains Mono (data)
   ========================================================= */

:root{
  --ink:        #0B1220;
  --panel:      #101A2E;
  --panel-2:    #16233D;
  --line:       #24334F;
  --gold:       #C9A227;
  --gold-soft:  #E8C25F;
  --green:      #3FBF8F;
  --red:        #E2574C;
  --text:       #EDEFF4;
  --text-muted: #8B93A7;
  --text-faint: #5C687F;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --maxw: 1180px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p{ margin: 0 0 1em; color: var(--text-muted); }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection{ background: var(--gold); color: var(--ink); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* ---------- Eyebrow / desk labels ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--gold);
}

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(11,18,32,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row{
  display:flex; align-items:center; justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--maxw); margin:0 auto;
}
.logo{
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .01em;
  display:flex; align-items:center; gap:8px;
}
.logo .dot{ color: var(--gold); }
.nav{
  display:flex; gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav a{ transition: color .15s ease; }
.nav a:hover, .nav a.active{ color: var(--gold-soft); }
.nav-toggle{ display:none; background:none; border:1px solid var(--line); color:var(--text); border-radius:6px; padding:8px 10px; font-size:16px; }

@media (max-width: 760px){
  .nav{ position:absolute; top:100%; left:0; right:0; flex-direction:column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 24px; gap:16px; display:none; }
  .nav.open{ display:flex; }
  .nav-toggle{ display:inline-block; }
}

/* ---------- Ticker strip (signature element) ---------- */
.ticker-wrap{
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track{
  display: inline-flex;
  gap: 42px;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  animation: ticker 38s linear infinite;
}
.ticker-wrap:hover .ticker-track{ animation-play-state: paused; }
@keyframes ticker{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.tick{ color: var(--text-muted); display:inline-flex; gap:8px; align-items:center; }
.tick b{ color: var(--text); font-weight:600; }
.tick .up{ color: var(--green); }
.tick .down{ color: var(--red); }
.ticker-note{ font-size:10px; color:var(--text-faint); }

/* ---------- Hero ---------- */
.hero{
  padding: 76px 0 60px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 700px 320px at 82% -10%, rgba(201,162,39,0.14), transparent),
    var(--ink);
}
.hero-grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items:center;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }
.hero h1{
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.01em;
}
.hero h1 em{ font-style: italic; color: var(--gold-soft); }
.hero p.lead{
  font-size: 17px; max-width: 46ch; color: var(--text-muted);
}
.hero-actions{ display:flex; gap:14px; margin-top: 26px; flex-wrap: wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 14px; font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary{ background: var(--gold); color: var(--ink); }
.btn-primary:hover{ background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--line); color: var(--text); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-soft); }

/* Hero panel: mini index card */
.index-card{
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.index-card .row{
  display:flex; justify-content: space-between; align-items:baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 13px;
}
.index-card .row:last-child{ border-bottom:none; }
.index-card .name{ color: var(--text); }
.index-card .val{ color: var(--text-muted); }
.index-card .chg.up{ color: var(--green); }
.index-card .chg.down{ color: var(--red); }
.index-card .cap{ font-size: 11px; color: var(--text-faint); margin-top:14px; }

/* ---------- Section shells ---------- */
section.desk{ padding: 68px 0; border-bottom: 1px solid var(--line); }
.desk-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom: 34px; flex-wrap: wrap; }
.desk-head h2{ font-size: clamp(26px,3vw,34px); max-width: 20ch; }
.desk-head p{ max-width: 42ch; margin:0; }

/* Card grid */
.grid{ display:grid; gap: 22px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover{ border-color: var(--gold); transform: translateY(-2px); }
.card h3{ font-size: 19px; margin-bottom: 10px; }
.card p{ font-size: 14.5px; margin-bottom: 14px; }
.card .tag{
  font-family: var(--mono); font-size: 10.5px; letter-spacing:.08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px; display:block;
}
.card .read{ font-size: 13px; color: var(--gold-soft); font-weight:600; }

/* ---------- Ad slot ---------- */
.ad-slot{
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 46px 0;
  background: var(--panel);
}

/* ---------- Glossary preview strip ---------- */
.glossary-strip{
  display:flex; flex-wrap:wrap; gap:10px; margin-top: 24px;
}
.gterm{
  font-family: var(--mono); font-size: 12.5px;
  border:1px solid var(--line); border-radius: 20px;
  padding: 7px 14px; color: var(--text-muted);
}

/* ---------- Long-form article content ---------- */
.article-head{ padding: 60px 0 30px; border-bottom: 1px solid var(--line); }
.article-head .eyebrow{ margin-bottom: 18px; }
.article-head h1{ font-size: clamp(30px,4.6vw,48px); max-width: 22ch; }
.byline{ font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: 18px; }

.article-body{ max-width: 720px; margin: 0 auto; padding: 52px 24px 20px; }
.article-body h2{ font-size: 25px; margin-top: 44px; color: var(--text); }
.article-body h3{ font-size: 19px; margin-top: 30px; color: var(--gold-soft); }
.article-body p{ font-size: 16px; color: #C3C8D6; }
.article-body ul, .article-body ol{ color:#C3C8D6; font-size:16px; padding-left: 22px; margin-bottom: 1.2em;}
.article-body li{ margin-bottom: .5em; }
.article-body blockquote{
  border-left: 3px solid var(--gold);
  margin: 28px 0; padding: 4px 0 4px 20px;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--text);
}
.callout{
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px 22px; margin: 30px 0; font-size: 14.5px; color: var(--text-muted);
}
.callout b{ color: var(--gold-soft); }
.table-wrap{ overflow-x:auto; margin: 24px 0; }
table{ width:100%; border-collapse: collapse; font-size: 14px; font-family: var(--mono); }
th,td{ text-align:left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th{ color: var(--gold-soft); font-weight:600; }
td{ color: var(--text-muted); }

/* Glossary page */
.glossary-index{ display:flex; flex-wrap:wrap; gap:8px; margin: 24px 0 40px; }
.glossary-index a{
  font-family: var(--mono); font-size: 12px; border:1px solid var(--line);
  border-radius:4px; padding: 6px 10px; color: var(--text-muted);
}
.glossary-index a:hover{ border-color: var(--gold); color: var(--gold-soft); }
dl.gloss dt{
  font-family: var(--serif); font-size: 20px; color: var(--text);
  margin-top: 34px; scroll-margin-top: 90px;
}
dl.gloss dd{ margin: 8px 0 0; color: #C3C8D6; font-size: 15px; }

/* ---------- Footer ---------- */
footer{ padding: 50px 0 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
footer h4{ font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color: var(--text-faint); font-family: var(--mono); margin-bottom: 14px;}
footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
footer a{ font-size: 13.5px; color: var(--text-muted); }
footer a:hover{ color: var(--gold-soft); }
.footer-bottom{
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size: 12.5px; color: var(--text-faint); font-family: var(--mono);
}
.disclaimer{
  font-size: 12px; color: var(--text-faint); max-width: 760px; margin-top: 10px; line-height: 1.7;
}
