/* The tokens every style uses (colors, fonts, the shadow), light and dark, and the base of the page. Colors are
   named for what they mean (--pix, --err, --warn), so a style never names a color of its own. */
:root {
  --ink: #15242c;
  --ink-2: #4a5a61;
  --ink-3: #5f6e74;
  --paper: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #f6f8f8;
  --rule: #e1e8e6;
  --rule-strong: #c6d2cf;
  --pix: #0b8a7c;
  --pix-strong: #076c61;
  --pix-tint: #ddf3ef;
  --link: #9a5a00;
  --link-tint: #ffefd2;
  --gen: #2453c2;
  --gen-tint: #e5ecff;
  --prof: #7140aa;
  --prof-tint: #f1e7fa;
  --err: #b3302a;
  --err-tint: #fde9e7;
  --idle: #c08a1e;
  --warn: #8a5300;
  --warn-tint: #fff3d9;
  --ok: var(--pix-strong);
  --ok-tint: var(--pix-tint);
  --shadow: 0 10px 30px rgba(10, 30, 35, 0.16);
  --tip-bg: #15242c;
  --tip-ink: #ffffff;
  /* The frame of the sidebar and the learning screens (20-workspace.css, 21-learning.css). */
  --canvas: #f7f9f8;
  --nav-bg: #fcfdfc;
  --heading: #142b27;
  --accent: #176d55;
  --nav-sel: #dff0e7;
  --ui: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

/* The dark palette: from the system setting, unless a page sets data-theme="light"; and always under
   data-theme="dark". The Workbench sets neither; the guide as a document is shown in viewers that do. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e2ebe9;
    --ink-2: #a8b7b3;
    --ink-3: #8d9d9a;
    --paper: #0d171b;
    --surface: #121f25;
    --surface-2: #17272d;
    --rule: #22353c;
    --rule-strong: #35505a;
    --pix: #33c2b0;
    --pix-strong: #6fd8ca;
    --pix-tint: #103934;
    --link: #f2b655;
    --link-tint: #3a2b10;
    --gen: #93b1ff;
    --gen-tint: #1b2a4f;
    --prof: #cba0f5;
    --prof-tint: #32204a;
    --err: #ff8f86;
    --err-tint: #3f1a18;
    --idle: #e8b54d;
    --warn: #f2c26b;
    --warn-tint: #352812;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --tip-bg: #2b4048;
    --tip-ink: #eef4f3;
    --canvas: #101c1b;
    --nav-bg: #152320;
    --heading: #eaf5ed;
    --accent: #92deba;
    --nav-sel: #214136;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #e2ebe9;
  --ink-2: #a8b7b3;
  --ink-3: #8d9d9a;
  --paper: #0d171b;
  --surface: #121f25;
  --surface-2: #17272d;
  --rule: #22353c;
  --rule-strong: #35505a;
  --pix: #33c2b0;
  --pix-strong: #6fd8ca;
  --pix-tint: #103934;
  --link: #f2b655;
  --link-tint: #3a2b10;
  --gen: #93b1ff;
  --gen-tint: #1b2a4f;
  --prof: #cba0f5;
  --prof-tint: #32204a;
  --err: #ff8f86;
  --err-tint: #3f1a18;
  --idle: #e8b54d;
  --warn: #f2c26b;
  --warn-tint: #352812;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --tip-bg: #2b4048;
  --tip-ink: #eef4f3;
  --canvas: #101c1b;
  --nav-bg: #152320;
  --heading: #eaf5ed;
  --accent: #92deba;
  --nav-sel: #214136;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
code,
pre,
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
a {
  color: var(--pix-strong);
}
:focus-visible {
  outline: 2px solid var(--pix);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
