/* H2Learn — design tokens
   Premium research-tech. Muted neutrals, single confident accent, calm hierarchy. */

:root {
  /* === Surface neutrals (warm off-white → graphite) === */
  --bg:        #f7f5f0;       /* page */
  --surface:   #fbfaf6;       /* cards */
  --surface-2: #ffffff;       /* elevated */
  --surface-3: #f1eee5;       /* sunken */
  --line:      #e6e2d4;       /* hairline */
  --line-2:    #d4cfbe;       /* stronger rule */
  --ink:       #16140f;       /* primary text */
  --ink-2:     #3a352b;       /* secondary text */
  --ink-3:     #6b6557;       /* tertiary */
  --muted:     #98927f;       /* meta */

  /* === Brand accents === */
  /* deep teal-blue: research-tech, trustworthy, calm */
  --accent:        #1a4d6e;
  --accent-2:      #2a6e93;
  --accent-soft:   #d8e3eb;
  --accent-glow:   rgba(26, 77, 110, 0.18);

  /* terracotta: warmth, complementarity, opportunity */
  --warm:        #c2562a;
  --warm-soft:   #f4e0d3;

  /* moss: bridge, ecosystem, balance */
  --moss:        #486e3e;
  --moss-soft:   #dde4d3;

  /* signal palette — for graph node/edge encoding */
  --c-person:       #1a4d6e;
  --c-project:      #c2562a;
  --c-org:          #486e3e;
  --c-domain:       #8a4a8c;
  --c-method:       #5b5fb8;
  --c-challenge:    #b03a2e;
  --c-bottleneck:   #6b5b3a;
  --c-uncertainty:  #b89534;
  --c-need:         #d97a3e;
  --c-offer:        #2a8a6e;

  /* edge palette */
  --e-similar:    #1a4d6e;
  --e-comp:       #c2562a;
  --e-antidup:    #b03a2e;
  --e-bridge:     #8a6e2e;
  --e-method:     #5b5fb8;
  --e-uncertain:  #8a4a8c;
  --e-needoffer:  #2a8a6e;
  --e-weak:       #c0baa8;

  /* === Typography === */
  --font-sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* type scale (1.2 ratio, tightened for UI density) */
  --t-xs:   11px;
  --t-sm:   12.5px;
  --t-base: 14px;
  --t-md:   15.5px;
  --t-lg:   18px;
  --t-xl:   22px;
  --t-2xl:  28px;
  --t-3xl:  36px;
  --t-4xl:  48px;
  --t-hero: 72px;

  /* === Spacing === */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 80px;

  /* === Radii === */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 10px;
  --r-4: 14px;
  --r-5: 20px;
  --r-pill: 999px;

  /* === Shadows === */
  --shadow-1: 0 1px 0 rgba(22, 20, 15, 0.04), 0 1px 2px rgba(22, 20, 15, 0.04);
  --shadow-2: 0 1px 0 rgba(22, 20, 15, 0.04), 0 4px 12px rgba(22, 20, 15, 0.06);
  --shadow-3: 0 2px 4px rgba(22, 20, 15, 0.06), 0 12px 32px rgba(22, 20, 15, 0.08);
  --shadow-4: 0 8px 16px rgba(22, 20, 15, 0.08), 0 32px 64px rgba(22, 20, 15, 0.12);
  --shadow-glow: 0 0 0 4px var(--accent-glow);
}

/* === Base reset === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Display utility classes === */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.05; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.eyebrow { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 500; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.tertiary { color: var(--ink-3); }
.secondary { color: var(--ink-2); }

/* utility */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-direction: row; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.cursor-pointer { cursor: pointer; }
