/* The theme of every page the server serves (spec-platform §4, spec-admin §7): the site's pages, the
   viewer page and My shares, the admin page, and the renderer page on the files host. One palette, light
   and dark; the base type; the focus ring, the skip link and the icons' line. Every page loads it first;
   no other stylesheet defines a colour of the palette (bin/check.sh). */
:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --card: #ffffff;
  --fg: #151922;
  --muted: #5b6272;
  --faint: #8a90a0;
  --line: #dde1ea;
  --line-soft: #eef0f5;
  --accent: #4f5bd5;
  --accent-soft: #eef0ff;
  --accent-ink: #3b46b8;
  --accent-fg: #ffffff;
  --accent-2: #7c3aed;
  --band: #eef0f6;
  --side: #090a26;
  --side-fg: #c9cdf2;
  --side-muted: #8b90c8;
  --side-line: #23264a;
  /* the dark bar's states — the admin page's sidebar, the share view's top bar —: hover, current, its mark */
  --side-hover: rgba(138, 147, 255, 0.08);
  --side-current: rgba(138, 147, 255, 0.14);
  --side-mark: #8a93ff;
  --side-strong: #ffffff;
  --green: #2fa36b;
  --green-soft: #e3f6ec;
  --green-ink: #1d7a4d;
  --amber: #d97706;
  --amber-soft: #fff3dc;
  --amber-ink: #8a5a00;
  --red: #dc2626;
  --red-soft: #fde8e8;
  --red-ink: #9b1c1c;
  --grey-soft: #eef0f5;
  --s1: #4f5bd5;
  --s2: #7c3aed;
  --s3: #2fa36b;
  --s4: #d97706;
  --s5: #9aa1ae;
  --s6: #dc2626;
  --focus: #4f5bd5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --card: #1d222c;
    --fg: #e8eaf0;
    --muted: #9aa1ae;
    --faint: #7c8392;
    --line: #2b313d;
    --line-soft: #252a35;
    --accent: #8a93ff;
    --accent-soft: #262b4d;
    --accent-ink: #c3c8ff;
    --accent-fg: #12151b;
    --accent-2: #b48cff;
    --band: #171b23;
    --side: #0b0c1f;
    --green-soft: #173a2a;
    --green-ink: #8fe0b8;
    --amber-soft: #3d2c0f;
    --amber-ink: #ffd27a;
    --red-soft: #3d1717;
    --red-ink: #ffb1b1;
    --grey-soft: #2b313d;
    --s1: #8a93ff;
    --s2: #b48cff;
    --s3: #4cc08a;
    --s4: #f0a43a;
    --s5: #6b7280;
    --s6: #f87171;
    --focus: #8a93ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* the page stops at its edges: no bounce past them, nor a scroll handed on from a box inside */
html, body { overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
code { font: 0.88em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* the skip link: the first thing a keyboard reaches, seen only then */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* the icons: one set (the sprite bin/site.py writes into every page), drawn as lines in the text's colour */
.defs { display: none; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
