@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url(/fonts/inter-greek.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/mono-latin.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/mono-greek.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0370-03FF;
}

:root {
  color-scheme: dark;
  --ink: #030705;
  --raise: #07100c;
  --panel: #0a1410;
  --panel-2: #0e1b15;
  --line: rgb(190 240 212 / 0.09);
  --line-2: rgb(190 240 212 / 0.17);
  --line-3: rgb(190 240 212 / 0.3);
  --text: #e9f2ec;
  --soft: #c3d1c9;
  --muted: #98aba1;
  --faint: #7c9086;
  --life: #4ade80;
  --life-2: #86efac;
  --lime: #c6f25a;
  --teal: #2dd4bf;
  --sky: #6cc8f7;
  --amber: #fbbf24;
  --coral: #fb7185;
  --violet: #b7a2fb;
  /* What a design can be: certified in, certified out, or still open. */
  --in: #4ade80;
  --out: #fb7185;
  --open: #fbbf24;
  --chapter: #4ade80;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans Math", sans-serif;
  --mono:
    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Math", monospace;
  --gutter: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --wide: 84rem;
  /* From the edge of a figure to what is in it. */
  --inset: clamp(1.1rem, 2.6vw, 2.1rem);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --dock: 0px;
}
@media (max-width: 899px) {
  :root:has(.docked) {
    --dock: calc(3.9rem + env(safe-area-inset-bottom));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgb(120 160 140 / 0.35) transparent;
}
/* On a very large screen everything grows together, so the page still fills it. */
@media (min-width: 1921px) {
  html {
    font-size: min(0.8334vw, 1.4rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: var(--dock);
}
/* A little film grain keeps the large dark fields from banding. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Not on phones: Safari would take the grain for the top of the page and leave text showing behind the clock. */
@media (max-width: 899px) {
  body::after {
    content: none;
  }
}
h1,
h2,
h3,
h4,
h5,
p,
figure,
ul,
ol,
dl,
dd,
blockquote,
pre {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
::selection {
  background: rgb(74 222 128 / 0.3);
}
:focus-visible {
  outline: 2px solid var(--life);
  outline-offset: 3px;
  border-radius: 0.5rem;
}
:focus:not(:focus-visible) {
  outline: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.d1,
.d2,
.d3 {
  font-weight: 800;
  text-wrap: balance;
  color: #fff;
}
.d1 {
  font-size: clamp(3rem, 7.3vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.052em;
}
.d2 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.047em;
}
.d3 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
em.g {
  font-style: normal;
  color: var(--life);
}
.d1 em.g {
  background: linear-gradient(96deg, #d7f86a 2%, #86efac 30%, #4ade80 55%, #2dd4bf 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lede {
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.62;
  color: var(--soft);
  text-wrap: pretty;
}
.micro {
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}
.micro.asis {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
}
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.txt {
  color: var(--life-2);
  text-decoration: underline;
  text-decoration-color: rgb(134 239 172 / 0.35);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.txt:hover {
  text-decoration-color: var(--life-2);
}
code {
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.65rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.03);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.btn:hover {
  border-color: var(--line-3);
  background: rgb(255 255 255 / 0.06);
  transform: translateY(-1px);
}
.btn.go {
  background: #22c55e;
  border-color: #22c55e;
  color: #02140a;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08) inset,
    0 10px 44px -8px rgb(34 197 94 / 0.55);
}
.btn.go:hover {
  background: #4ade80;
  border-color: #4ade80;
}
.btn.sm {
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.8rem;
  font-size: 0.85rem;
}
.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Header ---------- */
/* Shared by the home page, the library and the error page. */
.kick {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.skip {
  position: fixed;
  z-index: 120;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  background: var(--life);
  color: #02140a;
  font-weight: 700;
  transform: translateY(-5rem);
}
.skip:focus {
  transform: none;
}
/* Edge to edge, so that a phone's status bar takes its color and the brand stands on the page's left edge. */
.top {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.scrolled .top,
.solid .top {
  background: rgb(4 10 7 / 0.94);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  min-height: 4.25rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.025em;
  color: #fff;
}
.brand .mark {
  margin-left: -0.4rem;
  width: 2.1rem;
  height: 1.7rem;
  overflow: visible;
}
.mark .body {
  fill: var(--life);
}
.mark .leg {
  fill: none;
  stroke: var(--life);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark .far {
  opacity: 0.45;
}
.mark .eye {
  fill: #02140a;
}
.chapters {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}
.chapters a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.chapters a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.04);
}
.chapters a[aria-current] {
  color: #fff;
  background: rgb(255 255 255 / 0.065);
}
.chapters .num {
  font-size: 0.68rem;
  color: var(--faint);
}
.joint {
  position: relative;
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--chapter);
  opacity: 0.55;
  transition:
    opacity 0.3s,
    box-shadow 0.3s;
}
.joint::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--chapter);
}
a:hover > .joint,
[aria-current] > .joint,
.joint.on {
  opacity: 1;
  box-shadow: 0 0 14px color-mix(in srgb, var(--chapter) 70%, transparent);
}
.tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  grid-column: 3;
  justify-self: end;
}
.find {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0 0.65rem 0 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 0.025);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.find:hover {
  color: #fff;
  border-color: var(--line-3);
}
.find svg {
  width: 1rem;
  height: 1rem;
}
kbd {
  font: 500 0.68rem/1 var(--mono);
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--line-2);
  border-radius: 0.4rem;
  color: var(--muted);
  background: rgb(255 255 255 / 0.03);
}
.progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}
.scrolled .progress {
  opacity: 1;
}
.progress i {
  display: block;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--lime), var(--life) 50%, var(--teal));
}
@media (max-width: 1180px) {
  .chapters .num {
    display: none;
  }
  .chapters a {
    padding-inline: 0.55rem;
  }
}
@media (max-width: 1020px) {
  .find span,
  .find kbd {
    display: none;
  }
  .find {
    padding: 0 0.8rem;
  }
}
.menu {
  display: none;
}
@media (max-width: 899px) {
  .chapters {
    display: none;
  }
  .scrolled .top,
  .solid .top {
    background: #050c08;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .bar {
    grid-template-columns: 1fr auto;
    min-height: 3.6rem;
  }
  .tools {
    grid-column: 2;
  }
  .menu {
    display: block;
  }
  .menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.6rem;
    border-radius: 0.85rem;
    color: #fff;
    cursor: pointer;
    list-style: none;
  }
  .menu summary::-webkit-details-marker {
    display: none;
  }
  .menu summary svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  .menu nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    max-height: calc(100svh - 4rem);
    padding: 0.4rem var(--gutter) 1.2rem;
    overflow: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--line-2);
    background: #050c08;
    box-shadow: 0 40px 60px -20px rgb(0 0 0 / 0.8);
  }
  .top:has(.menu[open]) {
    background: #050c08;
  }
  .menu nav a:not(.btn) {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
  }
  .menu nav .btn {
    margin-top: 1.1rem;
  }
}
@media (max-width: 599px) {
  .tools > .btn {
    display: none;
  }
}
/* Phones: the reader's contents and its next page, where a thumb reaches them. */
.dock {
  display: none;
}
@media (max-width: 899px) {
  .dock {
    position: fixed;
    z-index: 80;
    inset: auto 0 0;
    display: block;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line-2);
    background: #060f0b;
  }
  .dock ul {
    max-width: 31rem;
    margin-inline: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 0.2rem 0.4rem;
  }
  .dock a,
  .dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    width: 100%;
    min-height: 3.35rem;
    border: 0;
    border-radius: 0.95rem;
    background: none;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.01em;
  }
  .dock svg {
    width: 1.15rem;
    height: 1.15rem;
  }
  .dock [aria-current] {
    color: #fff;
    background: rgb(255 255 255 / 0.075);
  }
  .dock [aria-current] svg {
    color: var(--chapter);
  }
  .dock [aria-disabled="true"] {
    opacity: 0.35;
    pointer-events: none;
  }
}

/* ---------- Footer ---------- */
footer.end {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--faint);
  font-size: 0.82rem;
}
.end .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.6rem;
}
.end a:hover {
  color: #fff;
}
.end .brand {
  font-size: 0.9rem;
  margin-right: auto;
}

/* ---------- Search: the palette and the page ---------- */
/* Key hints are for people with keys. */
@media (hover: none) {
  .palette .keys kbd,
  .palette .keys span {
    display: none;
  }
}
dialog.palette {
  width: min(46rem, calc(100vw - 1.5rem));
  max-height: min(42rem, calc(100svh - 6rem));
  margin: 5rem auto auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 1.3rem;
  background: rgb(7 16 12 / 0.97);
  color: var(--text);
  box-shadow: 0 40px 120px -20px #000;
  overflow: hidden;
}
dialog.palette[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.28s var(--ease);
}
dialog.palette::backdrop {
  background: rgb(0 4 2 / 0.72);
  backdrop-filter: blur(6px);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }
}
.q {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.q svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--life);
  flex: none;
}
.q input {
  flex: 1;
  min-width: 0;
  min-height: 3.2rem;
  border: 0;
  outline: 0;
  background: none;
  font-size: 1.06rem;
}
.q input::placeholder {
  color: var(--faint);
}
.q input::-webkit-search-cancel-button {
  display: none;
}
.hits {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.5rem;
}
.hits .note {
  padding: 1rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hit {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  scroll-margin: 3.5rem;
}
.hit:hover,
.hit[aria-selected="true"] {
  background: rgb(74 222 128 / 0.085);
}
.hit .where {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.74rem;
  color: var(--faint);
}
.hit .where b {
  font: 500 0.72rem/1.4 var(--mono);
  color: var(--life-2);
}
.hit strong {
  display: block;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.35;
}
.hit p {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
mark {
  background: rgb(198 242 90 / 0.2);
  color: #eaffb0;
  border-radius: 0.2rem;
  padding: 0 0.1em;
}
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--faint);
}
.keys a {
  margin-left: auto;
  color: var(--life-2);
}
.esc {
  min-height: 2rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 0.5rem;
  background: none;
  font: 500 0.7rem/1 var(--mono);
  color: var(--muted);
}
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.note .btnrow {
  margin-top: 0.9rem;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.path h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.7rem 0.6rem;
}
.suggest button {
  min-height: 2.3rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 99rem;
  background: none;
  font-size: 0.84rem;
  color: var(--soft);
}
.suggest button:hover {
  border-color: var(--life);
  color: #fff;
}
.searchpage {
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: 5rem;
  max-width: 60rem;
}
.searchpage form {
  margin-top: 2rem;
}
.searchpage .q {
  border: 1px solid var(--line-2);
  border-radius: 1.2rem;
  background: var(--raise);
}
.searchpage .q:focus-within {
  border-color: var(--life);
}
.searchpage small {
  display: block;
  margin-top: 0.7rem;
  color: var(--faint);
}
#status {
  margin: 1.6rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
#results {
  margin-inline: -0.85rem;
}
#results .btn {
  margin: 1rem 0.85rem;
}

/* ---------- Library ---------- */
.lib-head {
  position: relative;
  padding: clamp(8rem, 15vw, 11.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
}
.lib-head .lede {
  max-width: 44rem;
  margin: 1.4rem 0 1.8rem;
}
.lattice {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(134 239 172 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(134 239 172 / 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 85% at 30% 10%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 85% at 30% 10%, #000 10%, transparent 75%);
}
.glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}
.paths {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  margin-top: 2.4rem;
}
@media (min-width: 1000px) {
  .paths.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.path {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.03), rgb(255 255 255 / 0.008));
}
.path h2 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.path p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.path .steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 0.55rem;
  font: 500 0.74rem/1.2 var(--mono);
  color: var(--life-2);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
a.tag:hover {
  border-color: var(--life);
  background: rgb(74 222 128 / 0.08);
}
.filter {
  position: sticky;
  top: 5.2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.2rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 1rem;
  background: rgb(5 14 10 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.filter svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--life);
  flex: none;
}
.filter input {
  flex: 1;
  min-width: 0;
  min-height: 2.9rem;
  border: 0;
  outline: 0;
  background: none;
}
.filter:focus-within {
  border-color: var(--life);
}
.filter output {
  font: 500 0.74rem/1 var(--mono);
  color: var(--faint);
  white-space: nowrap;
}
.shelf {
  padding-top: clamp(2.4rem, 5vw, 4rem);
  scroll-margin-top: 4rem;
}
.shelf > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1rem;
  margin-bottom: 1.1rem;
}
.shelf h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.shelf header span {
  color: var(--faint);
  font: 500 0.76rem/1.3 var(--mono);
}
.cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.026), rgb(255 255 255 / 0.006));
  transition:
    transform 0.4s var(--ease),
    border-color 0.25s,
    background-color 0.25s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgb(74 222 128 / 0.42);
  background-color: rgb(74 222 128 / 0.035);
}
.card .row {
  display: flex;
  justify-content: space-between;
  font: 500 0.74rem/1.4 var(--mono);
  color: var(--faint);
}
.card .row b {
  font-weight: 500;
  color: var(--life-2);
}
.card strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
}
.card p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Reader ---------- */
.reader {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 3.2rem;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(6.6rem, 11vw, 8.4rem) var(--gutter) 4rem;
}
@media (min-width: 1100px) {
  .reader {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
  }
}
@media (min-width: 1440px) {
  .reader {
    grid-template-columns: 15.5rem minmax(0, 1fr) 16.5rem;
  }
}
.rail {
  display: none;
  position: sticky;
  top: 6.4rem;
  max-height: calc(100svh - 8rem);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 0.83rem;
  line-height: 1.4;
  padding: 0 0.6rem 2rem 0;
  scrollbar-width: thin;
  align-self: start;
}
.rail .micro {
  margin-bottom: 0.8rem;
}
.rail a {
  display: block;
  padding: 0.38rem 0.75rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.rail a:hover {
  color: #fff;
}
.rail a[aria-current] {
  color: #fff;
  border-left-color: var(--life);
  background: linear-gradient(90deg, rgb(74 222 128 / 0.1), transparent);
}
.rail a b {
  font: 500 0.72rem/1 var(--mono);
  color: var(--faint);
  margin-right: 0.4rem;
}
.rail .h3 {
  padding-left: 1.45rem;
  font-size: 0.79rem;
}
@media (min-width: 1100px) {
  .rail.toc {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
}
@media (min-width: 1440px) {
  .rail.part {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }
  .reader article {
    grid-column: 2;
  }
  .rail.toc {
    grid-column: 3;
  }
}
.reading {
  min-width: 0;
  grid-row: 1;
}
.reading > header {
  position: relative;
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.65rem;
  font: 500 0.76rem/1.4 var(--mono);
  color: var(--faint);
}
.crumbs a {
  color: var(--life-2);
}
.reading h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.facts b {
  color: var(--soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.inline-toc {
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--raise);
}
.inline-toc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.1rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.inline-toc summary::-webkit-details-marker {
  display: none;
}
.inline-toc summary small {
  font: 500 0.76rem/1 var(--mono);
  color: var(--faint);
}
.inline-toc > div {
  display: grid;
  padding: 0.2rem 0.6rem 0.9rem;
  font-size: 0.9rem;
}
.inline-toc a {
  padding: 0.42rem 0.6rem;
  color: var(--muted);
  border-radius: 0.6rem;
}
.inline-toc a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.04);
}
.inline-toc .h3 {
  padding-left: 1.6rem;
}
@media (min-width: 1100px) {
  .inline-toc {
    display: none;
  }
}
.prose {
  font-size: 1.02rem;
  line-height: 1.74;
  color: #d3ded8;
  overflow-wrap: break-word;
}
.prose > * {
  max-width: 47rem;
}
.prose > .wide {
  max-width: none;
}
.prose p + p,
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
  position: relative;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.22;
  text-wrap: balance;
  scroll-margin-top: 6.4rem;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 750;
  margin-top: 2.6em;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.prose h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 2em;
}
.prose h4,
.prose h5 {
  font-size: 1.06rem;
  font-weight: 700;
  margin-top: 1.8em;
}
.prose .anchor::before {
  content: "#";
}
.prose .anchor {
  position: absolute;
  right: 100%;
  padding-right: 0.45rem;
  color: var(--faint);
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s;
}
.prose :is(h2, h3, h4, h5):hover .anchor,
.prose .anchor:focus-visible {
  opacity: 1;
}
.prose strong {
  color: #f3f8f5;
  font-weight: 650;
}
.prose ul,
.prose ol {
  padding-left: 1.4rem;
}
.prose ul {
  list-style: none;
}
.prose ul > li {
  position: relative;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0.72em;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  border: 1.5px solid var(--life);
}
.prose ol {
  list-style: decimal;
}
.prose ol > li::marker {
  color: var(--life-2);
  font: 500 0.86em var(--mono);
}
.prose li + li {
  margin-top: 0.55em;
}
.prose li > :is(ul, ol, p) {
  margin-top: 0.5em;
}
.prose li > p:first-child {
  margin-top: 0;
}
.prose code {
  font-size: 0.86em;
  padding: 0.12em 0.36em;
  border-radius: 0.4em;
  background: rgb(134 239 172 / 0.075);
  border: 1px solid rgb(134 239 172 / 0.08);
  color: #c9f2d6;
  overflow-wrap: anywhere;
}
.prose pre {
  max-width: none;
  overflow: auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #050d09;
  font: 400 0.82rem/1.65 var(--mono);
  color: #cfe5d7;
  tab-size: 2;
}
.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  overflow-wrap: normal;
}
.code {
  position: relative;
  max-width: none !important;
}
.tk-c {
  color: #7f988b;
}
.tk-s {
  color: #d8f39a;
}
.tk-n {
  color: #8fd6fb;
}
.tk-k {
  color: #86efac;
}
.code .copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  min-height: 2.1rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: 0.6rem;
  background: rgb(8 18 13 / 0.92);
  font: 500 0.72rem/1 var(--mono);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.2s;
}
.code:hover .copy,
.code .copy:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .code .copy {
    opacity: 1;
  }
}
.prose blockquote {
  padding: 0.3rem 0 0.3rem 1.2rem;
  border-left: 2px solid var(--life);
  color: var(--soft);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2.6em;
}
.tablewrap {
  max-width: none !important;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgb(6 14 10 / 0.75);
  overflow: hidden;
}
.tablescroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.tablescroll:focus-visible {
  outline-offset: -2px;
}
.prose table {
  width: 100%;
  min-width: var(--tw, 34rem);
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 0.72rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th {
  font-weight: 650;
  color: #fff;
  background: rgb(134 239 172 / 0.05);
  white-space: nowrap;
}
.prose table.headless thead {
  display: none;
}
.prose td:first-child {
  color: #eef5f1;
}
.prose tbody tr:hover {
  background: rgb(255 255 255 / 0.018);
}
.prose a:not(.anchor) {
  color: var(--life-2);
  text-decoration: underline;
  text-decoration-color: rgb(134 239 172 / 0.28);
  text-underline-offset: 0.2em;
}
.prose a:not(.anchor):hover {
  text-decoration-color: currentcolor;
}
.prose a.id {
  color: #a9e9c0;
  text-decoration-style: dotted;
}
:is(.prose, .fig) tr:target > td,
.prose li:target {
  background: rgb(198 242 90 / 0.09);
}
.prose :target {
  scroll-margin-top: 7rem;
}
.ev {
  display: inline-block;
  padding: 0.06em 0.42em;
  border-radius: 0.4em;
  font: 600 0.72em/1.5 var(--mono);
  letter-spacing: 0.04em;
  vertical-align: 0.06em;
  border: 1px solid;
  cursor: help;
}
.ev-fact {
  color: #8fd6fb;
  border-color: rgb(108 200 247 / 0.32);
  background: rgb(108 200 247 / 0.08);
}
.ev-design {
  color: #86efac;
  border-color: rgb(74 222 128 / 0.32);
  background: rgb(74 222 128 / 0.07);
}
.ev-hypothesis {
  color: #c9b9fd;
  border-color: rgb(183 162 251 / 0.34);
  background: rgb(183 162 251 / 0.09);
}
.ev-target {
  color: #fcd25b;
  border-color: rgb(251 191 36 / 0.34);
  background: rgb(251 191 36 / 0.08);
}
.ev-open {
  color: #fda4b1;
  border-color: rgb(251 113 133 / 0.34);
  background: rgb(251 113 133 / 0.08);
}
.ev-s,
.ev-f,
.ev-m {
  color: var(--soft);
  border-color: var(--line-2);
}
.ev-f {
  color: #8fe9dc;
  border-color: rgb(45 212 191 / 0.34);
}
.ev-m {
  color: #f5a8d4;
  border-color: rgb(244 114 182 / 0.36);
}
.neighbors {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  margin-top: 4rem;
}
.neighbors a {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--raise);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  transition:
    border-color 0.25s,
    transform 0.4s var(--ease);
}
.neighbors a:hover {
  border-color: rgb(74 222 128 / 0.45);
  transform: translateY(-2px);
}
.neighbors small {
  display: block;
  margin-bottom: 0.3rem;
  font: 500 0.74rem/1.4 var(--mono);
  color: var(--faint);
}
.neighbors .next {
  text-align: right;
}
/* A definition card, shown when the pointer rests on an identifier. */
.defn {
  position: absolute;
  z-index: 100;
  width: min(26rem, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 1rem;
  background: rgb(9 20 15 / 0.98);
  box-shadow: 0 24px 70px -16px #000;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--soft);
  animation: pop 0.2s var(--ease);
}
.defn b {
  display: block;
  margin-bottom: 0.25rem;
  font: 600 0.76rem/1.4 var(--mono);
  color: var(--life-2);
}
.sheet {
  width: 100vw;
  max-width: 100vw;
  max-height: 78svh;
  margin: auto 0 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-width: 1px 0 0;
  border-radius: 1.4rem 1.4rem 0 0;
  background: #07110c;
  color: var(--text);
}
.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: rise 0.32s var(--ease);
}
@keyframes rise {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
.sheet::backdrop {
  background: rgb(0 4 2 / 0.66);
}
.sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.sheet nav {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 0.6rem calc(1rem + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}
.sheet nav a {
  display: block;
  padding: 0.65rem 0.7rem;
  border-radius: 0.7rem;
  color: var(--soft);
}
.sheet nav .h3 {
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.sheet .micro {
  padding: 1rem 0.7rem 0.4rem;
}

.simple {
  min-height: 70svh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 1.4rem;
  padding-block: 9rem 5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .top,
  .dock,
  .rail,
  .inline-toc,
  .neighbors,
  footer.end,
  body::after {
    display: none !important;
  }
  body,
  html {
    background: #fff;
    color: #000;
  }
  .prose,
  .prose *,
  .reading h1 {
    color: #000 !important;
  }
}
