@font-face { font-family: "STIX Two Text"; src: url(interactive-proof/vendor/stix/STIXTwoText-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "STIX Two Text"; src: url(interactive-proof/vendor/stix/STIXTwoText-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: block; }
@font-face { font-family: "STIX Two Text"; src: url(interactive-proof/vendor/stix/STIXTwoText-SemiBold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "STIX Two Text"; src: url(interactive-proof/vendor/stix/STIXTwoText-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: "Site Plex"; src: url(plex/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Site Plex"; src: url(plex/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --soft: #f6f6f4;
  --ink: #111111; --ink2: #44443f; --muted: #6f6e68; --line: #dddcd6; --line2: #b4b3ab;
  --accent: #2a78d6; --accent-ink: #1c5cab; --accent-wash: #e9f1fc;
  --other: #eb6834; --other-ink: #a54113; --other-wash: #fdf0e8;
  --orig: #1baf7a; --orig-ink: #0c6d4b; --orig-wash: #eaf7f1;
  --crit: #c22f2f; --good: #0a7d0a; --warn: #8a5f00;
  --l1: #cde2fb; --l2: #9ec5f4; --l3: #5598e7; --l4: #256abf; --l5: #0d366b;
  --l1-ink: #111111; --l2-ink: #111111; --l3-ink: #111111; --l4-ink: #ffffff; --l5-ink: #ffffff;
  --text: "STIX Two Text", "STIX Two", "BZ Symbols", "BZ Math", Georgia, serif;
  --math: "STIX Two Text", "BZ Math", Georgia, serif;
  --ui: "Site Plex", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211; --surface: #121211; --soft: #1d1d1b;
  --ink: #f0efec; --ink2: #c9c8be; --muted: #9a9892; --line: #30302d; --line2: #55554e;
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-wash: #152740;
  --other: #d95926; --other-ink: #f09a73; --other-wash: #33200f;
  --orig: #199e70; --orig-ink: #5fd0a6; --orig-wash: #112c24;
  --crit: #e66767; --good: #3fbf3f; --warn: #fab219;
  --l1: #0d366b; --l2: #184f95; --l3: #256abf; --l4: #3987e5; --l5: #86b6ef;
  --l1-ink: #f0efec; --l2-ink: #f0efec; --l3-ink: #ffffff; --l4-ink: #111111; --l5-ink: #111111;
}

:root {
  --paper: var(--bg);
  --faint: var(--muted);
  --rule: var(--line);
  --tint: var(--soft);
  --tint2: var(--accent-wash);
  --proof: var(--accent-ink);
  --proof-pale: var(--l1);
  --on-proof: var(--bg);
  --original: var(--orig);
  --original-tint: var(--orig-wash);
  --level1: var(--l1);
  --level2: var(--l2);
  --level3: var(--l3);
  --level4: var(--l4);
  --level-ink: var(--l1-ink);
  --on-level3: var(--l3-ink);
  --on-level4: var(--l4-ink);
  --broken: var(--crit);
  --on-broken: var(--bg);
  --obstruction: var(--warn);
  --on-obstruction: var(--bg);
}

body .site-head {
  width: 100%;
  min-height: 48px;
  padding: 8px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 20px;
  flex: none;
  margin: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--ink);
  font: 15px/1.45 var(--text);
}

body .site-head .site-name {
  grid-column: 1;
  justify-self: start;
  color: var(--ink);
  font: 700 17px/1.2 var(--text);
  letter-spacing: .01em;
  text-decoration: none;
}

body .site-head .site-logo {
  display: block;
  width: auto;
  height: 32px;
}

body .site-head .site-nav {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font: 15px/1.45 var(--text);
}

body .site-head .site-nav a {
  color: var(--ink2);
  text-decoration: none;
}

body .site-head .site-nav a:hover,
body .site-head .site-nav a[aria-current="page"] {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.theme-toggle {
  grid-column: 3;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line2);
  border-radius: 6px;
  font: 1.15rem/1 "DejaVu Sans", system-ui, sans-serif;
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  body .site-head { padding: 7px 10px; gap: 6px 10px; }
  body .site-head .site-nav { gap: 4px 10px; font-size: 14px; }
}
@media (max-width: 480px) {
  body .site-head .site-nav {
    display: grid;
    grid-template-columns: repeat(2, max-content);
  }
}
@media print { .theme-toggle { display: none; } }
