@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Pixel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/geist-pixel-square.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  background: light-dark(#f9f9f1, #14161e);
  color: light-dark(#14161e, #f9f9f1);
  scrollbar-width: thin;
}
body {
  max-width: 40em;
  margin: 4em auto;
  padding: 0 1em;
  font:
    15px/1.6 "Geist Mono",
    monospace;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
small a:hover {
  animation:
    glitch 0.25s steps(1),
    blink 0.25s steps(1);
}
@keyframes glitch {
  0% {
    text-shadow: 2px 0;
  }
  25% {
    text-shadow: -2px -1px;
  }
  75% {
    text-shadow:
      1px 1px,
      -1px 0;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
}
.terminal {
  width: min(36em, 100% - 2em);
  padding: 1em;
  border: 2px solid;
  box-shadow: 4px 4px 0;
  color: inherit;
  background: light-dark(#f9f9f1, #14161e);
  font: inherit;
}
.terminal::backdrop {
  background: repeating-conic-gradient(
      #14161e 0 25%,
      transparent 0 50%,
      light-dark(transparent, #14161e) 0 75%,
      transparent 0
    )
    0 0 / 4px 4px;
}
.terminal .output {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 1ch;
  white-space: pre-wrap;
}
.terminal .output::-webkit-scrollbar {
  width: 6px;
}
.terminal .output::-webkit-scrollbar-thumb {
  background: currentColor;
}
.terminal .output::-webkit-scrollbar-track {
  background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 4px 4px;
}
@supports not selector(::-webkit-scrollbar) {
  .terminal .output {
    scrollbar-width: thin;
    scrollbar-color: currentColor transparent;
  }
}
.terminal label {
  display: flex;
  gap: 1ch;
}
.terminal input {
  flex: 1;
  padding: 0;
  border: none;
  outline: none;
  color: inherit;
  background: none;
  font: inherit;
}
@media (prefers-reduced-motion: reduce) {
  small a:hover {
    animation: none;
  }
}
h1,
h2 {
  font-family: "Geist Pixel", monospace;
}
h1 {
  font-size: 2.4em;
}
h2 {
  margin-top: 2em;
  font-size: 1.8em;
}
h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  font-size: 1em;
}
.meta {
  white-space: nowrap;
  font-weight: normal;
  font-size: 0.9em;
  opacity: 0.75;
}
.avatar {
  display: block;
  image-rendering: pixelated;
}
.links {
  list-style: none;
  padding: 0;
}
:root:has(.theme [value="dark"]:checked) {
  color-scheme: dark;
}
:root:has(.theme [value="light"]:checked) {
  color-scheme: light;
}
.theme {
  position: fixed;
  top: 1em;
  right: 1em;
}
.theme label {
  cursor: pointer;
}
.theme label::before {
  content: "[";
}
.theme label::after {
  content: "]";
}
.theme input {
  position: absolute;
  opacity: 0;
}
.theme label:has(:checked) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-color-scheme: light) {
  .theme:not(:has(:checked)) label:has([value="light"]) {
    display: none;
  }
}
@media (prefers-color-scheme: dark) {
  .theme:not(:has(:checked)) label:has([value="dark"]) {
    display: none;
  }
}
.theme label:hover,
.theme:has(:focus-visible) label {
  text-decoration: underline;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  mask-repeat: no-repeat;
  image-rendering: pixelated;
}
.dither p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 2ch;
}
.button,
.choice {
  padding: 0;
  border: none;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}
.button::before,
.choice::before {
  content: "[";
}
.button::after,
.choice::after {
  content: "]";
}
.button input,
.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
}
.button:hover,
.choice:hover,
.button:focus-visible,
.button:has(:focus-visible),
.choice:has(:focus-visible) {
  text-decoration: underline;
}
.choice:has(:checked) {
  color: light-dark(#f9f9f1, #14161e);
  background: light-dark(#14161e, #f9f9f1);
}
.dither input[type="range"] {
  appearance: none;
  width: 10em;
  height: 14px;
  margin: 0;
  vertical-align: middle;
  color: inherit;
  background: none;
  cursor: pointer;
}
.dither input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 4px 4px;
}
.dither input[type="range"]::-moz-range-track {
  height: 6px;
  background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 4px 4px;
}
.dither input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 8px;
  height: 14px;
  margin-top: -4px;
  border: none;
  border-radius: 0;
  background: currentColor;
}
.dither input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 14px;
  border: none;
  border-radius: 0;
  background: currentColor;
}
.dither canvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
}
.status:empty {
  display: none;
}
