@font-face {
  font-family: "CMU Serif";
  src: url("/cmu.serif-roman.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  width: 100%;
  font-family: "CMU Serif", serif;
}

body {
  --about-page-grid-color: #9bd091;

  min-height: 100vh;
  overflow-x: hidden;
  color: white;
  background-color: #000000;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.65);
}

body::before {
  content: "";
  position: fixed;
  inset: -96px 0 0 -96px;
  z-index: 0;
  width: calc(100% + 192px);
  height: calc(100% + 192px);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 208, 145, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 208, 145, 0.24) 1px, transparent 1px),
    linear-gradient(rgba(155, 208, 145, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 208, 145, 0.36) 1px, transparent 1px);
  background-size:
    72px 72px,
    72px 72px,
    96px 96px,
    96px 96px;
  animation: aboutPageGraphDrift 5.5s linear infinite;
}

@keyframes aboutPageGraphDrift {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0;
  }

  to {
    background-position:
      -72px -72px,
      -72px -72px,
      -96px 96px,
      -96px 96px;
  }
}

#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 64px;
  z-index: 10;
  padding: 0 clamp(16px, 2.5vw, 32px);
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px clamp(16px, 2.4vw, 32px);
}

.nav-item {
  flex: 0 0 auto;
  min-width: 0;
  color: white;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  opacity: 0.7;
}

.nav-item-right {
  margin-left: auto;
}

.nav-text {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 780px) {
  #top-bar {
    min-height: 64px;
    flex-wrap: wrap;
    padding: 16px 20px;
    gap: 14px 24px;
    align-content: center;
  }

  .nav-item {
    font-size: 17px;
  }

  .nav-item-right {
    margin-left: 0;
  }

  .nav-text {
    flex-basis: 100%;
  }
}
