/* ==========================================================================
   Shared design tokens — white + dusty indigo.
   Used by the portfolio and by every tool (Focus, Spend, Hue).
   ========================================================================== */
:root {
  --bg: #fbfbfe;
  --bg-soft: #f3f4fb;
  --bg-tint: #e9ebfa;
  --surface: #ffffff;

  --ink: #12142b;
  --ink-2: #464a6a;
  --muted: #858aa5;

  --line: rgba(18, 20, 43, .09);
  --line-strong: rgba(18, 20, 43, .17);

  --accent: #5260bd;
  --accent-hi: #6c7ad8;
  --accent-lo: #3a4690;
  --accent-soft: #aab3ec;
  --accent-tint: #e9ebfa;
  --accent-ghost: rgba(82, 96, 189, .1);

  --deep: #141838;
  --deep-2: #1d2252;
  --deep-line: rgba(255, 255, 255, .1);

  /* quiet semantic colours — never louder than the accent */
  --ok: #3f9a82;
  --warn: #c58b3f;
  --bad: #c25a70;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-sm: 0 1px 2px rgba(18, 20, 43, .05), 0 4px 14px rgba(18, 20, 43, .04);
  --shadow-md: 0 2px 4px rgba(18, 20, 43, .04), 0 14px 40px rgba(40, 48, 110, .10);
  --shadow-lg: 0 4px 10px rgba(18, 20, 43, .05), 0 34px 80px rgba(40, 48, 110, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
