/* ============================================================
   INXM — Brand Tokens
   Copied from inxm.ai/ds/colors_and_type.css.
   Dark mode is canonical. #FF5900 is the single accent color.
   Fonts: Satoshi via Fontshare (linked in index.html);
   Geist/Geist Mono fall back to system stacks (no private files).
   ============================================================ */

:root {
  /* ---------- Brand surfaces (dark canonical) ---------- */
  --bg-canvas:   #0d0d0d;       /* page bg */
  --bg-surface:  #111111;       /* slight raise */
  --bg-raised:   #161616;       /* card */
  --bg-sunken:   #0a0a0a;       /* deeper */
  --bg-inverse:  #f5f5f5;

  /* ---------- Foreground ---------- */
  --fg-primary:    #F2F2F2;     /* body */
  --fg-strong:     #FFFFFF;     /* headings */
  --fg-secondary:  #F2F2F2;     /* supporting */
  --fg-tertiary:   #F2F2F2;     /* meta, // prefix */
  --fg-muted:      #F2F2F2;     /* disabled / hairline labels */
  --fg-inverse:    #0d0d0d;

  /* Heading tones — dark mode */
  --head-strong:   #FFFFFF;
  --head-medium:   #F2F2F2;

  /* ---------- Accent — orange only, slightly brighter on dark ---------- */
  --accent:        #FF7A33;     /* dark mode primary accent */
  --accent-base:   #FF5900;     /* canonical orange (used in light) */
  --accent-soft:   rgba(255,122,51,0.10);
  --accent-hair:   rgba(255,122,51,0.35);
  --accent-press:  #ff6a1a;

  --accent-2:        var(--accent);
  --accent-2-soft:   var(--accent-soft);
  --accent-2-hair:   var(--accent-hair);
  --accent-2-press:  var(--accent-press);

  /* ---------- Borders ---------- */
  --border-hair:   #1f1f1f;
  --border-strong: #2c2c2c;
  --border-focus:  #FF5900;

  /* ---------- Status ---------- */
  --status-ok:     #2f7a3e;
  --status-warn:   #c98a1e;
  --status-error:  #c2362a;
  --status-info:   #4977a3;

  /* ---------- Type ----------
     Satoshi = body, hero, marketing, lede, footer, headings.
     Geist   = cards + meta info (eyebrows, nav, labels inside cards).
     Geist Mono = technical content (IDs, codes, chips, dates). */
  --font-sans: "Satoshi", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-meta: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Satoshi", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-marketing: "Satoshi", "Geist", ui-sans-serif, system-ui, sans-serif;

  /* Spec is uniform 400 weight across UI / body / headlines */
  --w-regular:  400;
  --w-medium:   400;
  --w-semibold: 400;

  /* ---------- Spacing (4pt base) ---------- */
  --sp-0:   0;
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   24px;
  --sp-6:   32px;
  --sp-7:   48px;
  --sp-8:   64px;
  --sp-9:   80px;       /* section vertical padding per spec */
  --sp-10: 100px;       /* horizontal gutter per spec */
  --sp-11: 128px;

  /* ---------- Radii ---------- */
  --r-0:    0;
  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-pill: 9999px;     /* buttons + tags */

  /* ---------- No drop-shadows (spec). Hairlines only. ---------- */
  --shadow-0: none;
  --shadow-1: 0 0 0 1px var(--border-hair);
  --shadow-2: 0 0 0 1px var(--border-strong);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.0, 0.2, 1);
  --ease-exit:     cubic-bezier(0.4, 0.0, 1, 1);
  --ease-enter:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:   120ms;
  --dur-base:   180ms;
  --dur-slow:   260ms;
}

/* Light theme — alt only, kept simple */
:root[data-theme="light"] {
  --bg-canvas:   #f5f5f5;
  --bg-surface:  #ffffff;
  --bg-raised:   #ffffff;
  --bg-sunken:   #ececec;
  --bg-inverse:  #0d0d0d;

  --fg-primary:    #1a1a1a;
  --fg-strong:     #000000;
  --fg-secondary:  #4a4a4a;
  --fg-tertiary:   #707070;
  --fg-muted:      #a0a0a0;
  --fg-inverse:    #ffffff;

  --border-hair:   #e0e0e0;
  --border-strong: #c8c8c8;

  --head-strong:   #1f1f1f;
  --head-medium:   #4a4a4a;

  --accent:        #FF5900;
  --accent-soft:   rgba(255,89,0,0.10);
  --accent-hair:   rgba(255,89,0,0.35);
  --accent-press:  #e64f00;
}

/* ============================================================
   Base
   ============================================================ */
html, body {
  background: var(--bg-canvas);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: 16px;        /* spec: body 16px */
  line-height: 1.8;       /* spec: body 1.8 */
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .t-h1,
h2, .t-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--head-strong);
  margin: 0;
}

h3, .t-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--head-strong);
  margin: 0;
}

h4, .t-h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--head-strong);
  margin: 0;
}

p, .t-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-primary);
  margin: 0;
}

.t-small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-secondary);
}

/* Mono — reserved for IDs / data only */
.t-mono,
code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0;
  color: var(--fg-tertiary);
}

.t-data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero";
  color: var(--fg-primary);
}

/* ---------- // prefix ---------- */
.byline {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.byline::before {
  content: "// ";
  color: var(--accent);
}

/* ---------- Links ---------- */
a {
  color: var(--fg-strong);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent); }

/* ---------- HR ---------- */
hr {
  border: 0;
  border-top: 1px solid var(--border-hair);
  margin: var(--sp-7) 0;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
