/* Reset, typography, and global page styles */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(217, 255, 82, 0.12),
      transparent 25%
    ),
    radial-gradient(
      circle at 10% 60%,
      rgba(90, 100, 255, 0.08),
      transparent 28%
    );
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

.container {
  width: min(var(--container-max), 92%);
  margin: auto;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.highlight {
  color: var(--color-accent);
}
