/* ============================================================
   NORTHEON - design tokens (framework-agnostic)
   Import once at the root of your app, e.g.  @import "./northeon.css";
   Everything below is plain CSS custom properties - works with any
   stack (Next, Astro, Vite, plain HTML, Rails…). Tailwind users: see
   tailwind.tokens.js. shadcn/ui users: see shadcn-theme.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* ---- Palette ---------------------------------------------------- */
  --nh-ink:        #1a1a1a;  /* primary text · dark-section background */
  --nh-ink-2:      #262626;  /* dark-section alt surface */
  --nh-paper:      #faf8f6;  /* page background - warm white */
  --nh-surface:    #ffffff;  /* cards / raised surfaces */
  --nh-surface-2:  #fcfcfc;  /* nested surface */
  --nh-wash:       #f4f2f0;  /* subtle fills, code chips, hovers */
  --nh-line:       #ebebeb;  /* hairline borders & dividers */
  --nh-text:       #1a1a1a;  /* body text */
  --nh-text-muted: #6f6b66;  /* secondary text */
  --nh-text-faint: #9a958e;  /* kickers, captions, meta */
  --nh-signal:     #1f4fbe;  /* THE accent - links, primary action, data */
  --nh-signal-600: #193f99;  /* signal hover / pressed */
  --nh-signal-tint:#eef2fb;  /* signal wash - selected row, highlight bg */
  --nh-on-dark:    #fcfcfc;  /* text on ink sections */
  --nh-on-dark-muted: #b9b6b1;

  /* ---- Type ------------------------------------------------------- */
  --nh-font-sans: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --nh-font-mono: 'Spline Sans Mono', ui-monospace, Menlo, monospace;

  /* fluid type scale */
  --nh-text-display: clamp(40px, 6vw, 84px); /* hero */
  --nh-text-h1: clamp(34px, 4vw, 52px);
  --nh-text-h2: 30px;
  --nh-text-h3: 22px;
  --nh-text-title: 18px;
  --nh-text-body: 16px;
  --nh-text-sm: 13.5px;
  --nh-text-label: 11px;     /* mono kicker */

  /* ---- Radius ----------------------------------------------------- */
  --nh-radius-sm: 6px;
  --nh-radius: 10px;
  --nh-radius-lg: 16px;
  --nh-radius-xl: 20px;
  --nh-radius-pill: 999px;

  /* ---- Elevation -------------------------------------------------- */
  --nh-shadow-sm: 0 1px 2px rgba(20,18,16,.04);
  --nh-shadow-md: 0 4px 16px rgba(20,18,16,.06);
  --nh-shadow-lg: 0 12px 40px rgba(20,18,16,.10);

  /* ---- Spacing (8-pt) --------------------------------------------- */
  --nh-1: 4px;  --nh-2: 8px;  --nh-3: 12px; --nh-4: 16px; --nh-5: 24px;
  --nh-6: 32px; --nh-7: 48px; --nh-8: 64px; --nh-9: 96px; --nh-10: 128px;

  /* ---- Layout ----------------------------------------------------- */
  --nh-container: 1400px;
}

/* Optional base reset - delete if your app already resets. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nh-paper);
  color: var(--nh-text);
  font-family: var(--nh-font-sans);
  font-size: var(--nh-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--nh-signal); text-decoration: none; }
a:hover { color: var(--nh-signal-600); }
::selection { background: var(--nh-signal-tint); }

/* Optional utility classes (use them or your own) */
.nh-kicker  { font-family: var(--nh-font-mono); font-size: var(--nh-text-label); letter-spacing: .16em; text-transform: uppercase; color: var(--nh-text-faint); }
.nh-display { font-size: var(--nh-text-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.0; text-wrap: balance; }
.nh-h1 { font-size: var(--nh-text-h1); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.nh-h2 { font-size: var(--nh-text-h2); font-weight: 600; letter-spacing: -0.03em; }
.nh-h3 { font-size: var(--nh-text-h3); font-weight: 600; letter-spacing: -0.02em; }
.nh-lead { font-size: 17px; line-height: 1.62; color: var(--nh-text-muted); text-wrap: pretty; }
.nh-container { max-width: var(--nh-container); margin-inline: auto; padding-inline: 24px; }
