:root {
  --max-width: 1200px;
  --border-radius: 12px;
  --font-mono:
    "Geist Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
  --darkColor: #1d1d1d;
  --lightColor: #c0c0c0;
  --backgroundColor: var(--lightColor);
  --color: var(--darkColor);
  --background: var(--darkColor);
  --foreground: var(--lightColor);
  --linkColor: #204136;
  --viewport-height: 100vh;
  --vh: 1vh;
  --dvh: 100dvh;
  --svh: 100svh;
  --ticker-height: 20px;
  --ticker-duration: 120s;
  --ticker-opacity: 0.92;
  --ticker-tile-width: 15856px;
  --ticker-offset: var(--ticker-height);
  --bottom-nav-offset: 0px;
  --font-exposure: "Exposure", "MartinaPlantijn", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-exposure-extralight: var(--font-exposure);
  --font-exposure-light: var(--font-exposure);
  --font-title: var(--font-exposure);
  --font-body: var(--font-exposure);
  --font-satoshi:
    "Satoshi",
    "Geist",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  --font-tektur: "Tektur", "MartinaPlantijn", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --ascii-pane-background: var(--lightColor);
  --ascii-pane-foreground: var(--darkColor);
}
@media (max-width: 720px) {
  :root {
    --ticker-duration: 300s;
  }
}
html.ticker-collapsed {
  --ticker-offset: 0px;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color);
  color: var(--backgroundColor);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100000001;
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.skip-link:focus {
  top: 6px;
  opacity: 1;
  transform: translateY(0);
}
body,
html {
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: var(--viewport-height);
  font-weight: 400;
  font-family:
    var(--font-body),
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  color: var(--color);
}
html {
  background-color: var(--backgroundColor);
  color: var(--color);
}
body,
html {
  height: 100%;
  height: 100vh;
  height: var(--viewport-height);
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
main {
  padding: 0;
}
::selection {
  background-color: var(--color);
  color: var(--backgroundColor);
}
:root[data-mode="dark"],
:root[style*="--mode:dark"],
body[data-mode="dark"],
body[style*="--mode:dark"],
html[data-mode="dark"],
html[style*="--mode:dark"] {
  --backgroundColor: var(--darkColor) !important;
  --color: var(--lightColor) !important;
  --background: var(--darkColor) !important;
  --foreground: var(--lightColor) !important;
  --linkColor: #204136 !important;
}
:root[data-theme="kong"],
:root[style*="--theme:kong"],
body[data-theme="kong"],
body[style*="--theme:kong"],
html[data-theme="kong"],
html[style*="--theme:kong"] {
  --darkColor: #1b165b;
  --lightColor: #f6f7fe;
}
:root[data-theme="keenan"],
:root[style*="--theme:keenan"],
body[data-theme="keenan"],
body[style*="--theme:keenan"],
html[data-theme="keenan"],
html[style*="--theme:keenan"] {
  --darkColor: #1c0072;
  --lightColor: #ff70c0;
}
:root[data-theme="h"],
:root[style*="--theme:h"],
body[data-theme="h"],
body[style*="--theme:h"],
html[data-theme="h"],
html[style*="--theme:h"] {
  --darkColor: #414241;
  --lightColor: #95e45e;
}
:root[data-theme="pettet"],
:root[style*="--theme:pettet"],
body[data-theme="pettet"],
body[style*="--theme:pettet"],
html[data-theme="pettet"],
html[style*="--theme:pettet"] {
  --darkColor: #b137bd;
  --lightColor: #a3a9ff;
}
:root[data-theme="zyg"],
:root[style*="--theme:zyg"],
body[data-theme="zyg"],
body[style*="--theme:zyg"],
html[data-theme="zyg"],
html[style*="--theme:zyg"] {
  --darkColor: #813294;
  --lightColor: #c1d88b;
}
:root[data-theme="boring-gray"],
:root[style*="--theme:boring-gray"],
body[data-theme="boring-gray"],
body[style*="--theme:boring-gray"],
html[data-theme="boring-gray"],
html[style*="--theme:boring-gray"] {
  --darkColor: #1d1d1d;
  --lightColor: #c0c0c0;
}
:root[data-theme="moeller"],
:root[style*="--theme:moeller"],
body[data-theme="moeller"],
body[style*="--theme:moeller"],
html[data-theme="moeller"],
html[style*="--theme:moeller"] {
  --darkColor: #1455eb;
  --lightColor: #a6a6a6;
}
:root[data-theme="bontu"],
:root[style*="--theme:bontu"],
body[data-theme="bontu"],
body[style*="--theme:bontu"],
html[data-theme="bontu"],
html[style*="--theme:bontu"] {
  --darkColor: #0d0403;
  --lightColor: #0ff;
}
:root[data-theme="jacoviello"],
:root[style*="--theme:jacoviello"],
body[data-theme="jacoviello"],
body[style*="--theme:jacoviello"],
html[data-theme="jacoviello"],
html[style*="--theme:jacoviello"] {
  --darkColor: #0a0004;
  --lightColor: #b50088;
}
:root[data-theme="btc-orange"],
:root[style*="--theme:btc-orange"],
body[data-theme="btc-orange"],
body[style*="--theme:btc-orange"],
html[data-theme="btc-orange"],
html[style*="--theme:btc-orange"] {
  --darkColor: #eda557;
  --lightColor: #150800;
}
:root[data-theme="btc-orange-flipped"],
:root[style*="--theme:btc-orange-flipped"],
body[data-theme="btc-orange-flipped"],
body[style*="--theme:btc-orange-flipped"],
html[data-theme="btc-orange-flipped"],
html[style*="--theme:btc-orange-flipped"] {
  --darkColor: #150800;
  --lightColor: #eda557;
}
:root[data-theme="blau"],
:root[style*="--theme:blau"],
body[data-theme="blau"],
body[style*="--theme:blau"],
html[data-theme="blau"],
html[style*="--theme:blau"] {
  --darkColor: #B2B2B2;
  --lightColor: #0078cd;
}
:root[data-theme="hut8"],
:root[style*="--theme:hut8"],
body[data-theme="hut8"],
body[style*="--theme:hut8"],
html[data-theme="hut8"],
html[style*="--theme:hut8"] {
  --darkColor: #bbccbb;
  --lightColor: #080808;
}
:root[data-theme="sky"],
:root[style*="--theme:sky"],
body[data-theme="sky"],
body[style*="--theme:sky"],
html[data-theme="sky"],
html[style*="--theme:sky"] {
  --darkColor: #00fff6;
  --lightColor: #833f80;
}
:root[data-theme="gil-1"],
:root[style*="--theme:gil-1"],
body[data-theme="gil-1"],
body[style*="--theme:gil-1"],
html[data-theme="gil-1"],
html[style*="--theme:gil-1"] {
  --darkColor: #193BFF;
  --lightColor: #98E698;
}
:root[data-theme="gil-2"],
:root[style*="--theme:gil-2"],
body[data-theme="gil-2"],
body[style*="--theme:gil-2"],
html[data-theme="gil-2"],
html[style*="--theme:gil-2"] {
  --darkColor: #D2C8E2;
  --lightColor: #220B44;
}
:root[data-theme="super-red"],
:root[style*="--theme:super-red"],
body[data-theme="super-red"],
body[style*="--theme:super-red"],
html[data-theme="super-red"],
html[style*="--theme:super-red"] {
  --darkColor: #000000;
  --lightColor: #F94D00;
}
:root[data-theme="textfile"],
:root[style*="--theme:textfile"],
body[data-theme="textfile"],
body[style*="--theme:textfile"],
html[data-theme="textfile"],
html[style*="--theme:textfile"] {
  --darkColor: #000000;
  --lightColor: #ffffff;
}
:root[data-theme="rojo"],
:root[style*="--theme:rojo"],
body[data-theme="rojo"],
body[style*="--theme:rojo"],
html[data-theme="rojo"],
html[style*="--theme:rojo"] {
  --darkColor: #574844;
  --lightColor: #ff5353;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist/Geist-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist/Geist-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exposure";
  src: url("../fonts/Exposure/exposure-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exposure";
  src: url("../fonts/Exposure/exposure-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exposure";
  src: url("../fonts/Exposure/exposure-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MartinaPlantijn";
  src: url("../fonts/MartinaPlantijn/martina-plantijn-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MartinaPlantijn";
  src: url("../fonts/MartinaPlantijn/martina-plantijn-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MartinaPlantijn";
  src: url("../fonts/MartinaPlantijn/martina-plantijn-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MartinaPlantijn";
  src: url("../fonts/MartinaPlantijn/martina-plantijn-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MartinaPlantijn";
  src: url("../fonts/MartinaPlantijn/martina-plantijn-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur/Tektur-VariableFont_wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono/IBMPlexMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body.theme-glitch {
  animation: theme-glitch-body 0.36s steps(2, end) 2;
  filter: none;
  will-change: filter, transform;
}

body.theme-glitch::before,
body.theme-glitch::after {
  content: "";
  position: fixed;
  inset: -6px;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0px,
    rgba(255, 255, 255, 0.25) 2px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0) 6px
  );
  animation: theme-glitch-overlay 0.36s steps(2, end) 2;
  z-index: 2147483600;
}

body.theme-glitch::after {
  mix-blend-mode: screen;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 0, 140, 0.18) 0px,
    rgba(255, 0, 140, 0.18) 3px,
    rgba(0, 255, 255, 0.18) 3px,
    rgba(0, 255, 255, 0.18) 6px,
    rgba(0, 0, 0, 0) 6px,
    rgba(0, 0, 0, 0) 12px
  );
  animation-delay: 40ms;
}

@keyframes theme-glitch-body {
  0% {
    filter: hue-rotate(-24deg) contrast(1.35) saturate(1.6);
    transform: translate3d(-2px, -1px, 0);
  }
  25% {
    filter: hue-rotate(30deg) contrast(1.45) saturate(1.55);
    transform: translate3d(3px, 0, 0);
  }
  50% {
    filter: hue-rotate(-12deg) contrast(1.4) saturate(1.5);
    transform: translate3d(-1px, 1px, 0);
  }
  75% {
    filter: hue-rotate(18deg) contrast(1.3) saturate(1.45);
    transform: translate3d(2px, -1px, 0);
  }
  100% {
    filter: none;
    transform: none;
  }
}

@keyframes theme-glitch-overlay {
  0% {
    opacity: 0.4;
    clip-path: inset(0 0 68% 0);
    transform: translate3d(-6px, -3px, 0);
  }
  25% {
    opacity: 0.22;
    clip-path: inset(54% 0 0 0);
    transform: translate3d(4px, 3px, 0);
  }
  50% {
    opacity: 0.32;
    clip-path: inset(12% 0 38% 0);
    transform: translate3d(-3px, 2px, 0);
  }
  75% {
    opacity: 0.18;
    clip-path: inset(28% 0 24% 0);
    transform: translate3d(3px, -2px, 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-glitch {
    animation: none;
    filter: none;
  }

  body.theme-glitch::before,
  body.theme-glitch::after {
    animation: none;
    opacity: 0;
  }
}
