:root {
  --accentColor: #ffffff;
  --backgroundColor: #000000;
  --contentColor: #ffffff;
  --contrastAmount: 1;

  --articleBackgroundColor: rgb(from var(--accentColor) r g b / 0.16);
  --navBackgroundColor: rgb(from var(--accentColor) r g b / 0.2);

  --contentGhostColor: rgb(from var(--contentColor) r g b / 0.06);
  --accentGhostColor: rgb(from var(--accentColor) r g b / 0.08);

  --overlayColor: ${alphaComposite(
      alphaComposite(backgroundColor, accentColor, 0.16),
      contentColor,
      0.06
    )};

  --special1: #323232;
  --special2: #4a4a4a;
  --special3: rgb(from var(--accentColor) r g b / 0.17);

  --articleWidth: clamp(320px, 100%, 1920px);
  --navWidth: clamp(250px, var(--articleWidth), 548px);
}

@media (min-width: 548px) {
  :root {
    --navWidth: clamp(250px, var(--articleWidth), 17.5rem);
  }
}

html {
  text-rendering: optimizeLegibility;
  font-kerning: none;
  font-variant-ligatures: none;
  font-feature-settings:
    'liga' 0,
    'kern' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--backgroundColor);
  height: clamp(100vh, 100vh, 100vh);
  width: clamp(100vw, 100vw, 100vw);
}
* {
  pointer-events: none;
  user-select: none;
  cursor: default;
  touch-action: manipulation;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
*:focus {
  outline: none;
}

a,
input,
button,
[role='button'] {
  pointer-events: all;
}
button,
[role='button'] {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}
button svg,
[role='button'] svg {
  fill: var(--contentColor);
}
.padding {
  min-height: 2rem;
  min-width: 100%;
}

body {
  opacity: 0.01;
  transition: opacity 0.5s ease-in-out;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--contentColor);
  font-family: 'K2D', sans-serif;
  height: clamp(100dvh, 100dvh, 100dvh);
  width: clamp(320px, 100%, 768px);
  gap: 0;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  filter: contrast(--contrastAmount);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html,
body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
}

.scroll {
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #666 transparent; /* Firefox */
}

.scroll::-webkit-scrollbar {
  width: 6px;
}

.scroll::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.scroll::-webkit-scrollbar-track {
  background: transparent;
}
@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('/fonts/K2D-Thin.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/K2D-ExtraLight.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/K2D-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/K2D-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/K2D-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/K2D-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/K2D-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'K2D';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/K2D-ExtraBold.ttf') format('truetype');
}

.typing_effect::after {
  content: '';
  display: inline-block;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.06em;
  vertical-align: -0.04em;
  background: currentColor;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0.2rem;
  margin: 0;
  outline: none;
  appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  box-sizing: border-box;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

::-webkit-search-decoration {
  appearance: none;
}

a,
button {
  transition: transform 0.2s ease;
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  display: block;
}

details {
  display: block;
  margin: 0;
  padding: 0;
}

summary {
  display: block;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0;
}

summary::-webkit-details-marker,
summary::marker {
  display: none;
  content: '';
}
