/* Arrow Finance clean rebuild: base tokens + utilities */

:root {
  --bg: #ffffff;
  --ink: #0a0b04;
  --ink-soft: rgba(10, 11, 4, 0.68);
  --band: #000000;
  --band-ink: #ffffff;
  --band-ink-soft: rgba(255, 255, 255, 0.72);
  --footer-bg: #08090a;
  --accent: #cef606;
  --line: rgba(10, 11, 4, 0.12);
  --dash: rgba(10, 11, 4, 0.28);
  --card-line: rgba(10, 11, 4, 0.1);
  --hairline: #e6e6e6; /* theme-invariant light hairline (cards, frames, borders) */
  --band-line: rgba(255, 255, 255, 0.1); /* theme-invariant hairline on the black bands */
  --font-serif: "Merriweather", Georgia, serif;
  --font-body: "Geist", "Inter", -apple-system, sans-serif;
  --font-ui: "Inter", -apple-system, sans-serif;
  --container: 1280px;
  --frame: 1360px;
}

html.dark {
  --bg: #0b0c0a;
  --ink: #f2f4ea;
  --ink-soft: rgba(242, 244, 234, 0.66);
  --line: rgba(242, 244, 234, 0.14);
  --dash: rgba(242, 244, 234, 0.3);
  --card-line: rgba(242, 244, 234, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; }

/* blueprint page frame: two vertical dashed lines, shell-owned */
.af-canvas { position: relative; overflow: clip; }
.af-canvas::before,
.af-canvas::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--dash);
  pointer-events: none;
  z-index: 3;
}
.af-canvas::before { left: max(24px, calc((100% - var(--frame)) / 2)); }
.af-canvas::after { left: auto; right: max(24px, calc((100% - var(--frame)) / 2)); }
@media (max-width: 767px) {
  .af-canvas::before, .af-canvas::after { display: none; }
}

/* horizontal dashed separator with corner squares at the frame lines */
.af-sep { position: relative; }
.af-sep::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  border-top: 1px dashed var(--dash);
  pointer-events: none;
  z-index: 3;
}
.af-node {
  position: absolute;
  top: -4px;
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--dash);
  z-index: 4;
  pointer-events: none;
}
.af-node.l { left: calc(max(24px, calc((100% - var(--frame)) / 2)) - 3px); }
.af-node.r { right: calc(max(24px, calc((100% - var(--frame)) / 2)) - 3px); }
@media (max-width: 767px) { .af-node { display: none; } }

/* shared button skins (match production) */
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px; white-space: nowrap;
  border: 1px solid #000;
  transition: background 0.15s ease, color 0.15s ease;
}
/* hover feedback is the conveyor roll; the skin stays put */
html.dark .btn-dark { border-color: rgba(242, 244, 234, 0.35); }

/* fixed theme toggle */
.af-theme-toggle {
  position: fixed; right: 20px; bottom: 20px; top: auto;
  transform: none;
  width: 32px; height: 32px;
  background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
}
.af-theme-toggle svg { width: 14px; height: 14px; }
html.dark .af-theme-toggle { color: #0a0b04; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
