/* Black Ginger — shared tokens across all three directions */

:root {
  --bg: #0A0A0A;
  --bg-elev: #131211;
  --paper: #F4EFE6;
  --paper-dim: #D8D2C5;
  --ink: #0A0A0A;
  --line: rgba(244, 239, 230, 0.12);
  --line-strong: rgba(244, 239, 230, 0.28);
  --muted: rgba(244, 239, 230, 0.55);
  --muted-2: rgba(244, 239, 230, 0.72);

  /* per-direction accents — overridden in each direction's scope */
  --accent: #E8552B;
  --accent-soft: rgba(232, 85, 43, 0.16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", "IBM Plex Mono", ui-monospace, monospace;

  --radius: 2px;
  --grain-opacity: 0.06;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grain overlay — applied via .grain::after */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* type primitives */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* shared ticker animation */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* scrollbar in artboards */
.artboard-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.artboard-scroll::-webkit-scrollbar-track { background: transparent; }
.artboard-scroll::-webkit-scrollbar-thumb { background: rgba(244,239,230,0.18); border-radius: 4px; }

/* primitive button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover { background: transparent; color: var(--accent); }

/* common ticker */
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll-x 60s linear infinite;
  width: max-content;
}
.ticker-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.ticker-item { display: inline-flex; align-items: baseline; gap: 10px; }
.ticker-symbol { color: var(--paper); font-weight: 500; }
.ticker-price { color: var(--muted-2); }
.ticker-delta-up { color: #5fd99a; }
.ticker-delta-down { color: #ff6b6b; }
