/* TickerEdge Labs marketing site — shared design tokens.
 *
 * Used by index.html, /methodology, /terms, /privacy. Page-specific
 * styles live in each HTML file's <style> block.
 */

:root {
  --paper: #F7F4ED;
  --paper-deep: #EFE9DC;
  --paper-light: #FBF9F4;
  --ink: #1A1815;
  --ink-soft: #3D3833;
  --muted: #6B5D4F;
  --rule: #D4CFC2;
  --rule-soft: #E2DDD0;
  --up: #3A5A40;
  --up-soft: #B4C9A8;
  --up-strong: #2C4733;
  --down: #7B2D26;
  --down-soft: #D9A89E;
  --down-strong: #5F1F1A;
  --highlight: #C8A52C;
  --highlight-soft: #F4E8B8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga", "calt";
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s ease;
}
a:hover { text-decoration-color: var(--ink); }

h1, h2, h3, h4, .serif {
  font-family: 'Newsreader', Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

code, pre, .mono {
  font-family: 'IBM Plex Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.muted { color: var(--muted); }
.h-rule { height: 0.5px; background: var(--rule); border: 0; }

/* Shared top nav (used on methodology / terms / privacy) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--rule-soft);
}
.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-nav .brand {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.site-nav .brand .dot { color: var(--down); padding: 0 6px; }
.site-nav .brand em { font-style: italic; font-weight: 400; }
.site-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.site-nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav-links a:hover { color: var(--ink); }

/* Shared footer */
.site-footer {
  background: var(--paper-deep);
  border-top: 0.5px solid var(--rule-soft);
  margin-top: 96px;
  padding: 48px 32px;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; font-size: 14px; }
.site-footer ul a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-nav-inner { padding: 16px 20px; }
  .site-nav-links { gap: 16px; font-size: 13px; }
  .container, .container-wide { padding: 0 20px; }
}

/* Print: clean black text on white, hide nav and footer */
@media print {
  body { background: white; color: black; }
  .site-nav, .site-footer { display: none; }
  a { color: black; text-decoration: none; }
  .container, .container-wide { max-width: 100%; padding: 0; }
}
