/* ABF Intelligence — abfintel.com
   Palette is read out of the brand artwork (jfan2025_data/logos/dark_old.svg),
   not invented here, so the site cannot drift from the product chrome.
   The previous cyan->violet gradient scheme is gone on purpose: it was the
   2026 AI-landing-page default, and this sells deterministic analytics to
   people whose standing objection is AI hype. */
/* Both palettes come from the artwork pair — dark_old.svg and light_old.svg —
   so the page, the mark and the product chrome all move together.

   Each colour is declared twice on purpose. The plain value is the dark one,
   so a browser without light-dark() support still gets a correctly styled
   dark site rather than an unstyled page; the light-dark() line then wins
   wherever it is understood (Chrome 123+, Safari 17.5+, Firefox 120+). That
   fallback matters here: institutional visitors run old browsers, and the
   failure mode of a single unsupported function in :root is every token
   going invalid at once.

   Which branch resolves is decided by `color-scheme` alone, so the toggle is
   one attribute on <html> and nothing else has to know about theming. */
:root{
  color-scheme:dark;                 /* dark when the OS states no preference */
  color-scheme:dark light;
  --show-dark:block;--show-light:none;   /* which artwork file is visible */

  --bg:#070b12;                      --bg:light-dark(#ffffff,#070b12);
  --panel:#0f172a;                   --panel:light-dark(#f8fafc,#0f172a);
  --ink:#ffffff;                     --ink:light-dark(#0f172a,#ffffff);
  --mute:#94a3b8;                    --mute:light-dark(#475569,#94a3b8);
  --faint:#64748b;                   --faint:light-dark(#64748b,#64748b);
  --line:#1e293b;                    --line:light-dark(#e2e8f0,#1e293b);
  --accent:#38bdf8;                  --accent:light-dark(#0284c7,#38bdf8);
  --grid:rgba(148,163,184,.045);
  --grid:light-dark(rgba(15,23,42,.05),rgba(148,163,184,.045));

}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){--show-dark:none;--show-light:block}
}
:root[data-theme="light"]{color-scheme:light;--show-dark:none;--show-light:block}
:root[data-theme="dark"]{color-scheme:dark;--show-dark:block;--show-light:none}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;color:var(--mute);background:var(--bg);
  font:16px/1.65 Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  /* A faint ledger grid, kept: a ruled sheet is the right metaphor for
     structured credit. The radial colour washes that sat on top of it are
     not — they were the glow, and the glow was the AI tell. */
  background-image:
    linear-gradient(var(--grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:48px 48px;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1000px;margin:0 auto;padding:0 24px}

/* ── header ─────────────────────────────────────────────────────────────── */
/* Opaque, in the page colour: that is exactly the canvas colour of the logo
   masters (#fff / #070b12), so the artwork needs no stripping and no blending.
   (Blending could not work here anyway: sticky+z-index is a stacking context,
   which isolates it from the page.) */
header{position:sticky;top:0;z-index:10;
  background:var(--bg);border-bottom:1px solid var(--line)}
header .wrap{display:flex;align-items:center;justify-content:space-between;
  gap:20px;min-height:72px;padding-top:10px;padding-bottom:10px}
nav a{margin-left:24px;color:var(--mute);font-size:14px}
nav a:hover{color:var(--ink);text-decoration:none}

/* theme toggle */
nav{display:flex;align-items:center}
.themer{margin-left:24px;display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:999px;
  background:var(--panel);color:var(--mute);cursor:pointer;
  transition:color .15s,border-color .15s}
.themer:hover{color:var(--ink);border-color:var(--accent)}
.themer:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.themer svg{width:17px;height:17px;display:block}
/* the icon shows the destination, not the current state; JS owns which one is
   present so the CSS does not have to re-derive the resolved scheme */


/* ── the mark ───────────────────────────────────────────────────────────── */
/* The brand artwork by reference: img/ is a junction to jfan2025_data/logos,
   so updating the masters updates the site. The masters carry an opaque canvas
   (#fff / #070b12), which is why the header is opaque in the page colour.
   picks light or dark; scrolling swaps the full lockup for the simple tile,
   the way anthropic.com collapses to its monogram. Both axes are plain
   display toggles, so there is nothing to keep in sync with the artwork. */
.brand{display:flex;align-items:center}
.lockup,.mark{display:none}
.lockup{height:56px;width:auto}
.mark{height:34px;width:34px}
header:not(.scrolled) .lockup-dark,header.scrolled .mark-dark{display:var(--show-dark)}
header:not(.scrolled) .lockup-light,header.scrolled .mark-light{display:var(--show-light)}
/* the sentinel is what the observer watches; it must not affect layout */
.top-sentinel{position:absolute;top:0;left:0;width:1px;height:1px;pointer-events:none}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero{padding:96px 0 64px}
.eyebrow{font:12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:20px}
.hero h1{font-size:48px;line-height:1.1;margin:0 0 20px;letter-spacing:-.02em;
  color:var(--ink);font-weight:700}
/* was a cyan->violet gradient fill; a single accent word does the same job
   without the letterforms turning into a logo of their own */
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p{font-size:19px;color:var(--mute);max-width:620px;margin:0}

/* ── content ────────────────────────────────────────────────────────────── */
section{padding:56px 0;border-top:1px solid var(--line)}
h2{font-size:26px;margin:0 0 20px;letter-spacing:-.01em;color:var(--ink);font-weight:650}
h3{font-size:16px;margin:0 0 8px;color:var(--ink);font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.card{padding:22px;border:1px solid var(--line);border-radius:12px;
  background:var(--panel);transition:border-color .2s,transform .2s}
.card:hover{border-color:var(--accent);transform:translateY(-2px)}
.card p{margin:0;color:var(--mute);font-size:15px}
dl{display:grid;grid-template-columns:max-content 1fr;gap:10px 28px;margin:0;padding:22px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel)}
dt{color:var(--faint);font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}
dd{margin:0;color:var(--mute)}
/* A handle that is reserved but not registered. Rendered as plain text so a
   visitor never lands on a 404 and a crawler never records a dead outbound
   link; the href is already correct, so going live is deleting one attribute. */
dd a[data-pending]{color:var(--faint);text-decoration:none;cursor:default;pointer-events:none}
dd a[data-pending]::after{content:" — pending";font-size:12px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--faint);opacity:.75}

footer{border-top:1px solid var(--line);padding:28px 0;color:var(--faint);font-size:13px}
footer a{color:var(--faint);margin-right:18px}
footer a:hover{color:var(--mute)}

.legal h2{margin-top:36px;font-size:19px}
.legal p{color:var(--mute)}

@media (max-width:600px){
  .hero{padding:64px 0 40px}
  .hero h1{font-size:32px}
  .lockup{height:40px}
  nav a{margin-left:14px;font-size:13px}
  dl{grid-template-columns:1fr}
}
