@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Roboto+Mono:wght@400;500&display=swap");
:root {
  --ink: #000;
  --ink-2: #333;
  --ink-3: #777;
  --ink-4: #bbb;
  --paper: #fff;
  --wash: #f5f5f5;
  --font: "Roboto", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --mute: #999;
  --col: 680px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

:root[data-theme=dark] {
  --ink: #f2f2f2;
  --ink-2: #c8c8c8;
  --ink-3: #8a8a8a;
  --ink-4: #3a3a3a;
  --paper: #0b0b0b;
  --wash: #181818;
  --mute: #666;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle {
  position: absolute;
  right: calc(100% + 1.1rem);
  top: calc(50% - 0.5rem);
  padding: 0;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  cursor: pointer;
  transition: transform 600ms var(--ease);
}
.theme-toggle:hover {
  transform: rotate(-30deg);
}
.theme-toggle:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

:root[data-theme=dark] .theme-toggle {
  transform: rotate(180deg);
}

:root[data-theme=dark] .theme-toggle:hover {
  transform: rotate(150deg);
}

::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0));
  animation: theme-wipe 650ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes theme-wipe {
  to {
    clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 100%) var(--vt-y, 0));
  }
}
.column {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.index-head {
  padding: 18vh 0 3.5rem;
}
.index-head h1 {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.index-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-3);
  font-size: 1rem;
}

.empty {
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.year {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--ink-4);
}
.year:last-child {
  border-bottom: 1px solid var(--ink-4);
}

.year-label {
  flex: 0 0 3.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 2.4rem;
}

.posts {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--ink);
}
.post-link .t {
  position: relative;
  font-size: 1.05rem;
  transition: transform 450ms var(--ease);
}
.post-link .t::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 450ms var(--ease);
}
.post-link .leader {
  flex: 1;
  border-bottom: 1px dotted var(--ink-4);
  transform: translateY(-0.3em);
  transition: border-color 300ms;
}
.post-link .d {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.post-link:hover, .post-link:focus-visible {
  outline: none;
}
.post-link:hover .t, .post-link:focus-visible .t {
  transform: translateX(6px);
}
.post-link:hover .t::after, .post-link:focus-visible .t::after {
  transform: scaleX(1);
  transform-origin: left;
}
.post-link:hover .leader, .post-link:focus-visible .leader {
  border-color: var(--ink);
}
.post-link:hover .d, .post-link:focus-visible .d {
  color: var(--ink);
}

.posts:hover .post-link:not(:hover) {
  opacity: 0.45;
}

.post-link {
  transition: opacity 300ms;
}

.post-sub {
  display: block;
  margin: -0.1rem 0 0.4rem;
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 10;
}

.post-head {
  padding: 14vh 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink-4);
}
.post-head .back {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-3);
  text-decoration: none;
}
.post-head .back:hover {
  color: var(--ink);
}
.post-head h1 {
  margin: 1.25rem 0 0.75rem;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.post-head .dek {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-3);
}
.post-head .meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.post-head .meta > * + *::before {
  content: "  ·  ";
  white-space: pre;
}

main.column {
  padding-bottom: 25vh;
}

.prose {
  position: relative;
}
.prose h2, .prose h3 {
  color: var(--ink);
  line-height: 1.3;
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 3rem 0 1rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2.25rem 0 0.75rem;
}
.prose p, .prose ul, .prose ol {
  margin: 0 0 1.4rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-4);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms;
}
.prose a:hover {
  text-decoration-color: var(--ink);
}
.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--ink);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--wash);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.prose pre {
  background: var(--wash);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.prose hr {
  border: 0;
  text-align: center;
  margin: 3rem 0;
}
.prose hr::before {
  content: "· · ·";
  color: var(--ink-3);
  letter-spacing: 0.5em;
}
.prose figure {
  margin: 2.5rem 0;
}
.prose figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.5;
}

.prose a.fn-ref {
  position: relative;
  display: inline-block;
  margin-left: 0.05em;
  padding: 0 0.3em;
  font-family: var(--mono);
  font-size: 0.65em;
  line-height: 1.5;
  vertical-align: super;
  text-decoration: none;
  color: var(--ink);
  border-radius: 2px;
  transition: background 200ms, color 200ms;
}
.prose a.fn-ref:hover, .prose a.fn-ref.hl {
  background: var(--ink);
  color: var(--paper);
}

.footnotes, .references {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-4);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-3);
}
.footnotes .fn-label, .references .fn-label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.footnotes ol, .references ol {
  margin: 0;
  padding-left: 1.5rem;
}
.footnotes li, .references li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}
.footnotes li::marker, .references li::marker {
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--ink);
}
.footnotes li:target, .references li:target {
  color: var(--ink);
}
.footnotes a, .references a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.footnotes a.fn-back, .references a.fn-back {
  text-decoration: none;
}
.footnotes code, .references code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--wash);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.has-sidenotes .footnotes, .has-sidenotes .references {
  display: none;
}

.sidenote {
  display: none;
}

.has-sidenotes .sidenote {
  display: block;
  position: absolute;
  left: calc(100% + 2.5rem);
  width: 210px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-3);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), color 200ms;
}
.has-sidenotes .sidenote.in {
  opacity: 1;
  transform: none;
}
.has-sidenotes .sidenote.hl {
  color: var(--ink);
}
.has-sidenotes .sidenote .sn-num {
  margin-right: 0.45em;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink);
}
.has-sidenotes .sidenote code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--wash);
  padding: 0.05em 0.25em;
  border-radius: 3px;
}
.has-sidenotes .sidenote a {
  color: var(--ink);
}

.fx-bit {
  position: absolute;
  pointer-events: none;
  z-index: 20;
}

.fx-shrug {
  display: inline-block;
  margin-left: 0.4em;
  font-family: var(--mono);
  color: var(--ink);
  white-space: nowrap;
}

.fx-scribble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.6em;
  height: 3em;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}
.fx-scribble path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.prose a.cite {
  font-family: var(--mono);
  font-size: 0.75em;
  text-decoration: none;
  color: var(--ink-3);
  padding: 0 0.1em;
  border-radius: 2px;
  transition: color 200ms, background 200ms;
}
.prose a.cite:hover, .prose a.cite:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.cite-pop {
  position: absolute;
  z-index: 30;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.8rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(-100% + 6px));
  transition: opacity 200ms, transform 350ms var(--ease);
}
.cite-pop.on {
  opacity: 1;
  transform: translateY(-100%);
  pointer-events: auto;
}
.cite-pop a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.cite-pop em {
  color: var(--ink);
}

.references li {
  scroll-margin-top: 30vh;
}
.references em {
  color: var(--ink);
  font-style: italic;
}
.references .ref-backs {
  font-family: var(--mono);
  font-size: 0.8em;
}
.references .ref-backs a {
  text-decoration: none;
}

.has-sidenotes .references {
  display: block;
}

.footnotes + .references, .references + .references {
  margin-top: 2rem;
}

.streaming .tok {
  opacity: 0;
}

.streaming .tok.on {
  opacity: 1;
  transition: opacity 180ms;
}

.stream-caret {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--ink);
  animation: caret-blink 900ms steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}
.decode .dc-panel {
  padding: 1.25rem 1.25rem 0.9rem;
  background: var(--wash);
  border-radius: 4px;
}

.dc-text {
  min-height: 3.4em;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}
.dc-text .dc-prompt {
  color: var(--ink-3);
}
.dc-text .dc-new {
  animation: dc-in 700ms var(--ease);
}

@keyframes dc-in {
  from {
    background: var(--ink);
    color: var(--paper);
  }
  to {
    background: transparent;
    color: var(--ink);
  }
}
.dc-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: caret-blink 900ms steps(1) infinite;
}

.dc-dist {
  display: grid;
  gap: 3px;
  margin-bottom: 0.8rem;
}

.dc-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr 2.8rem;
  align-items: center;
  gap: 0.75rem;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  border-radius: 2px;
  transition: background 80ms, color 80ms;
}
.dc-row .dc-tok {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-row .dc-p {
  text-align: right;
  color: var(--ink-3);
}
.dc-row .dc-bar {
  height: 8px;
  background: var(--paper);
}
.dc-row .dc-bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 380ms var(--ease);
}
.dc-row.on, .dc-row.picked {
  background: var(--ink);
  color: var(--paper);
}
.dc-row.on .dc-p, .dc-row.picked .dc-p {
  color: var(--paper);
}
.dc-row.on .dc-bar, .dc-row.picked .dc-bar {
  background: var(--ink-2);
}
.dc-row.on .dc-bar i, .dc-row.picked .dc-bar i {
  background: var(--paper);
}

.dc-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.dc-ctrl button {
  padding: 0.15rem 0.55rem;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-4);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, color 200ms;
}
.dc-ctrl button:hover {
  border-color: var(--ink);
}
.dc-ctrl button:active {
  background: var(--ink);
  color: var(--paper);
}
.dc-ctrl .dc-count {
  margin-left: auto;
}

@media (max-width: 600px) {
  .dc-row {
    grid-template-columns: 5.5rem 1fr 2.6rem;
    gap: 0.5rem;
  }
}
.cite-post {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-4);
  font-size: 0.9rem;
  color: var(--ink-3);
}
.cite-post .fn-label {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.cite-post .cp-plain {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.cite-post .cp-plain em {
  color: var(--ink);
}
.cite-post .cp-bib {
  position: relative;
}
.cite-post pre {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--wash);
  border-radius: 4px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.cite-post .cp-copy {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.15rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-4);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 200ms, background 250ms, color 250ms;
}
.cite-post .cp-copy:hover {
  border-color: var(--ink);
}
.cite-post .cp-copy.done {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cite-post .cp-copy span {
  display: inline-block;
}
.cite-post .cp-copy.done span {
  animation: cp-pop 450ms var(--ease);
}

@keyframes cp-pop {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}
.anim {
  position: relative;
}
.anim canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  background: var(--wash);
  border-radius: 4px;
  cursor: pointer;
}
.anim.wide {
  margin-left: -6rem;
  margin-right: -6rem;
}
.anim .anim-state {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.anim:hover .anim-state {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.toc {
  display: none;
}

@media (min-width: 1200px) {
  .toc {
    display: block;
    position: fixed;
    top: 50%;
    left: max(1rem, 50% - var(--col) / 2 - 250px);
    width: 210px;
    transform: translateY(-50%);
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 600ms;
  }
  .toc.ready {
    opacity: 1;
  }
  .toc .toc-title {
    display: block;
    margin-bottom: 1rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
  }
  .toc ol {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
  }
  .toc .track, .toc .fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
  }
  .toc .track {
    bottom: 0;
    background: var(--ink-4);
  }
  .toc .fill {
    height: 100%;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: top;
  }
  .toc li {
    margin: 0;
  }
  .toc li.h3 {
    padding-left: 0.9rem;
    font-size: 0.78rem;
  }
  .toc a {
    display: block;
    padding: 0.3rem 0;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 250ms, transform 450ms var(--ease);
  }
  .toc a:hover {
    color: var(--ink);
  }
  .toc a.active {
    color: var(--ink);
    transform: translateX(4px);
  }
  .progress {
    display: none;
  }
}
@media (max-width: 900px) {
  .anim.wide {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  .index-head {
    padding-top: 10vh;
  }
  .index-head h1, .post-head h1 {
    font-size: 2rem;
  }
  .year {
    flex-direction: column;
    gap: 0.25rem;
  }
  .year-label {
    flex: none;
    line-height: 1.5;
  }
  .post-link .leader {
    display: none;
  }
  .post-link {
    flex-direction: column;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/*# sourceMappingURL=blog.css.map */
