/* The Kloosy palette, type, focus ring and motion, in one place (DESIGN.md).
   Every page links it as /tokens.css ahead of its own <style>; the MCP widget gets it inlined,
   because a chat host's sandbox can't load it from here. Change a token here, never in a page.

   Pages follow the system theme. The widget can also be pinned by its host with
   data-theme="light" or "dark" on <html>, which is why the dark values appear twice. */
:root {
  --bg: #ffffff; --ink: #0a0a0a; --muted: #6b6b6b; --line: #d9d9d9; --wash: #f2f2f0;
  --trench: #c5a97c; --oxblood: #4e0f14; --warn: var(--oxblood); --live: var(--oxblood);

  --display: "Tenor Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion: quick for hover and press, open for things that appear. Ease out, no bounce. */
  --quick: .15s;
  --open: .2s;
  --ease: cubic-bezier(.2, 0, 0, 1);

  /* Keyboard focus: a 1px ink outline standing clear of the thing it marks. */
  --focus: 1px solid var(--ink);
  --focus-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --ink: #ffffff; --muted: #a3a3a3; --line: #3a3a3a; --wash: #171717; --oxblood: #c9767c;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --ink: #ffffff; --muted: #a3a3a3; --line: #3a3a3a; --wash: #171717; --oxblood: #c9767c;
}

/* Every focusable thing shows where the keyboard is. :where() keeps this at zero specificity,
   so a page's own focus style (an underline on a text field, a ring on a pin) still wins. */
:where(:focus-visible) { outline: var(--focus); outline-offset: var(--focus-offset); }

/* A skeleton holds the place of a list that is on its way, in the list's own shape, instead of
   a "Loading" line. Rows for lists, .tiles for grids. Flat and still: no shimmer. */
.skel { display: block; }
.skel i { display: block; height: 44px; border-bottom: 1px solid var(--line); position: relative; }
.skel i::before { content: ""; position: absolute; left: 0; top: 17px; height: 10px; width: 42%; background: var(--wash); }
.skel i:nth-child(2n)::before { width: 30%; }
.skel i:nth-child(3n)::before { width: 54%; }
.skel.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.skel.tiles i { height: auto; aspect-ratio: 1 / 1.2; border: 1px solid var(--line); background: var(--wash); }
.skel.tiles i::before { content: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
