/* The site's one stylesheet. Ink on paper, Latin Modern, no colour. */

@font-face {
  font-family: "Latin Modern";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lm-regular.woff2") format("woff2");
}

/* Metrics copied from lm-regular so the swap to it does not move the text. */
@font-face {
  font-family: "Latin Modern fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  size-adjust: 111.68%;
  ascent-override: 100.91%;
  descent-override: 25.97%;
  line-gap-override: 0%;
}

/* Metrics copied from lm-italic, for italic text. */
@font-face {
  font-family: "Latin Modern fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("Liberation Serif Italic"), local("Tinos Italic");
  size-adjust: 110.98%;
  ascent-override: 101.37%;
  descent-override: 26.13%;
  line-gap-override: 0%;
}

/* Metrics copied from lm-bold, for bold text. */
@font-face {
  font-family: "Latin Modern fallback";
  font-weight: 700;
  src: local("Times New Roman Bold"), local("Liberation Serif Bold"), local("Tinos Bold");
  size-adjust: 121.23%;
  ascent-override: 93.46%;
  descent-override: 24.33%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Latin Modern";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lm-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Latin Modern";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lm-bold.woff2") format("woff2");
}

@font-face {
  font-family: "LM Roman Caps";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lm-caps.woff2") format("woff2");
}

@font-face {
  font-family: "LM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lm-mono.woff2") format("woff2");
}

/* Metrics copied from lm-mono, against Liberation Mono. */
@font-face {
  font-family: "LM Mono fallback";
  src: local("Liberation Mono"), local("Courier New");
  size-adjust: 87.49%;
  ascent-override: 116.13%;
  descent-override: 36.12%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "LM Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lm-mono-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/kalam.woff2") format("woff2");
}

:root {
  --paper: #fffff8;
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --soft: #8a8a8a;
  --wash: #ebe7db;
  --rule: #bdb8ac;
  --hover: #5c5c5c;
  --veil: rgba(250, 249, 244, 0.84);
  --faded: #c4c1b8;
  --selection: rgba(138, 138, 134, 0.45);
  --caps: "LM Roman Caps", "Latin Modern", serif;
  --mono: "LM Mono", "LM Mono fallback", ui-monospace, monospace;
  --font-hand: "Kalam", cursive;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1a1a;
    --ink: #fffff8;
    --muted: #c9c7bd;
    --soft: #8f8d86;
    --wash: #2b2a26;
    --rule: #4d4b45;
    --hover: #b5b3aa;
    --veil: rgba(26, 26, 26, 0.84);
    --faded: #55534d;
    --selection: rgba(217, 172, 82, 0.45);
  }
}

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

::selection {
  background: var(--selection);
}

/* Scrollbars are a hairline of ink with no track, on the page and on
   anything that scrolls inside it. Chrome, Edge and Safari take the
   ::-webkit-scrollbar rules: a 12px hit area whose transparent border leaves
   a 2px line, 4px under the pointer. Firefox only takes a width and colours.
   Chrome drops the ::-webkit-scrollbar rules once scrollbar-width or
   scrollbar-color is set, so those stay behind the @supports. */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-thumb {
  background: var(--ink);
  background-clip: padding-box;
  border: 5px solid transparent;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  border-width: 4px;
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
  }
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Latin Modern", "Latin Modern fallback", serif;
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--hover);
}

.outside-mark {
  display: inline-block;
  font-size: 0.55em;
  line-height: 1;
  vertical-align: sub;
  -webkit-user-select: none;
  user-select: none;
}

.visually-hidden {
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

button {
  font: inherit;
  color: inherit;
}

[data-nav]:focus,
[data-nav]:focus-visible {
  outline: none;
  background: var(--wash);
  box-shadow: 0 0 0 0.18em var(--wash);
}

kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  color: inherit;
}

kbd::before {
  content: "<";
}

kbd::after {
  content: ">";
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 6%, 5rem) 3.5rem;
}

/* Nav */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.9em;
}

.site-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-mark .mark {
  display: block;
  width: auto;
  height: 1.6rem;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.search-open {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--caps);
  letter-spacing: 0.06em;
}

/* Title and meta */

.page-header {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.page-title {
  margin: 0;
  font-size: 2.1em;
  font-weight: 400;
  line-height: 1.2;
  max-width: 32rem;
}

.tagline {
  margin: 0;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.95em;
}

.page-meta {
  margin: 0.3rem 0 0;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.9em;
  color: var(--muted);
}

/* Abstract */

.abstract {
  margin: 3rem auto 0;
  max-width: 36rem;
}

.abstract-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.9em;
  font-weight: 700;
}

.abstract p {
  margin: 0;
  padding: 0 1.5rem;
  font-size: 0.92em;
  text-align: center;
}

.abstract code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--wash);
  padding: 0.05em 0.25em;
}

/* Contents */

/* In flow under the Abstract at every width: a 36rem block, a hairline down
   its left side and the section numbers in a column of their own. */
.page-toc {
  max-width: 36rem;
  margin: 2.5rem auto 0;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
  text-align: left;
}

.toc-title {
  margin: 0 0 0.6rem;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.9em;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
}

/* One numbering for both views: the list in flow and the dialog's list restart
   the counter the same way, step it the same way and print it the same way, so
   the two lists can never number an entry differently. Only the column and
   spacing differ, and they stay with each view. */
.toc ol,
.contents-list,
.contents-list ol {
  list-style: none;
  counter-reset: toc;
}

.toc li,
.contents-list li {
  counter-increment: toc;
  font-size: 0.95em;
  line-height: 1.45;
}

.toc li li,
.contents-list li li {
  font-size: 0.9em;
}

/* Numbers 1, 1.1, 2 … are written here, so headings and markup stay unnumbered. */
.toc a::before,
.contents-list a::before {
  content: counters(toc, ".");
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin: 0;
  padding: 0.16rem 0;
  color: var(--ink);
  text-decoration: none;
}

.toc ol {
  margin: 0;
  padding: 0;
}

.toc li li {
  padding-left: 1.4em;
}

.toc li li a {
  color: var(--muted);
}

.toc a::before {
  min-width: 2.4em;
}

/* One label per entry, formatted or not: it wraps as text, and may shrink
   below its longest word rather than clip in a narrow column. */
.toc-label {
  min-width: 0;
  overflow-wrap: break-word;
}

.toc a:hover {
  text-decoration: underline;
}

/* The way back up from a heading, inline after its words at every width. */
.to-toc {
  display: inline;
  position: relative;
  top: -0.12em;
  margin-left: 0.4em;
  font-size: 0.68em;
  font-weight: 400;
  color: var(--soft);
  text-decoration: none;
}

.prose :is(h1, h2):hover .to-toc,
.to-toc:hover,
.to-toc:focus-visible {
  color: var(--ink);
}

@media print {
  .page-toc {
    margin: 1.5rem 0 0;
    padding-left: 0;
    border-left: 0;
  }

  .to-toc {
    display: none;
  }
}

/* Prose */

.prose {
  margin-top: 2.8rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.prose p {
  margin: 0 0 1em;
  text-align: justify;
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.3em;
  font-weight: 700;
}

.prose h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.12em;
  font-weight: 700;
}

.prose h4 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1em;
  font-weight: 700;
}

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

.prose li {
  margin: 0 0 0.3em;
}

.prose li > p {
  margin: 0;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 1px solid var(--rule);
  font-style: italic;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
}

.prose :not(pre) > code {
  background: var(--wash);
  padding: 0.05em 0.25em;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95em;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0.5rem;
  text-align: left;
}

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

.prose sup {
  font-size: 0.7em;
  line-height: 0;
}

.prose sup a {
  text-decoration: none;
  padding: 0 0.1em;
}

.prose sup.fn-ref {
  user-select: none;
}

/* Figures */

.figure {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.figure img {
  /* The border sits outside the image's own width, so a stated width
     still shows the picture at the size it was drawn. */
  box-sizing: content-box;
  max-width: calc(100% - 2px);
  border: 1px solid var(--rule);
}

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

.figure figcaption {
  font-size: 0.9em;
  text-align: center;
  max-width: 30rem;
}

/* Listings */

.listing {
  margin: 1.6rem 0 2rem;
}

.listing-title {
  margin-bottom: 0.4rem;
  font-size: 0.9em;
  font-family: var(--mono);
}

.listing .highlight pre {
  margin: 0;
  counter-reset: listing-line;
  padding: 0.8rem 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.82em;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  text-align: left;
}

.listing code {
  font-family: inherit;
  font-size: 1em;
}

.listing .line {
  display: block;
  position: relative;
  counter-increment: listing-line;
  padding-left: 3.4em;
}

.listing .line::before {
  content: counter(listing-line);
  position: absolute;
  left: 0;
  width: 2.2em;
  text-align: right;
  color: var(--soft);
  user-select: none;
}

/* Footnotes */

.footnotes {
  margin-top: 1rem;
  font-size: 0.85em;
  line-height: 1.5;
}

.footnotes-rule {
  display: block;
  width: 8rem;
  border-top: 1px solid var(--ink);
  margin-bottom: 1rem;
}

.footnotes-list {
  margin: 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footnote p {
  margin: 0;
}

.footnote p + p {
  margin-top: 0.3em;
}

.footnote-backref {
  text-decoration: none;
}

.footnote {
  cursor: pointer;
}

.footnote:hover,
.footnote:hover .footnote-backref {
  color: var(--hover);
}

.flash-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  animation: flash-fade 500ms ease-in calc(1.4s + var(--lines) * 220ms) forwards;
}

[data-nav].flash-target:focus {
  background: none;
  box-shadow: none;
}

.flash-stroke {
  position: absolute;
  border: 0 solid transparent;
  border-image: var(--stroke) 0 48 fill / 0 0.34em / 0 stretch;
  transform-origin: left center;
  animation: follow-draw 220ms cubic-bezier(0.3, 0.7, 0.4, 1) calc(var(--line) * 220ms) both;
}

@keyframes flash-fade {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash-layer,
  .flash-stroke {
    animation: none;
  }
}

/* Linked from */

.links {
  margin-top: 3rem;
  padding-top: 1.6rem;
  /* A short centered rule; a ::before would be a flex item. */
  background: linear-gradient(var(--ink), var(--ink)) top center / 6rem 1px
    no-repeat;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.link-block {
  flex: 1 1 15rem;
  min-width: 0;
}

.link-block:focus {
  outline: none;
}

.block-title {
  margin: 0 0 0.8rem;
  font-size: 0.9em;
  font-weight: 400;
  font-family: var(--caps);
  letter-spacing: 0.06em;
}

.backlink-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.backlink-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.backlink-title {
  align-self: flex-start;
}

.backlink-excerpt {
  font-size: 0.85em;
  line-height: 1.45;
  color: var(--muted);
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.footer-rule {
  width: 6rem;
  border-top: 1px solid var(--ink);
  margin-bottom: 1.4rem;
}

main:has(.links) .footer-rule {
  display: none;
}

.signature {
  display: block;
  margin: 0 auto;
  width: 8rem;
  height: auto;
}

.colophon {
  margin: 0.6rem 0 0;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.85em;
  color: var(--muted);
}

.key-hints {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.1rem;
  font-size: 0.8em;
  color: var(--muted);
}

/* Overlays */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 12vh 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--veil);
}

.dialog {
  width: 100%;
  max-width: 34rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.4rem 1.6rem 1.1rem;
}

.keys-dialog {
  max-width: 28rem;
}

.dialog-label {
  display: block;
  margin: 0 0 0.4rem;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.85em;
  color: var(--muted);
}

.keys-dialog .dialog-label {
  text-align: center;
}

.search-input {
  width: 100%;
  margin: 0.4rem 0 0;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.25em;
}

/* The browser's own clear and search marks clash with the page; Esc closes. */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-results {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: 50vh;
  overflow-y: auto;
}

.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0.4rem;
  text-decoration: none;
}

.search-results a[aria-selected="true"] {
  background: var(--wash);
  box-shadow: inset 2px 0 var(--ink);
}

.result-tags {
  flex: 0 0 auto;
  font-family: var(--caps);
  letter-spacing: 0.05em;
  font-size: 0.85em;
  color: var(--muted);
}

.search-empty {
  margin: 1rem 0 0;
  font-style: italic;
}

.dialog-hints {
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  font-size: 0.8em;
  color: var(--muted);
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  font-size: 0.92em;
}

.keys-table th {
  padding: 0.32rem 0.4rem;
  width: 6.5rem;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}

.keys-table td {
  padding: 0.32rem 0.4rem;
}

/* The Contents overlay: the Page's structure floating over the text, framed
   top and bottom like a printed list. */

.contents-dialog {
  max-width: 28rem;
}

.contents-dialog .dialog-label {
  text-align: center;
}

.contents-list {
  margin: 0.8rem 0 0;
  padding: 0.35rem 0;
  max-height: 55vh;
  overflow-y: auto;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.contents-list ol {
  margin: 0;
  padding: 0;
}

.contents-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.28rem 0.4rem;
  color: var(--ink);
  text-decoration: none;
}

.contents-list a::before {
  min-width: 2.1em;
  font-style: normal;
}

.contents-list li li a {
  padding-left: 1.9em;
  font-style: italic;
}

/* The section being read, then the cursor the keys move over it. */
.contents-list a[aria-current="location"] {
  background: var(--wash);
}

.contents-list a[aria-current="location"]::before {
  color: var(--muted);
}

.contents-list a.is-cursor {
  background: var(--ink);
  color: var(--paper);
}

.contents-list a.is-cursor::before {
  color: inherit;
}

.contents-dialog:focus {
  outline: none;
}

/* Print: the list stays, and an open dialog must not print. Written after
   `.overlay`'s own `display: flex`, which weighs the same. */
@media print {
  .overlay {
    display: none;
  }
}

.follow-veil {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.following .page :not(.follow-lit, .follow-lit *) {
  color: var(--faded);
  text-decoration-color: var(--faded);
}

.following .page :is(img, svg):not(.follow-lit *) {
  opacity: 0.25;
}

:root {
  --stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' width='400' height='100' preserveAspectRatio='none'%3E%3Cpath d='M5.0 90.0 L3.0 78.0 L7.0 40.0 L13.0 18.0 L18.0 11.0 L20.0 10.5 L29.0 10.2 L38.0 10.1 L47.0 10.3 L56.0 10.2 L65.0 10.1 L74.0 10.1 L83.0 9.8 L92.0 9.3 L101.0 9.2 L110.0 9.3 L119.0 9.5 L128.0 9.7 L137.0 10.2 L146.0 10.4 L155.0 10.2 L164.0 10.2 L173.0 10.3 L182.0 10.3 L191.0 10.4 L200.0 10.6 L209.0 10.6 L218.0 10.3 L227.0 9.9 L236.0 9.7 L245.0 9.4 L254.0 9.2 L263.0 9.5 L272.0 9.8 L281.0 9.8 L290.0 9.8 L299.0 9.9 L308.0 9.9 L317.0 9.9 L326.0 10.3 L335.0 10.6 L344.0 10.7 L353.0 10.7 L362.0 10.6 L371.0 10.2 L380.0 9.8 L388.1 10.0 L390.8 19.1 L387.2 28.2 L389.6 37.3 L388.5 46.4 L385.1 55.6 L385.8 64.7 L386.6 73.8 L382.9 82.9 L379.7 92.0 L380.0 91.5 L371.0 91.8 L362.0 92.0 L353.0 92.0 L344.0 91.9 L335.0 92.0 L326.0 92.2 L317.0 92.2 L308.0 92.5 L299.0 92.8 L290.0 92.8 L281.0 92.5 L272.0 92.2 L263.0 92.0 L254.0 91.6 L245.0 91.4 L236.0 91.6 L227.0 91.7 L218.0 91.7 L209.0 91.6 L200.0 91.7 L191.0 91.6 L182.0 91.5 L173.0 91.7 L164.0 92.2 L155.0 92.5 L146.0 92.6 L137.0 92.8 L128.0 92.7 L119.0 92.4 L110.0 92.1 L101.0 92.0 L92.0 92.0 L83.0 91.9 L74.0 91.9 L65.0 91.9 L56.0 91.7 L47.0 91.4 L36.0 91.2 L25.0 91.4 L14.0 91.5Z' fill='%23f4cc2c' fill-opacity='0.52'%3E%3C/path%3E%3Cpath d='M5.0 90.0 L7.0 40.0 L18.0 11.0 L28.0 12.0 L16.0 91.0 Z' fill='%23f4cc2c' fill-opacity='0.16'%3E%3C/path%3E%3Crect x='32.0' y='58.3' width='342.0' height='2.4' fill='%23fffff8' fill-opacity='0.07'%3E%3C/rect%3E%3Crect x='32.0' y='64.0' width='342.0' height='2.1' fill='%23fffff8' fill-opacity='0.05'%3E%3C/rect%3E%3Crect x='32.0' y='64.9' width='342.0' height='2.0' fill='%23fffff8' fill-opacity='0.06'%3E%3C/rect%3E%3C/svg%3E");
}

.following .follow-lit {
  position: relative;
  z-index: 31;
}

mark.follow-hit,
mark.page-hit {
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: none;
  color: inherit;
}

/* A link's own text stays on one line while the reader follows it. A Page hit
   wraps as its words would, and inside `pre` it keeps the spaces it marks. */
mark.follow-hit {
  white-space: nowrap;
}

mark.follow-hit::before,
mark.page-hit::before {
  content: "";
  position: absolute;
  z-index: -1;
  --tilt: -0.7deg;
  inset: 0.06em -0.1em 0.1em -0.13em;
  border: 0 solid transparent;
  border-image: var(--stroke) 0 48 fill / 0 0.34em / 0 stretch;
  transform: rotate(var(--tilt));
  transform-origin: left center;
  pointer-events: none;
  animation: follow-draw 170ms cubic-bezier(0.3, 0.7, 0.4, 1) both;
}

.following .follow-current {
  border-image: var(--stroke) 0 48 fill / 0 0.34em / 0 0.1em 0 0.13em stretch;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Compositor-only wipe: a scaleX keeps the stroke off the paint path. The price
   is that the stretched torn ends squeeze while it draws. --undrawn is the
   fraction of the width still undrawn, so a continued stroke starts part-way. */
@keyframes follow-draw {
  from {
    transform: rotate(var(--tilt, 0deg)) scaleX(calc(1 - var(--undrawn, 1)));
  }
  to {
    transform: rotate(var(--tilt, 0deg)) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  mark.follow-hit::before,
  mark.page-hit::before {
    animation: none;
  }
}

/* In-Page Search paints every match with the pen and gives the one the reader
   is on the ink, so the active hit is never in doubt among the others. A
   common query can mark a Page hundreds of times, so its strokes are painted
   once and stand still: the wipe travels with Follow, one pen at a time. */
mark.page-hit::before {
  animation: none;
}

mark.page-hit.is-current {
  background: var(--ink);
  color: var(--paper);
}

mark.page-hit.is-current::before {
  display: none;
}

/* The bar is one component in two modes: Follow reads a link, Search reads the
   Page. Both wear the same line, prompt, status and hints. */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 32;
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
  padding: 0.6rem 1.5rem;
  font-family: var(--mono);
  line-height: 1.4;
}

.bar-line {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.bar-mode {
  padding: 0 0.5rem;
  background: var(--ink);
  color: var(--paper);
  text-transform: uppercase;
}

.bar-prompt {
  display: flex;
  align-items: baseline;
  min-width: 0;
}

.bar-input {
  flex: 0 1 12rem;
  width: 12rem;
  min-width: 2ch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  caret-color: var(--ink);
  font: inherit;
}

.bar-status {
  color: var(--soft);
  white-space: nowrap;
}

.follow-target {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.bar-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.8em;
  color: var(--soft);
}

@media (max-width: 40rem) {
  .bar {
    padding: 0.5rem 1rem;
  }

  .follow-target {
    display: none;
  }
}

/* Neither mode has anything to print. */
@media print {
  .bar,
  .follow-veil {
    display: none;
  }
}

/* Hover preview */

.preview {
  position: fixed;
  z-index: 15;
  width: 20rem;
  max-width: calc(100vw - 2rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.8rem 1rem;
  font-size: 0.85em;
  line-height: 1.45;
  pointer-events: none;
}

.preview-meta {
  margin: 0;
  font-family: var(--caps);
  letter-spacing: 0.05em;
  color: var(--muted);
}

.preview-title {
  margin: 0.2rem 0 0.35rem;
  font-weight: 700;
}

.preview-text {
  margin: 0;
}

/* Preview-only notice on unpublished Pages; a build never writes one */

.preview-note {
  margin: 1.4rem 0;
  border: 1px dashed var(--rule);
  padding: 0.7rem 1rem;
  font-size: 0.9em;
  color: var(--muted);
}

.preview-note-label {
  margin: 0;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.85em;
  color: var(--ink);
}

.preview-note p:last-child {
  margin: 0.25rem 0 0;
}

.preview-note code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--wash);
  padding: 0.05em 0.25em;
}

/* Problems a preview shows in place; a build never writes one */

.problem {
  border-bottom: 1px dashed var(--ink);
  padding: 0 0.15em;
  font-size: 0.9em;
}

.problem-label {
  margin: 0;
  font-family: var(--caps);
  letter-spacing: 0.06em;
  font-size: 0.8em;
  color: var(--muted);
}

.problem-block {
  margin: 1.4rem 0;
  border: 1px solid var(--ink);
  padding: 0.7rem 1rem;
  font-size: 0.9em;
}

.problem-block ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.problem-block li {
  margin: 0;
}

/* Not found */

.not-found {
  margin: 4rem 0;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 1rem;
  font-size: 2em;
  font-weight: 400;
}

@media (max-width: 40rem) {
  body {
    font-size: 1.08rem;
  }

  .page {
    padding: 2rem 1.25rem 3rem;
  }
}

@media (max-width: 28rem) {
  /* The mark alone links home; the name stays for screen readers. */
  .site-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.markdown-alert {
  --callout-rule: 1px solid currentColor;
  position: relative;
  margin: 1.6em 0;
  padding-left: 2.35em;
}

.prose .markdown-alert > :last-child {
  margin-bottom: 0;
}

.prose .markdown-alert-title {
  margin: 0 0 0.1em;
  font-weight: 700;
}

.markdown-alert::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.22em;
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: var(--callout-icon) center / contain no-repeat;
  mask: var(--callout-icon) center / contain no-repeat;
}

.markdown-alert::after {
  content: "";
  position: absolute;
  left: 0.77em;
  top: 1.7em;
  bottom: 0.35em;
  border-left: var(--callout-rule);
}

.markdown-alert-note {
  --callout-icon: url("icons/note.svg");
}

.markdown-alert-tip {
  --callout-icon: url("icons/tip.svg");
  --callout-rule: 1px dotted currentColor;
}

.markdown-alert-important {
  --callout-icon: url("icons/important.svg");
}

.markdown-alert-warning {
  --callout-icon: url("icons/warning.svg");
  --callout-rule: 1.5px solid currentColor;
}

.markdown-alert-caution {
  --callout-icon: url("icons/caution.svg");
  --callout-rule: 2px solid currentColor;
}

.markdown-alert-reminder {
  --callout-icon: url("icons/reminder.svg");
  --callout-rule: 1px dashed currentColor;
}

.markdown-alert-reminder > :not(.markdown-alert-title) {
  font-style: italic;
}

.markdown-alert-reminder .markdown-alert-title::after {
  content: "preview only \00b7  not published";
  margin-left: 0.6em;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.8em;
  opacity: 0.75;
}

@media print {
  .markdown-alert {
    break-inside: avoid;
  }
}

/* pygments: greys only */
pre { line-height: 125%; }
.prose .hll { background-color: #ededed }
.prose { background: transparent; }
.prose .c { color: #6B6B6B; font-style: italic } /* Comment */
.prose .k { color: #1A1A1A; font-weight: bold } /* Keyword */
.prose .n { color: #1A1A1A } /* Name */
.prose .o { color: #3D3D3D } /* Operator */
.prose .p { color: #3D3D3D } /* Punctuation */
.prose .ch { color: #6B6B6B; font-style: italic } /* Comment.Hashbang */
.prose .cm { color: #6B6B6B; font-style: italic } /* Comment.Multiline */
.prose .cp { color: #8A8A8A; font-style: italic } /* Comment.Preproc */
.prose .cpf { color: #6B6B6B; font-style: italic } /* Comment.PreprocFile */
.prose .c1 { color: #6B6B6B; font-style: italic } /* Comment.Single */
.prose .cs { color: #6B6B6B; font-style: italic } /* Comment.Special */
.prose .gd { color: #5C5C5C } /* Generic.Deleted */
.prose .ge { font-style: italic } /* Generic.Emph */
.prose .gr { color: #3D3D3D } /* Generic.Error */
.prose .gh { color: #1A1A1A; font-weight: bold } /* Generic.Heading */
.prose .gi { color: #1A1A1A } /* Generic.Inserted */
.prose .gp { color: #5C5C5C } /* Generic.Prompt */
.prose .gs { font-weight: bold } /* Generic.Strong */
.prose .gu { color: #3D3D3D; font-weight: bold } /* Generic.Subheading */
.prose .kc { color: #1A1A1A; font-weight: bold } /* Keyword.Constant */
.prose .kd { color: #1A1A1A; font-weight: bold } /* Keyword.Declaration */
.prose .kn { color: #1A1A1A; font-weight: bold } /* Keyword.Namespace */
.prose .kp { color: #1A1A1A; font-weight: bold } /* Keyword.Pseudo */
.prose .kr { color: #1A1A1A; font-weight: bold } /* Keyword.Reserved */
.prose .kt { color: #3D3D3D; font-weight: bold } /* Keyword.Type */
.prose .m { color: #4A4A4A } /* Literal.Number */
.prose .s { color: #4A4A4A } /* Literal.String */
.prose .na { color: #4A4A4A } /* Name.Attribute */
.prose .nb { color: #3D3D3D } /* Name.Builtin */
.prose .nc { color: #1A1A1A; font-weight: bold } /* Name.Class */
.prose .no { color: #3D3D3D } /* Name.Constant */
.prose .nd { color: #5C5C5C } /* Name.Decorator */
.prose .ni { color: #5C5C5C } /* Name.Entity */
.prose .ne { color: #1A1A1A; font-weight: bold } /* Name.Exception */
.prose .nf { color: #1A1A1A; font-weight: bold } /* Name.Function */
.prose .nl { color: #4A4A4A } /* Name.Label */
.prose .nn { color: #4A4A4A } /* Name.Namespace */
.prose .nx { color: #1A1A1A } /* Name.Other */
.prose .py { color: #4A4A4A } /* Name.Property */
.prose .nt { color: #3D3D3D } /* Name.Tag */
.prose .nv { color: #1A1A1A } /* Name.Variable */
.prose .ow { color: #1A1A1A; font-weight: bold } /* Operator.Word */
.prose .pm { color: #3D3D3D } /* Punctuation.Marker */
.prose .mb { color: #4A4A4A } /* Literal.Number.Bin */
.prose .mf { color: #4A4A4A } /* Literal.Number.Float */
.prose .mh { color: #4A4A4A } /* Literal.Number.Hex */
.prose .mi { color: #4A4A4A } /* Literal.Number.Integer */
.prose .mo { color: #4A4A4A } /* Literal.Number.Oct */
.prose .sa { color: #4A4A4A } /* Literal.String.Affix */
.prose .sb { color: #4A4A4A } /* Literal.String.Backtick */
.prose .sc { color: #4A4A4A } /* Literal.String.Char */
.prose .dl { color: #4A4A4A } /* Literal.String.Delimiter */
.prose .sd { color: #5C5C5C; font-style: italic } /* Literal.String.Doc */
.prose .s2 { color: #4A4A4A } /* Literal.String.Double */
.prose .se { color: #2E2E2E } /* Literal.String.Escape */
.prose .sh { color: #4A4A4A } /* Literal.String.Heredoc */
.prose .si { color: #2E2E2E } /* Literal.String.Interpol */
.prose .sx { color: #4A4A4A } /* Literal.String.Other */
.prose .sr { color: #5C5C5C } /* Literal.String.Regex */
.prose .s1 { color: #4A4A4A } /* Literal.String.Single */
.prose .ss { color: #4A4A4A } /* Literal.String.Symbol */
.prose .bp { color: #3D3D3D } /* Name.Builtin.Pseudo */
.prose .fm { color: #1A1A1A; font-weight: bold } /* Name.Function.Magic */
.prose .vc { color: #1A1A1A } /* Name.Variable.Class */
.prose .vg { color: #1A1A1A } /* Name.Variable.Global */
.prose .vi { color: #1A1A1A } /* Name.Variable.Instance */
.prose .vm { color: #1A1A1A } /* Name.Variable.Magic */
.prose .il { color: #4A4A4A } /* Literal.Number.Integer.Long */
@media (prefers-color-scheme: dark) {
pre { line-height: 125%; }
.prose .hll { background-color: #121212 }
.prose { background: transparent; }
.prose .c { color: #949494; font-style: italic } /* Comment */
.prose .k { color: #E5E5E5; font-weight: bold } /* Keyword */
.prose .n { color: #E5E5E5 } /* Name */
.prose .o { color: #C2C2C2 } /* Operator */
.prose .p { color: #C2C2C2 } /* Punctuation */
.prose .ch { color: #949494; font-style: italic } /* Comment.Hashbang */
.prose .cm { color: #949494; font-style: italic } /* Comment.Multiline */
.prose .cp { color: #757575; font-style: italic } /* Comment.Preproc */
.prose .cpf { color: #949494; font-style: italic } /* Comment.PreprocFile */
.prose .c1 { color: #949494; font-style: italic } /* Comment.Single */
.prose .cs { color: #949494; font-style: italic } /* Comment.Special */
.prose .gd { color: #A3A3A3 } /* Generic.Deleted */
.prose .ge { font-style: italic } /* Generic.Emph */
.prose .gr { color: #C2C2C2 } /* Generic.Error */
.prose .gh { color: #E5E5E5; font-weight: bold } /* Generic.Heading */
.prose .gi { color: #E5E5E5 } /* Generic.Inserted */
.prose .gp { color: #A3A3A3 } /* Generic.Prompt */
.prose .gs { font-weight: bold } /* Generic.Strong */
.prose .gu { color: #C2C2C2; font-weight: bold } /* Generic.Subheading */
.prose .kc { color: #E5E5E5; font-weight: bold } /* Keyword.Constant */
.prose .kd { color: #E5E5E5; font-weight: bold } /* Keyword.Declaration */
.prose .kn { color: #E5E5E5; font-weight: bold } /* Keyword.Namespace */
.prose .kp { color: #E5E5E5; font-weight: bold } /* Keyword.Pseudo */
.prose .kr { color: #E5E5E5; font-weight: bold } /* Keyword.Reserved */
.prose .kt { color: #C2C2C2; font-weight: bold } /* Keyword.Type */
.prose .m { color: #B5B5B5 } /* Literal.Number */
.prose .s { color: #B5B5B5 } /* Literal.String */
.prose .na { color: #B5B5B5 } /* Name.Attribute */
.prose .nb { color: #C2C2C2 } /* Name.Builtin */
.prose .nc { color: #E5E5E5; font-weight: bold } /* Name.Class */
.prose .no { color: #C2C2C2 } /* Name.Constant */
.prose .nd { color: #A3A3A3 } /* Name.Decorator */
.prose .ni { color: #A3A3A3 } /* Name.Entity */
.prose .ne { color: #E5E5E5; font-weight: bold } /* Name.Exception */
.prose .nf { color: #E5E5E5; font-weight: bold } /* Name.Function */
.prose .nl { color: #B5B5B5 } /* Name.Label */
.prose .nn { color: #B5B5B5 } /* Name.Namespace */
.prose .nx { color: #E5E5E5 } /* Name.Other */
.prose .py { color: #B5B5B5 } /* Name.Property */
.prose .nt { color: #C2C2C2 } /* Name.Tag */
.prose .nv { color: #E5E5E5 } /* Name.Variable */
.prose .ow { color: #E5E5E5; font-weight: bold } /* Operator.Word */
.prose .pm { color: #C2C2C2 } /* Punctuation.Marker */
.prose .mb { color: #B5B5B5 } /* Literal.Number.Bin */
.prose .mf { color: #B5B5B5 } /* Literal.Number.Float */
.prose .mh { color: #B5B5B5 } /* Literal.Number.Hex */
.prose .mi { color: #B5B5B5 } /* Literal.Number.Integer */
.prose .mo { color: #B5B5B5 } /* Literal.Number.Oct */
.prose .sa { color: #B5B5B5 } /* Literal.String.Affix */
.prose .sb { color: #B5B5B5 } /* Literal.String.Backtick */
.prose .sc { color: #B5B5B5 } /* Literal.String.Char */
.prose .dl { color: #B5B5B5 } /* Literal.String.Delimiter */
.prose .sd { color: #A3A3A3; font-style: italic } /* Literal.String.Doc */
.prose .s2 { color: #B5B5B5 } /* Literal.String.Double */
.prose .se { color: #D1D1D1 } /* Literal.String.Escape */
.prose .sh { color: #B5B5B5 } /* Literal.String.Heredoc */
.prose .si { color: #D1D1D1 } /* Literal.String.Interpol */
.prose .sx { color: #B5B5B5 } /* Literal.String.Other */
.prose .sr { color: #A3A3A3 } /* Literal.String.Regex */
.prose .s1 { color: #B5B5B5 } /* Literal.String.Single */
.prose .ss { color: #B5B5B5 } /* Literal.String.Symbol */
.prose .bp { color: #C2C2C2 } /* Name.Builtin.Pseudo */
.prose .fm { color: #E5E5E5; font-weight: bold } /* Name.Function.Magic */
.prose .vc { color: #E5E5E5 } /* Name.Variable.Class */
.prose .vg { color: #E5E5E5 } /* Name.Variable.Global */
.prose .vi { color: #E5E5E5 } /* Name.Variable.Instance */
.prose .vm { color: #E5E5E5 } /* Name.Variable.Magic */
.prose .il { color: #B5B5B5 } /* Literal.Number.Integer.Long */
}
