:root {
  /* Colors */
  --primary: #43da54;
  --primary-dark: #21782a;
  --error: #e25336;
  --success: var(--primary);
  --background: #000;

  /* Typography Scale */
  --text-small: clamp(1.28rem, 0.05vi + 1.26rem, 1.35rem);
  --text-medium: clamp(1.6rem, 0.13vi + 1.55rem, 1.8rem);
  --text-large: clamp(2rem, 0.26vi + 1.89rem, 2.4rem);

  /* Spacing */
  --gap-small: 2rem;
  --gap-medium: 4rem;
  --padding-container: 4rem;
}

/* Font Faces */
@font-face {
  font-family: "Inconsolata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inconsolata-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Inconsolata";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inconsolata-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Menlo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/menlo-regular.woff2") format("woff2");
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  background-color: var(--background);
  color: var(--primary);
  font-family: "Inconsolata", monospace;
  font-size: var(--text-medium);
  line-height: 1.5;
  min-height: 100svh;
}

/* Selection */
::selection {
  background-color: var(--primary-dark);
  color: #fff;
}

::-moz-selection {
  background-color: var(--primary-dark);
  color: #fff;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
