/* Our look on top of Pico's classless styles. Colours, type and spacing only: nothing here places anything on the page. */

:root:not([data-theme="dark"]),
[data-theme="light"] {
  /* Our tokens. Use these in a page's own styles instead of new colours. */
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #c4c4c4;
  --soft: #f4f4f2;
  --paper: #fff;
  --accent: #d9407a; /* marks the thing being changed, or what changed */
  --app: #3b6fd8; /* the app did it, no agent turn */
  --agent: #8a5cd6; /* the agent did it or says it */
  --ok: #2e9e5b;
  --warn: #d98a1a;

  --radius: 8px;
  --gap: 12px;

  /* Pico, mapped onto the tokens */
  --pico-font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pico-font-size: 100%;
  --pico-line-height: 1.45;
  --pico-border-radius: var(--radius);
  --pico-spacing: 1rem;
  --pico-background-color: var(--paper);
  --pico-color: var(--ink);
  --pico-muted-color: var(--muted);
  --pico-muted-border-color: var(--line);
  --pico-primary: var(--ink);
  --pico-primary-background: var(--ink);
  --pico-primary-border: var(--ink);
  --pico-primary-underline: rgb(31 31 31 / 50%);
  --pico-primary-hover: #000;
  --pico-primary-hover-background: #000;
  --pico-primary-hover-border: #000;
  --pico-primary-focus: rgb(217 64 122 / 35%);
  --pico-primary-inverse: #fff;
  --pico-secondary: var(--muted);
  --pico-secondary-background: var(--soft);
  --pico-secondary-border: var(--line);
  --pico-secondary-inverse: var(--ink);
  --pico-secondary-hover-background: #e9e9e6;
  --pico-secondary-hover-border: var(--muted);
  --pico-card-background-color: var(--paper);
  --pico-card-sectioning-background-color: var(--soft);
  --pico-form-element-background-color: var(--paper);
  --pico-form-element-border-color: var(--line);
  --pico-form-element-focus-color: var(--accent);
  --pico-range-thumb-color: var(--ink);
  --pico-range-border-color: var(--line);
  --pico-range-active-border-color: var(--muted);
  --pico-mark-background-color: #fbe3ec;
  --pico-mark-color: var(--ink);
}

/* Pico grows the type on wide screens. Prototypes compare better at one size. */
@media (min-width: 576px) {
  :root:root {
    --pico-font-size: 100%;
  }
}

body {
  background: var(--paper);
}

/* Pictures of the piece are the point of every page: never let them shrink to a thumbnail by accident. */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
