/* SOP Library bake-off — shared design tokens + quality floor.
   Concepts own ALL layout; this file only guarantees the shared ingredients:
   fonts, ink/paper palette, the single chartreuse accent, focus visibility,
   search-highlight treatment, and reduced-motion support. */

:root {
  /* palette (from Ryan's prototype) */
  --ink: #14161a;
  --ink-2: #3d434d;
  --ink-3: #787f8b;
  --paper: #f1f2f4;
  --card: #ffffff;
  --line: #dcdee3;
  --hl: #dcfb4c;            /* chartreuse — the ONLY accent */
  --err: #b3261e;

  /* type roles */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; cursor: pointer; }
a { color: inherit; }
img, iframe, video { max-width: 100%; }

/* Search-match highlighting — identical in every concept so Ryan compares
   layout, not highlight styling. Chartreuse is reserved for this + active topic. */
mark {
  background: var(--hl);
  color: var(--ink);
  padding: .06em .16em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Quality floor: keyboard focus is always visible, in every concept. */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.dark :focus-visible,
[data-theme="dark"] :focus-visible {
  outline-color: var(--hl);
}

::selection { background: var(--hl); color: var(--ink); }

/* Quality floor: motion is an enhancement, never a requirement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
