/* ============================================================
   deslop.media — Colors & Type
   Source of truth for color tokens, type scale, and semantic CSS.
   Mirrors site/src/styles/global.css from the deslop repo, with
   editorial face restored to a sans-serif per BRAND.md §5
   ("Must be a sans-serif. Never a serif.").
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Color: surfaces ─────────────────────────────────────── */
  --color-bg: #101820;            /* dark ink, NOT pure black */
  --color-surface: #1a2230;       /* card surface */
  --color-border: #2a3240;
  --color-border-subtle: #1e2835;

  /* ── Color: text ─────────────────────────────────────────── */
  --color-text: #E8E6E1;          /* warm off-white (cool, site palette) */
  --color-text-secondary: #8A8F98;/* blue-gray */
  --color-text-tertiary: #5a6070; /* UI chrome only — never figure content */

  /* ── Color: signal ───────────────────────────────────────── */
  --color-volt: #CEFF00;          /* THE ONLY GREEN. Beacon. */
  --color-accent: #CEFF00;        /* alias */
  --color-accent-hover: #d9ff4d;  /* hover only */
  --color-success: #CEFF00;       /* alias — all green is volt */
  --color-agent-gated: #a78bfa;   /* purple — gated indicators only */

  /* ── Color: portrait palette (warmer than site) ─────────── */
  /* Use ONLY in halftone portrait pipeline; NEVER substitute into UI. */
  --portrait-warm-highlight: #EBE6DA;
  --portrait-warm-mid: #9B8F80;
  --portrait-ink: #101820;

  /* ── Figure tokens ───────────────────────────────────────── */
  --figure-text-min: 0.6875rem;
  --figure-metric-size-desktop: 3.5rem;
  --figure-metric-size-mobile: 2.5rem;
  --figure-metric-underline: 2px solid rgba(206, 255, 0, 0.3);
  --figure-wordmark-opacity: 0.3;
  --figure-wordmark-size: 0.5rem;
  --figure-grid-border: rgba(138, 143, 152, 0.3);
  --figure-cell-border: rgba(138, 143, 152, 0.25);
  --figure-subtle-border: rgba(138, 143, 152, 0.15);
  --figure-volt-glow: 0 0 6px rgba(206, 255, 0, 0.35);
  --figure-volt-underline-color: rgba(206, 255, 0, 0.3);

  /* ── Type: families ──────────────────────────────────────── */
  /* Editorial face is sans-serif (BRAND.md §5). Inter Tight gives the
     condensed/tight letter-spacing of GT America/Söhne candidates
     without licensing. SUBSTITUTION FLAG: real brand may license
     GT America, Favorit, Söhne, or Untitled Sans. */
  --font-editorial: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* ── Type: scale ─────────────────────────────────────────── */
  --fs-display: 3.5rem;       /* landing tagline */
  --fs-h1: 2.5rem;            /* page H1 */
  --fs-h2: 1.75rem;           /* section H2 */
  --fs-h3: 1.25rem;           /* subhead */
  --fs-h4: 1.0625rem;
  --fs-body: 1rem;            /* default reading body */
  --fs-body-sm: 0.875rem;     /* meta, dense UI */
  --fs-meta: 0.8125rem;       /* button label, dense */
  --fs-mono-sm: 0.75rem;      /* code labels, table headers (uppercased) */
  --fs-micro: 0.6875rem;      /* badges, live indicator */
  --fs-tiny: 0.625rem;        /* badge text */

  /* ── Spacing ─────────────────────────────────────────────── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* ── Layout ──────────────────────────────────────────────── */
  --max-width: 72rem;          /* page max */
  --content-width: 44rem;      /* ~700px editorial reading column */

  /* ── Radius (minimal) ────────────────────────────────────── */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;

  /* ── Motion ──────────────────────────────────────────────── */
  /* The brand uses one easing, one duration. No bouncing. No spring.
     Hover is "border-color + color shift", never scale, never lift
     (except the /connect "Open in ChatGPT" button: 2-4px lift). */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.15s;
  --dur: 0.2s;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Semantic type ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Editorial face — feature titles, position headings, landing tagline.
   ALWAYS sans-serif. Tight tracking for the editorial-meets-infrastructure
   register. */
.editorial {
  font-family: var(--font-editorial);
  letter-spacing: -0.025em;
  font-weight: 700;
}

p { margin-bottom: var(--space-md); color: var(--color-text-secondary); line-height: 1.7; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-accent-hover); }

code, .mono { font-family: var(--font-mono); }

/* Mono uppercase label — the workhorse for section labels, status pills,
   table column headers, captions. Always tracked, always small. */
.label-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}
