@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

:root {
  --bg: #f8f3ea;
  --surf: #efe8da;
  --ink: #1d1912;
  --hi: #1d1912;
  --mid: #5f5546;
  --dim: #8a7a5e;
  --rule: #d9cfbd;
  --hair: #e6ddcb;
  --accent: #b4501a;
  --accent-2: #c98a2e;
  --on-accent: #f8f3ea;
  --code: #efe8da;
  --code-fg: #1d1912;
  --code-dim: #8a7a5e;
  --code-kw: #b4501a;
  --code-str: #7a5a17;
  --code-fn: #1d1912;
  --code-const: #4a6a8a;
  --code-pre: #5f5546;
  --chart-1: #b4501a;
  --chart-2: #4a6a8a;
  --chart-3: #7a5a17;
  --chart-4: #8a7a5e;
  --chart-5: #1d1912;
  --chart-fg: #f8f3ea;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--body);
  --measure: 78ch;
  --wrap: 960px;
  --hang: 4.2rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #15110b;
    --surf: #1c160e;
    --ink: #e6a04a;
    --hi: #f6d9a8;
    --mid: #b98a4a;
    --dim: #9a7a4c;
    --rule: #3b2f1e;
    --hair: #2a2116;
    --accent: #f6d9a8;
    --accent-2: #b98a4a;
    --on-accent: #15110b;
    --code: #1c160e;
    --code-fg: #f6d9a8;
    --code-dim: #9a7a4c;
    --code-kw: #f6d9a8;
    --code-str: #c9924a;
    --code-fn: #e6a04a;
    --code-const: #f0c98a;
    --code-pre: #b98a4a;
    --chart-1: #f6d9a8;
    --chart-2: #e6a04a;
    --chart-3: #d9772a;
    --chart-4: #b98a4a;
    --chart-5: #9a7a4c;
    --chart-fg: #15110b;
  }
}

:root[data-theme="paper"] {
  --bg: #f8f3ea;
  --surf: #efe8da;
  --ink: #1d1912;
  --hi: #1d1912;
  --mid: #5f5546;
  --dim: #8a7a5e;
  --rule: #d9cfbd;
  --hair: #e6ddcb;
  --accent: #b4501a;
  --accent-2: #c98a2e;
  --on-accent: #f8f3ea;
  --code: #efe8da;
  --code-fg: #1d1912;
  --code-dim: #8a7a5e;
  --code-kw: #b4501a;
  --code-str: #7a5a17;
  --code-fn: #1d1912;
  --code-const: #4a6a8a;
  --code-pre: #5f5546;
  --chart-1: #b4501a;
  --chart-2: #4a6a8a;
  --chart-3: #7a5a17;
  --chart-4: #8a7a5e;
  --chart-5: #1d1912;
  --chart-fg: #f8f3ea;
}

:root[data-theme="snow"] {
  --bg: #f4f4f1;
  --surf: #e9e9e4;
  --ink: #1b1c1e;
  --hi: #000000;
  --mid: #4f5257;
  --dim: #7c8087;
  --rule: #d0d2cc;
  --hair: #e0e2dc;
  --accent: #1f5fa8;
  --accent-2: #3a7bd5;
  --on-accent: #ffffff;
  --code: #e9e9e4;
  --code-fg: #1b1c1e;
  --code-dim: #7c8087;
  --code-kw: #1f5fa8;
  --code-str: #7a3e10;
  --code-fn: #1b1c1e;
  --code-const: #8a3a6e;
  --code-pre: #4f5257;
  --chart-1: #1f5fa8;
  --chart-2: #7a3e10;
  --chart-3: #8a3a6e;
  --chart-4: #4f5257;
  --chart-5: #1b1c1e;
  --chart-fg: #ffffff;
}

:root[data-theme="amber"] {
  --bg: #15110b;
  --surf: #1c160e;
  --ink: #e6a04a;
  --hi: #f6d9a8;
  --mid: #b98a4a;
  --dim: #9a7a4c;
  --rule: #3b2f1e;
  --hair: #2a2116;
  --accent: #f6d9a8;
  --accent-2: #b98a4a;
  --on-accent: #15110b;
  --code: #1c160e;
  --code-fg: #f6d9a8;
  --code-dim: #9a7a4c;
  --code-kw: #f6d9a8;
  --code-str: #c9924a;
  --code-fn: #e6a04a;
  --code-const: #f0c98a;
  --code-pre: #b98a4a;
  --chart-1: #f6d9a8;
  --chart-2: #e6a04a;
  --chart-3: #d9772a;
  --chart-4: #b98a4a;
  --chart-5: #9a7a4c;
  --chart-fg: #15110b;
}

:root[data-theme="green"] {
  --bg: #0c120e;
  --surf: #111a14;
  --ink: #7fd48a;
  --hi: #c4f2c8;
  --mid: #6fb079;
  --dim: #4f8a58;
  --rule: #22362a;
  --hair: #182619;
  --accent: #c4f2c8;
  --accent-2: #6fb079;
  --on-accent: #0c120e;
  --code: #111a14;
  --code-fg: #c4f2c8;
  --code-dim: #4f8a58;
  --code-kw: #c4f2c8;
  --code-str: #b9e08a;
  --code-fn: #7fd48a;
  --code-const: #d8f0a8;
  --code-pre: #6fb079;
  --chart-1: #c4f2c8;
  --chart-2: #7fd48a;
  --chart-3: #b9e08a;
  --chart-4: #6fb079;
  --chart-5: #4f8a58;
  --chart-fg: #0c120e;
}

:root[data-theme="white"] {
  --bg: #111214;
  --surf: #191a1d;
  --ink: #d6d8da;
  --hi: #ffffff;
  --mid: #a9adb3;
  --dim: #7a7f86;
  --rule: #33363b;
  --hair: #26282c;
  --accent: #ffffff;
  --accent-2: #a9adb3;
  --on-accent: #111214;
  --code: #191a1d;
  --code-fg: #ffffff;
  --code-dim: #7a7f86;
  --code-kw: #ffffff;
  --code-str: #c9ccd0;
  --code-fn: #d6d8da;
  --code-const: #e6e8ea;
  --code-pre: #a9adb3;
  --chart-1: #ffffff;
  --chart-2: #d0d3d6;
  --chart-3: #a9adb3;
  --chart-4: #8b9097;
  --chart-5: #6d737a;
  --chart-fg: #111214;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
}

a:hover {
  color: var(--hi);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.dim {
  color: var(--dim);
}

.d, .meta, .kv, .ls, .hdr, .ftr, .sec, .cmd, .out {
  font-family: var(--mono);
}

.ls {
  display: grid;
  grid-template-columns: 11ch 1fr;
  gap: 2px 18px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ls .d {
  color: var(--dim);
  white-space: nowrap;
}

.ls--tags {
  grid-template-columns: 9ch 1fr;
}

.kv {
  display: grid;
  grid-template-columns: 18ch 1fr;
  gap: 3px 18px;
  font-size: 14px;
}

.kv.contact {
  grid-template-columns: 10ch 1fr;
}

.session {
  padding-top: 1.8rem;
  padding-bottom: 2rem;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
}

.session .cmd {
  margin: 18px 0 4px;
}

.session .cmd:first-child {
  margin-top: 0;
}

.session .ps {
  color: var(--accent);
  font-weight: 600;
}

.session .out {
  margin: 0;
}

.session .dir {
  color: var(--accent-2);
  font-weight: 600;
}

.session .cat p {
  margin: 0 0 8px;
  max-width: 72ch;
}

.session .cat p:last-child {
  margin-bottom: 0;
}

.session .cur {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .session .cur {
    animation: none;
  }
}

.man {
  padding-top: 1.8rem;
  padding-bottom: 2rem;
}

.hdr, .ftr {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  color: var(--dim);
}

.hdr {
  padding-right: 16rem;
}

.hdr a, .ftr a {
  color: var(--dim);
}

.hdr .present {
  cursor: help;
}

.hdr .present svg {
  width: .85em;
  height: .85em;
  vertical-align: -.05em;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.hdr a:hover, .ftr a:hover {
  color: var(--hi);
}

.ftr {
  margin-top: 2.4rem;
  padding-top: .7rem;
  border-top: 1px solid var(--rule);
}

.man h1 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--hi);
  margin: 1.6rem 0 .3rem;
  text-wrap: balance;
}

.lede {
  color: var(--mid);
  margin: 0 0 1.4rem;
  max-width: var(--measure);
}

.lede p {
  margin: 0 0 .6rem;
}

.sec {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--hi);
  margin: 1.9rem 0 .5rem;
}

.body {
  margin-left: var(--hang);
  max-width: var(--measure);
}

.also p {
  margin: 0 0 .3rem;
  font-family: var(--mono);
  font-size: 14px;
}

.projects {
  margin: 0;
}

.projects dt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  margin-top: 1rem;
}

.projects dt .dim {
  font-weight: 400;
  margin-left: .4rem;
}

.projects dd {
  margin: .2rem 0 0 2.4rem;
  color: var(--ink);
}

.projects .meta {
  display: block;
  margin-top: .25rem;
  font-size: 12.5px;
  color: var(--dim);
}

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 .85rem;
}

.prose b, .prose strong {
  color: var(--hi);
  font-weight: 600;
}

.prose h2 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hi);
  margin: 2rem 0 .6rem calc(-1 * var(--hang));
}

.prose h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--hi);
  margin: 1.6rem 0 .4rem;
}

.prose h4 {
  font-size: 15px;
  margin: 1.2rem 0 .3rem;
}

.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin: 0 0 .9rem;
}

.prose li {
  margin: .2rem 0;
}

.prose li::marker {
  color: var(--dim);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.6rem 0;
}

.prose blockquote {
  margin: 1rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--rule);
  color: var(--mid);
}

.prose img, .prose video {
  max-width: 100%;
  height: auto;
  display: block;
}

.prose code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--hi);
  background: var(--surf);
  padding: .05em .3em;
}

.prose pre code {
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.prose table {
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  margin: .4rem auto 1.1rem;
}

.prose th {
  text-align: left;
  font-weight: 600;
  color: var(--hi);
  border-bottom: 1px solid var(--ink);
  padding: 3px 26px 4px 0;
}

.prose td {
  padding: 3px 26px 3px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.1rem;
  display: flex;
  justify-content: center;
}

.table-scroll table {
  margin-bottom: 0;
}

.prose pre {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--code-fg);
  background: var(--code);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .8rem 1rem;
  margin: .6rem 0 1.1rem calc(-1 * var(--hang));
  overflow-x: auto;
  tab-size: 4;
  scrollbar-width: thin;
}

.prose .code {
  margin: .6rem 0 1.1rem calc(-1 * var(--hang));
}

.prose .code pre {
  margin: 0;
  border-top: 0;
}

.prose .code__bar {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  padding: .35rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--hair);
  background: var(--code);
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--code-dim);
}

.code__dots {
  display: none;
}

.code__file {
  color: var(--code-fg);
}

.code__label {
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.prose pre .s-comment, .prose pre .s-punctuation.s-definition.s-comment {
  color: var(--code-dim);
  font-style: italic;
}

.prose pre .s-keyword, .prose pre .s-storage.s-modifier {
  color: var(--code-kw);
}

.prose pre .s-storage.s-type, .prose pre .s-support.s-type {
  color: var(--code-fg);
  font-weight: 500;
}

.prose pre .s-string {
  color: var(--code-str);
}

.prose pre .s-constant, .prose pre .s-constant.s-numeric {
  color: var(--code-const);
}

.prose pre .s-entity.s-name.s-function, .prose pre .s-support.s-function, .prose pre .s-meta.s-function-call .s-variable.s-function {
  color: var(--code-fn);
  font-weight: 500;
}

.prose pre .s-meta.s-preprocessor, .prose pre .s-keyword.s-control.s-import {
  color: var(--code-pre);
}

.prose pre .s-keyword.s-operator, .prose pre .s-punctuation {
  color: var(--code-fg);
}

.prose pre .s-variable.s-parameter {
  color: var(--code-fg);
}

.prose pre .s-entity.s-name.s-tag {
  color: var(--code-kw);
}

.prose pre .s-entity.s-other.s-attribute-name {
  color: var(--code-str);
}

.note {
  margin: 1.2rem 0;
  padding: .1rem 0 .1rem 1rem;
  border-left: 2px solid var(--accent);
}

.note__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .3rem;
}

.note__body > :last-child {
  margin-bottom: 0;
}

.footnote-definition {
  font-size: 13.5px;
  color: var(--mid);
  margin: .6rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.footnote-definition-label {
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--dim);
}

.footnote-definition p {
  margin: 0;
}

.footnote-reference a, sup a {
  font-family: var(--mono);
  font-size: .75em;
  text-decoration: none;
  color: var(--accent);
}

.diagram {
  margin: 1.2rem calc(-1 * var(--hang)) 1.4rem;
  text-align: center;
  svg {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  figcaption {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--dim);
    margin: .7rem auto 0;
    max-width: 60ch;
    text-align: center;
  }
}

.prose .photo img {
  margin: 0 auto;
}

.prose .diagram pre.mermaid {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  overflow: visible;
  text-align: center;
  color: var(--mid);
  font-size: 12.5px;
  line-height: 1.6;
}

.prose .diagram pre.mermaid:not([data-processed]) {
  text-align: left;
  white-space: pre-wrap;
  background: var(--surf);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: .8rem 1rem;
}

.diagram .row-rect-odd > path:first-child {
  fill: var(--surf);
}

.diagram .row-rect-even > path:first-child {
  fill: var(--bg);
}

.diagram--dot {
  svg {
    max-width: 100%;
    height: auto;
  }
  .node path, .node polygon, .node ellipse {
    fill: var(--surf);
    stroke: var(--ink);
    stroke-width: 1.4;
  }
  .edge path {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.4;
  }
  .edge polygon {
    fill: var(--ink);
    stroke: var(--ink);
  }
  text {
    fill: var(--ink);
    font-family: var(--body);
  }
  .edge text {
    fill: var(--mid);
    font-family: var(--mono);
  }
  .dead path, .dead polygon, .dead ellipse {
    fill: none;
    stroke: var(--rule);
    stroke-dasharray: 5 4;
  }
  .edge.dead polygon {
    fill: var(--dim);
    stroke: var(--dim);
    stroke-dasharray: none;
  }
  .edge.dead path {
    stroke: var(--dim);
  }
  .dead text {
    fill: var(--dim);
  }
}

.diagram--pair {
  text-align: left;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.pair__side {
  min-width: 0;
  padding: .8rem 1rem 1rem;
  border-top: 1px solid var(--rule);
}

.pair__label {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 .8rem;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  span {
    margin-left: auto;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--dim);
  }
}

.prose .diagram--pair pre.mermaid:not([data-processed]) {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
}

@media (max-width: 760px) {
  .pair {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.diagram--bytefield {
  svg {
    max-width: 100%;
    height: auto;
  }
  line {
    stroke: var(--ink);
  }
  text {
    fill: var(--ink);
    font-family: var(--mono);
  }
}

.diagram--wave {
  svg {
    max-width: 100%;
    height: auto;
  }
}

.topbar {
  position: relative;
  height: 0;
}

.theme-toggle {
  position: absolute;
  top: 1.8rem;
  right: 1.4rem;
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  font: 500 13px/1.65 var(--mono);
}

.theme-toggle__opt {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--dim);
  cursor: pointer;
}

.theme-toggle__opt::before {
  content: "\00a0";
}

.theme-toggle__opt::after {
  content: "\00a0";
}

.theme-toggle__opt:hover {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

.theme-toggle__opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media not (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__opt--paper {
    color: var(--accent);
    &::before {
      content: "[";
    }
    &::after {
      content: "]";
    }
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__opt--amber {
    color: var(--accent);
    &::before {
      content: "[";
    }
    &::after {
      content: "]";
    }
  }
}

:root[data-theme="paper"] .theme-toggle__opt--paper {
  color: var(--accent);
  &::before {
    content: "[";
  }
  &::after {
    content: "]";
  }
}

:root[data-theme="snow"] .theme-toggle__opt--snow {
  color: var(--accent);
  &::before {
    content: "[";
  }
  &::after {
    content: "]";
  }
}

:root[data-theme="amber"] .theme-toggle__opt--amber {
  color: var(--accent);
  &::before {
    content: "[";
  }
  &::after {
    content: "]";
  }
}

:root[data-theme="green"] .theme-toggle__opt--green {
  color: var(--accent);
  &::before {
    content: "[";
  }
  &::after {
    content: "]";
  }
}

:root[data-theme="white"] .theme-toggle__opt--white {
  color: var(--accent);
  &::before {
    content: "[";
  }
  &::after {
    content: "]";
  }
}

body.presenting {
  overflow: hidden;
}

body.presenting .topbar {
  display: none;
}

body.presenting .man > :not(.body):not(.slide--title) {
  display: none;
}

body.presenting .man > .body:not(.prose) {
  display: none;
}

body.presenting .man {
  padding: 0;
}

body.presenting .body {
  margin: 0;
  max-width: none;
}

body.presenting .slide:not(.current) {
  display: none;
}

body.presenting .slide.current {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: clamp(1.5rem, 5vh, 4rem) clamp(2rem, 6vw, 6rem);
  overflow: auto;
  font-size: clamp(1.1rem, 1.9vw, 1.9rem);
  line-height: 1.5;
  background: var(--bg);
}

body.presenting .slide.current > * {
  max-width: 90ch;
  flex-shrink: 0;
}

body.presenting .slide.current table {
  font-size: .72em;
}

body.presenting .slide.current > .table-scroll {
  display: flex;
  justify-content: center;
}

body.presenting .slide.current > table {
  margin-left: auto;
  margin-right: auto;
}

.slide__section {
  display: none;
}

.slide {
  position: relative;
}

.slide-mark {
  position: absolute;
  top: .35em;
  left: calc(-1 * var(--hang) - 2.2rem);
  bottom: .35em;
  width: 1.4rem;
  border-left: 1px solid var(--rule);
  padding-left: .4rem;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--dim);
  text-decoration: none;
}

.slide--title .slide-mark {
  left: -2.2rem;
}

.slide-mark:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.slide-mark--over {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 600;
}

body.presenting .slide-mark {
  display: none;
}

body.presenting .slide.current .slide__section {
  display: block;
  font: 500 .55em var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 .8em;
}

body.presenting .slide.current > pre, body.presenting .slide.current > .code, body.presenting .slide.current > .diagram, body.presenting .slide.current > .table-scroll, body.presenting .slide.current > table {
  max-width: none;
  margin-left: 0;
}

body.presenting .slide--title.current h1 {
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  margin: 0 0 .4em;
}

body.presenting .slide--title.current .lede {
  font-size: 1.15em;
  margin: 0;
}

body.presenting .slide.current h2, body.presenting .slide.current h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1.15;
  margin: 0 0 .6em;
}

body.presenting .slide.current pre {
  font-size: .7em;
  line-height: 1.45;
}

body.presenting .slide.current .code__bar {
  font-size: .7em;
}

body.presenting .slide.current .code, body.presenting .slide.current pre {
  margin-top: .4em;
  margin-bottom: .4em;
}

body.presenting .slide.current .diagram {
  text-align: center;
}

body.presenting .slide.current .diagram svg {
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  height: auto;
}

body.presenting .slide.current .diagram--wave svg, body.presenting .slide.current .diagram--bytefield svg {
  max-width: none;
}

body.presenting .slide.current .diagram figcaption {
  font-size: .6em;
  max-width: none;
}

.present-rail {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  display: none;
  z-index: 3;
}

.present-count {
  position: fixed;
  right: 1.4rem;
  bottom: 1rem;
  display: none;
  font: 13px var(--mono);
  color: var(--dim);
  z-index: 3;
}

body.presenting .present-rail, body.presenting .present-count {
  display: block;
}

body.presenting.blanked::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10;
}

body.presenting.blanked .present-rail, body.presenting.blanked .present-count {
  visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .present-rail {
    transition: width .18s ease;
  }
}

@media (max-width: 700px) {
  :root {
    --hang: 0rem;
  }
  .slide-mark {
    display: none;
  }
  .topbar {
    height: auto;
  }
  .theme-toggle {
    position: static;
    display: flex;
    justify-content: flex-end;
    padding-top: .8rem;
  }
  .hdr {
    padding-right: 0;
  }
  .kv {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .kv a {
    margin-top: .5rem;
  }
  .ls {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ls .d {
    margin-top: .4rem;
  }
  .hdr, .ftr {
    flex-wrap: wrap;
  }
  .projects dd {
    margin-left: 0;
  }
}
