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

@font-face {
  font-display: swap;
  font-family: "IBM Plex Mono";
  font-style: italic;
  font-weight: 400;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-italic.woff2") format("woff2");
}

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

:root {
  color-scheme: dark;
  --background: #020805;
  --border: rgba(135, 255, 160, 0.16);
  --body-font: "JetBrains Mono", "Courier New", monospace;
  --glow: rgba(108, 255, 137, 0.28);
  --heading-font: "Google Sans Flex", Arial, sans-serif;
  --muted: #68a876;
  --screen: #030b06;
  --text: #b9fbc8;
  background: var(--background);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 12px;
  font-synthesis: none;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse at center, #111a13 0%, #070c08 48%, #010201 100%);
  color: var(--text);
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

body::before {
  background-image:
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 40%, rgba(114, 255, 141, 0.025), transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

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

html[data-scramble-loading] .site-shell * {
  color: transparent !important;
}

.scramble-source {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-optical-sizing: auto;
  font-stretch: 120%;
  font-variation-settings: "wdth" 120;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: -3px;
}

.skip-link {
  background: var(--text);
  color: var(--background);
  left: 12px;
  padding: 8px 10px;
  position: fixed;
  top: 0;
  transform: translateY(-150%);
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(12px);
}

.crt-filter-defs {
  height: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.site-shell {
  --crt-brightness: 1;
  --flicker-level: 1;
  --glare-x: 28%;
  --glare-y: 18%;
  --jitter-x: 0px;
  --jitter-y: 0px;
  --noise-opacity: 0.03;
  --scanline-level: 1;
  --tear-height: 5%;
  --tear-shift: 2%;
  --tear-y: 48%;
  background: var(--screen);
  display: block;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.crt-picture {
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(45, 105, 57, 0.1), transparent 58%),
    var(--screen);
  display: grid;
  height: 100%;
  justify-items: center;
  opacity: var(--crt-brightness);
  position: relative;
  transform: translate3d(var(--jitter-x), var(--jitter-y), 0);
  transform-origin: center;
  width: 100%;
  will-change: opacity, transform;
  z-index: 1;
}

.site-container {
  background: rgba(2, 9, 5, 0.62);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(67, 255, 105, 0.055),
    inset 0 0 72px rgba(0, 0, 0, 0.24);
  display: grid;
  grid-template-columns: 20% minmax(0, 80%);
  height: 80vh;
  max-height: 80vh;
  max-width: 80vw;
  overflow: hidden;
  position: relative;
  width: 80vw;
}

@media (min-width: 901px) {
  html:not([data-crt="off"]):not([data-crt-filter="off"]) .site-container {
    filter: url(#crt-surface-filter);
    will-change: filter;
  }
}

.crt-surface-clip {
  height: 80vh;
  max-height: 80vh;
  max-width: 80vw;
  overflow: hidden;
  overflow: clip;
  position: relative;
  width: 80vw;
}

html[data-crt-boot]:not([data-crt="off"]) .site-shell {
  animation: crt-power-on 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  transform-origin: center;
}

.site-shell,
.site-shell * {
  scrollbar-color: rgba(121, 255, 148, 0.35) transparent;
  scrollbar-width: auto;
}

*::-webkit-scrollbar {
  height: 16px;
  width: 16px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(121, 255, 148, 0.28);
}

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

*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-button {
  border-radius: 0 !important;
}

@media (min-width: 901px) {
  .sidebar,
  .content-pane {
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar,
  .content-pane::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }
}

.custom-scrollbar {
  bottom: 0;
  pointer-events: auto;
  position: absolute;
  top: 0;
  width: 16px;
  z-index: 8;
}

.custom-scrollbar[hidden] {
  display: none;
}

.custom-scrollbar-sidebar {
  left: calc(20% - 16px);
}

.custom-scrollbar-content {
  right: 0;
}

.custom-scrollbar-thumb {
  background: rgba(121, 255, 148, 0.28);
  border-radius: 0 !important;
  cursor: grab;
  display: block;
  height: var(--scrollbar-thumb-height, 24px);
  left: 0;
  position: absolute;
  top: 0;
  transform: translateY(var(--scrollbar-thumb-y, 0px));
  width: 16px;
}

.custom-scrollbar-thumb:active {
  cursor: grabbing;
}

.sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  position: sticky;
  top: 0;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
  padding: 16px;
}

.site-name {
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

.site-navigation {
  flex: 1 0 auto;
}

.crt-control-panel {
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}

.crt-control-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 9px;
  list-style: none;
  padding: 10px 16px;
  text-transform: uppercase;
  user-select: none;
}

.crt-control-panel > summary::-webkit-details-marker {
  display: none;
}

.crt-control-panel > summary::before {
  color: var(--muted);
  content: "+";
  margin-right: 7px;
}

.crt-control-panel[open] > summary::before {
  content: "−";
}

.crt-control-status {
  color: var(--text);
  margin-left: auto;
}

html[data-crt="off"] .crt-control-status {
  color: var(--muted);
}

.crt-control-body {
  border-top: 1px solid var(--border);
  padding: 10px 16px 12px;
}

.crt-range {
  display: grid;
  font-size: 8px;
  gap: 3px 8px;
  grid-template-columns: 1fr auto;
  margin-top: 8px;
  text-transform: uppercase;
}

.crt-range output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.crt-range input[type="range"] {
  accent-color: var(--text);
  appearance: none;
  background: linear-gradient(to right, var(--text) var(--range-fill, 100%), rgba(104, 168, 118, 0.22) var(--range-fill, 100%));
  cursor: ew-resize;
  grid-column: 1 / -1;
  height: 1px;
  margin: 4px 0 3px;
  width: 100%;
}

.crt-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: var(--screen);
  border: 1px solid var(--text);
  border-radius: 0;
  box-shadow: 0 0 5px var(--glow);
  height: 8px;
  width: 5px;
}

.crt-range input[type="range"]::-moz-range-thumb {
  background: var(--screen);
  border: 1px solid var(--text);
  border-radius: 0;
  box-shadow: 0 0 5px var(--glow);
  height: 8px;
  width: 5px;
}

.crt-switch-grid {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding-top: 10px;
}

.crt-switch {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 8px;
  gap: 6px;
  justify-content: space-between;
  min-width: 0;
  text-transform: uppercase;
}

.crt-master-control {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding-bottom: 9px;
}

.crt-switch input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.crt-switch-track {
  border: 1px solid var(--muted);
  flex: 0 0 auto;
  height: 8px;
  position: relative;
  width: 17px;
}

.crt-switch-track::after {
  background: var(--muted);
  content: "";
  height: 4px;
  left: 1px;
  position: absolute;
  top: 1px;
  transition: transform 100ms ease-out;
  width: 5px;
}

.crt-switch input:checked + .crt-switch-track {
  border-color: var(--text);
  box-shadow: 0 0 5px var(--glow);
}

.crt-switch input:checked + .crt-switch-track::after {
  background: var(--text);
  transform: translateX(8px);
}

.crt-switch input:focus-visible + .crt-switch-track {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.crt-reset {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  margin-top: 10px;
  padding: 6px 8px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.crt-reset:hover,
.crt-reset:focus-visible {
  border-color: var(--text);
  color: var(--text);
}

.nav-link,
.nav-group > summary,
.nav-items a {
  min-height: 44px;
}

.nav-link,
.nav-group > summary {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  padding: 12px 16px;
  text-transform: uppercase;
}

.nav-link,
.nav-items a,
.site-footer a {
  text-decoration: none;
  text-transform: uppercase;
}

.nav-group > summary {
  cursor: pointer;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary::after {
  color: var(--muted);
  content: "+";
}

.nav-group[open] > summary::after {
  content: "−";
}

.nav-items {
  display: block;
  overflow: hidden;
}

.nav-group:not([open]) > .nav-items {
  height: 0;
  opacity: 0;
}

.nav-items-inner {
  min-height: 0;
}

.nav-items a {
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  overflow-wrap: anywhere;
  padding: 11px 16px 11px 28px;
}

.nav-empty {
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  min-height: 44px;
  padding: 11px 16px 11px 28px;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-group > summary:hover,
.nav-items a:hover,
.nav-link.is-active,
.nav-items a.is-active {
  background: var(--text);
  box-shadow: inset 0 0 18px rgba(5, 30, 10, 0.3);
  color: var(--background);
  text-shadow: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
}

.audio-volume-control {
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
  padding: 9px 16px 10px;
}

.audio-volume-control .crt-range {
  margin-top: 0;
}

.site-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.site-footer a {
  color: var(--muted);
  font-size: 9px;
}

.audio-toggle,
.crt-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  padding: 0;
  text-shadow: inherit;
  text-transform: uppercase;
}

.audio-toggle::before,
.crt-toggle::before {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 5px currentColor;
  content: "";
  display: inline-block;
  height: 4px;
  margin-right: 5px;
  vertical-align: 1px;
  width: 4px;
}

.audio-toggle:hover,
.crt-toggle:hover {
  color: var(--text);
}

.background-audio {
  border: 0;
  height: 200px;
  left: 0;
  opacity: 0.001;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 200px;
  z-index: -1;
}

.content-pane {
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  position: relative;
  transition: opacity 120ms ease-out;
  z-index: 1;
}

html[data-navigating] .content-pane {
  opacity: 0.58;
}

.grid-row {
  border-bottom: 1px solid var(--border);
  display: grid;
}

.columns-1 {
  grid-template-columns: minmax(0, 1fr);
}

.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cell {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(32px, 7vw, 80px) clamp(24px, 6vw, 72px);
}

.grid-cell.cell-padding-0 {
  padding: 0;
}

.grid-cell.cell-padding-0 > p:only-child,
.grid-cell.cell-padding-0 > .ascii-figure:only-child {
  margin: 0;
}

.grid-cell.cell-padding-0 > p:only-child > img:only-child {
  margin: 0;
  width: 100%;
}

.grid-cell + .grid-cell {
  border-left: 1px solid var(--border);
}

.content-header,
.entry-header {
  border-bottom: 1px solid var(--border);
}

.content-header {
  padding: clamp(32px, 7vw, 80px) clamp(24px, 6vw, 72px);
}

.content-header h1,
.entry-header h1,
.not-found h1 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0;
}

.entry-header {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.entry-header > * {
  align-items: center;
  display: flex;
  margin: 0;
  padding: clamp(32px, 7vw, 80px) clamp(24px, 6vw, 72px);
}

.entry-header > * + * {
  border-left: 1px solid var(--border);
}

.entry-header time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.prose {
  font-size: 11px;
  line-height: 1.8;
  max-width: 840px;
  padding: clamp(32px, 7vw, 72px) clamp(24px, 6vw, 72px);
}

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

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

.prose p,
.prose ol,
.prose ul {
  margin: 0 0 1.5em;
}

.prose h2,
.prose h3,
.prose h4 {
  border-top: 1px solid var(--border);
  font-weight: 500;
  line-height: 1.35;
  margin: 3em 0 1em;
  padding-top: 1.25em;
}

.prose h2 {
  font-size: 15px;
}

.prose h3 {
  font-size: 12px;
}

.prose h4 {
  color: var(--muted);
  font-size: 10px;
}

.prose ol,
.prose ul {
  padding-left: 2em;
}

.prose blockquote {
  border: 1px solid var(--border);
  color: var(--muted);
  margin: 2em 0;
  padding: 14px 16px;
}

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

.prose code,
.prose pre {
  background: #061009;
  font-family: inherit;
}

.prose code {
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
}

.prose pre {
  border: 1px solid var(--border);
  margin: 2em 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
}

.prose pre code {
  border: 0;
  padding: 0;
}

.prose img {
  border: 1px solid var(--border);
  display: block;
  height: auto;
  margin: 2em 0;
  max-width: 100%;
}

.elapsed-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  min-width: 16ch;
  white-space: nowrap;
}

.ascii-figure {
  margin: 2em 0;
  max-width: 100%;
  width: 100%;
}

.prose .ascii-art,
.ascii-art {
  background: #020805;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--body-font);
  font-size: clamp(3px, 0.62vw, 7px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  overflow: clip;
  padding: 0;
  text-shadow: 0 0 4px var(--glow);
  white-space: pre;
  width: 100%;
}

.prose .ascii-art code,
.ascii-glyphs {
  background: transparent;
  border: 0;
  display: inline-block;
  font: inherit;
  min-width: max-content;
  padding: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

.prose table {
  border-collapse: collapse;
  margin: 2em 0;
  width: 100%;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}

.not-found {
  min-height: 320px;
  padding: clamp(32px, 7vw, 80px) clamp(24px, 6vw, 72px);
}

.not-found h1 {
  margin-bottom: 24px;
}

.not-found p {
  color: var(--muted);
}

.crt-persistence,
.crt-noise {
  border-radius: inherit;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.crt-persistence {
  overflow: hidden;
  z-index: 3;
}

.crt-afterimage {
  animation: phosphor-decay 1.45s cubic-bezier(0.16, 0.75, 0.24, 1) forwards;
  filter: blur(0.7px);
  margin: 0;
  mix-blend-mode: screen;
  opacity: calc(0.2 * var(--persistence-level, 1));
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 0 7px currentColor;
  transform: translate3d(0.6px, 0, 0);
  white-space: pre-wrap;
}

.crt-noise {
  height: 100%;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: var(--noise-opacity);
  width: 100%;
  z-index: 4;
}

.crt-overlay {
  animation: crt-flicker 7s linear infinite;
  border-radius: inherit;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

.crt-overlay::before,
.crt-overlay::after,
.crt-glare,
.crt-tear,
.crt-frame-glint {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.crt-overlay::before {
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      rgb(0 0 0 / calc(0.26 * var(--scanline-level))) 3px,
      rgb(0 0 0 / calc(0.14 * var(--scanline-level))) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgb(255 70 70 / calc(0.035 * var(--scanline-level))) 0 1px,
      rgb(70 255 125 / calc(0.035 * var(--scanline-level))) 1px 2px,
      rgb(80 130 255 / calc(0.028 * var(--scanline-level))) 2px 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 5px,
      rgba(0, 0, 0, 0.1) 5px 6px
    );
  content: "";
  background-blend-mode: normal, screen, normal;
  opacity: 0.68;
}

.crt-overlay::after {
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.12) 76%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(115deg, rgba(220, 255, 228, 0.035), transparent 28%);
  box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.5);
  content: "";
}

.crt-glare {
  background: radial-gradient(
    circle at var(--glare-x) var(--glare-y),
    rgba(213, 255, 222, 0.075),
    rgba(145, 255, 168, 0.022) 16%,
    transparent 34%
  );
  mix-blend-mode: screen;
  opacity: var(--glare-level, 1);
  transition: background-position 140ms ease-out;
}

.crt-tear {
  backdrop-filter: blur(0.45px) brightness(1.2) saturate(1.25);
  background:
    linear-gradient(90deg, transparent, rgba(200, 255, 211, 0.1) 18%, transparent 82%),
    rgba(105, 255, 134, 0.04);
  border-bottom: 1px solid rgba(185, 255, 199, 0.16);
  border-top: 1px solid rgba(185, 255, 199, 0.09);
  bottom: auto;
  box-shadow:
    -3px 0 rgba(255, 75, 75, 0.07),
    3px 0 rgba(75, 135, 255, 0.07);
  height: var(--tear-height);
  opacity: 0;
  top: var(--tear-y);
  transform: translateX(var(--tear-shift));
}

.crt-frame-glint {
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.07), transparent 12% 80%, rgba(0, 0, 0, 0.2)),
    linear-gradient(to bottom, rgba(206, 255, 215, 0.035), transparent 10% 88%, rgba(0, 0, 0, 0.32));
  border: 1px solid rgba(206, 255, 216, 0.11);
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 0 rgba(224, 255, 231, 0.08),
    inset -1px -1px 0 rgba(0, 0, 0, 0.6);
}

.site-shell.signal-slip > .crt-picture {
  animation: channel-slip 150ms steps(2, end);
}

.site-shell.signal-slip .crt-tear {
  animation: horizontal-tear 150ms steps(2, end);
}

html[data-crt="off"] .crt-overlay,
html[data-crt="off"] .crt-noise,
html[data-crt="off"] .crt-persistence {
  display: none;
}

html[data-crt="off"] .crt-picture {
  opacity: 1;
  transform: none;
}

html[data-crt="off"] .site-container,
html[data-crt-filter="off"] .site-container {
  filter: none;
}

html[data-crt-glare="off"] .crt-glare,
html[data-crt-persistence="off"] .crt-persistence,
html[data-crt-tear="off"] .crt-tear {
  display: none;
}

html[data-crt="off"] .site-shell {
  text-shadow: none;
}

.audio-toggle[aria-pressed="false"]::before,
.crt-toggle[aria-pressed="false"]::before {
  box-shadow: none;
  opacity: 0.42;
}

@keyframes crt-power-on {
  0% {
    filter: brightness(12);
    opacity: 0;
    transform: scaleX(0.01) scaleY(0.004);
  }
  18% {
    filter: brightness(7);
    opacity: 1;
    transform: scaleX(0.78) scaleY(0.006);
  }
  38% {
    filter: brightness(4);
    transform: scaleX(1) scaleY(0.018);
  }
  58% {
    filter: brightness(1.45);
    transform: scaleX(1) scaleY(1.025);
  }
  74% {
    filter: brightness(0.92);
    transform: scaleX(1) scaleY(0.985);
  }
  100% {
    filter: brightness(1);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes crt-flicker {
  0%,
  18%,
  22%,
  63%,
  100% {
    opacity: 1;
  }
  18.4% {
    opacity: calc(1 - 0.09 * var(--flicker-level));
  }
  18.7%,
  63.4% {
    opacity: calc(1 - 0.03 * var(--flicker-level));
  }
}

@keyframes channel-slip {
  0%,
  100% {
    transform: translateX(0);
  }
  32% {
    transform: translateX(-0.45%);
  }
  68% {
    transform: translateX(0.28%);
  }
}

@keyframes horizontal-tear {
  0%,
  100% {
    opacity: 0;
  }
  24%,
  76% {
    opacity: 1;
  }
}

@keyframes phosphor-decay {
  0% {
    filter: blur(0.7px);
    opacity: 0.2;
  }
  24% {
    filter: blur(1.4px);
    opacity: 0.12;
  }
  100% {
    filter: blur(3px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  body {
    display: block;
    overflow: auto;
    padding: 0;
  }

  .site-shell {
    height: auto;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    width: 100%;
  }

  .crt-surface-clip {
    height: auto;
    max-height: none;
    max-width: none;
    min-height: 80vh;
    width: 100%;
  }

  .crt-picture {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6vh 16px;
    text-shadow:
      0 0 3px var(--glow),
      0.035em 0 rgba(255, 80, 80, 0.1),
      -0.035em 0 rgba(80, 150, 255, 0.1);
  }

  .site-container {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    max-width: none;
    min-height: 80vh;
    width: 100%;
  }

  .sidebar {
    border-bottom: 1px solid var(--border);
    border-right: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    position: static;
  }

  .content-pane {
    min-height: 60vh;
    overflow: visible;
  }

  .custom-scrollbar {
    display: none !important;
  }
}

@media (min-resolution: 1.5dppx) {
  .crt-overlay::before {
    opacity: 0.56;
  }
}

@media (max-width: 700px) {
  .columns-2,
  .columns-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-cell + .grid-cell {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .crt-picture {
    padding: 18px 10px;
  }

  .entry-header {
    grid-template-columns: 1fr;
  }

  .entry-header > * + * {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-bottom: 10px;
    padding-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-pane {
    transition: none;
  }

  .site-shell,
  .site-shell.signal-slip > .crt-picture,
  .site-shell.signal-slip .crt-tear,
  .crt-overlay,
  .crt-afterimage {
    animation: none !important;
  }

  .crt-glare,
  .crt-noise,
  .crt-persistence {
    display: none;
  }
}

@media (forced-colors: active) {
  .crt-picture {
    filter: none !important;
    opacity: 1;
    text-shadow: none;
    transform: none;
  }

  .crt-overlay,
  .crt-noise,
  .crt-persistence {
    display: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    display: block;
    overflow: visible;
  }

  .site-shell {
    box-shadow: none;
    height: auto;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .crt-picture {
    background: #fff;
    filter: none !important;
    opacity: 1;
    text-shadow: none;
    transform: none;
  }

  .site-container {
    border: 1px solid #999;
    box-shadow: none;
    height: auto;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .crt-overlay,
  .crt-noise,
  .crt-persistence,
  .audio-toggle,
  .background-audio,
  .crt-toggle {
    display: none !important;
  }

  .custom-scrollbar {
    display: none !important;
  }
}
