/* axi0 Slides, presenting (/slides/present/): our own theme on top of the presentation engine's base sheet (reveal.css).
   The engine's stock themes are not loaded: they embed their font as data: addresses, which the page policy would have
   to allow. Light and dark follow theme.js (data-axi0-theme) and the device setting, in CSS, before the first paint. */
@font-face {
  font-family: "Instrument Sans";
  src: url(/axi0/fonts/instrument-sans-latin-var.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #000; --fg: #e9e9ee; --head: #fff; --mute: #a3a3ad; --link: #f6a04d; --link-h: #ffb26a;
  --panel: #0a0a0c; --panel-fg: #e6e6ea; --line: #2a2a31; --code-bg: rgba(127, 127, 127, .16); --quote: rgba(255, 255, 255, .06);
  --r-background-color: var(--bg);
  --r-main-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-main-font-size: 40px;
  --r-main-color: var(--fg);
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 20px 0;
  --r-heading-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-heading-color: var(--head);
  --r-heading-line-height: 1.15;
  --r-heading-letter-spacing: -.02em;
  --r-heading-font-weight: 600;
  --r-heading1-size: 2.4em;
  --r-heading2-size: 1.6em;
  --r-heading3-size: 1.3em;
  --r-heading4-size: 1em;
  --r-code-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-link-color: var(--link);
  --r-link-color-hover: var(--link-h);
  --r-selection-background-color: rgba(246, 160, 77, .4);
  --r-selection-color: var(--head);
  --r-overlay-element-bg-color: 240, 240, 240;
  --r-overlay-element-fg-color: 0, 0, 0;
}
html[data-axi0-theme="light"] {
  color-scheme: light;
  --bg: #f6f2ea; --fg: #2c2823; --head: #17140f; --mute: #4f4940; --link: #9a4a0a; --link-h: #7a3a06;
  --panel: #fffdf9; --panel-fg: #2c2823; --line: #d3cabb; --code-bg: rgba(23, 20, 15, .07); --quote: rgba(23, 20, 15, .05);
  --r-overlay-element-bg-color: 0, 0, 0; --r-overlay-element-fg-color: 240, 240, 240;
}
@media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f2ea; --fg: #2c2823; --head: #17140f; --mute: #4f4940; --link: #9a4a0a; --link-h: #7a3a06;
    --panel: #fffdf9; --panel-fg: #2c2823; --line: #d3cabb; --code-bg: rgba(23, 20, 15, .07); --quote: rgba(23, 20, 15, .05);
    --r-overlay-element-bg-color: 0, 0, 0; --r-overlay-element-fg-color: 240, 240, 240;
  }
}
html, body { margin: 0; height: 100%; background: var(--bg); }
.reveal-viewport { background: var(--bg); }
.reveal { font-family: var(--r-main-font); font-size: var(--r-main-font-size); font-weight: 400; color: var(--r-main-color); }
.reveal ::selection { color: var(--r-selection-color); background: var(--r-selection-background-color); }
.reveal .slides section, .reveal .slides section > section { line-height: 1.3; font-weight: inherit; text-align: left; }
.reveal .slides section > * { max-width: 100%; }
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  margin: var(--r-heading-margin); color: var(--r-heading-color); font-family: var(--r-heading-font); font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height); letter-spacing: var(--r-heading-letter-spacing); text-transform: none; text-align: left; overflow-wrap: break-word;
}
.reveal h1 { font-size: var(--r-heading1-size); }
.reveal h2 { font-size: var(--r-heading2-size); }
.reveal h3 { font-size: var(--r-heading3-size); }
.reveal h4, .reveal h5, .reveal h6 { font-size: var(--r-heading4-size); }
.reveal h1:last-child, .reveal h2:last-child, .reveal h3:last-child, .reveal h4:last-child { margin-bottom: 0; }
.reveal p { margin: var(--r-block-margin) 0; line-height: 1.3; }
.reveal strong, .reveal b { font-weight: 700; }
.reveal em { font-style: italic; }
.reveal ul, .reveal ol { display: block; margin: 0 0 0 1.2em; text-align: left; }
.reveal ul ul, .reveal ul ol, .reveal ol ol, .reveal ol ul { margin-left: 1.2em; }
.reveal li { margin: .15em 0; }
.reveal blockquote { margin: var(--r-block-margin) 0; padding: .2em .8em; border-left: 4px solid var(--link); background: var(--quote); font-style: italic; }
.reveal pre { width: auto; max-width: 100%; margin: var(--r-block-margin) 0; font-size: .55em; font-family: var(--r-code-font); line-height: 1.25em; text-align: left; box-shadow: none; }
.reveal code { font-family: var(--r-code-font); text-transform: none; tab-size: 2; background: var(--code-bg); padding: .05em .3em; border-radius: 5px; }
.reveal pre code { display: block; max-height: 480px; padding: 14px 18px; overflow: auto; border-radius: 10px; word-wrap: normal; white-space: pre; background: #1d1d22; color: #e6e6ea; }
.reveal pre code.hljs { background: #1d1d22; }   /* code blocks stay dark in both themes: the highlighter's palette is a dark one */
.reveal table { margin: 0 0 .6em; border-collapse: collapse; border-spacing: 0; }
.reveal table th { font-weight: 700; }
.reveal table th, .reveal table td { padding: .2em .5em; border-bottom: 1px solid var(--line); text-align: left; }
.reveal table .md-center { text-align: center; }
.reveal table .md-right { text-align: right; }
.reveal hr { border: 0; border-top: 1px solid var(--line); margin: .8em 0; }
.reveal a { color: var(--r-link-color); text-decoration: underline; text-underline-offset: .12em; }
.reveal a:hover { color: var(--r-link-color-hover); }
.reveal .md-img { font-style: italic; opacity: .75; }
.reveal .md-img::before { content: "image: "; }
.reveal ul.md-tasks { list-style: none; margin-left: 0; }
.reveal li.task input { margin-right: .4em; accent-color: #f6a04d; }
.reveal .slides section aside.notes { display: none; }
.reveal .controls { color: var(--link); }
.reveal .progress { color: var(--link); background: rgba(127, 127, 127, .25); }
.reveal .slide-number { background: transparent; font-family: var(--r-main-font); font-size: 15px; color: var(--mute); }
.reveal .slide-number a { color: inherit; text-decoration: none; }
@media print { .backgrounds { background-color: var(--bg); } }

/* waiting for the deck */
.waiting { position: fixed; inset: 0; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--fg); font: 16px/1.5 "Instrument Sans", system-ui, sans-serif; background: var(--bg); }
.waiting[hidden] { display: none; }
.w-main { margin: 0; font-size: 20px; font-weight: 600; color: var(--head); }
.w-hint { max-width: 36em; margin: 0; color: var(--mute); font-size: 14px; }
.w-link { margin: 14px 0 0; }
.w-link a { color: var(--link); }

/* the speaker notes panel: the slide area shrinks to make room */
.has-notes .reveal { height: calc(100% - 220px); }
.notes-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-sizing: border-box; height: 220px; padding: 10px 18px 12px; overflow: auto;
  background: var(--panel); color: var(--panel-fg); border-top: 1px solid var(--line); font: 15px/1.5 "Instrument Sans", system-ui, sans-serif;
}
.notes-panel[hidden] { display: none; }
.np-head { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.np-head #np-timer { color: var(--link); font-weight: 600; }
.np-close { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: none; color: inherit; font: 18px/1 inherit; cursor: pointer; }
.np-notes { font-size: 17px; color: var(--head); }
.np-notes > :first-child { margin-top: 0; }
.np-notes p { margin: 0 0 .5em; }
.np-notes:empty { display: none; }
.np-empty { margin: 0; color: var(--mute); }
.np-empty[hidden] { display: none; }
.np-empty code, .np-help code, .np-help kbd { padding: .05em .35em; border-radius: 4px; background: rgba(127, 127, 127, .18); font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.np-help { margin: 10px 0 0; color: var(--mute); font-size: 12.5px; }
@media (max-width: 600px) {
  .reveal { --r-main-font-size: 34px; }
  .has-notes .reveal { height: calc(100% - 180px); }
  .notes-panel { height: 180px; padding: 8px 12px 10px; }
  .np-help { display: none; }
}
@media print { .notes-panel, .waiting { display: none; } }
